@topconsultnpm/sdkui-react-beta 6.15.5 → 6.15.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.
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
interface ITMArchiveProps {
|
|
3
3
|
inputTID?: number;
|
|
4
4
|
inputFile?: File | null;
|
|
5
|
-
connectorFileSave?: () => Promise<
|
|
5
|
+
connectorFileSave?: () => Promise<File>;
|
|
6
6
|
onSavedAsyncCallback?: (tid: number | undefined, did: number | undefined) => Promise<void>;
|
|
7
7
|
}
|
|
8
8
|
declare const TMArchive: React.FunctionComponent<ITMArchiveProps>;
|
|
@@ -28,7 +28,7 @@ interface ITMDcmtFormProps {
|
|
|
28
28
|
onWFOperationCompleted?: () => Promise<void>;
|
|
29
29
|
onTaskCompleted?: (task: TaskDescriptor) => void;
|
|
30
30
|
onTaskCreateRequest?: (taskContext: TaskContext, onTaskCreated?: (task?: TaskDescriptor) => void) => void;
|
|
31
|
-
connectorFileSave?: () => Promise<
|
|
31
|
+
connectorFileSave?: () => Promise<File>;
|
|
32
32
|
isModal?: boolean;
|
|
33
33
|
titleModal?: string;
|
|
34
34
|
widthModal?: string;
|
|
@@ -278,8 +278,6 @@ const TMDcmtForm = ({ showHeader = true, onSaveRecents, layoutMode = LayoutModes
|
|
|
278
278
|
setFormData(structuredClone(formDataOrig));
|
|
279
279
|
};
|
|
280
280
|
const confirmActionPopup = async () => {
|
|
281
|
-
if (layoutMode === LayoutModes.Ark)
|
|
282
|
-
await connectorFileSave?.();
|
|
283
281
|
TMMessageBoxManager.show({
|
|
284
282
|
parentId: isModal ? "TMDcmtFormShowConfirmForClose-" + id : undefined,
|
|
285
283
|
buttons: [ButtonNames.YES, ButtonNames.NO],
|
|
@@ -361,7 +359,13 @@ const TMDcmtForm = ({ showHeader = true, onSaveRecents, layoutMode = LayoutModes
|
|
|
361
359
|
default: ae.Metadata_AddNull(metadata.mid);
|
|
362
360
|
}
|
|
363
361
|
}
|
|
364
|
-
|
|
362
|
+
if (connectorFileSave) {
|
|
363
|
+
let file = await connectorFileSave();
|
|
364
|
+
ae.ArchivingFile = file;
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
ae.ArchivingFile = dcmtFile;
|
|
368
|
+
}
|
|
365
369
|
let res = await ae.ArchiveAsync(abortControllerLocal.signal, (pd) => {
|
|
366
370
|
if (firstBlock) {
|
|
367
371
|
maxFileSize = pd.ProgressBarMaximum ?? 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react-beta",
|
|
3
|
-
"version": "6.15.
|
|
3
|
+
"version": "6.15.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@topconsultnpm/sdk-ts-beta": "6.15.
|
|
45
|
+
"@topconsultnpm/sdk-ts-beta": "6.15.2",
|
|
46
46
|
"buffer": "^6.0.3",
|
|
47
47
|
"devextreme": "24.2.6",
|
|
48
48
|
"devextreme-react": "24.2.6",
|