@topconsultnpm/sdkui-react 6.21.0-dev2.44 → 6.21.0-dev2.46
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.
|
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { LoadIndicator } from 'devextreme-react';
|
|
5
5
|
import { AppModules, DataColumnTypes, DataListViewModes, DcmtTypeListCacheService, LayoutCacheService, LayoutModes, MetadataDataDomains, MetadataFormats, SDK_Globals, SystemMIDsAsNumber, UserListCacheService, } from '@topconsultnpm/sdk-ts';
|
|
6
|
-
import { deepCompare, generateUniqueColumnKeys, genUniqueId, getSearchToolbarVisibility, IconBoard, IconDcmtTypeSys, IconDelete, IconMenuVertical, IconPlatform, IconRefresh, IconSearchCheck, IconShow, isApprovalWorkflowView, searchResultDescriptorToSimpleArray, searchResultToMetadataValues, SDKUI_Globals, SDKUI_Localizator, } from '../../../helper';
|
|
6
|
+
import { deepCompare, generateUniqueColumnKeys, genUniqueId, getSearchToolbarVisibility, IconBoard, IconDcmtTypeSys, IconDelete, IconMenuVertical, IconPlatform, IconRefresh, IconSearchCheck, IconShow, isApprovalWorkflowView, isSign4TopEnabled, searchResultDescriptorToSimpleArray, searchResultToMetadataValues, SDKUI_Globals, SDKUI_Localizator, } from '../../../helper';
|
|
7
7
|
import { getDcmtCicoStatus } from '../../../helper/checkinCheckoutManager';
|
|
8
8
|
import { DcmtOperationTypes, SearchResultContext, } from '../../../ts';
|
|
9
9
|
import { Gutters } from '../../../utils/theme';
|
|
@@ -444,6 +444,29 @@ handleNavigateToWGs, handleNavigateToDossiers, }) => {
|
|
|
444
444
|
return;
|
|
445
445
|
openFormHandler(LayoutModes.Update);
|
|
446
446
|
}, [inputDID, formAutoOpen, focusedItem]);
|
|
447
|
+
// Quando openS4TViewer è true, apri automaticamente il viewer S4T
|
|
448
|
+
useEffect(() => {
|
|
449
|
+
if (!openS4TViewer)
|
|
450
|
+
return;
|
|
451
|
+
if (!inputDID)
|
|
452
|
+
return;
|
|
453
|
+
if (!focusedItem)
|
|
454
|
+
return;
|
|
455
|
+
if (focusedItem.DID != inputDID)
|
|
456
|
+
return;
|
|
457
|
+
if (!fromDTD || !isApprovalWorkflowView(fromDTD))
|
|
458
|
+
return;
|
|
459
|
+
if (!focusedItem.FILEEXT || !fromDTD.widgets || !isSign4TopEnabled(fromDTD.widgets)) {
|
|
460
|
+
ShowAlert({
|
|
461
|
+
message: "Il documento non ha l'estensione valida per la firma.",
|
|
462
|
+
mode: "warning",
|
|
463
|
+
title: 'External link',
|
|
464
|
+
duration: 5000
|
|
465
|
+
});
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
onOpenS4TViewerRequest?.([{ TID: focusedItem.TID, DID: focusedItem.DID }]);
|
|
469
|
+
}, [openS4TViewer, inputDID, focusedItem, fromDTD]);
|
|
447
470
|
useEffect(() => {
|
|
448
471
|
if (!focusedItem)
|
|
449
472
|
return;
|