I found this https://github.com/dbushell/Nestable and use it in my project
But the project has more levels than Nestable support.
How to modify Nestable for unlimited nesting?
I looked in Google but found nothing.
I ask you not to offer other solutions than Nestable.
$('.my-lists').nestable({ maxDepth: 7 });
maxDepth - https://github.com/dbushell/Nestable#configuration