@topconsultnpm/sdkui-react-beta 6.5.60 → 6.5.61

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.
@@ -34,10 +34,8 @@ export const TMMetadataChooserForm = ({ tmSession, tids, inputDcmtTypesList, qd,
34
34
  if (qd) {
35
35
  let tids = getTIDsByQd(qd);
36
36
  let inputTIDs = tids.map((item) => item.tid);
37
- if (refreshCache)
38
- DcmtTypeListCacheService.RemoveWithMetadata(inputTIDs);
39
37
  TMSpinner.show({ description: `${SDKUI_Localizator.Loading} - ${SDK_Localizator.DcmtType} ...` });
40
- let dtds = await DcmtTypeListCacheService.GetFromTIDsAsync(inputTIDs, true, tmSession);
38
+ let dtds = await DcmtTypeListCacheService.GetFromTIDsAsync(inputTIDs, true, tmSession, true);
41
39
  TMSpinner.hide();
42
40
  for (let i = 0; i < dtds.length; i++) {
43
41
  const dtd = new DcmtTypeDescriptor();
@@ -73,18 +71,18 @@ export const TMMetadataChooserForm = ({ tmSession, tids, inputDcmtTypesList, qd,
73
71
  if (tids.length <= 0)
74
72
  return [];
75
73
  if (refreshCache)
76
- DcmtTypeListCacheService.RemoveWithMetadata(tids);
74
+ TMSpinner.show({ description: `${SDKUI_Localizator.Loading} - ${SDK_Localizator.DcmtType} ...` });
77
75
  for (const tid of tids) {
78
76
  if (!tid)
79
77
  continue;
80
- TMSpinner.show({ description: `${SDKUI_Localizator.Loading} - ${SDK_Localizator.DcmtType} ...` });
81
- let dtd = await DcmtTypeListCacheService.GetAsync(tid, true, tmSession);
82
- TMSpinner.hide();
78
+ let dtd = await DcmtTypeListCacheService.GetAsync(tid, true, tmSession, refreshCache);
83
79
  if (!dtd)
84
80
  throw new Error(`TID sconosciuto (${tid})`);
85
81
  dtd?.metadata?.forEach((md) => { md.customData1 = dtd?.id; });
86
82
  dtdList.push(dtd);
87
83
  }
84
+ if (refreshCache)
85
+ TMSpinner.hide();
88
86
  }
89
87
  for (const dtd of dtdList) {
90
88
  if (!dtd.metadata)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.5.60",
3
+ "version": "6.5.61",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -28,7 +28,7 @@
28
28
  "lib"
29
29
  ],
30
30
  "dependencies": {
31
- "@topconsultnpm/sdk-ts-beta": "^6.5.55",
31
+ "@topconsultnpm/sdk-ts-beta": "^6.5.56",
32
32
  "buffer": "^6.0.3",
33
33
  "devextreme": "24.1.6",
34
34
  "devextreme-react": "24.1.6",