@topconsultnpm/sdkui-react-beta 6.6.31 → 6.6.32

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.
@@ -60,8 +60,6 @@ export const TMMetadataChooserForm = ({ tmSession, tids, inputDcmtTypesList, qd,
60
60
  }
61
61
  }
62
62
  else if (inputDcmtTypesList) {
63
- if (refreshCache)
64
- onRefreshCache?.();
65
63
  for (const dtd of inputDcmtTypesList) {
66
64
  const newDtd = new DcmtTypeDescriptor();
67
65
  newDtd.init({ ...dtd });
@@ -83,8 +81,6 @@ export const TMMetadataChooserForm = ({ tmSession, tids, inputDcmtTypesList, qd,
83
81
  dtd?.metadata?.forEach((md) => { md.customData1 = dtd?.id; });
84
82
  dtdList.push(dtd);
85
83
  }
86
- if (refreshCache)
87
- TMSpinner.hide();
88
84
  }
89
85
  for (const dtd of dtdList) {
90
86
  if (!dtd.metadata)
@@ -19,8 +19,6 @@ const TMChooserForm = ({ children, title, allowMultipleSelection, hasShowOnlySel
19
19
  const renderTitle = () => { return title ? `${title} (${selectedItems.length} / ${customFilter ? customFilter(items).length : items.length})` : SDKUI_Localizator.Select; };
20
20
  const doGetItems = (refreshCache) => {
21
21
  if (dataSource) {
22
- if (refreshCache)
23
- onRefreshCache?.();
24
22
  setItems(dataSource);
25
23
  setSelectedItems(dataSource.filter((o) => selectedIDs?.includes(o[keyName])));
26
24
  return;
@@ -33,7 +31,7 @@ const TMChooserForm = ({ children, title, allowMultipleSelection, hasShowOnlySel
33
31
  });
34
32
  };
35
33
  const ToolbarButtons = () => {
36
- return (_jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', gap: '2px' }, children: [_jsx(TMButton, { btnStyle: 'toolbar', caption: SDKUI_Localizator.Apply, icon: _jsx(IconApply, {}), color: 'success', fontSize: '1.3rem', onClick: () => { onChoose?.(getSelectedIDs()); onClose?.(); } }), hasShowId ? _jsx(TMButton, { btnStyle: 'toolbar', caption: showId ? SDKUI_Localizator.ID_Hide : SDKUI_Localizator.ID_Show, icon: showId ? _jsx(IconHide, {}) : _jsx(IconShow, {}), fontSize: '1.3rem', onClick: () => { setShowId(!showId); onShowIdChanged?.(); } }) : _jsx(_Fragment, {}), _jsx(TMButton, { btnStyle: 'toolbar', caption: SDKUI_Localizator.Refresh, icon: _jsx(IconRefresh, {}), fontSize: '1.3rem', onClick: () => { doGetItems(true); } }), customButtons, hasShowOnlySelectedItems && allowMultipleSelection && _jsx(TMToggleButton, { value: showOnlySelectedItems, elementStyle: { marginLeft: '10px' }, label: 'Mostra solo selezionati', onValueChanged: () => setShowOnlySelectedItems(!showOnlySelectedItems) })] }));
34
+ return (_jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', gap: '2px' }, children: [_jsx(TMButton, { btnStyle: 'toolbar', caption: SDKUI_Localizator.Apply, icon: _jsx(IconApply, {}), color: 'success', fontSize: '1.3rem', onClick: () => { onChoose?.(getSelectedIDs()); onClose?.(); } }), hasShowId ? _jsx(TMButton, { btnStyle: 'toolbar', caption: showId ? SDKUI_Localizator.ID_Hide : SDKUI_Localizator.ID_Show, icon: showId ? _jsx(IconHide, {}) : _jsx(IconShow, {}), fontSize: '1.3rem', onClick: () => { setShowId(!showId); onShowIdChanged?.(); } }) : _jsx(_Fragment, {}), _jsx(TMButton, { btnStyle: 'toolbar', caption: SDKUI_Localizator.Refresh, icon: _jsx(IconRefresh, {}), fontSize: '1.3rem', onClick: () => { doGetItems(true); onRefreshCache?.(); } }), customButtons, hasShowOnlySelectedItems && allowMultipleSelection && _jsx(TMToggleButton, { value: showOnlySelectedItems, elementStyle: { marginLeft: '10px' }, label: 'Mostra solo selezionati', onValueChanged: () => setShowOnlySelectedItems(!showOnlySelectedItems) })] }));
37
35
  };
38
36
  useEffect(() => { doGetItems(false); }, []);
39
37
  return (_jsx(TMModal, { title: renderTitle(), width: width ?? '550px', height: height ?? '600px', toolbar: _jsx(ToolbarButtons, {}), onClose: onClose, children: children ??
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.6.31",
3
+ "version": "6.6.32",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",