@topconsultnpm/sdkui-react-beta 6.5.61 → 6.5.63
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.
|
@@ -35,7 +35,7 @@ export const TMMetadataChooserForm = ({ tmSession, tids, inputDcmtTypesList, qd,
|
|
|
35
35
|
let tids = getTIDsByQd(qd);
|
|
36
36
|
let inputTIDs = tids.map((item) => item.tid);
|
|
37
37
|
TMSpinner.show({ description: `${SDKUI_Localizator.Loading} - ${SDK_Localizator.DcmtType} ...` });
|
|
38
|
-
let dtds = await DcmtTypeListCacheService.GetFromTIDsAsync(inputTIDs, true, tmSession,
|
|
38
|
+
let dtds = await DcmtTypeListCacheService.GetFromTIDsAsync(inputTIDs, true, tmSession, false, refreshCache);
|
|
39
39
|
TMSpinner.hide();
|
|
40
40
|
for (let i = 0; i < dtds.length; i++) {
|
|
41
41
|
const dtd = new DcmtTypeDescriptor();
|
|
@@ -75,7 +75,7 @@ export const TMMetadataChooserForm = ({ tmSession, tids, inputDcmtTypesList, qd,
|
|
|
75
75
|
for (const tid of tids) {
|
|
76
76
|
if (!tid)
|
|
77
77
|
continue;
|
|
78
|
-
let dtd = await DcmtTypeListCacheService.GetAsync(tid, true, tmSession, refreshCache);
|
|
78
|
+
let dtd = await DcmtTypeListCacheService.GetAsync(tid, true, tmSession, false, refreshCache);
|
|
79
79
|
if (!dtd)
|
|
80
80
|
throw new Error(`TID sconosciuto (${tid})`);
|
|
81
81
|
dtd?.metadata?.forEach((md) => { md.customData1 = dtd?.id; });
|
|
@@ -92,6 +92,7 @@ export const TMMetadataChooserForm = ({ tmSession, tids, inputDcmtTypesList, qd,
|
|
|
92
92
|
}
|
|
93
93
|
setDcmtTypes(dtdList);
|
|
94
94
|
setHasSysMetadata(allowSysMetadata && metadata.findIndex(md => md.isSystem == 1) >= 0);
|
|
95
|
+
setShowSysMetadata(allowSysMetadata && selectedIDs != undefined && selectedIDs.findIndex(o => o.mid < 150) >= 0);
|
|
95
96
|
return metadata;
|
|
96
97
|
};
|
|
97
98
|
const cellRenderIcon = (data) => {
|
|
@@ -621,6 +621,13 @@ const TMLoginForm = (props) => {
|
|
|
621
621
|
let tmServer = new TopMediaServer(endpoint?.URL);
|
|
622
622
|
let tmSession = tmServer.NewSession();
|
|
623
623
|
await tmSession.LoginAsync(sdInput);
|
|
624
|
+
switch (props.appModule) {
|
|
625
|
+
case AppModules.DESIGNER:
|
|
626
|
+
case AppModules.ORCHESTRATOR:
|
|
627
|
+
case AppModules.SURFER:
|
|
628
|
+
SDK_Globals.license = await tmSession.NewLicenseEngine().RetrieveAsync();
|
|
629
|
+
break;
|
|
630
|
+
}
|
|
624
631
|
props.onLogged(tmSession);
|
|
625
632
|
}
|
|
626
633
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react-beta",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.63",
|
|
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.
|
|
31
|
+
"@topconsultnpm/sdk-ts-beta": "^6.5.57",
|
|
32
32
|
"buffer": "^6.0.3",
|
|
33
33
|
"devextreme": "24.1.6",
|
|
34
34
|
"devextreme-react": "24.1.6",
|