@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.
@@ -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
- result.push({ rowIndex: i, id1: detailTID, id2: undefined, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborati ${i} documenti` });
638
- waitPanel.warning();
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
- result.push({ rowIndex: i, id1: detailTID, id2: undefined, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborati ${i} documenti` });
655
- waitPanel.warning();
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
- result.push({ rowIndex: i, id1: detailTID, id2: undefined, resultType: ResultTypes.ERROR, description: getExceptionMessage(error) });
659
- waitPanel.error();
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.22.0-dev4.5",
3
+ "version": "6.22.0-dev4.6",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" \u0026\u0026 exit 1",