@elliemae/ds-treeview 1.60.0 → 2.0.0-alpha.12

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.
Files changed (433) hide show
  1. package/cjs/TreeView.js +91 -161
  2. package/cjs/TreeViewContext.js +23 -26
  3. package/cjs/config/cssClassesConstants.js +4 -5
  4. package/cjs/deprecated/TreeView.js +39 -50
  5. package/cjs/deprecated/__testUtils__/utils.js +47 -46
  6. package/cjs/deprecated/index.js +21 -49
  7. package/cjs/deprecated/plugins/dnd/TreeDndPlugin.js +57 -67
  8. package/cjs/deprecated/plugins/dnd/index.js +2 -19
  9. package/cjs/deprecated/plugins/dnd/renderers/DraggableItem.js +55 -49
  10. package/cjs/deprecated/plugins/dnd/renderers/DroppableList.js +162 -150
  11. package/cjs/deprecated/plugins/dnd/utils.js +64 -56
  12. package/cjs/deprecated/plugins/index.js +14 -44
  13. package/cjs/deprecated/plugins/roving/TreeRovingPlugin.js +49 -56
  14. package/cjs/deprecated/plugins/roving/index.js +2 -12
  15. package/cjs/deprecated/plugins/searchable/SearchableTreePlugin.js +46 -35
  16. package/cjs/deprecated/plugins/searchable/index.js +2 -7
  17. package/cjs/deprecated/plugins/searchable/utils.js +1 -2
  18. package/cjs/deprecated/plugins/selectable/SelectablePluginTree.js +126 -120
  19. package/cjs/deprecated/plugins/selectable/helper.js +0 -1
  20. package/cjs/deprecated/plugins/selectable/index.js +2 -14
  21. package/cjs/deprecated/plugins/selectable/utils.js +2 -3
  22. package/cjs/deprecated/plugins/toolbar/TreeToolbarPlugin.js +63 -53
  23. package/cjs/deprecated/plugins/toolbar/index.js +2 -13
  24. package/cjs/deprecated/plugins/tree/TreeDataPlugin.js +163 -137
  25. package/cjs/deprecated/plugins/tree/index.js +2 -18
  26. package/cjs/deprecated/plugins/tree/useExpandTreeState.js +67 -73
  27. package/cjs/deprecated/plugins/tree/utils.js +22 -30
  28. package/cjs/deprecated/plugins/tree/walkTreeStrategy.js +21 -30
  29. package/cjs/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js +124 -109
  30. package/cjs/deprecated/plugins/virtualization/index.js +2 -12
  31. package/cjs/deprecated/renderers.js +41 -23
  32. package/cjs/index.js +19 -93
  33. package/cjs/parts/CheckboxSelectable.js +42 -36
  34. package/cjs/parts/ChildrenCountDisplayer.js +15 -16
  35. package/cjs/parts/ExpandCaret.js +42 -38
  36. package/cjs/parts/Icon.js +14 -10
  37. package/cjs/parts/NestingSpace.js +26 -20
  38. package/cjs/parts/RadioSelectable.js +34 -34
  39. package/cjs/parts/TreeItem.js +123 -133
  40. package/cjs/parts/TreeItemText.js +68 -57
  41. package/cjs/parts/TreeList.js +107 -109
  42. package/cjs/plugins/dnd/TreeDndPlugin.js +20 -54
  43. package/cjs/plugins/dnd/index.js +3 -43
  44. package/cjs/plugins/index.js +15 -55
  45. package/cjs/plugins/roving/TreeRovingPlugin.js +1 -2
  46. package/cjs/plugins/roving/index.js +2 -3
  47. package/cjs/plugins/searchable/SearchableTreePlugin.js +1 -2
  48. package/cjs/plugins/searchable/index.js +2 -3
  49. package/cjs/plugins/selectable/SelectablePluginTree.js +1 -2
  50. package/cjs/plugins/selectable/index.js +2 -3
  51. package/cjs/plugins/toolbar/TreeToolbarPlugin.js +1 -2
  52. package/cjs/plugins/toolbar/index.js +2 -3
  53. package/cjs/plugins/tree/TreeDataPlugin.js +1 -2
  54. package/cjs/plugins/tree/index.js +2 -3
  55. package/cjs/plugins/virtualization/TreeVirtualizationPlugin.js +1 -2
  56. package/cjs/plugins/virtualization/index.js +2 -3
  57. package/cjs/prop-types.js +25 -26
  58. package/cjs/react-desc-prop-types.js +4 -5
  59. package/cjs/related-components/TreeViewSearchBar.js +14 -24
  60. package/cjs/utils/array-helpers.js +7 -19
  61. package/cjs/utils/dnd-helpers.js +64 -51
  62. package/cjs/utils/group-expands-helpers.js +29 -24
  63. package/cjs/utils/keyboard-helpers.js +80 -75
  64. package/cjs/utils/object-helpers.js +13 -18
  65. package/cjs/utils/refs-helpers.js +10 -5
  66. package/cjs/utils/selectable-helper.js +39 -28
  67. package/cjs/utils/string-helpers.js +1 -4
  68. package/cjs/utils/tree-helpers.js +68 -71
  69. package/cjs/utils/useDnDHelpers.js +128 -114
  70. package/cjs/utils/useInstanceRefActions.js +40 -50
  71. package/cjs/utils/useTree.js +40 -57
  72. package/esm/TreeView.js +81 -150
  73. package/esm/TreeViewContext.js +22 -25
  74. package/esm/config/cssClassesConstants.js +4 -5
  75. package/esm/deprecated/TreeView.js +31 -40
  76. package/esm/deprecated/__testUtils__/utils.js +43 -40
  77. package/esm/deprecated/index.js +6 -32
  78. package/esm/deprecated/plugins/dnd/TreeDndPlugin.js +47 -56
  79. package/esm/deprecated/plugins/dnd/index.js +0 -17
  80. package/esm/deprecated/plugins/dnd/renderers/DraggableItem.js +50 -43
  81. package/esm/deprecated/plugins/dnd/renderers/DroppableList.js +160 -147
  82. package/esm/deprecated/plugins/dnd/utils.js +63 -54
  83. package/esm/deprecated/plugins/index.js +0 -30
  84. package/esm/deprecated/plugins/roving/TreeRovingPlugin.js +48 -53
  85. package/esm/deprecated/plugins/roving/index.js +0 -10
  86. package/esm/deprecated/plugins/searchable/SearchableTreePlugin.js +45 -34
  87. package/esm/deprecated/plugins/searchable/index.js +0 -5
  88. package/esm/deprecated/plugins/searchable/utils.js +1 -2
  89. package/esm/deprecated/plugins/selectable/SelectablePluginTree.js +121 -113
  90. package/esm/deprecated/plugins/selectable/helper.js +0 -1
  91. package/esm/deprecated/plugins/selectable/index.js +0 -12
  92. package/esm/deprecated/plugins/selectable/utils.js +2 -3
  93. package/esm/deprecated/plugins/toolbar/TreeToolbarPlugin.js +58 -47
  94. package/esm/deprecated/plugins/toolbar/index.js +0 -11
  95. package/esm/deprecated/plugins/tree/TreeDataPlugin.js +150 -124
  96. package/esm/deprecated/plugins/tree/index.js +0 -16
  97. package/esm/deprecated/plugins/tree/useExpandTreeState.js +64 -69
  98. package/esm/deprecated/plugins/tree/utils.js +16 -24
  99. package/esm/deprecated/plugins/tree/walkTreeStrategy.js +21 -26
  100. package/esm/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js +121 -107
  101. package/esm/deprecated/plugins/virtualization/index.js +0 -10
  102. package/esm/deprecated/renderers.js +39 -21
  103. package/esm/index.js +2 -75
  104. package/esm/parts/CheckboxSelectable.js +39 -33
  105. package/esm/parts/ChildrenCountDisplayer.js +13 -14
  106. package/esm/parts/ExpandCaret.js +39 -35
  107. package/esm/parts/Icon.js +13 -9
  108. package/esm/parts/NestingSpace.js +24 -18
  109. package/esm/parts/RadioSelectable.js +34 -32
  110. package/esm/parts/TreeItem.js +108 -117
  111. package/esm/parts/TreeItemText.js +65 -53
  112. package/esm/parts/TreeList.js +104 -105
  113. package/esm/plugins/dnd/TreeDndPlugin.js +16 -50
  114. package/esm/plugins/dnd/index.js +0 -40
  115. package/esm/plugins/index.js +0 -40
  116. package/esm/plugins/roving/TreeRovingPlugin.js +1 -2
  117. package/esm/plugins/roving/index.js +0 -1
  118. package/esm/plugins/searchable/SearchableTreePlugin.js +1 -2
  119. package/esm/plugins/searchable/index.js +0 -1
  120. package/esm/plugins/selectable/SelectablePluginTree.js +1 -2
  121. package/esm/plugins/selectable/index.js +0 -1
  122. package/esm/plugins/toolbar/TreeToolbarPlugin.js +1 -2
  123. package/esm/plugins/toolbar/index.js +0 -1
  124. package/esm/plugins/tree/TreeDataPlugin.js +1 -2
  125. package/esm/plugins/tree/index.js +0 -1
  126. package/esm/plugins/virtualization/TreeVirtualizationPlugin.js +1 -2
  127. package/esm/plugins/virtualization/index.js +0 -1
  128. package/esm/prop-types.js +8 -9
  129. package/esm/react-desc-prop-types.js +4 -5
  130. package/esm/related-components/TreeViewSearchBar.js +13 -22
  131. package/esm/utils/array-helpers.js +7 -14
  132. package/esm/utils/dnd-helpers.js +62 -49
  133. package/esm/utils/group-expands-helpers.js +29 -24
  134. package/esm/utils/keyboard-helpers.js +73 -68
  135. package/esm/utils/object-helpers.js +13 -14
  136. package/esm/utils/refs-helpers.js +10 -5
  137. package/esm/utils/selectable-helper.js +37 -26
  138. package/esm/utils/string-helpers.js +1 -4
  139. package/esm/utils/tree-helpers.js +66 -65
  140. package/esm/utils/useDnDHelpers.js +125 -107
  141. package/esm/utils/useInstanceRefActions.js +35 -41
  142. package/esm/utils/useTree.js +37 -53
  143. package/package.json +319 -30
  144. package/types/TreeView.d.ts +157 -0
  145. package/types/TreeViewContext.d.ts +119 -0
  146. package/types/config/cssClassesConstants.d.ts +4 -0
  147. package/types/deprecated/TreeView.d.ts +8 -0
  148. package/types/deprecated/__testUtils__/utils.d.ts +72 -0
  149. package/types/deprecated/index.d.ts +2 -0
  150. package/types/deprecated/plugins/dnd/TreeDndPlugin.d.ts +1 -0
  151. package/types/deprecated/plugins/dnd/index.d.ts +1 -0
  152. package/types/deprecated/plugins/dnd/renderers/DraggableItem.d.ts +3 -0
  153. package/types/deprecated/plugins/dnd/renderers/DroppableList.d.ts +6 -0
  154. package/types/deprecated/plugins/dnd/tests/TreeDndPlugin.test.d.ts +0 -0
  155. package/types/deprecated/plugins/dnd/utils.d.ts +28 -0
  156. package/types/deprecated/plugins/index.d.ts +7 -0
  157. package/types/deprecated/plugins/roving/TreeRovingPlugin.d.ts +1 -0
  158. package/types/deprecated/plugins/roving/index.d.ts +1 -0
  159. package/types/deprecated/plugins/searchable/SearchableTreePlugin.d.ts +1 -0
  160. package/types/deprecated/plugins/searchable/index.d.ts +1 -0
  161. package/types/deprecated/plugins/searchable/utils.d.ts +1 -0
  162. package/types/deprecated/plugins/selectable/SelectablePluginTree.d.ts +1 -0
  163. package/types/deprecated/plugins/selectable/helper.d.ts +0 -0
  164. package/types/deprecated/plugins/selectable/index.d.ts +1 -0
  165. package/types/deprecated/plugins/selectable/tests/SelectablePluginTree.test.d.ts +1 -0
  166. package/types/deprecated/plugins/selectable/utils.d.ts +1 -0
  167. package/types/deprecated/plugins/toolbar/TreeToolbarPlugin.d.ts +1 -0
  168. package/types/deprecated/plugins/toolbar/index.d.ts +1 -0
  169. package/types/deprecated/plugins/tree/TreeDataPlugin.d.ts +1 -0
  170. package/types/deprecated/plugins/tree/index.d.ts +1 -0
  171. package/types/deprecated/plugins/tree/tests/TreeDataPlugin.test.d.ts +1 -0
  172. package/types/deprecated/plugins/tree/useExpandTreeState.d.ts +14 -0
  173. package/types/deprecated/plugins/tree/utils.d.ts +8 -0
  174. package/types/deprecated/plugins/tree/walkTreeStrategy.d.ts +9 -0
  175. package/types/deprecated/plugins/virtualization/TreeVirtualizationPlugin.d.ts +1 -0
  176. package/types/deprecated/plugins/virtualization/index.d.ts +1 -0
  177. package/types/deprecated/renderers.d.ts +19 -0
  178. package/types/index.d.ts +4 -0
  179. package/types/parts/CheckboxSelectable.d.ts +9 -0
  180. package/types/parts/ChildrenCountDisplayer.d.ts +7 -0
  181. package/types/parts/ExpandCaret.d.ts +7 -0
  182. package/types/parts/Icon.d.ts +5 -0
  183. package/types/parts/NestingSpace.d.ts +13 -0
  184. package/types/parts/RadioSelectable.d.ts +9 -0
  185. package/types/parts/TreeItem.d.ts +16 -0
  186. package/types/parts/TreeItemText.d.ts +7 -0
  187. package/types/parts/TreeList.d.ts +11 -0
  188. package/types/plugins/dnd/TreeDndPlugin.d.ts +3 -0
  189. package/types/plugins/dnd/index.d.ts +1 -0
  190. package/types/plugins/index.d.ts +7 -0
  191. package/types/plugins/roving/TreeRovingPlugin.d.ts +1 -0
  192. package/types/plugins/roving/index.d.ts +1 -0
  193. package/types/plugins/searchable/SearchableTreePlugin.d.ts +1 -0
  194. package/types/plugins/searchable/index.d.ts +1 -0
  195. package/types/plugins/selectable/SelectablePluginTree.d.ts +1 -0
  196. package/types/plugins/selectable/index.d.ts +1 -0
  197. package/types/plugins/toolbar/TreeToolbarPlugin.d.ts +1 -0
  198. package/types/plugins/toolbar/index.d.ts +1 -0
  199. package/types/plugins/tree/TreeDataPlugin.d.ts +1 -0
  200. package/types/plugins/tree/index.d.ts +1 -0
  201. package/types/plugins/virtualization/TreeVirtualizationPlugin.d.ts +1 -0
  202. package/types/plugins/virtualization/index.d.ts +1 -0
  203. package/types/prop-types.d.ts +26 -0
  204. package/types/react-desc-prop-types.d.ts +115 -0
  205. package/types/related-components/TreeViewSearchBar.d.ts +13 -0
  206. package/types/utils/array-helpers.d.ts +2 -0
  207. package/types/utils/dnd-helpers.d.ts +38 -0
  208. package/types/utils/group-expands-helpers.d.ts +11 -0
  209. package/types/utils/keyboard-helpers.d.ts +3 -0
  210. package/types/utils/object-helpers.d.ts +2 -0
  211. package/types/utils/refs-helpers.d.ts +1 -0
  212. package/types/utils/selectable-helper.d.ts +3 -0
  213. package/types/utils/string-helpers.d.ts +1 -0
  214. package/types/utils/tree-helpers.d.ts +11 -0
  215. package/types/utils/useDnDHelpers.d.ts +6 -0
  216. package/types/utils/useInstanceRefActions.d.ts +3 -0
  217. package/types/utils/useTree.d.ts +12 -0
  218. package/TreeView/package.json +0 -10
  219. package/TreeViewContext/package.json +0 -10
  220. package/cjs/TreeView.js.map +0 -1
  221. package/cjs/TreeViewContext.js.map +0 -1
  222. package/cjs/config/cssClassesConstants.js.map +0 -1
  223. package/cjs/deprecated/TreeView.js.map +0 -1
  224. package/cjs/deprecated/__testUtils__/utils.js.map +0 -1
  225. package/cjs/deprecated/index.js.map +0 -1
  226. package/cjs/deprecated/plugins/dnd/TreeDndPlugin.js.map +0 -1
  227. package/cjs/deprecated/plugins/dnd/index.js.map +0 -1
  228. package/cjs/deprecated/plugins/dnd/renderers/DraggableItem.js.map +0 -1
  229. package/cjs/deprecated/plugins/dnd/renderers/DroppableList.js.map +0 -1
  230. package/cjs/deprecated/plugins/dnd/utils.js.map +0 -1
  231. package/cjs/deprecated/plugins/index.js.map +0 -1
  232. package/cjs/deprecated/plugins/roving/TreeRovingPlugin.js.map +0 -1
  233. package/cjs/deprecated/plugins/roving/index.js.map +0 -1
  234. package/cjs/deprecated/plugins/searchable/SearchableTreePlugin.js.map +0 -1
  235. package/cjs/deprecated/plugins/searchable/index.js.map +0 -1
  236. package/cjs/deprecated/plugins/searchable/utils.js.map +0 -1
  237. package/cjs/deprecated/plugins/selectable/SelectablePluginTree.js.map +0 -1
  238. package/cjs/deprecated/plugins/selectable/helper.js.map +0 -1
  239. package/cjs/deprecated/plugins/selectable/index.js.map +0 -1
  240. package/cjs/deprecated/plugins/selectable/utils.js.map +0 -1
  241. package/cjs/deprecated/plugins/toolbar/TreeToolbarPlugin.js.map +0 -1
  242. package/cjs/deprecated/plugins/toolbar/index.js.map +0 -1
  243. package/cjs/deprecated/plugins/tree/TreeDataPlugin.js.map +0 -1
  244. package/cjs/deprecated/plugins/tree/index.js.map +0 -1
  245. package/cjs/deprecated/plugins/tree/useExpandTreeState.js.map +0 -1
  246. package/cjs/deprecated/plugins/tree/utils.js.map +0 -1
  247. package/cjs/deprecated/plugins/tree/walkTreeStrategy.js.map +0 -1
  248. package/cjs/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js.map +0 -1
  249. package/cjs/deprecated/plugins/virtualization/index.js.map +0 -1
  250. package/cjs/deprecated/renderers.js.map +0 -1
  251. package/cjs/index-72490bed.js +0 -31
  252. package/cjs/index-72490bed.js.map +0 -1
  253. package/cjs/index.js.map +0 -1
  254. package/cjs/parts/CheckboxSelectable.js.map +0 -1
  255. package/cjs/parts/ChildrenCountDisplayer.js.map +0 -1
  256. package/cjs/parts/ExpandCaret.js.map +0 -1
  257. package/cjs/parts/Icon.js.map +0 -1
  258. package/cjs/parts/NestingSpace.js.map +0 -1
  259. package/cjs/parts/RadioSelectable.js.map +0 -1
  260. package/cjs/parts/TreeItem.js.map +0 -1
  261. package/cjs/parts/TreeItemText.js.map +0 -1
  262. package/cjs/parts/TreeList.js.map +0 -1
  263. package/cjs/plugins/dnd/TreeDndPlugin.js.map +0 -1
  264. package/cjs/plugins/dnd/index.js.map +0 -1
  265. package/cjs/plugins/index.js.map +0 -1
  266. package/cjs/plugins/roving/TreeRovingPlugin.js.map +0 -1
  267. package/cjs/plugins/roving/index.js.map +0 -1
  268. package/cjs/plugins/searchable/SearchableTreePlugin.js.map +0 -1
  269. package/cjs/plugins/searchable/index.js.map +0 -1
  270. package/cjs/plugins/selectable/SelectablePluginTree.js.map +0 -1
  271. package/cjs/plugins/selectable/index.js.map +0 -1
  272. package/cjs/plugins/toolbar/TreeToolbarPlugin.js.map +0 -1
  273. package/cjs/plugins/toolbar/index.js.map +0 -1
  274. package/cjs/plugins/tree/TreeDataPlugin.js.map +0 -1
  275. package/cjs/plugins/tree/index.js.map +0 -1
  276. package/cjs/plugins/virtualization/TreeVirtualizationPlugin.js.map +0 -1
  277. package/cjs/plugins/virtualization/index.js.map +0 -1
  278. package/cjs/prop-types.js.map +0 -1
  279. package/cjs/react-desc-prop-types.js.map +0 -1
  280. package/cjs/related-components/TreeViewSearchBar.js.map +0 -1
  281. package/cjs/utils/array-helpers.js.map +0 -1
  282. package/cjs/utils/dnd-helpers.js.map +0 -1
  283. package/cjs/utils/group-expands-helpers.js.map +0 -1
  284. package/cjs/utils/keyboard-helpers.js.map +0 -1
  285. package/cjs/utils/object-helpers.js.map +0 -1
  286. package/cjs/utils/refs-helpers.js.map +0 -1
  287. package/cjs/utils/selectable-helper.js.map +0 -1
  288. package/cjs/utils/string-helpers.js.map +0 -1
  289. package/cjs/utils/tree-helpers.js.map +0 -1
  290. package/cjs/utils/useDnDHelpers.js.map +0 -1
  291. package/cjs/utils/useInstanceRefActions.js.map +0 -1
  292. package/cjs/utils/useTree.js.map +0 -1
  293. package/config/cssClassesConstants/package.json +0 -10
  294. package/deprecated/TreeView/package.json +0 -10
  295. package/deprecated/__testUtils__/utils/package.json +0 -10
  296. package/deprecated/package.json +0 -10
  297. package/deprecated/plugins/dnd/TreeDndPlugin/package.json +0 -10
  298. package/deprecated/plugins/dnd/package.json +0 -10
  299. package/deprecated/plugins/dnd/renderers/DraggableItem/package.json +0 -10
  300. package/deprecated/plugins/dnd/renderers/DroppableList/package.json +0 -10
  301. package/deprecated/plugins/dnd/utils/package.json +0 -10
  302. package/deprecated/plugins/package.json +0 -10
  303. package/deprecated/plugins/roving/TreeRovingPlugin/package.json +0 -10
  304. package/deprecated/plugins/roving/package.json +0 -10
  305. package/deprecated/plugins/searchable/SearchableTreePlugin/package.json +0 -10
  306. package/deprecated/plugins/searchable/package.json +0 -10
  307. package/deprecated/plugins/searchable/utils/package.json +0 -10
  308. package/deprecated/plugins/selectable/SelectablePluginTree/package.json +0 -10
  309. package/deprecated/plugins/selectable/helper/package.json +0 -10
  310. package/deprecated/plugins/selectable/package.json +0 -10
  311. package/deprecated/plugins/selectable/utils/package.json +0 -10
  312. package/deprecated/plugins/toolbar/TreeToolbarPlugin/package.json +0 -10
  313. package/deprecated/plugins/toolbar/package.json +0 -10
  314. package/deprecated/plugins/tree/TreeDataPlugin/package.json +0 -10
  315. package/deprecated/plugins/tree/package.json +0 -10
  316. package/deprecated/plugins/tree/useExpandTreeState/package.json +0 -10
  317. package/deprecated/plugins/tree/utils/package.json +0 -10
  318. package/deprecated/plugins/tree/walkTreeStrategy/package.json +0 -10
  319. package/deprecated/plugins/virtualization/TreeVirtualizationPlugin/package.json +0 -10
  320. package/deprecated/plugins/virtualization/package.json +0 -10
  321. package/deprecated/renderers/package.json +0 -10
  322. package/esm/TreeView.js.map +0 -1
  323. package/esm/TreeViewContext.js.map +0 -1
  324. package/esm/config/cssClassesConstants.js.map +0 -1
  325. package/esm/deprecated/TreeView.js.map +0 -1
  326. package/esm/deprecated/__testUtils__/utils.js.map +0 -1
  327. package/esm/deprecated/index.js.map +0 -1
  328. package/esm/deprecated/plugins/dnd/TreeDndPlugin.js.map +0 -1
  329. package/esm/deprecated/plugins/dnd/index.js.map +0 -1
  330. package/esm/deprecated/plugins/dnd/renderers/DraggableItem.js.map +0 -1
  331. package/esm/deprecated/plugins/dnd/renderers/DroppableList.js.map +0 -1
  332. package/esm/deprecated/plugins/dnd/utils.js.map +0 -1
  333. package/esm/deprecated/plugins/index.js.map +0 -1
  334. package/esm/deprecated/plugins/roving/TreeRovingPlugin.js.map +0 -1
  335. package/esm/deprecated/plugins/roving/index.js.map +0 -1
  336. package/esm/deprecated/plugins/searchable/SearchableTreePlugin.js.map +0 -1
  337. package/esm/deprecated/plugins/searchable/index.js.map +0 -1
  338. package/esm/deprecated/plugins/searchable/utils.js.map +0 -1
  339. package/esm/deprecated/plugins/selectable/SelectablePluginTree.js.map +0 -1
  340. package/esm/deprecated/plugins/selectable/helper.js.map +0 -1
  341. package/esm/deprecated/plugins/selectable/index.js.map +0 -1
  342. package/esm/deprecated/plugins/selectable/utils.js.map +0 -1
  343. package/esm/deprecated/plugins/toolbar/TreeToolbarPlugin.js.map +0 -1
  344. package/esm/deprecated/plugins/toolbar/index.js.map +0 -1
  345. package/esm/deprecated/plugins/tree/TreeDataPlugin.js.map +0 -1
  346. package/esm/deprecated/plugins/tree/index.js.map +0 -1
  347. package/esm/deprecated/plugins/tree/useExpandTreeState.js.map +0 -1
  348. package/esm/deprecated/plugins/tree/utils.js.map +0 -1
  349. package/esm/deprecated/plugins/tree/walkTreeStrategy.js.map +0 -1
  350. package/esm/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js.map +0 -1
  351. package/esm/deprecated/plugins/virtualization/index.js.map +0 -1
  352. package/esm/deprecated/renderers.js.map +0 -1
  353. package/esm/index-6009bfe6.js +0 -29
  354. package/esm/index-6009bfe6.js.map +0 -1
  355. package/esm/index.js.map +0 -1
  356. package/esm/parts/CheckboxSelectable.js.map +0 -1
  357. package/esm/parts/ChildrenCountDisplayer.js.map +0 -1
  358. package/esm/parts/ExpandCaret.js.map +0 -1
  359. package/esm/parts/Icon.js.map +0 -1
  360. package/esm/parts/NestingSpace.js.map +0 -1
  361. package/esm/parts/RadioSelectable.js.map +0 -1
  362. package/esm/parts/TreeItem.js.map +0 -1
  363. package/esm/parts/TreeItemText.js.map +0 -1
  364. package/esm/parts/TreeList.js.map +0 -1
  365. package/esm/plugins/dnd/TreeDndPlugin.js.map +0 -1
  366. package/esm/plugins/dnd/index.js.map +0 -1
  367. package/esm/plugins/index.js.map +0 -1
  368. package/esm/plugins/roving/TreeRovingPlugin.js.map +0 -1
  369. package/esm/plugins/roving/index.js.map +0 -1
  370. package/esm/plugins/searchable/SearchableTreePlugin.js.map +0 -1
  371. package/esm/plugins/searchable/index.js.map +0 -1
  372. package/esm/plugins/selectable/SelectablePluginTree.js.map +0 -1
  373. package/esm/plugins/selectable/index.js.map +0 -1
  374. package/esm/plugins/toolbar/TreeToolbarPlugin.js.map +0 -1
  375. package/esm/plugins/toolbar/index.js.map +0 -1
  376. package/esm/plugins/tree/TreeDataPlugin.js.map +0 -1
  377. package/esm/plugins/tree/index.js.map +0 -1
  378. package/esm/plugins/virtualization/TreeVirtualizationPlugin.js.map +0 -1
  379. package/esm/plugins/virtualization/index.js.map +0 -1
  380. package/esm/prop-types.js.map +0 -1
  381. package/esm/react-desc-prop-types.js.map +0 -1
  382. package/esm/related-components/TreeViewSearchBar.js.map +0 -1
  383. package/esm/utils/array-helpers.js.map +0 -1
  384. package/esm/utils/dnd-helpers.js.map +0 -1
  385. package/esm/utils/group-expands-helpers.js.map +0 -1
  386. package/esm/utils/keyboard-helpers.js.map +0 -1
  387. package/esm/utils/object-helpers.js.map +0 -1
  388. package/esm/utils/refs-helpers.js.map +0 -1
  389. package/esm/utils/selectable-helper.js.map +0 -1
  390. package/esm/utils/string-helpers.js.map +0 -1
  391. package/esm/utils/tree-helpers.js.map +0 -1
  392. package/esm/utils/useDnDHelpers.js.map +0 -1
  393. package/esm/utils/useInstanceRefActions.js.map +0 -1
  394. package/esm/utils/useTree.js.map +0 -1
  395. package/parts/CheckboxSelectable/package.json +0 -10
  396. package/parts/ChildrenCountDisplayer/package.json +0 -10
  397. package/parts/ExpandCaret/package.json +0 -10
  398. package/parts/Icon/package.json +0 -10
  399. package/parts/NestingSpace/package.json +0 -10
  400. package/parts/RadioSelectable/package.json +0 -10
  401. package/parts/TreeItem/package.json +0 -10
  402. package/parts/TreeItemText/package.json +0 -10
  403. package/parts/TreeList/package.json +0 -10
  404. package/plugins/dnd/TreeDndPlugin/package.json +0 -10
  405. package/plugins/dnd/package.json +0 -10
  406. package/plugins/package.json +0 -10
  407. package/plugins/roving/TreeRovingPlugin/package.json +0 -10
  408. package/plugins/roving/package.json +0 -10
  409. package/plugins/searchable/SearchableTreePlugin/package.json +0 -10
  410. package/plugins/searchable/package.json +0 -10
  411. package/plugins/selectable/SelectablePluginTree/package.json +0 -10
  412. package/plugins/selectable/package.json +0 -10
  413. package/plugins/toolbar/TreeToolbarPlugin/package.json +0 -10
  414. package/plugins/toolbar/package.json +0 -10
  415. package/plugins/tree/TreeDataPlugin/package.json +0 -10
  416. package/plugins/tree/package.json +0 -10
  417. package/plugins/virtualization/TreeVirtualizationPlugin/package.json +0 -10
  418. package/plugins/virtualization/package.json +0 -10
  419. package/prop-types/package.json +0 -10
  420. package/react-desc-prop-types/package.json +0 -10
  421. package/related-components/TreeViewSearchBar/package.json +0 -10
  422. package/utils/array-helpers/package.json +0 -10
  423. package/utils/dnd-helpers/package.json +0 -10
  424. package/utils/group-expands-helpers/package.json +0 -10
  425. package/utils/keyboard-helpers/package.json +0 -10
  426. package/utils/object-helpers/package.json +0 -10
  427. package/utils/refs-helpers/package.json +0 -10
  428. package/utils/selectable-helper/package.json +0 -10
  429. package/utils/string-helpers/package.json +0 -10
  430. package/utils/tree-helpers/package.json +0 -10
  431. package/utils/useDnDHelpers/package.json +0 -10
  432. package/utils/useInstanceRefActions/package.json +0 -10
  433. package/utils/useTree/package.json +0 -10
@@ -0,0 +1,119 @@
1
+ /// <reference types="react" />
2
+ export declare const defaultProps: {
3
+ plugins: never[];
4
+ selection: {};
5
+ instanceRef: import("react").RefObject<unknown>;
6
+ disableGroups: boolean;
7
+ disableLeafs: boolean;
8
+ disableIcons: boolean;
9
+ fluid: boolean;
10
+ isMultiSelect: boolean;
11
+ isSingleSelect: boolean;
12
+ restrictDragAndDrop: boolean;
13
+ showChildrenAmount: boolean;
14
+ sortable: boolean;
15
+ isLoading: boolean;
16
+ highlightOnlyQuery: boolean;
17
+ onInstanceRefInitialized: (istanceRef: any) => void;
18
+ onItemClick: (item: any, e: any) => void;
19
+ onItemFocus: (params: any) => void;
20
+ onVisibleItemsChange: (newVisibleItems: any) => void;
21
+ onOrderChange: (newData: any, oldData: any, draggedItem: any) => void;
22
+ onSelectionChange: (selectionHasmap: any, item: any, indexAndScrollTo: any) => void;
23
+ onExpandChange: (expandedHashmap: any, itemToggled: any) => void;
24
+ rowSize: string;
25
+ labelOverflow: string;
26
+ noItemsPlaceholder: string;
27
+ nameKey: string;
28
+ width: string;
29
+ height: string;
30
+ groupIcon: null;
31
+ itemIcon: null;
32
+ searchQuery: string;
33
+ };
34
+ export declare const defaultRelativeMouseCoord: {
35
+ isBefore: boolean;
36
+ isAfter: boolean;
37
+ isValid: boolean;
38
+ item: null;
39
+ x: null;
40
+ y: null;
41
+ relativeElementDOMRect: null;
42
+ relativeElementIndex: null;
43
+ };
44
+ /** Context for cross component communication */
45
+ declare const TreeViewContext: import("react").Context<{
46
+ props: {
47
+ plugins: never[];
48
+ selection: {};
49
+ instanceRef: import("react").RefObject<unknown>;
50
+ disableGroups: boolean;
51
+ disableLeafs: boolean;
52
+ disableIcons: boolean;
53
+ fluid: boolean;
54
+ isMultiSelect: boolean;
55
+ isSingleSelect: boolean;
56
+ restrictDragAndDrop: boolean;
57
+ showChildrenAmount: boolean;
58
+ sortable: boolean;
59
+ isLoading: boolean;
60
+ highlightOnlyQuery: boolean;
61
+ onInstanceRefInitialized: (istanceRef: any) => void;
62
+ onItemClick: (item: any, e: any) => void;
63
+ onItemFocus: (params: any) => void;
64
+ onVisibleItemsChange: (newVisibleItems: any) => void;
65
+ onOrderChange: (newData: any, oldData: any, draggedItem: any) => void;
66
+ onSelectionChange: (selectionHasmap: any, item: any, indexAndScrollTo: any) => void;
67
+ onExpandChange: (expandedHashmap: any, itemToggled: any) => void;
68
+ rowSize: string;
69
+ labelOverflow: string;
70
+ noItemsPlaceholder: string;
71
+ nameKey: string;
72
+ width: string;
73
+ height: string;
74
+ groupIcon: null;
75
+ itemIcon: null;
76
+ searchQuery: string;
77
+ };
78
+ visibleItems: never[];
79
+ withRadioChecks: boolean;
80
+ withCheckboxChecks: boolean;
81
+ withDragAndDrop: boolean;
82
+ relativeMouseCord: {
83
+ isBefore: boolean;
84
+ isAfter: boolean;
85
+ isValid: boolean;
86
+ item: null;
87
+ x: null;
88
+ y: null;
89
+ relativeElementDOMRect: null;
90
+ relativeElementIndex: null;
91
+ };
92
+ setRelativeMouseCord: () => void;
93
+ labelRenderer: (value: any) => any;
94
+ triggerTreeRerender: () => void;
95
+ tree: {};
96
+ virtualListHelpers: {};
97
+ virtualListRef: {};
98
+ treeRoot: {};
99
+ isDragging: boolean;
100
+ setIsDragging: () => void;
101
+ isKeyboardDragging: boolean;
102
+ setIsKeyboardDragging: () => void;
103
+ draggedItem: null;
104
+ setDraggedItem: () => void;
105
+ uniqueTreeViewUUID: string;
106
+ selectedItem: null;
107
+ setSelectedItem: () => void;
108
+ focusedItem: null;
109
+ setFocusedItem: () => void;
110
+ selectedCheckboxes: {};
111
+ setSelectedCheckboxes: () => void;
112
+ expandedGroups: {};
113
+ setExpandedGroups: () => void;
114
+ latestToggledItem: null;
115
+ setLatestToggledItem: () => void;
116
+ hoverItem: null;
117
+ setHoverItem: () => void;
118
+ }>;
119
+ export default TreeViewContext;
@@ -0,0 +1,4 @@
1
+ export declare const DSTreeViewPrefix = "em-ds";
2
+ export declare const treeItemBlockName = "tree-item";
3
+ export declare const treeListBlockName = "tree-list";
4
+ export declare const treeListNoItemsBn: string;
@@ -0,0 +1,8 @@
1
+ export declare function TreeView({ data, plugins, children, roving, rowSize, ...props }: {
2
+ [x: string]: any;
3
+ data: any;
4
+ plugins?: never[] | undefined;
5
+ children: any;
6
+ roving?: boolean | undefined;
7
+ rowSize?: string | undefined;
8
+ }): any;
@@ -0,0 +1,72 @@
1
+ import React from 'react';
2
+ export declare const treeItemsToMap: (items: any) => Map<any, any>;
3
+ /**
4
+ * Returns items and itemMap with itemText as keys
5
+ *
6
+ * @param root0
7
+ * @param root0.data
8
+ * @param root0.plugins
9
+ * @param key
10
+ */
11
+ export declare function getTreeItemsFromRender({ data, plugins, ...props }: {
12
+ [x: string]: any;
13
+ data: any;
14
+ plugins: any;
15
+ }, key?: string): {
16
+ container: HTMLElement;
17
+ baseElement: Element;
18
+ debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
19
+ rerender: (ui: React.ReactElement<any, string | React.JSXElementConstructor<any>>) => void;
20
+ unmount: () => void;
21
+ asFragment: () => DocumentFragment;
22
+ getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
23
+ getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
24
+ queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
25
+ queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
26
+ findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
27
+ findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
28
+ getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
29
+ getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
30
+ queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
31
+ queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
32
+ findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
33
+ findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
34
+ getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
35
+ getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
36
+ queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
37
+ queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
38
+ findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
39
+ findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
40
+ getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
41
+ getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
42
+ queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
43
+ queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
44
+ findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
45
+ findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
46
+ getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
47
+ getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
48
+ queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
49
+ queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
50
+ findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
51
+ findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
52
+ getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
53
+ getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
54
+ queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
55
+ queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
56
+ findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
57
+ findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
58
+ getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement;
59
+ getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
60
+ queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement | null;
61
+ queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
62
+ findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
63
+ findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
64
+ getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
65
+ queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
66
+ queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
67
+ findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
68
+ findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
69
+ items: HTMLElement[];
70
+ itemsMap: Map<any, any>;
71
+ getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
72
+ };
@@ -0,0 +1,2 @@
1
+ export * from './TreeView';
2
+ export * from './plugins';
@@ -0,0 +1 @@
1
+ export declare const TreeDndPlugin: any;
@@ -0,0 +1 @@
1
+ export * from './TreeDndPlugin';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const DraggableItem: (renderers: any) => (props: any) => JSX.Element;
3
+ export default DraggableItem;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const DroppableList: (renderers: any, instance: any) => ({ records, ...rest }: {
3
+ [x: string]: any;
4
+ records: any;
5
+ }) => JSX.Element;
6
+ export default DroppableList;
@@ -0,0 +1,28 @@
1
+ export declare function getStyle(provided: any, style: any): any;
2
+ export declare function getDraggableProps(props: any, provided: any, snapshot: any): any;
3
+ export declare const setTreeArrayInPath: (treeData: any, path: any, data: any) => any;
4
+ export declare const isSourceBeforeTarget: (sourcePath: any, targetPath: any) => boolean;
5
+ export declare const updateTargetPath: (sourcePath: any, targetPath: any, incr?: number) => any[];
6
+ export declare const getParentPath: (path: any) => any;
7
+ export declare const getParentChildrenByPath: (treeData: any, path: any) => any;
8
+ export declare const getTreePosition: (recordPath: any) => {
9
+ parentPath: any;
10
+ index: any;
11
+ };
12
+ export declare const changePositionBetweenDifferentArrays: ({ sourceTreePosition, targetTreePosition, combineWith, sourceRecord, targetRecord, down, data, childrenKey, }: {
13
+ sourceTreePosition: any;
14
+ targetTreePosition: any;
15
+ combineWith: any;
16
+ sourceRecord: any;
17
+ targetRecord: any;
18
+ down: any;
19
+ data: any;
20
+ childrenKey?: string | undefined;
21
+ }) => any;
22
+ export declare const combineWithTarget: () => void;
23
+ export declare const changePositionSameArray: ({ targetTreePosition, sourceRecord, targetRecord, data, }: {
24
+ targetTreePosition: any;
25
+ sourceRecord: any;
26
+ targetRecord: any;
27
+ data: any;
28
+ }) => any;
@@ -0,0 +1,7 @@
1
+ export * from './dnd';
2
+ export * from './roving';
3
+ export * from './selectable';
4
+ export * from './toolbar';
5
+ export * from './tree';
6
+ export * from './virtualization';
7
+ export * from './searchable';
@@ -0,0 +1 @@
1
+ export declare const TreeRovingPlugin: any;
@@ -0,0 +1 @@
1
+ export * from './TreeRovingPlugin';
@@ -0,0 +1 @@
1
+ export declare const SearchableTreePlugin: any;
@@ -0,0 +1 @@
1
+ export * from './SearchableTreePlugin';
@@ -0,0 +1 @@
1
+ export declare const getListFromDocument: Element | null;
@@ -0,0 +1 @@
1
+ export declare const SelectablePluginTree: any;
@@ -0,0 +1 @@
1
+ export * from './SelectablePluginTree';
@@ -0,0 +1 @@
1
+ export declare const checkParentState: (nextSelectedChildrenAmount: any, parentChildrenLength: any, checked: any) => boolean;
@@ -0,0 +1 @@
1
+ export declare const TreeToolbarPlugin: any;
@@ -0,0 +1 @@
1
+ export * from './TreeToolbarPlugin';
@@ -0,0 +1 @@
1
+ export declare const TreePluginList: any;
@@ -0,0 +1 @@
1
+ export * from './TreeDataPlugin';
@@ -0,0 +1,14 @@
1
+ export declare const useExpandTreeState: (instance: any) => {
2
+ state: {
3
+ expandedAll: boolean;
4
+ expanded: any;
5
+ isExpandedAll: boolean;
6
+ };
7
+ actions: {
8
+ toggleExpandAll: (expanded: any) => Promise<any>;
9
+ toggleExpand: (item: any, opts: any) => void;
10
+ _toggleExpand: (item: any, opts: any) => void;
11
+ expand: (item: any, stateData?: boolean | undefined) => void;
12
+ collapse: (item: any) => void;
13
+ };
14
+ };
@@ -0,0 +1,8 @@
1
+ export declare const getParentId: (record: any) => any;
2
+ export declare const findItemOnDocument: (id: any) => Element | null;
3
+ export declare const getListFromDocument: () => Element | null;
4
+ export declare const getParentChildren: (record: any, childrenKey?: string) => any;
5
+ export declare const getItemLabel: (record: any, nameKey?: string) => any;
6
+ export declare const getItemChildren: (record: any, childrenKey?: string) => any;
7
+ export declare const getItemChildrenLength: (record: any, childrenKey?: string) => any;
8
+ export declare const findItemById: (records: any, id: any) => any;
@@ -0,0 +1,9 @@
1
+ export declare function walkTreeStrategy({ data, childrenKey, level, getId, parentNode, shouldWalkChildren, cb, }: {
2
+ data: any;
3
+ childrenKey?: string | undefined;
4
+ level?: number | undefined;
5
+ getId?: ((item: any) => any) | undefined;
6
+ parentNode: any;
7
+ shouldWalkChildren?: (() => boolean) | undefined;
8
+ cb: any;
9
+ }): void;
@@ -0,0 +1 @@
1
+ export declare const TreeVirtualizationPlugin: any;
@@ -0,0 +1 @@
1
+ export * from './TreeVirtualizationPlugin';
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export declare const treeListBlockName = "tree-list";
3
+ export declare const treeItemBlockName = "tree-item";
4
+ export declare const treeListNoItemsBn: string;
5
+ export declare const TreeListItem: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
6
+ export declare const TreeListItemAddonsWrapper: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
7
+ export declare const TreeList: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
8
+ export declare const TreeListNoItems: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
9
+ declare function TreeItem({ leftAddons, rightAddons, children, ...rest }: {
10
+ [x: string]: any;
11
+ leftAddons: any;
12
+ rightAddons: any;
13
+ children: any;
14
+ }): JSX.Element;
15
+ export declare const TreeRenderers: {
16
+ list: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
17
+ item: typeof TreeItem;
18
+ };
19
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './TreeView';
2
+ export * from './plugins';
3
+ export { TreeViewSearchBar } from './related-components/TreeViewSearchBar';
4
+ export * as DEPRECATED from './deprecated';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare function CheckboxSelectable(props: any): JSX.Element;
3
+ declare namespace CheckboxSelectable {
4
+ var propTypes: {
5
+ item: any;
6
+ itemIndex: any;
7
+ };
8
+ }
9
+ export default CheckboxSelectable;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const ChildrenCountDisplayer: {
3
+ (props: any): JSX.Element | null;
4
+ propTypes: {
5
+ item: any;
6
+ };
7
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare const ExpandCaret: {
3
+ (props: any): JSX.Element;
4
+ propTypes: {
5
+ item: any;
6
+ };
7
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const Icon: (props: any) => React.DetailedReactHTMLElement<{
3
+ 'data-testid': string;
4
+ className: any;
5
+ }, HTMLElement> | null;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare type NestingSpacePropsType = {
3
+ item: Record<string, any>;
4
+ spaceForNestingLevel: number;
5
+ };
6
+ export declare const NestingSpace: {
7
+ (props: NestingSpacePropsType): JSX.Element;
8
+ propTypes: {
9
+ item: any;
10
+ spaceForNestingLevel: any;
11
+ };
12
+ };
13
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ declare function RadioSelectable(props: any): JSX.Element;
3
+ declare namespace RadioSelectable {
4
+ var propTypes: {
5
+ item: any;
6
+ itemIndex: any;
7
+ };
8
+ }
9
+ export default RadioSelectable;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ export declare const TreeListItem: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
3
+ export declare const TreeListItemAddonsWrapper: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ export declare const TreeItem: {
5
+ (props: any): JSX.Element;
6
+ propTypes: {
7
+ item: any;
8
+ index: any;
9
+ itemIndex: any;
10
+ itemWrapperStyle: any;
11
+ virtualItemRef: any;
12
+ spaceForNestingLevel: any;
13
+ onMouseDragOverItem: any;
14
+ };
15
+ };
16
+ export declare const DragAndDropTreeItem: React.ComponentClass<any, any>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare function TreeItemText(props: any): JSX.Element;
3
+ export declare namespace TreeItemText {
4
+ var propTypes: {
5
+ item: any;
6
+ };
7
+ }
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export declare const treeListNoItemsBn: string;
3
+ export declare const TreeListNoItems: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
+ export declare const TreeListWrapper: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
5
+ export declare const TreeList: {
6
+ (props: any): JSX.Element;
7
+ propTypes: {
8
+ onMouseDragOverItem: any;
9
+ };
10
+ };
11
+ export declare const DragAndDropTreeList: React.ComponentClass<any, any>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const TreeDnD: () => JSX.Element;
3
+ export declare const TreeDndPlugin = "tree-dnd";
@@ -0,0 +1 @@
1
+ export * from './TreeDndPlugin';
@@ -0,0 +1,7 @@
1
+ export * from './dnd';
2
+ export * from './roving';
3
+ export * from './selectable';
4
+ export * from './toolbar';
5
+ export * from './tree';
6
+ export * from './virtualization';
7
+ export * from './searchable';
@@ -0,0 +1 @@
1
+ export declare const TreeRovingPlugin = "tree-roving";
@@ -0,0 +1 @@
1
+ export * from './TreeRovingPlugin';
@@ -0,0 +1 @@
1
+ export declare const SearchableTreePlugin = "tree-searchable";
@@ -0,0 +1 @@
1
+ export * from './SearchableTreePlugin';
@@ -0,0 +1 @@
1
+ export declare const SelectablePluginTree = "tree-selectable";
@@ -0,0 +1 @@
1
+ export * from './SelectablePluginTree';
@@ -0,0 +1 @@
1
+ export declare const TreeToolbarPlugin = "tree-toolbar";
@@ -0,0 +1 @@
1
+ export * from './TreeToolbarPlugin';
@@ -0,0 +1 @@
1
+ export declare const TreePluginList = "tree-data";
@@ -0,0 +1 @@
1
+ export * from './TreeDataPlugin';
@@ -0,0 +1 @@
1
+ export declare const TreeVirtualizationPlugin = "tree-virtualization";
@@ -0,0 +1 @@
1
+ export * from './TreeVirtualizationPlugin';
@@ -0,0 +1,26 @@
1
+ export declare const InstanceActionsPropTypes: any;
2
+ export declare const TreeViewInstancePropType: any;
3
+ export declare const TreeViewItemPropType: any;
4
+ export declare const TreeListPropTypes: {
5
+ onMouseDragOverItem: any;
6
+ };
7
+ export declare const TreeItemPropTypes: {
8
+ item: any;
9
+ index: any;
10
+ itemIndex: any;
11
+ itemWrapperStyle: any;
12
+ virtualItemRef: any;
13
+ spaceForNestingLevel: any;
14
+ onMouseDragOverItem: any;
15
+ };
16
+ export declare const TreeItemExpandCaretPropTypes: {
17
+ item: any;
18
+ };
19
+ export declare const TreeItemNestingSpacePropTypes: {
20
+ item: any;
21
+ spaceForNestingLevel: any;
22
+ };
23
+ export declare const TreeItemCheckboxPropTypes: {
24
+ item: any;
25
+ itemIndex: any;
26
+ };