@topconsultnpm/sdkui-react 6.22.0-dev4.5 → 6.22.0-dev4.6
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/TMCounterContainer.d.ts +3 -1
- package/lib/components/base/TMCounterContainer.js +16 -1
- package/lib/components/base/TMDataGrid.js +230 -222
- package/lib/components/base/waitPanel/TMWaitPanelManager.d.ts +16 -6
- package/lib/components/base/waitPanel/TMWaitPanelManager.js +55 -2
- package/lib/components/base/waitPanel/TMWaitPanelView.d.ts +5 -0
- package/lib/components/base/waitPanel/TMWaitPanelView.js +257 -185
- package/lib/components/choosers/TMDistinctValues.js +3 -3
- package/lib/components/features/documents/TMMergeToPdfForm.js +5 -4
- package/lib/components/features/search/TMSearchResult.js +7 -8
- package/lib/components/features/search/TMViewHistoryDcmt.js +1 -1
- package/lib/components/features/tasks/TMTasksView.js +15 -9
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +17 -13
- package/lib/components/grids/TMBlogsPost.js +1 -1
- package/lib/components/pages/TMPage.js +7 -4
- package/lib/helper/SDKUI_Globals.d.ts +3 -4
- package/lib/helper/SDKUI_Globals.js +3 -4
- package/lib/helper/SDKUI_Localizator.d.ts +8 -4
- package/lib/helper/SDKUI_Localizator.js +77 -37
- package/lib/hooks/useDcmtOperations.js +23 -14
- package/lib/hooks/useMultiMasterDetailDcmts.js +10 -6
- package/package.json +1 -1
|
@@ -634,8 +634,9 @@ export const useMultiMasterDetailDcmts = ({ dtd, masterDcmt, onClose, canNavigat
|
|
|
634
634
|
// Con la conferma di interruzione aperta il loop resta in pausa qui
|
|
635
635
|
await waitPanel.waitWhilePaused();
|
|
636
636
|
if (waitPanel.aborted) {
|
|
637
|
-
|
|
638
|
-
|
|
637
|
+
const description = SDKUI_Localizator.OperationDcmtsInterrupted.replaceParams(i);
|
|
638
|
+
result.push({ rowIndex: i, id1: detailTID, id2: undefined, resultType: ResultTypes.WARNING, description });
|
|
639
|
+
waitPanel.warning(1, description);
|
|
639
640
|
break;
|
|
640
641
|
}
|
|
641
642
|
if (isBatch)
|
|
@@ -651,12 +652,15 @@ export const useMultiMasterDetailDcmts = ({ dtd, masterDcmt, onClose, canNavigat
|
|
|
651
652
|
const err = error;
|
|
652
653
|
// Annullamento richiesto dall'utente: interrompe senza mostrare l'errore
|
|
653
654
|
if (err?.name === 'CanceledError' || waitPanel.aborted) {
|
|
654
|
-
|
|
655
|
-
|
|
655
|
+
const description = SDKUI_Localizator.OperationDcmtsInterrupted.replaceParams(i);
|
|
656
|
+
result.push({ rowIndex: i, id1: detailTID, id2: undefined, resultType: ResultTypes.WARNING, description });
|
|
657
|
+
waitPanel.warning(1, description);
|
|
656
658
|
break;
|
|
657
659
|
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
+
const description = getExceptionMessage(error);
|
|
661
|
+
result.push({ rowIndex: i, id1: detailTID, id2: undefined, resultType: ResultTypes.ERROR, description });
|
|
662
|
+
// La riga non ha ancora un DID: la si indica con la sua posizione.
|
|
663
|
+
waitPanel.error(1, `${SDKUI_Localizator.RowNumber.replaceParams(i + 1)}: ${description}`);
|
|
660
664
|
if (stopOnFirstError)
|
|
661
665
|
break;
|
|
662
666
|
}
|