@topconsultnpm/sdkui-react 6.22.0-dev1.8 → 6.22.0-dev2.10
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/lib/components/base/TMButton.d.ts +13 -0
- package/lib/components/base/TMButton.js +137 -5
- package/lib/components/base/TMDataGridExportForm.js +39 -30
- package/lib/components/base/TMModal.js +1 -1
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +2 -0
- package/lib/components/choosers/TMDynDataListItemChooser.js +4 -6
- package/lib/components/editors/TMDateBox.d.ts +16 -1
- package/lib/components/editors/TMDateBox.js +90 -22
- package/lib/components/editors/TMMetadataEditor.d.ts +5 -1
- package/lib/components/editors/TMMetadataEditor.js +27 -23
- package/lib/components/editors/TMTextArea.d.ts +1 -0
- package/lib/components/editors/TMTextArea.js +23 -15
- package/lib/components/editors/TMTextBox.d.ts +2 -0
- package/lib/components/editors/TMTextBox.js +38 -22
- package/lib/components/features/documents/TMDcmtForm.d.ts +2 -1
- package/lib/components/features/documents/TMDcmtForm.js +112 -25
- package/lib/components/features/documents/TMRelationViewer.js +13 -32
- package/lib/components/features/search/TMSearch.d.ts +2 -1
- package/lib/components/features/search/TMSearch.js +31 -18
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +1 -1
- package/lib/components/features/search/TMSearchQueryPanel.js +28 -7
- package/lib/components/features/search/TMSearchResult.d.ts +2 -1
- package/lib/components/features/search/TMSearchResult.js +16 -41
- package/lib/components/features/search/TMSignatureInfoContent.d.ts +4 -2
- package/lib/components/features/search/TMSignatureInfoContent.js +373 -79
- package/lib/components/forms/Login/TMLoginForm.d.ts +2 -0
- package/lib/components/forms/Login/TMLoginForm.js +17 -3
- package/lib/components/forms/Login/TextBox.d.ts +3 -0
- package/lib/components/forms/Login/TextBox.js +2 -2
- package/lib/components/pages/TMPage.js +3 -1
- package/lib/components/query/TMQueryEditor.js +1 -1
- package/lib/components/viewers/TMMidViewer.js +1 -1
- package/lib/helper/Globalization.d.ts +1 -1
- package/lib/helper/SDKUI_Globals.js +22 -2
- package/lib/helper/SDKUI_Localizator.d.ts +11 -0
- package/lib/helper/SDKUI_Localizator.js +110 -0
- package/lib/helper/TMUtils.d.ts +29 -1
- package/lib/helper/TMUtils.js +249 -10
- package/lib/helper/grafometricSignaturesCache.d.ts +45 -0
- package/lib/helper/grafometricSignaturesCache.js +56 -0
- package/lib/helper/helpers.d.ts +11 -0
- package/lib/helper/helpers.js +32 -0
- package/lib/helper/index.d.ts +1 -0
- package/lib/helper/index.js +1 -0
- package/lib/hooks/useDocumentOperations.d.ts +2 -1
- package/lib/hooks/useDocumentOperations.js +15 -15
- package/lib/hooks/usePreventFileDrop.js +14 -3
- package/lib/ts/graphometricTypes.d.ts +62 -0
- package/lib/ts/graphometricTypes.js +1 -0
- package/lib/ts/index.d.ts +1 -0
- package/lib/ts/index.js +1 -0
- package/package.json +7 -2
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export interface IWacomBiometricData {
|
|
2
|
+
/** Nome del firmatario */
|
|
3
|
+
signatureName: string;
|
|
4
|
+
/** Motivo della firma */
|
|
5
|
+
reasonForSigning: string;
|
|
6
|
+
/** Data e ora della firma (timestamp) */
|
|
7
|
+
dateTime: number;
|
|
8
|
+
/** Data e ora formattata */
|
|
9
|
+
dateTimeFormatted: string;
|
|
10
|
+
/** Tipo di digitalizzatore (es. "Wacom STU-540") */
|
|
11
|
+
digitizerType: string;
|
|
12
|
+
/** Driver del digitalizzatore */
|
|
13
|
+
digitizerDriver: string;
|
|
14
|
+
/** Sistema operativo */
|
|
15
|
+
operatingSystem: string;
|
|
16
|
+
/** Scheda di rete (Network Interface Card) */
|
|
17
|
+
networkInterfaceCard: string;
|
|
18
|
+
/** Immagine della firma in formato Base64 (PNG) */
|
|
19
|
+
signatureImage: string;
|
|
20
|
+
/** Stato integrità firma (OK, FAIL, MISSING, WRONG_TYPE, INSUFFICIENT_DATA, UNCERTAIN, NOT_SUPPORTED) */
|
|
21
|
+
integrityStatus: string;
|
|
22
|
+
/** Messaggio di warning sull'integrità (se presente) */
|
|
23
|
+
integrityWarning?: string;
|
|
24
|
+
/** Stato della firma (GOOD, NO_HASH, BAD_TYPE, BAD_HASH, ERROR, UNCERTAIN, SIG_MOVED) */
|
|
25
|
+
dataStatus: string;
|
|
26
|
+
/** Messaggio di warning sui dati (se presente) */
|
|
27
|
+
dataWarning?: string;
|
|
28
|
+
/** Dati aggiuntivi specifici del contesto */
|
|
29
|
+
extraData?: Record<string, string>;
|
|
30
|
+
}
|
|
31
|
+
export type IWacomBiometricResult = {
|
|
32
|
+
success: true;
|
|
33
|
+
data: IWacomBiometricData;
|
|
34
|
+
} | {
|
|
35
|
+
success: false;
|
|
36
|
+
error: string;
|
|
37
|
+
};
|
|
38
|
+
export interface ISignatureRenderConfig {
|
|
39
|
+
width?: number;
|
|
40
|
+
height?: number;
|
|
41
|
+
format?: "image/png" | "image/jpeg";
|
|
42
|
+
inkWidth?: number;
|
|
43
|
+
inkColor?: string;
|
|
44
|
+
backgroundColor?: string;
|
|
45
|
+
}
|
|
46
|
+
export type ExtractBiometricDataFn = (signatures: string[]) => Promise<IWacomBiometricResult[]>;
|
|
47
|
+
export interface IGraphometricManagerProp {
|
|
48
|
+
extractGraphometricAttachments(pdfFile: File): Promise<{
|
|
49
|
+
fileName?: string | undefined;
|
|
50
|
+
description?: string | undefined;
|
|
51
|
+
mimeType?: string | undefined;
|
|
52
|
+
creationDate?: Date | undefined;
|
|
53
|
+
modificationDate?: Date | undefined;
|
|
54
|
+
size?: number;
|
|
55
|
+
dataBase64?: string | undefined;
|
|
56
|
+
}[]>;
|
|
57
|
+
extractBiometricData: ExtractBiometricDataFn;
|
|
58
|
+
downloadDecryptedPngWithBiometricData: (attachment: {
|
|
59
|
+
dataBase64: string;
|
|
60
|
+
fileName?: string | undefined;
|
|
61
|
+
}) => Promise<void>;
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/ts/index.d.ts
CHANGED
package/lib/ts/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react",
|
|
3
|
-
"version": "6.22.0-
|
|
3
|
+
"version": "6.22.0-dev2.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lib"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@topconsultnpm/sdk-ts": "6.22.0-
|
|
42
|
+
"@topconsultnpm/sdk-ts": "6.22.0-dev2.4",
|
|
43
43
|
"@zip.js/zip.js": "2.8.26",
|
|
44
44
|
"buffer": "^6.0.3",
|
|
45
45
|
"devextreme": "^25.2.6",
|
|
@@ -59,5 +59,10 @@
|
|
|
59
59
|
"quill-delta": {
|
|
60
60
|
"lodash.isequal": "npm:fast-deep-equal@^3.1.3"
|
|
61
61
|
}
|
|
62
|
+
},
|
|
63
|
+
"allowScripts": {
|
|
64
|
+
"core-js@3.49.0": true,
|
|
65
|
+
"esbuild@0.25.12": true,
|
|
66
|
+
"inferno@8.2.3": true
|
|
62
67
|
}
|
|
63
68
|
}
|