@topconsultnpm/sdkui-react 6.21.0-dev2.14 → 6.21.0-dev2.15

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.
@@ -52,8 +52,6 @@ const TMSearch = ({ allTasks = [], getAllTasks, deleteTaskByIdsCallback, addTask
52
52
  }, [inputTID]);
53
53
  useEffect(() => {
54
54
  const loadSqd = async () => {
55
- if (!inputSqdID)
56
- return;
57
55
  try {
58
56
  const resultSqd = await SavedQueryCacheService.GetAsync(inputSqdID);
59
57
  await setSQDAsync(resultSqd);
@@ -353,7 +353,7 @@ handleNavigateToWGs, handleNavigateToDossiers, }) => {
353
353
  openTaskFormHandler,
354
354
  },
355
355
  });
356
- const { isOpenDcmtForm, openFormHandler, dcmtFormLayoutMode, onDcmtFormOpenChange, showSearchTMDatagrid, showExportForm, isOpenBatchUpdate, isModifiedBatchUpdate, updateBatchUpdateForm, handleSignApprove, checkoutInfo: { showCicoWaitPanel, cicoWaitPanelTitle, showCicoPrimaryProgress, cicoPrimaryProgressText, cicoPrimaryProgressValue, cicoPrimaryProgressMax, }, dcmtOperations: { abortController, showWaitPanel, showPrimary, waitPanelTitle, waitPanelTextPrimary, waitPanelValuePrimary, waitPanelMaxValuePrimary, showSecondary, waitPanelTextSecondary, waitPanelValueSecondary, waitPanelMaxValueSecondary, downloadDcmtsAsync, runOperationAsync, }, relatedDocumentsInfo: { isOpenDetails, isOpenMaster, checkRelatedDcmtsArchiveCapability, checkManyToManyCapability, }, toppyOperations: { showApprovePopup, showRejectPopup, showReAssignPopup, showMoreInfoPopup, updateShowApprovePopup, updateShowRejectPopup, updateShowReAssignPopup, updateShowMoreInfoPopup } } = features;
356
+ const { isOpenDcmtForm, openFormHandler, dcmtFormLayoutMode, onDcmtFormOpenChange, showSearchTMDatagrid, showExportForm, isOpenBatchUpdate, isModifiedBatchUpdate, updateBatchUpdateForm, closeDcmtFormHandler, handleSignApprove, checkoutInfo: { showCicoWaitPanel, cicoWaitPanelTitle, showCicoPrimaryProgress, cicoPrimaryProgressText, cicoPrimaryProgressValue, cicoPrimaryProgressMax, }, dcmtOperations: { abortController, showWaitPanel, showPrimary, waitPanelTitle, waitPanelTextPrimary, waitPanelValuePrimary, waitPanelMaxValuePrimary, showSecondary, waitPanelTextSecondary, waitPanelValueSecondary, waitPanelMaxValueSecondary, downloadDcmtsAsync, runOperationAsync, }, relatedDocumentsInfo: { isOpenDetails, isOpenMaster, checkRelatedDcmtsArchiveCapability, checkManyToManyCapability, }, toppyOperations: { showApprovePopup, showRejectPopup, showReAssignPopup, showMoreInfoPopup, updateShowApprovePopup, updateShowRejectPopup, updateShowReAssignPopup, updateShowMoreInfoPopup } } = features;
357
357
  const deviceType = useDeviceType();
358
358
  const isMobile = deviceType === DeviceType.MOBILE;
359
359
  const selectedDocs = getSelectedDcmtsOrFocused(selectedItems, focusedItem);
@@ -367,6 +367,7 @@ handleNavigateToWGs, handleNavigateToDossiers, }) => {
367
367
  useEffect(() => {
368
368
  setSelectedItems([]);
369
369
  updateBatchUpdateForm(false);
370
+ closeDcmtFormHandler();
370
371
  setCurrentSearchResults(searchResults);
371
372
  if (searchResults.length <= 0) {
372
373
  setSelectedSearchResult(undefined);
@@ -110,6 +110,7 @@ export interface UseDocumentOperationsResult {
110
110
  isOpenBatchUpdate: boolean;
111
111
  isModifiedBatchUpdate: boolean;
112
112
  updateBatchUpdateForm: (value: boolean) => void;
113
+ closeDcmtFormHandler: () => void;
113
114
  handleSignApprove: () => void;
114
115
  showSearchTMDatagrid: boolean;
115
116
  showExportForm: boolean;
@@ -182,6 +182,9 @@ export const useDocumentOperations = (props) => {
182
182
  setIsOpenDcmtForm(isOpen);
183
183
  setDcmtFormLayoutMode(layoutMode);
184
184
  };
185
+ const closeDcmtFormHandler = () => {
186
+ setIsOpenDcmtForm(false);
187
+ };
185
188
  const handleAddItem = (tid, did) => {
186
189
  let newItem = { TID: tid ?? 0, DID: did ?? 0 };
187
190
  setSecondaryMasterDcmts((prevItems) => [...prevItems, newItem]);
@@ -1209,6 +1212,7 @@ export const useDocumentOperations = (props) => {
1209
1212
  isOpenBatchUpdate,
1210
1213
  isModifiedBatchUpdate,
1211
1214
  updateBatchUpdateForm,
1215
+ closeDcmtFormHandler,
1212
1216
  handleSignApprove,
1213
1217
  checkoutInfo: {
1214
1218
  showHistory,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.21.0-dev2.14",
3
+ "version": "6.21.0-dev2.15",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",