nuxeo-development-framework 6.0.5 → 6.0.7
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 +756 -3
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.js +1 -3
- package/esm2015/lib/components/latest-activity/components/single-activity/single-activity.component.js +2 -2
- package/esm2015/lib/components/ndf-signatures/emdha/dialogs/auth/emdha-auth.dialog.js +116 -0
- package/esm2015/lib/components/ndf-signatures/emdha/dialogs/index.js +2 -0
- package/esm2015/lib/components/ndf-signatures/emdha/index.js +3 -0
- package/esm2015/lib/components/ndf-signatures/emdha/services/emdha.service.js +133 -0
- package/esm2015/lib/components/ndf-signatures/emdha/services/index.js +2 -0
- package/esm2015/lib/components/ndf-signatures/index.js +5 -0
- package/esm2015/lib/components/ndf-signatures/ndf-signature-panel/ndf-signature-panel.component.js +132 -0
- package/esm2015/lib/components/ndf-signatures/ndf-signatures.module.js +68 -0
- package/esm2015/lib/components/ndf-signatures/services/index.js +2 -0
- package/esm2015/lib/components/ndf-signatures/services/signatures.service.js +307 -0
- package/esm2015/lib/shared/components/nuxeo-dialog/models/dialog-option.model.js +1 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/nuxeo-development-framework.js +700 -6
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.d.ts +0 -1
- package/lib/components/ndf-signatures/emdha/dialogs/auth/emdha-auth.dialog.d.ts +18 -0
- package/lib/components/ndf-signatures/emdha/dialogs/index.d.ts +1 -0
- package/lib/components/ndf-signatures/emdha/index.d.ts +2 -0
- package/lib/components/ndf-signatures/emdha/services/emdha.service.d.ts +31 -0
- package/lib/components/ndf-signatures/emdha/services/index.d.ts +1 -0
- package/lib/components/ndf-signatures/index.d.ts +4 -0
- package/lib/components/ndf-signatures/ndf-signature-panel/ndf-signature-panel.component.d.ts +37 -0
- package/lib/components/ndf-signatures/ndf-signatures.module.d.ts +17 -0
- package/lib/components/ndf-signatures/services/index.d.ts +1 -0
- package/lib/components/ndf-signatures/services/signatures.service.d.ts +53 -0
- package/lib/shared/components/nuxeo-dialog/models/dialog-option.model.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -88,7 +88,6 @@ export declare class DynamicFormSelectUsersComponent implements OnChanges, OnDes
|
|
|
88
88
|
private constructUserArray;
|
|
89
89
|
private insertFUllName;
|
|
90
90
|
private filterUsers;
|
|
91
|
-
getUsersUnderCertainGroup(): void;
|
|
92
91
|
reset(): void;
|
|
93
92
|
ngOnDestroy(): void;
|
|
94
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormSelectUsersComponent, [null, null, null, { optional: true; self: true; }]>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { BaseDialogComponent } from '../../../../../shared';
|
|
3
|
+
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { EmdhaService } from '../../services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class EmdhaAuthDialog extends BaseDialogComponent<EmdhaAuthDialog, void, boolean> {
|
|
7
|
+
#private;
|
|
8
|
+
private emdhaService;
|
|
9
|
+
emdhaForm: FormGroup;
|
|
10
|
+
displayCode: string;
|
|
11
|
+
proccessingSign: boolean;
|
|
12
|
+
get getDialogTitle(): "viewer.emdha.authenticating" | "viewer.emdha.auth-confirmation" | "viewer.emdha.auth";
|
|
13
|
+
constructor(injector: Injector, emdhaService: EmdhaService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
signerAuth(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmdhaAuthDialog, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EmdhaAuthDialog, "app-emdha-auth-dialog", never, {}, {}, never, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './auth/emdha-auth.dialog';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Injector, TemplateRef, Type } from '@angular/core';
|
|
2
|
+
import { BaseService, NuxeoDialogService } from '../../../../shared';
|
|
3
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare enum TransactionStatus {
|
|
6
|
+
Pending = "pending",
|
|
7
|
+
Authorized = "authorized",
|
|
8
|
+
Failed = "failed",
|
|
9
|
+
NotFound = "notfound",
|
|
10
|
+
Error = "error"
|
|
11
|
+
}
|
|
12
|
+
export interface EmdhaPayload {
|
|
13
|
+
uid: string;
|
|
14
|
+
pageNumber: number;
|
|
15
|
+
pageCoordinates: string;
|
|
16
|
+
signImage: string;
|
|
17
|
+
}
|
|
18
|
+
export declare class EmdhaService extends BaseService {
|
|
19
|
+
#private;
|
|
20
|
+
private nuxeoDialogService;
|
|
21
|
+
customToken: string;
|
|
22
|
+
get displayCode(): string;
|
|
23
|
+
get headers(): HttpHeaders;
|
|
24
|
+
constructor(injector: Injector, nuxeoDialogService: NuxeoDialogService);
|
|
25
|
+
start(component: Type<any> | TemplateRef<any>, emdhaPayload: EmdhaPayload): import("rxjs").Observable<boolean>;
|
|
26
|
+
auth(signerId: string): import("rxjs").Observable<Record<string, any>>;
|
|
27
|
+
checkTransactionStatus(): import("rxjs").Observable<any>;
|
|
28
|
+
signDocument(): import("rxjs").Observable<unknown>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmdhaService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EmdhaService>;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './emdha.service';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '../../../shared';
|
|
3
|
+
import { InsertSingPosition, SignaturesService, UserSignature } from '../services';
|
|
4
|
+
import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|
5
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NdfSignaturePanelComponent extends BaseComponent implements OnInit {
|
|
8
|
+
#private;
|
|
9
|
+
private signaturesService;
|
|
10
|
+
private dialog;
|
|
11
|
+
addTemplate: any;
|
|
12
|
+
appendSigntoDoc: any;
|
|
13
|
+
signatureUploadInput: any;
|
|
14
|
+
allowedSignTypes: string;
|
|
15
|
+
svgDeleteIcon: string;
|
|
16
|
+
enableMultiSign: boolean;
|
|
17
|
+
customConfirmationDialog: {
|
|
18
|
+
component: ComponentType<any>;
|
|
19
|
+
config?: MatDialogConfig<any>;
|
|
20
|
+
};
|
|
21
|
+
userSignatures: UserSignature[];
|
|
22
|
+
selectedSign: UserSignature;
|
|
23
|
+
selectedPosition: InsertSingPosition;
|
|
24
|
+
signaturePosition: {
|
|
25
|
+
label: string;
|
|
26
|
+
id: InsertSingPosition;
|
|
27
|
+
}[];
|
|
28
|
+
constructor(injector: Injector, signaturesService: SignaturesService, dialog: MatDialog);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
addNewSign(): void;
|
|
31
|
+
applySignToDocument(): void;
|
|
32
|
+
saveSignature(event: any): void;
|
|
33
|
+
selectSignature(sign: UserSignature): void;
|
|
34
|
+
deleteSignature(sign: UserSignature): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfSignaturePanelComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NdfSignaturePanelComponent, "ndf-signature-panel", never, { "allowedSignTypes": "allowedSignTypes"; "svgDeleteIcon": "svgDeleteIcon"; "enableMultiSign": "enableMultiSign"; "customConfirmationDialog": "customConfirmationDialog"; }, {}, ["addTemplate", "appendSigntoDoc"], never>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ndf-signature-panel/ndf-signature-panel.component";
|
|
3
|
+
import * as i2 from "./emdha/dialogs/auth/emdha-auth.dialog";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@ngx-translate/core";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@angular/material/progress-bar";
|
|
8
|
+
import * as i7 from "@angular/material/icon";
|
|
9
|
+
import * as i8 from "@angular/material/radio";
|
|
10
|
+
import * as i9 from "../no-data-found/no-data.module";
|
|
11
|
+
import * as i10 from "../dynamic-form/dynamic-form.module";
|
|
12
|
+
import * as i11 from "../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
|
|
13
|
+
export declare class NdfSignaturesModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfSignaturesModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NdfSignaturesModule, [typeof i1.NdfSignaturePanelComponent, typeof i2.EmdhaAuthDialog], [typeof i3.CommonModule, typeof i4.TranslateModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MatProgressBarModule, typeof i7.MatIconModule, typeof i8.MatRadioModule, typeof i7.MatIconModule, typeof i9.NoDataModule, typeof i10.DynamicFormModule, typeof i11.NuxeoDialogModule], [typeof i1.NdfSignaturePanelComponent, typeof i2.EmdhaAuthDialog]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NdfSignaturesModule>;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './signatures.service';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { BaseService } from '../../../shared';
|
|
3
|
+
import { PdftronService } from '../../pdf-tron/pdftron/pdftron.service';
|
|
4
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
|
+
import { DocumentsService } from '../../documents/services/documents.service';
|
|
6
|
+
import { EmdhaService } from '../emdha';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export interface UserSignature {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
image: string;
|
|
12
|
+
}
|
|
13
|
+
export declare enum SignatureType {
|
|
14
|
+
Tron = "tron",
|
|
15
|
+
Emdha = "emdha"
|
|
16
|
+
}
|
|
17
|
+
export declare enum InsertSingPosition {
|
|
18
|
+
CurrentPage = "currentPage",
|
|
19
|
+
FirstPage = "firstPage",
|
|
20
|
+
LastPage = "lastPage",
|
|
21
|
+
FirstLastPage = "firstLast",
|
|
22
|
+
AllPages = "allPages"
|
|
23
|
+
}
|
|
24
|
+
export declare class SignaturesService extends BaseService {
|
|
25
|
+
#private;
|
|
26
|
+
private emdhaService;
|
|
27
|
+
private pdftronService;
|
|
28
|
+
private documentsService;
|
|
29
|
+
hasSignatures$: BehaviorSubject<boolean>;
|
|
30
|
+
operations: {
|
|
31
|
+
get: string;
|
|
32
|
+
create: string;
|
|
33
|
+
delete: string;
|
|
34
|
+
lock: string;
|
|
35
|
+
unlock: string;
|
|
36
|
+
audit: string;
|
|
37
|
+
createVersion: string;
|
|
38
|
+
};
|
|
39
|
+
constructor(injector: Injector, emdhaService: EmdhaService, pdftronService: PdftronService, documentsService: DocumentsService);
|
|
40
|
+
lockDocument(mode: string, docId: string, headers?: Record<string, any>): Observable<unknown>;
|
|
41
|
+
unlockDocument(docId: string, headers?: Record<string, any>): Observable<unknown>;
|
|
42
|
+
getLockOwner(userId: any): Observable<unknown>;
|
|
43
|
+
getUserSignatures(forceFetch?: boolean): Observable<UserSignature[]>;
|
|
44
|
+
addUserSignature(file: File): Observable<UserSignature[]>;
|
|
45
|
+
deleteUserSignature(sign: UserSignature): Observable<UserSignature[]>;
|
|
46
|
+
applySignToDocument(sign: UserSignature, insertPosition: InsertSingPosition): void;
|
|
47
|
+
saveSingFile(signatureType: SignatureType, document: Record<string, any>, file: File, extraHeaders?: Record<string, any>, useVersionCustomParam?: boolean, updateDocument?: boolean): Observable<any>;
|
|
48
|
+
onTrackingSignature(signatures: Record<string, any>): void;
|
|
49
|
+
reset(): void;
|
|
50
|
+
setCustomToken(token: string): void;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SignaturesService, never>;
|
|
52
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SignaturesService>;
|
|
53
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -245,5 +245,6 @@ export * from './lib/components/ndf-config-editor';
|
|
|
245
245
|
export * from './lib/components/ndf-filters';
|
|
246
246
|
export * from './lib/components/ndf-uploader';
|
|
247
247
|
export * from './lib/components/ndf-scanner';
|
|
248
|
+
export * from './lib/components/ndf-signatures';
|
|
248
249
|
export * from './lib/shared/evaluator';
|
|
249
250
|
export * from './lib/shared/constants';
|