@topconsultnpm/sdkui-react-beta 6.7.90 → 6.7.91

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.
@@ -9,7 +9,6 @@ interface TMTreeDropDownProps {
9
9
  }>;
10
10
  values: Array<number>;
11
11
  setValues: React.Dispatch<React.SetStateAction<Array<number>>>;
12
- displayExpr: boolean;
13
12
  isValidKey?: (key: number) => boolean;
14
13
  elementStyle?: React.CSSProperties | undefined;
15
14
  }
@@ -7,7 +7,7 @@ import { SDKUI_Localizator } from '../../helper';
7
7
  // The TMTreeDropDown functional component
8
8
  const TMTreeDropDown = (props) => {
9
9
  // Destructure props for easy access
10
- const { dataSource, values, setValues, displayExpr, isValidKey, elementStyle } = props;
10
+ const { dataSource, values, setValues, isValidKey, elementStyle } = props;
11
11
  // Reference to the TreeView component for programmatic control
12
12
  const treeViewRef = useRef(null);
13
13
  // Helper function to get a comma-separated string of labels for the selected IDs
@@ -49,6 +49,6 @@ const TMTreeDropDown = (props) => {
49
49
  filteredKeys = selectedKeys.filter(isValidKey); // If a validation function is provided, filter the selected keys
50
50
  setValues(filteredKeys);
51
51
  }, []);
52
- return _jsx(TMTooltip, { content: getLabelsByIds(values, 'formatted'), children: _jsx(DropDownBox, { width: "100%", style: elementStyle, valueExpr: "id", displayExpr: displayExpr ? "label" : () => SDKUI_Localizator.Filters, value: values, dataSource: dataSource, placeholder: SDKUI_Localizator.SelectDesiredFilters, onContentReady: syncTreeViewSelection, focusStateEnabled: true, contentRender: () => _jsx(TreeView, { ref: treeViewRef, keyExpr: "id", dataSource: dataSource, selectByClick: true, selectNodesRecursive: true, selectionMode: "multiple", displayExpr: "label", parentIdExpr: "categoryId", dataStructure: "plain", showCheckBoxesMode: "normal", onContentReady: syncTreeViewSelection, onItemSelectionChanged: (e) => treeViewItemSelectionChanged(e) }) }) });
52
+ return _jsx(TMTooltip, { content: getLabelsByIds(values, 'formatted'), children: _jsx(DropDownBox, { width: "100%", style: elementStyle, valueExpr: "id", displayExpr: "label", value: values, dataSource: dataSource, placeholder: SDKUI_Localizator.SelectDesiredFilters, onContentReady: syncTreeViewSelection, focusStateEnabled: true, contentRender: () => _jsx(TreeView, { ref: treeViewRef, keyExpr: "id", dataSource: dataSource, selectByClick: true, selectNodesRecursive: true, selectionMode: "multiple", displayExpr: "label", parentIdExpr: "categoryId", dataStructure: "plain", showCheckBoxesMode: "normal", onContentReady: syncTreeViewSelection, onItemSelectionChanged: (e) => treeViewItemSelectionChanged(e) }) }) });
53
53
  };
54
54
  export default TMTreeDropDown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.7.90",
3
+ "version": "6.7.91",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",