@oliasoft-open-source/react-ui-library 3.9.7 → 3.9.8
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/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72430,6 +72430,7 @@ const Tree = ({
|
|
|
72430
72430
|
list: list2,
|
|
72431
72431
|
draggable: draggable2,
|
|
72432
72432
|
onListReorder,
|
|
72433
|
+
onChangeOpen,
|
|
72433
72434
|
testId,
|
|
72434
72435
|
isInitialOpen,
|
|
72435
72436
|
treeRef
|
|
@@ -72439,6 +72440,11 @@ const Tree = ({
|
|
|
72439
72440
|
onListReorder(newTree);
|
|
72440
72441
|
}
|
|
72441
72442
|
};
|
|
72443
|
+
const handleOpen = (id2) => {
|
|
72444
|
+
if (onListReorder) {
|
|
72445
|
+
onChangeOpen(id2);
|
|
72446
|
+
}
|
|
72447
|
+
};
|
|
72442
72448
|
return /* @__PURE__ */ jsxs("div", {
|
|
72443
72449
|
"data-testid": testId,
|
|
72444
72450
|
children: [
|
|
@@ -72474,6 +72480,7 @@ const Tree = ({
|
|
|
72474
72480
|
});
|
|
72475
72481
|
},
|
|
72476
72482
|
onDrop: handleDrop,
|
|
72483
|
+
onChangeOpen: handleOpen,
|
|
72477
72484
|
dropTargetOffset: 5,
|
|
72478
72485
|
placeholderRender: (node, { depth }) => /* @__PURE__ */ jsx(TreePlaceholder, {
|
|
72479
72486
|
depth
|