@dexteel/mesf-core 4.20.0 → 4.20.1

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "4.20.0"
2
+ ".": "4.20.1"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # Changelog
2
+
3
+ ## [4.20.1](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.20.0...@dexteel/mesf-core-v4.20.1) (2024-09-10)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **TreePickerControlV2:** add disabled property ([95b14dc](https://github.com/dexteel/mesf-core-frontend/commit/95b14dc13f812449dc936e117417e1edfe7523d8))
9
+
10
+ ## [4.20.0] - 2024-09-04
11
+
12
+
13
+
1
14
  # Changelog
2
15
 
3
16
  ## [4.20.0](https://github.com/dexteel/mesf-core-frontend/compare/@dexteel/mesf-core-v4.19.0...@dexteel/mesf-core-v4.20.0) (2024-09-04)
@@ -6,6 +6,7 @@ type TreePickerControlProps = {
6
6
  setListAssetDrawings?: Function;
7
7
  onSuccess?: (success: boolean) => void;
8
8
  showClearButton?: boolean;
9
+ disabled?: boolean;
9
10
  dataSource: TreeNode;
10
11
  [key: string]: any;
11
12
  };
package/dist/index.esm.js CHANGED
@@ -88,7 +88,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
88
88
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
89
89
  PERFORMANCE OF THIS SOFTWARE.
90
90
  ***************************************************************************** */
91
- /* global Reflect, Promise, SuppressedError, Symbol */
91
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
92
92
 
93
93
  var extendStatics = function(d, b) {
94
94
  extendStatics = Object.setPrototypeOf ||
@@ -139,8 +139,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
139
139
  }
140
140
 
141
141
  function __generator(thisArg, body) {
142
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
143
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
142
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
143
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
144
144
  function verb(n) { return function (v) { return step([n, v]); }; }
145
145
  function step(op) {
146
146
  if (f) throw new TypeError("Generator is already executing.");
@@ -703,10 +703,12 @@ function findNameById(node, id) {
703
703
  }
704
704
  var TreePickerControlV2 = function (props) {
705
705
  var classes = useStyles$u();
706
- var value = props.value, onSelect = props.onSelect; props.styleLabel; var dataSource = props.dataSource; props.getOptionName; var _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, ["value", "onSelect", "styleLabel", "dataSource", "getOptionName", "inputTitle", "showPath", "multipleSelectNodes", "showClearButton", "showAssetTree", "onHide", "listAssetDrawings", "onSuccess", "isLoading"]);
707
- var _f = useState(false), open = _f[0], setOpen = _f[1];
706
+ var value = props.value, onSelect = props.onSelect; props.styleLabel; var dataSource = props.dataSource; props.getOptionName; var _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, _f = props.disabled, disabled = _f === void 0 ? false : _f, other = __rest(props, ["value", "onSelect", "styleLabel", "dataSource", "getOptionName", "inputTitle", "showPath", "multipleSelectNodes", "showClearButton", "showAssetTree", "onHide", "listAssetDrawings", "onSuccess", "isLoading", "disabled"]);
707
+ var _g = useState(false), open = _g[0], setOpen = _g[1];
708
708
  var handleClickListItem = function (event) {
709
709
  event.stopPropagation();
710
+ if (disabled)
711
+ return;
710
712
  setOpen(true);
711
713
  };
712
714
  var handleClose = function (newValue, newDescription, findNode) {