@elliemae/ds-treeview 1.57.1-rc.0 → 2.0.0-alpha.11

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 +86 -161
  2. package/cjs/TreeViewContext.js +23 -26
  3. package/cjs/config/cssClassesConstants.js +4 -5
  4. package/cjs/deprecated/TreeView.js +34 -50
  5. package/cjs/deprecated/__testUtils__/utils.js +41 -48
  6. package/cjs/deprecated/index.js +21 -49
  7. package/cjs/deprecated/plugins/dnd/TreeDndPlugin.js +52 -68
  8. package/cjs/deprecated/plugins/dnd/index.js +2 -19
  9. package/cjs/deprecated/plugins/dnd/renderers/DraggableItem.js +52 -50
  10. package/cjs/deprecated/plugins/dnd/renderers/DroppableList.js +159 -152
  11. package/cjs/deprecated/plugins/dnd/utils.js +61 -60
  12. package/cjs/deprecated/plugins/index.js +14 -44
  13. package/cjs/deprecated/plugins/roving/TreeRovingPlugin.js +45 -61
  14. package/cjs/deprecated/plugins/roving/index.js +2 -12
  15. package/cjs/deprecated/plugins/searchable/SearchableTreePlugin.js +45 -36
  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 +120 -133
  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 +64 -58
  23. package/cjs/deprecated/plugins/toolbar/index.js +2 -13
  24. package/cjs/deprecated/plugins/tree/TreeDataPlugin.js +158 -142
  25. package/cjs/deprecated/plugins/tree/index.js +2 -18
  26. package/cjs/deprecated/plugins/tree/useExpandTreeState.js +66 -75
  27. package/cjs/deprecated/plugins/tree/utils.js +9 -30
  28. package/cjs/deprecated/plugins/tree/walkTreeStrategy.js +21 -32
  29. package/cjs/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js +118 -117
  30. package/cjs/deprecated/plugins/virtualization/index.js +2 -12
  31. package/cjs/deprecated/renderers.js +34 -24
  32. package/cjs/index.js +19 -93
  33. package/cjs/parts/CheckboxSelectable.js +39 -37
  34. package/cjs/parts/ChildrenCountDisplayer.js +15 -16
  35. package/cjs/parts/ExpandCaret.js +48 -44
  36. package/cjs/parts/Icon.js +16 -12
  37. package/cjs/parts/NestingSpace.js +21 -20
  38. package/cjs/parts/RadioSelectable.js +36 -35
  39. package/cjs/parts/TreeItem.js +127 -147
  40. package/cjs/parts/TreeItemText.js +69 -61
  41. package/cjs/parts/TreeList.js +99 -111
  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 +15 -25
  60. package/cjs/utils/array-helpers.js +7 -19
  61. package/cjs/utils/dnd-helpers.js +60 -51
  62. package/cjs/utils/group-expands-helpers.js +27 -24
  63. package/cjs/utils/keyboard-helpers.js +77 -75
  64. package/cjs/utils/object-helpers.js +6 -19
  65. package/cjs/utils/refs-helpers.js +4 -9
  66. package/cjs/utils/selectable-helper.js +32 -28
  67. package/cjs/utils/string-helpers.js +1 -4
  68. package/cjs/utils/tree-helpers.js +50 -71
  69. package/cjs/utils/useDnDHelpers.js +122 -114
  70. package/cjs/utils/useInstanceRefActions.js +44 -57
  71. package/cjs/utils/useTree.js +35 -57
  72. package/esm/TreeView.js +76 -150
  73. package/esm/TreeViewContext.js +22 -25
  74. package/esm/config/cssClassesConstants.js +4 -5
  75. package/esm/deprecated/TreeView.js +26 -40
  76. package/esm/deprecated/__testUtils__/utils.js +37 -42
  77. package/esm/deprecated/index.js +6 -32
  78. package/esm/deprecated/plugins/dnd/TreeDndPlugin.js +42 -57
  79. package/esm/deprecated/plugins/dnd/index.js +0 -17
  80. package/esm/deprecated/plugins/dnd/renderers/DraggableItem.js +46 -44
  81. package/esm/deprecated/plugins/dnd/renderers/DroppableList.js +156 -149
  82. package/esm/deprecated/plugins/dnd/utils.js +57 -55
  83. package/esm/deprecated/plugins/index.js +0 -30
  84. package/esm/deprecated/plugins/roving/TreeRovingPlugin.js +44 -58
  85. package/esm/deprecated/plugins/roving/index.js +0 -10
  86. package/esm/deprecated/plugins/searchable/SearchableTreePlugin.js +43 -35
  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 +110 -124
  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 +56 -50
  94. package/esm/deprecated/plugins/toolbar/index.js +0 -11
  95. package/esm/deprecated/plugins/tree/TreeDataPlugin.js +142 -128
  96. package/esm/deprecated/plugins/tree/index.js +0 -16
  97. package/esm/deprecated/plugins/tree/useExpandTreeState.js +61 -70
  98. package/esm/deprecated/plugins/tree/utils.js +9 -30
  99. package/esm/deprecated/plugins/tree/walkTreeStrategy.js +21 -28
  100. package/esm/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js +115 -115
  101. package/esm/deprecated/plugins/virtualization/index.js +0 -10
  102. package/esm/deprecated/renderers.js +32 -22
  103. package/esm/index.js +2 -75
  104. package/esm/parts/CheckboxSelectable.js +35 -34
  105. package/esm/parts/ChildrenCountDisplayer.js +13 -14
  106. package/esm/parts/ExpandCaret.js +43 -41
  107. package/esm/parts/Icon.js +14 -10
  108. package/esm/parts/NestingSpace.js +19 -18
  109. package/esm/parts/RadioSelectable.js +35 -33
  110. package/esm/parts/TreeItem.js +111 -131
  111. package/esm/parts/TreeItemText.js +66 -57
  112. package/esm/parts/TreeList.js +96 -107
  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 +14 -23
  131. package/esm/utils/array-helpers.js +7 -14
  132. package/esm/utils/dnd-helpers.js +58 -49
  133. package/esm/utils/group-expands-helpers.js +27 -24
  134. package/esm/utils/keyboard-helpers.js +70 -68
  135. package/esm/utils/object-helpers.js +6 -15
  136. package/esm/utils/refs-helpers.js +4 -9
  137. package/esm/utils/selectable-helper.js +30 -26
  138. package/esm/utils/string-helpers.js +1 -4
  139. package/esm/utils/tree-helpers.js +48 -65
  140. package/esm/utils/useDnDHelpers.js +119 -107
  141. package/esm/utils/useInstanceRefActions.js +39 -48
  142. package/esm/utils/useTree.js +32 -53
  143. package/package.json +317 -29
  144. package/types/TreeView.d.ts +67 -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 +4 -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 +29 -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
package/package.json CHANGED
@@ -1,14 +1,310 @@
1
1
  {
2
2
  "name": "@elliemae/ds-treeview",
3
- "version": "1.57.1-rc.0",
3
+ "version": "2.0.0-alpha.11",
4
4
  "license": "MIT",
5
- "description": "Ellie Mae - Dim Sum - Tree View",
6
- "main": "cjs/index.js",
7
- "module": "esm/index.js",
5
+ "description": "ICE MT - Dimsum - Tree View",
6
+ "module": "./esm/index.js",
7
+ "main": "./cjs/index.js",
8
+ "types": "./types/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./esm/index.js",
12
+ "require": "./cjs/index.js"
13
+ },
14
+ "./utils/useTree": {
15
+ "import": "./esm/utils/useTree.js",
16
+ "require": "./cjs/utils/useTree.js"
17
+ },
18
+ "./utils/useInstanceRefActions": {
19
+ "import": "./esm/utils/useInstanceRefActions.js",
20
+ "require": "./cjs/utils/useInstanceRefActions.js"
21
+ },
22
+ "./utils/useDnDHelpers": {
23
+ "import": "./esm/utils/useDnDHelpers.js",
24
+ "require": "./cjs/utils/useDnDHelpers.js"
25
+ },
26
+ "./utils/tree-helpers": {
27
+ "import": "./esm/utils/tree-helpers.js",
28
+ "require": "./cjs/utils/tree-helpers.js"
29
+ },
30
+ "./utils/string-helpers": {
31
+ "import": "./esm/utils/string-helpers.js",
32
+ "require": "./cjs/utils/string-helpers.js"
33
+ },
34
+ "./utils/selectable-helper": {
35
+ "import": "./esm/utils/selectable-helper.js",
36
+ "require": "./cjs/utils/selectable-helper.js"
37
+ },
38
+ "./utils/refs-helpers": {
39
+ "import": "./esm/utils/refs-helpers.js",
40
+ "require": "./cjs/utils/refs-helpers.js"
41
+ },
42
+ "./utils/object-helpers": {
43
+ "import": "./esm/utils/object-helpers.js",
44
+ "require": "./cjs/utils/object-helpers.js"
45
+ },
46
+ "./utils/keyboard-helpers": {
47
+ "import": "./esm/utils/keyboard-helpers.js",
48
+ "require": "./cjs/utils/keyboard-helpers.js"
49
+ },
50
+ "./utils/group-expands-helpers": {
51
+ "import": "./esm/utils/group-expands-helpers.js",
52
+ "require": "./cjs/utils/group-expands-helpers.js"
53
+ },
54
+ "./utils/dnd-helpers": {
55
+ "import": "./esm/utils/dnd-helpers.js",
56
+ "require": "./cjs/utils/dnd-helpers.js"
57
+ },
58
+ "./utils/array-helpers": {
59
+ "import": "./esm/utils/array-helpers.js",
60
+ "require": "./cjs/utils/array-helpers.js"
61
+ },
62
+ "./TreeViewContext": {
63
+ "import": "./esm/TreeViewContext.js",
64
+ "require": "./cjs/TreeViewContext.js"
65
+ },
66
+ "./TreeView": {
67
+ "import": "./esm/TreeView.js",
68
+ "require": "./cjs/TreeView.js"
69
+ },
70
+ "./related-components/TreeViewSearchBar": {
71
+ "import": "./esm/related-components/TreeViewSearchBar.js",
72
+ "require": "./cjs/related-components/TreeViewSearchBar.js"
73
+ },
74
+ "./react-desc-prop-types": {
75
+ "import": "./esm/react-desc-prop-types.js",
76
+ "require": "./cjs/react-desc-prop-types.js"
77
+ },
78
+ "./prop-types": {
79
+ "import": "./esm/prop-types.js",
80
+ "require": "./cjs/prop-types.js"
81
+ },
82
+ "./plugins/virtualization/TreeVirtualizationPlugin": {
83
+ "import": "./esm/plugins/virtualization/TreeVirtualizationPlugin.js",
84
+ "require": "./cjs/plugins/virtualization/TreeVirtualizationPlugin.js"
85
+ },
86
+ "./plugins/virtualization": {
87
+ "import": "./esm/plugins/virtualization/index.js",
88
+ "require": "./cjs/plugins/virtualization/index.js"
89
+ },
90
+ "./plugins/tree/TreeDataPlugin": {
91
+ "import": "./esm/plugins/tree/TreeDataPlugin.js",
92
+ "require": "./cjs/plugins/tree/TreeDataPlugin.js"
93
+ },
94
+ "./plugins/tree": {
95
+ "import": "./esm/plugins/tree/index.js",
96
+ "require": "./cjs/plugins/tree/index.js"
97
+ },
98
+ "./plugins/toolbar/TreeToolbarPlugin": {
99
+ "import": "./esm/plugins/toolbar/TreeToolbarPlugin.js",
100
+ "require": "./cjs/plugins/toolbar/TreeToolbarPlugin.js"
101
+ },
102
+ "./plugins/toolbar": {
103
+ "import": "./esm/plugins/toolbar/index.js",
104
+ "require": "./cjs/plugins/toolbar/index.js"
105
+ },
106
+ "./plugins/selectable/SelectablePluginTree": {
107
+ "import": "./esm/plugins/selectable/SelectablePluginTree.js",
108
+ "require": "./cjs/plugins/selectable/SelectablePluginTree.js"
109
+ },
110
+ "./plugins/selectable": {
111
+ "import": "./esm/plugins/selectable/index.js",
112
+ "require": "./cjs/plugins/selectable/index.js"
113
+ },
114
+ "./plugins/searchable/SearchableTreePlugin": {
115
+ "import": "./esm/plugins/searchable/SearchableTreePlugin.js",
116
+ "require": "./cjs/plugins/searchable/SearchableTreePlugin.js"
117
+ },
118
+ "./plugins/searchable": {
119
+ "import": "./esm/plugins/searchable/index.js",
120
+ "require": "./cjs/plugins/searchable/index.js"
121
+ },
122
+ "./plugins/roving/TreeRovingPlugin": {
123
+ "import": "./esm/plugins/roving/TreeRovingPlugin.js",
124
+ "require": "./cjs/plugins/roving/TreeRovingPlugin.js"
125
+ },
126
+ "./plugins/roving": {
127
+ "import": "./esm/plugins/roving/index.js",
128
+ "require": "./cjs/plugins/roving/index.js"
129
+ },
130
+ "./plugins": {
131
+ "import": "./esm/plugins/index.js",
132
+ "require": "./cjs/plugins/index.js"
133
+ },
134
+ "./plugins/dnd/TreeDndPlugin": {
135
+ "import": "./esm/plugins/dnd/TreeDndPlugin.js",
136
+ "require": "./cjs/plugins/dnd/TreeDndPlugin.js"
137
+ },
138
+ "./plugins/dnd": {
139
+ "import": "./esm/plugins/dnd/index.js",
140
+ "require": "./cjs/plugins/dnd/index.js"
141
+ },
142
+ "./parts/TreeList": {
143
+ "import": "./esm/parts/TreeList.js",
144
+ "require": "./cjs/parts/TreeList.js"
145
+ },
146
+ "./parts/TreeItemText": {
147
+ "import": "./esm/parts/TreeItemText.js",
148
+ "require": "./cjs/parts/TreeItemText.js"
149
+ },
150
+ "./parts/TreeItem": {
151
+ "import": "./esm/parts/TreeItem.js",
152
+ "require": "./cjs/parts/TreeItem.js"
153
+ },
154
+ "./parts/RadioSelectable": {
155
+ "import": "./esm/parts/RadioSelectable.js",
156
+ "require": "./cjs/parts/RadioSelectable.js"
157
+ },
158
+ "./parts/NestingSpace": {
159
+ "import": "./esm/parts/NestingSpace.js",
160
+ "require": "./cjs/parts/NestingSpace.js"
161
+ },
162
+ "./parts/Icon": {
163
+ "import": "./esm/parts/Icon.js",
164
+ "require": "./cjs/parts/Icon.js"
165
+ },
166
+ "./parts/ExpandCaret": {
167
+ "import": "./esm/parts/ExpandCaret.js",
168
+ "require": "./cjs/parts/ExpandCaret.js"
169
+ },
170
+ "./parts/ChildrenCountDisplayer": {
171
+ "import": "./esm/parts/ChildrenCountDisplayer.js",
172
+ "require": "./cjs/parts/ChildrenCountDisplayer.js"
173
+ },
174
+ "./parts/CheckboxSelectable": {
175
+ "import": "./esm/parts/CheckboxSelectable.js",
176
+ "require": "./cjs/parts/CheckboxSelectable.js"
177
+ },
178
+ "./deprecated/TreeView": {
179
+ "import": "./esm/deprecated/TreeView.js",
180
+ "require": "./cjs/deprecated/TreeView.js"
181
+ },
182
+ "./deprecated/renderers": {
183
+ "import": "./esm/deprecated/renderers.js",
184
+ "require": "./cjs/deprecated/renderers.js"
185
+ },
186
+ "./deprecated/plugins/virtualization/TreeVirtualizationPlugin": {
187
+ "import": "./esm/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js",
188
+ "require": "./cjs/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js"
189
+ },
190
+ "./deprecated/plugins/virtualization": {
191
+ "import": "./esm/deprecated/plugins/virtualization/index.js",
192
+ "require": "./cjs/deprecated/plugins/virtualization/index.js"
193
+ },
194
+ "./deprecated/plugins/tree/walkTreeStrategy": {
195
+ "import": "./esm/deprecated/plugins/tree/walkTreeStrategy.js",
196
+ "require": "./cjs/deprecated/plugins/tree/walkTreeStrategy.js"
197
+ },
198
+ "./deprecated/plugins/tree/utils": {
199
+ "import": "./esm/deprecated/plugins/tree/utils.js",
200
+ "require": "./cjs/deprecated/plugins/tree/utils.js"
201
+ },
202
+ "./deprecated/plugins/tree/useExpandTreeState": {
203
+ "import": "./esm/deprecated/plugins/tree/useExpandTreeState.js",
204
+ "require": "./cjs/deprecated/plugins/tree/useExpandTreeState.js"
205
+ },
206
+ "./deprecated/plugins/tree/TreeDataPlugin": {
207
+ "import": "./esm/deprecated/plugins/tree/TreeDataPlugin.js",
208
+ "require": "./cjs/deprecated/plugins/tree/TreeDataPlugin.js"
209
+ },
210
+ "./deprecated/plugins/tree": {
211
+ "import": "./esm/deprecated/plugins/tree/index.js",
212
+ "require": "./cjs/deprecated/plugins/tree/index.js"
213
+ },
214
+ "./deprecated/plugins/toolbar/TreeToolbarPlugin": {
215
+ "import": "./esm/deprecated/plugins/toolbar/TreeToolbarPlugin.js",
216
+ "require": "./cjs/deprecated/plugins/toolbar/TreeToolbarPlugin.js"
217
+ },
218
+ "./deprecated/plugins/toolbar": {
219
+ "import": "./esm/deprecated/plugins/toolbar/index.js",
220
+ "require": "./cjs/deprecated/plugins/toolbar/index.js"
221
+ },
222
+ "./deprecated/plugins/selectable/utils": {
223
+ "import": "./esm/deprecated/plugins/selectable/utils.js",
224
+ "require": "./cjs/deprecated/plugins/selectable/utils.js"
225
+ },
226
+ "./deprecated/plugins/selectable/SelectablePluginTree": {
227
+ "import": "./esm/deprecated/plugins/selectable/SelectablePluginTree.js",
228
+ "require": "./cjs/deprecated/plugins/selectable/SelectablePluginTree.js"
229
+ },
230
+ "./deprecated/plugins/selectable": {
231
+ "import": "./esm/deprecated/plugins/selectable/index.js",
232
+ "require": "./cjs/deprecated/plugins/selectable/index.js"
233
+ },
234
+ "./deprecated/plugins/selectable/helper": {
235
+ "import": "./esm/deprecated/plugins/selectable/helper.js",
236
+ "require": "./cjs/deprecated/plugins/selectable/helper.js"
237
+ },
238
+ "./deprecated/plugins/searchable/utils": {
239
+ "import": "./esm/deprecated/plugins/searchable/utils.js",
240
+ "require": "./cjs/deprecated/plugins/searchable/utils.js"
241
+ },
242
+ "./deprecated/plugins/searchable/SearchableTreePlugin": {
243
+ "import": "./esm/deprecated/plugins/searchable/SearchableTreePlugin.js",
244
+ "require": "./cjs/deprecated/plugins/searchable/SearchableTreePlugin.js"
245
+ },
246
+ "./deprecated/plugins/searchable": {
247
+ "import": "./esm/deprecated/plugins/searchable/index.js",
248
+ "require": "./cjs/deprecated/plugins/searchable/index.js"
249
+ },
250
+ "./deprecated/plugins/roving/TreeRovingPlugin": {
251
+ "import": "./esm/deprecated/plugins/roving/TreeRovingPlugin.js",
252
+ "require": "./cjs/deprecated/plugins/roving/TreeRovingPlugin.js"
253
+ },
254
+ "./deprecated/plugins/roving": {
255
+ "import": "./esm/deprecated/plugins/roving/index.js",
256
+ "require": "./cjs/deprecated/plugins/roving/index.js"
257
+ },
258
+ "./deprecated/plugins": {
259
+ "import": "./esm/deprecated/plugins/index.js",
260
+ "require": "./cjs/deprecated/plugins/index.js"
261
+ },
262
+ "./deprecated/plugins/dnd/utils": {
263
+ "import": "./esm/deprecated/plugins/dnd/utils.js",
264
+ "require": "./cjs/deprecated/plugins/dnd/utils.js"
265
+ },
266
+ "./deprecated/plugins/dnd/TreeDndPlugin": {
267
+ "import": "./esm/deprecated/plugins/dnd/TreeDndPlugin.js",
268
+ "require": "./cjs/deprecated/plugins/dnd/TreeDndPlugin.js"
269
+ },
270
+ "./deprecated/plugins/dnd/renderers/DroppableList": {
271
+ "import": "./esm/deprecated/plugins/dnd/renderers/DroppableList.js",
272
+ "require": "./cjs/deprecated/plugins/dnd/renderers/DroppableList.js"
273
+ },
274
+ "./deprecated/plugins/dnd/renderers/DraggableItem": {
275
+ "import": "./esm/deprecated/plugins/dnd/renderers/DraggableItem.js",
276
+ "require": "./cjs/deprecated/plugins/dnd/renderers/DraggableItem.js"
277
+ },
278
+ "./deprecated/plugins/dnd": {
279
+ "import": "./esm/deprecated/plugins/dnd/index.js",
280
+ "require": "./cjs/deprecated/plugins/dnd/index.js"
281
+ },
282
+ "./deprecated": {
283
+ "import": "./esm/deprecated/index.js",
284
+ "require": "./cjs/deprecated/index.js"
285
+ },
286
+ "./deprecated/__testUtils__/utils": {
287
+ "import": "./esm/deprecated/__testUtils__/utils.js",
288
+ "require": "./cjs/deprecated/__testUtils__/utils.js"
289
+ },
290
+ "./config/cssClassesConstants": {
291
+ "import": "./esm/config/cssClassesConstants.js",
292
+ "require": "./cjs/config/cssClassesConstants.js"
293
+ }
294
+ },
8
295
  "sideEffects": [
9
296
  "*.css",
10
297
  "*.scss"
11
298
  ],
299
+ "repository": {
300
+ "type": "git",
301
+ "url": "https://git.elliemae.io/platform-ui/dimsum.git"
302
+ },
303
+ "engines": {
304
+ "npm": ">=7",
305
+ "node": ">=14"
306
+ },
307
+ "author": "ICE MT",
12
308
  "scripts": {
13
309
  "test:e2e": "../../../node_modules/pui-e2e-test-sdk/node_modules/.bin/wdio run ../../../wdio.conf.js",
14
310
  "test:reports": "../../../node_modules/pui-e2e-test-sdk/node_modules/.bin/allure open",
@@ -19,44 +315,36 @@
19
315
  },
20
316
  "publishConfig": {
21
317
  "access": "public",
22
- "directory": "dist"
318
+ "directory": "dist",
319
+ "generateSubmodules": true
23
320
  },
24
321
  "dependencies": {
25
- "@elliemae/ds-basic": "1.57.1-rc.0",
26
- "@elliemae/ds-classnames": "1.57.1-rc.0",
27
- "@elliemae/ds-icons": "1.57.1-rc.0",
28
- "@elliemae/ds-shared": "1.57.1-rc.0",
29
- "@elliemae/ds-utilities": "1.57.1-rc.0",
322
+ "@elliemae/ds-basic": "2.0.0-alpha.11",
323
+ "@elliemae/ds-classnames": "2.0.0-alpha.11",
324
+ "@elliemae/ds-dropdownmenu": "2.0.0-alpha.11",
325
+ "@elliemae/ds-icons": "2.0.0-alpha.11",
326
+ "@elliemae/ds-shared": "2.0.0-alpha.11",
327
+ "@elliemae/ds-utilities": "2.0.0-alpha.11",
30
328
  "@elliemae/react-sortable-hoc": "^1.0.0",
31
329
  "@john-osullivan/react-window-dynamic-fork": "1.9.0-alpha.1",
32
330
  "prop-types": "~15.7.2",
33
331
  "react-beautiful-dnd": "~13.0.0",
34
- "react-desc": "^4.1.2",
35
332
  "react-highlight-words": "~0.17.0",
36
333
  "react-virtual": "^2.3.2",
334
+ "react-virtualized-auto-sizer": "~1.0.6",
335
+ "react-window": "~1.8.6",
37
336
  "resize-observer-polyfill": "~1.5.1",
38
- "tree-model": "^1.0.7",
337
+ "stylesheet-helpers": "~0.2.2",
338
+ "tree-model": "~1.0.7",
39
339
  "uuid": "~8.3.2"
40
340
  },
41
341
  "devDependencies": {
42
- "styled-components": "~5.3.0"
342
+ "styled-components": "~5.3.1"
43
343
  },
44
344
  "peerDependencies": {
45
- "lodash": "^4.17.20",
46
- "react": "~17.0.1",
47
- "react-dom": "^17.0.1",
48
- "styled-components": "^5.3.0"
49
- },
50
- "babel": {
51
- "presets": [
52
- [
53
- "@babel/preset-env",
54
- {
55
- "targets": {
56
- "node": "current"
57
- }
58
- }
59
- ]
60
- ]
345
+ "lodash": "^4.17.21",
346
+ "react": "~17.0.2",
347
+ "react-dom": "^17.0.2",
348
+ "styled-components": "^5.3.1"
61
349
  }
62
350
  }
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ export declare function TreeView(props: any): JSX.Element;
3
+ export declare namespace TreeView {
4
+ var propTypes: {
5
+ data: any;
6
+ plugins: any;
7
+ selection: any;
8
+ instanceRef: any;
9
+ disableGroups: any;
10
+ disableLeafs: any;
11
+ disableIcons: any;
12
+ fluid: any;
13
+ isMultiSelect: any;
14
+ isSingleSelect: any;
15
+ restrictDragAndDrop: any;
16
+ showChildrenAmount: any;
17
+ sortable: any;
18
+ labelRenderer: any;
19
+ onItemClick: any;
20
+ onItemFocus: any;
21
+ onVisibleItemsChange: any;
22
+ onOrderChange: any;
23
+ onSelectionChange: any;
24
+ onExpandChange: any;
25
+ rowSize: any;
26
+ width: any;
27
+ height: any;
28
+ groupIcon: any;
29
+ itemIcon: any;
30
+ searchQuery: any;
31
+ highlightOnlyQuery: any;
32
+ };
33
+ var defaultProps: {
34
+ plugins: never[];
35
+ selection: {};
36
+ instanceRef: React.RefObject<unknown>;
37
+ disableGroups: boolean;
38
+ disableLeafs: boolean;
39
+ disableIcons: boolean;
40
+ fluid: boolean;
41
+ isMultiSelect: boolean;
42
+ isSingleSelect: boolean;
43
+ restrictDragAndDrop: boolean;
44
+ showChildrenAmount: boolean;
45
+ sortable: boolean;
46
+ isLoading: boolean;
47
+ highlightOnlyQuery: boolean;
48
+ onInstanceRefInitialized: (istanceRef: any) => void;
49
+ onItemClick: (item: any, e: any) => void;
50
+ onItemFocus: (params: any) => void;
51
+ onVisibleItemsChange: (newVisibleItems: any) => void;
52
+ onOrderChange: (newData: any, oldData: any, draggedItem: any) => void;
53
+ onSelectionChange: (selectionHasmap: any, item: any, indexAndScrollTo: any) => void;
54
+ onExpandChange: (expandedHashmap: any, itemToggled: any) => void;
55
+ rowSize: string;
56
+ labelOverflow: string;
57
+ noItemsPlaceholder: string;
58
+ nameKey: string;
59
+ width: string;
60
+ height: string;
61
+ groupIcon: null;
62
+ itemIcon: null;
63
+ searchQuery: string;
64
+ };
65
+ }
66
+ declare const TreeViewWithSchema: any;
67
+ export { TreeViewWithSchema };
@@ -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/build/types").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
+ };