@dexteel/mesf-core 4.20.2 → 4.20.3
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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [4.20.3](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.20.2...@dexteel/mesf-core-v4.20.3) (2024-10-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **TreePickerControl:** control modal visibility with showAssetTree prop ([e66d710](https://github.com/dexteel/mesf-core-frontend/commit/e66d710e49e8845cddb8a47a10f08c5ee632e291))
|
|
9
|
+
|
|
10
|
+
## [4.20.2] - 2024-09-12
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
1
14
|
# Changelog
|
|
2
15
|
|
|
3
16
|
## [4.20.2](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.20.1...@dexteel/mesf-core-v4.20.2) (2024-09-12)
|
package/dist/index.esm.js
CHANGED
|
@@ -591,13 +591,15 @@ var useStyles$v = makeStyles(function (theme) { return ({
|
|
|
591
591
|
var TreePickerControl = function (props) {
|
|
592
592
|
var classes = useStyles$v();
|
|
593
593
|
var onSelect = props.onSelect, value = props.value; props.styleLabel; var dataSource = props.dataSource, _a = props.inputTitle, inputTitle = _a === void 0 ? "Asset" : _a; props.showPath; var _c = props.multipleSelectNodes, multipleSelectNodes = _c === void 0 ? false : _c, _d = props.showClearButton, showClearButton = _d === void 0 ? false : _d, showAssetTree = props.showAssetTree, onHide = props.onHide, _e = props.listAssetDrawings, listAssetDrawings = _e === void 0 ? [] : _e, onSuccess = props.onSuccess, isLoading = props.isLoading, other = __rest(props, ["onSelect", "value", "styleLabel", "dataSource", "inputTitle", "showPath", "multipleSelectNodes", "showClearButton", "showAssetTree", "onHide", "listAssetDrawings", "onSuccess", "isLoading"]);
|
|
594
|
-
var _f = useState(false), open = _f[0], setOpen = _f[1];
|
|
594
|
+
var _f = useState(showAssetTree || false), open = _f[0], setOpen = _f[1];
|
|
595
595
|
var handleClickListItem = function (e) {
|
|
596
596
|
e.stopPropagation();
|
|
597
597
|
setOpen(true);
|
|
598
598
|
};
|
|
599
599
|
var handleClose = function (newValue, newDescription, findNode) {
|
|
600
|
-
|
|
600
|
+
if (!showAssetTree) {
|
|
601
|
+
setOpen(false);
|
|
602
|
+
}
|
|
601
603
|
if (newValue) {
|
|
602
604
|
if (onSelect !== undefined) {
|
|
603
605
|
onSelect(newValue, newDescription, findNode);
|