@topconsultnpm/sdkui-react-beta 6.12.61 → 6.12.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.
@@ -21,8 +21,8 @@ export default TMUserChooser;
21
21
  export const TMUserChooserForm = ({ allowMultipleSelection, columns, hideRefresh = false, hideShowId = false, startWithShowOnlySelectedItems = true, filter, title, hasShowOnlySelectedItems, width, height, selectedIDs, dataSource, onClose, onChoose }) => {
22
22
  const dataColumns = useMemo(() => {
23
23
  return [
24
- { key: 0, dataField: 'domain', caption: SDKUI_Localizator.Domain, dataType: 'string' },
25
- { key: 1, dataField: 'name', caption: SDKUI_Localizator.UserName, dataType: 'string' }
24
+ { key: 1, dataField: 'domain', caption: SDKUI_Localizator.Domain, dataType: 'string' },
25
+ { key: 2, dataField: 'name', caption: SDKUI_Localizator.UserName, dataType: 'string' }
26
26
  ];
27
27
  }, []);
28
28
  const getItems = async (refreshCache) => {
@@ -41,7 +41,7 @@ export const TMUserChooserForm = ({ allowMultipleSelection, columns, hideRefresh
41
41
  return title;
42
42
  };
43
43
  const cellRenderIcon = (data) => _jsx(TMUserIcon, { ud: data.data });
44
- return (_jsx(TMChooserForm, { title: getTitle(), allowMultipleSelection: allowMultipleSelection, startWithShowOnlySelectedItems: startWithShowOnlySelectedItems, hasShowOnlySelectedItems: hasShowOnlySelectedItems, width: width, height: height, columns: columns ?? dataColumns, showDefaultColumns: false, selectedIDs: selectedIDs, cellRenderIcon: cellRenderIcon, dataSource: dataSource, getItems: getItems, hasShowId: !hideShowId, hideRefresh: hideRefresh, onClose: onClose, onChoose: (IDs) => onChoose?.(IDs) }));
44
+ return (_jsx(TMChooserForm, { title: getTitle(), allowMultipleSelection: allowMultipleSelection, startWithShowOnlySelectedItems: startWithShowOnlySelectedItems, hasShowOnlySelectedItems: hasShowOnlySelectedItems, width: width, height: height, manageUseLocalizedName: false, columns: columns ?? dataColumns, showDefaultColumns: false, selectedIDs: selectedIDs, cellRenderIcon: cellRenderIcon, dataSource: dataSource, getItems: getItems, hasShowId: !hideShowId, hideRefresh: hideRefresh, onClose: onClose, onChoose: (IDs) => onChoose?.(IDs) }));
45
45
  };
46
46
  export const TMUserIdViewer = ({ userId, showIcon = false, noneSelectionText = `<${SDKUI_Localizator.NoneSelection}>` }) => {
47
47
  const [ud, setUd] = useState();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.12.61",
3
+ "version": "6.12.63",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",