@topconsultnpm/sdkui-react-beta 6.15.6 → 6.15.8

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.
@@ -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
- ae.ArchivingFile = dcmtFile;
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;
@@ -194,7 +194,7 @@ export function useDcmtOperations() {
194
194
  return;
195
195
  if (inputDcmts.length <= 0)
196
196
  return;
197
- let file = await OpenFileDialog();
197
+ let file = inputDcmts[0].FILE ?? await OpenFileDialog();
198
198
  if (!file)
199
199
  return;
200
200
  setShowWaitPanel(true);
package/lib/ts/types.d.ts CHANGED
@@ -69,6 +69,7 @@ export type TID_MID = {
69
69
  export type DcmtInfo = {
70
70
  TID: number;
71
71
  DID: number;
72
+ FILE?: File;
72
73
  FILEEXT?: string;
73
74
  fileFormat?: FileFormats;
74
75
  metadataValues?: MetadataValueDescriptorEx[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.15.6",
3
+ "version": "6.15.8",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",