@topconsultnpm/sdkui-react 6.21.0-dev3.10 → 6.21.0-dev3.12
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.
|
@@ -47,8 +47,12 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
|
|
|
47
47
|
let dynDLToBeRefreshed = dynDataListsToBeRefreshed.find(o => o.midStarter === mid);
|
|
48
48
|
while (dynDLToBeRefreshed != undefined) {
|
|
49
49
|
const item = newValues.find(value => value.mid === dynDLToBeRefreshed?.mid);
|
|
50
|
-
if (item)
|
|
50
|
+
if (item) {
|
|
51
51
|
item.value = newValue;
|
|
52
|
+
if (showCheckBoxes !== ShowCheckBoxesMode.Never) {
|
|
53
|
+
item.isSelected = false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
52
56
|
dynDLToBeRefreshed = dynDataListsToBeRefreshed.find(o => o.midStarter === item?.mid);
|
|
53
57
|
}
|
|
54
58
|
}
|
|
@@ -287,8 +291,12 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
|
|
|
287
291
|
let newMetadata = structuredClone(metadataValues);
|
|
288
292
|
for (const item of midsToBeUpdated) {
|
|
289
293
|
const mdItem = newMetadata.find(value => value.mid === item.mid);
|
|
290
|
-
if (mdItem)
|
|
294
|
+
if (mdItem) {
|
|
291
295
|
mdItem.value = item.value;
|
|
296
|
+
if (showCheckBoxes !== ShowCheckBoxesMode.Never) {
|
|
297
|
+
mdItem.isSelected = !stringIsNullOrEmpty(item.value);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
292
300
|
}
|
|
293
301
|
onValueChanged?.(newMetadata);
|
|
294
302
|
}, updateIsModalOpen: updateIsModalOpen }), FormulaHelper.isFormula(item.value)
|
|
@@ -1124,8 +1124,7 @@ const TMSearchResultGrid = ({ openInOffice, fromDTD, operationItems, allUsers, i
|
|
|
1124
1124
|
// Previene l'errore E1047 quando il filtro riferisce campi non più presenti nelle nuove colonne.
|
|
1125
1125
|
const oldFields = columns.map(c => c.dataField);
|
|
1126
1126
|
const newFields = cols.map(c => c.dataField);
|
|
1127
|
-
const columnsChanged = oldFields.length !== newFields.length ||
|
|
1128
|
-
oldFields.some((f, i) => f !== newFields[i]);
|
|
1127
|
+
const columnsChanged = oldFields.length !== newFields.length || oldFields.some((f, i) => f !== newFields[i]);
|
|
1129
1128
|
if (columnsChanged) {
|
|
1130
1129
|
const gridInstance = dataGridRef.current?.instance();
|
|
1131
1130
|
if (gridInstance) {
|
|
@@ -74,7 +74,7 @@ export const useDataUserIdItem = () => {
|
|
|
74
74
|
const getIcon = () => {
|
|
75
75
|
if (!showIcon)
|
|
76
76
|
return null;
|
|
77
|
-
if (userId === undefined)
|
|
77
|
+
if (userId === undefined || userId === null)
|
|
78
78
|
return null;
|
|
79
79
|
return ud ? _jsx(TMUserIcon, { ud: ud }) : _jsx("span", { title: showTitile ? SDKUI_Localizator.ValueNotPresent : undefined, style: { display: 'inline-flex', alignItems: 'center' }, children: _jsx(IconWarning, { color: TMColors.warning }) });
|
|
80
80
|
};
|