@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.
- package/cjs/TreeView.js +91 -161
- package/cjs/TreeViewContext.js +23 -26
- package/cjs/config/cssClassesConstants.js +4 -5
- package/cjs/deprecated/TreeView.js +39 -50
- package/cjs/deprecated/__testUtils__/utils.js +47 -46
- package/cjs/deprecated/index.js +21 -49
- package/cjs/deprecated/plugins/dnd/TreeDndPlugin.js +57 -67
- package/cjs/deprecated/plugins/dnd/index.js +2 -19
- package/cjs/deprecated/plugins/dnd/renderers/DraggableItem.js +55 -49
- package/cjs/deprecated/plugins/dnd/renderers/DroppableList.js +162 -150
- package/cjs/deprecated/plugins/dnd/utils.js +64 -56
- package/cjs/deprecated/plugins/index.js +14 -44
- package/cjs/deprecated/plugins/roving/TreeRovingPlugin.js +49 -56
- package/cjs/deprecated/plugins/roving/index.js +2 -12
- package/cjs/deprecated/plugins/searchable/SearchableTreePlugin.js +46 -35
- package/cjs/deprecated/plugins/searchable/index.js +2 -7
- package/cjs/deprecated/plugins/searchable/utils.js +1 -2
- package/cjs/deprecated/plugins/selectable/SelectablePluginTree.js +126 -120
- package/cjs/deprecated/plugins/selectable/helper.js +0 -1
- package/cjs/deprecated/plugins/selectable/index.js +2 -14
- package/cjs/deprecated/plugins/selectable/utils.js +2 -3
- package/cjs/deprecated/plugins/toolbar/TreeToolbarPlugin.js +63 -53
- package/cjs/deprecated/plugins/toolbar/index.js +2 -13
- package/cjs/deprecated/plugins/tree/TreeDataPlugin.js +163 -137
- package/cjs/deprecated/plugins/tree/index.js +2 -18
- package/cjs/deprecated/plugins/tree/useExpandTreeState.js +67 -73
- package/cjs/deprecated/plugins/tree/utils.js +22 -30
- package/cjs/deprecated/plugins/tree/walkTreeStrategy.js +21 -30
- package/cjs/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js +124 -109
- package/cjs/deprecated/plugins/virtualization/index.js +2 -12
- package/cjs/deprecated/renderers.js +41 -23
- package/cjs/index.js +19 -93
- package/cjs/parts/CheckboxSelectable.js +42 -36
- package/cjs/parts/ChildrenCountDisplayer.js +15 -16
- package/cjs/parts/ExpandCaret.js +42 -38
- package/cjs/parts/Icon.js +14 -10
- package/cjs/parts/NestingSpace.js +26 -20
- package/cjs/parts/RadioSelectable.js +34 -34
- package/cjs/parts/TreeItem.js +123 -133
- package/cjs/parts/TreeItemText.js +68 -57
- package/cjs/parts/TreeList.js +107 -109
- package/cjs/plugins/dnd/TreeDndPlugin.js +20 -54
- package/cjs/plugins/dnd/index.js +3 -43
- package/cjs/plugins/index.js +15 -55
- package/cjs/plugins/roving/TreeRovingPlugin.js +1 -2
- package/cjs/plugins/roving/index.js +2 -3
- package/cjs/plugins/searchable/SearchableTreePlugin.js +1 -2
- package/cjs/plugins/searchable/index.js +2 -3
- package/cjs/plugins/selectable/SelectablePluginTree.js +1 -2
- package/cjs/plugins/selectable/index.js +2 -3
- package/cjs/plugins/toolbar/TreeToolbarPlugin.js +1 -2
- package/cjs/plugins/toolbar/index.js +2 -3
- package/cjs/plugins/tree/TreeDataPlugin.js +1 -2
- package/cjs/plugins/tree/index.js +2 -3
- package/cjs/plugins/virtualization/TreeVirtualizationPlugin.js +1 -2
- package/cjs/plugins/virtualization/index.js +2 -3
- package/cjs/prop-types.js +25 -26
- package/cjs/react-desc-prop-types.js +4 -5
- package/cjs/related-components/TreeViewSearchBar.js +14 -24
- package/cjs/utils/array-helpers.js +7 -19
- package/cjs/utils/dnd-helpers.js +64 -51
- package/cjs/utils/group-expands-helpers.js +29 -24
- package/cjs/utils/keyboard-helpers.js +80 -75
- package/cjs/utils/object-helpers.js +13 -18
- package/cjs/utils/refs-helpers.js +10 -5
- package/cjs/utils/selectable-helper.js +39 -28
- package/cjs/utils/string-helpers.js +1 -4
- package/cjs/utils/tree-helpers.js +68 -71
- package/cjs/utils/useDnDHelpers.js +128 -114
- package/cjs/utils/useInstanceRefActions.js +40 -50
- package/cjs/utils/useTree.js +40 -57
- package/esm/TreeView.js +81 -150
- package/esm/TreeViewContext.js +22 -25
- package/esm/config/cssClassesConstants.js +4 -5
- package/esm/deprecated/TreeView.js +31 -40
- package/esm/deprecated/__testUtils__/utils.js +43 -40
- package/esm/deprecated/index.js +6 -32
- package/esm/deprecated/plugins/dnd/TreeDndPlugin.js +47 -56
- package/esm/deprecated/plugins/dnd/index.js +0 -17
- package/esm/deprecated/plugins/dnd/renderers/DraggableItem.js +50 -43
- package/esm/deprecated/plugins/dnd/renderers/DroppableList.js +160 -147
- package/esm/deprecated/plugins/dnd/utils.js +63 -54
- package/esm/deprecated/plugins/index.js +0 -30
- package/esm/deprecated/plugins/roving/TreeRovingPlugin.js +48 -53
- package/esm/deprecated/plugins/roving/index.js +0 -10
- package/esm/deprecated/plugins/searchable/SearchableTreePlugin.js +45 -34
- package/esm/deprecated/plugins/searchable/index.js +0 -5
- package/esm/deprecated/plugins/searchable/utils.js +1 -2
- package/esm/deprecated/plugins/selectable/SelectablePluginTree.js +121 -113
- package/esm/deprecated/plugins/selectable/helper.js +0 -1
- package/esm/deprecated/plugins/selectable/index.js +0 -12
- package/esm/deprecated/plugins/selectable/utils.js +2 -3
- package/esm/deprecated/plugins/toolbar/TreeToolbarPlugin.js +58 -47
- package/esm/deprecated/plugins/toolbar/index.js +0 -11
- package/esm/deprecated/plugins/tree/TreeDataPlugin.js +150 -124
- package/esm/deprecated/plugins/tree/index.js +0 -16
- package/esm/deprecated/plugins/tree/useExpandTreeState.js +64 -69
- package/esm/deprecated/plugins/tree/utils.js +16 -24
- package/esm/deprecated/plugins/tree/walkTreeStrategy.js +21 -26
- package/esm/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js +121 -107
- package/esm/deprecated/plugins/virtualization/index.js +0 -10
- package/esm/deprecated/renderers.js +39 -21
- package/esm/index.js +2 -75
- package/esm/parts/CheckboxSelectable.js +39 -33
- package/esm/parts/ChildrenCountDisplayer.js +13 -14
- package/esm/parts/ExpandCaret.js +39 -35
- package/esm/parts/Icon.js +13 -9
- package/esm/parts/NestingSpace.js +24 -18
- package/esm/parts/RadioSelectable.js +34 -32
- package/esm/parts/TreeItem.js +108 -117
- package/esm/parts/TreeItemText.js +65 -53
- package/esm/parts/TreeList.js +104 -105
- package/esm/plugins/dnd/TreeDndPlugin.js +16 -50
- package/esm/plugins/dnd/index.js +0 -40
- package/esm/plugins/index.js +0 -40
- package/esm/plugins/roving/TreeRovingPlugin.js +1 -2
- package/esm/plugins/roving/index.js +0 -1
- package/esm/plugins/searchable/SearchableTreePlugin.js +1 -2
- package/esm/plugins/searchable/index.js +0 -1
- package/esm/plugins/selectable/SelectablePluginTree.js +1 -2
- package/esm/plugins/selectable/index.js +0 -1
- package/esm/plugins/toolbar/TreeToolbarPlugin.js +1 -2
- package/esm/plugins/toolbar/index.js +0 -1
- package/esm/plugins/tree/TreeDataPlugin.js +1 -2
- package/esm/plugins/tree/index.js +0 -1
- package/esm/plugins/virtualization/TreeVirtualizationPlugin.js +1 -2
- package/esm/plugins/virtualization/index.js +0 -1
- package/esm/prop-types.js +8 -9
- package/esm/react-desc-prop-types.js +4 -5
- package/esm/related-components/TreeViewSearchBar.js +13 -22
- package/esm/utils/array-helpers.js +7 -14
- package/esm/utils/dnd-helpers.js +62 -49
- package/esm/utils/group-expands-helpers.js +29 -24
- package/esm/utils/keyboard-helpers.js +73 -68
- package/esm/utils/object-helpers.js +13 -14
- package/esm/utils/refs-helpers.js +10 -5
- package/esm/utils/selectable-helper.js +37 -26
- package/esm/utils/string-helpers.js +1 -4
- package/esm/utils/tree-helpers.js +66 -65
- package/esm/utils/useDnDHelpers.js +125 -107
- package/esm/utils/useInstanceRefActions.js +35 -41
- package/esm/utils/useTree.js +37 -53
- package/package.json +319 -30
- package/types/TreeView.d.ts +157 -0
- package/types/TreeViewContext.d.ts +119 -0
- package/types/config/cssClassesConstants.d.ts +4 -0
- package/types/deprecated/TreeView.d.ts +8 -0
- package/types/deprecated/__testUtils__/utils.d.ts +72 -0
- package/types/deprecated/index.d.ts +2 -0
- package/types/deprecated/plugins/dnd/TreeDndPlugin.d.ts +1 -0
- package/types/deprecated/plugins/dnd/index.d.ts +1 -0
- package/types/deprecated/plugins/dnd/renderers/DraggableItem.d.ts +3 -0
- package/types/deprecated/plugins/dnd/renderers/DroppableList.d.ts +6 -0
- package/types/deprecated/plugins/dnd/tests/TreeDndPlugin.test.d.ts +0 -0
- package/types/deprecated/plugins/dnd/utils.d.ts +28 -0
- package/types/deprecated/plugins/index.d.ts +7 -0
- package/types/deprecated/plugins/roving/TreeRovingPlugin.d.ts +1 -0
- package/types/deprecated/plugins/roving/index.d.ts +1 -0
- package/types/deprecated/plugins/searchable/SearchableTreePlugin.d.ts +1 -0
- package/types/deprecated/plugins/searchable/index.d.ts +1 -0
- package/types/deprecated/plugins/searchable/utils.d.ts +1 -0
- package/types/deprecated/plugins/selectable/SelectablePluginTree.d.ts +1 -0
- package/types/deprecated/plugins/selectable/helper.d.ts +0 -0
- package/types/deprecated/plugins/selectable/index.d.ts +1 -0
- package/types/deprecated/plugins/selectable/tests/SelectablePluginTree.test.d.ts +1 -0
- package/types/deprecated/plugins/selectable/utils.d.ts +1 -0
- package/types/deprecated/plugins/toolbar/TreeToolbarPlugin.d.ts +1 -0
- package/types/deprecated/plugins/toolbar/index.d.ts +1 -0
- package/types/deprecated/plugins/tree/TreeDataPlugin.d.ts +1 -0
- package/types/deprecated/plugins/tree/index.d.ts +1 -0
- package/types/deprecated/plugins/tree/tests/TreeDataPlugin.test.d.ts +1 -0
- package/types/deprecated/plugins/tree/useExpandTreeState.d.ts +14 -0
- package/types/deprecated/plugins/tree/utils.d.ts +8 -0
- package/types/deprecated/plugins/tree/walkTreeStrategy.d.ts +9 -0
- package/types/deprecated/plugins/virtualization/TreeVirtualizationPlugin.d.ts +1 -0
- package/types/deprecated/plugins/virtualization/index.d.ts +1 -0
- package/types/deprecated/renderers.d.ts +19 -0
- package/types/index.d.ts +4 -0
- package/types/parts/CheckboxSelectable.d.ts +9 -0
- package/types/parts/ChildrenCountDisplayer.d.ts +7 -0
- package/types/parts/ExpandCaret.d.ts +7 -0
- package/types/parts/Icon.d.ts +5 -0
- package/types/parts/NestingSpace.d.ts +13 -0
- package/types/parts/RadioSelectable.d.ts +9 -0
- package/types/parts/TreeItem.d.ts +16 -0
- package/types/parts/TreeItemText.d.ts +7 -0
- package/types/parts/TreeList.d.ts +11 -0
- package/types/plugins/dnd/TreeDndPlugin.d.ts +3 -0
- package/types/plugins/dnd/index.d.ts +1 -0
- package/types/plugins/index.d.ts +7 -0
- package/types/plugins/roving/TreeRovingPlugin.d.ts +1 -0
- package/types/plugins/roving/index.d.ts +1 -0
- package/types/plugins/searchable/SearchableTreePlugin.d.ts +1 -0
- package/types/plugins/searchable/index.d.ts +1 -0
- package/types/plugins/selectable/SelectablePluginTree.d.ts +1 -0
- package/types/plugins/selectable/index.d.ts +1 -0
- package/types/plugins/toolbar/TreeToolbarPlugin.d.ts +1 -0
- package/types/plugins/toolbar/index.d.ts +1 -0
- package/types/plugins/tree/TreeDataPlugin.d.ts +1 -0
- package/types/plugins/tree/index.d.ts +1 -0
- package/types/plugins/virtualization/TreeVirtualizationPlugin.d.ts +1 -0
- package/types/plugins/virtualization/index.d.ts +1 -0
- package/types/prop-types.d.ts +26 -0
- package/types/react-desc-prop-types.d.ts +115 -0
- package/types/related-components/TreeViewSearchBar.d.ts +13 -0
- package/types/utils/array-helpers.d.ts +2 -0
- package/types/utils/dnd-helpers.d.ts +38 -0
- package/types/utils/group-expands-helpers.d.ts +11 -0
- package/types/utils/keyboard-helpers.d.ts +3 -0
- package/types/utils/object-helpers.d.ts +2 -0
- package/types/utils/refs-helpers.d.ts +1 -0
- package/types/utils/selectable-helper.d.ts +3 -0
- package/types/utils/string-helpers.d.ts +1 -0
- package/types/utils/tree-helpers.d.ts +11 -0
- package/types/utils/useDnDHelpers.d.ts +6 -0
- package/types/utils/useInstanceRefActions.d.ts +3 -0
- package/types/utils/useTree.d.ts +12 -0
- package/TreeView/package.json +0 -10
- package/TreeViewContext/package.json +0 -10
- package/cjs/TreeView.js.map +0 -1
- package/cjs/TreeViewContext.js.map +0 -1
- package/cjs/config/cssClassesConstants.js.map +0 -1
- package/cjs/deprecated/TreeView.js.map +0 -1
- package/cjs/deprecated/__testUtils__/utils.js.map +0 -1
- package/cjs/deprecated/index.js.map +0 -1
- package/cjs/deprecated/plugins/dnd/TreeDndPlugin.js.map +0 -1
- package/cjs/deprecated/plugins/dnd/index.js.map +0 -1
- package/cjs/deprecated/plugins/dnd/renderers/DraggableItem.js.map +0 -1
- package/cjs/deprecated/plugins/dnd/renderers/DroppableList.js.map +0 -1
- package/cjs/deprecated/plugins/dnd/utils.js.map +0 -1
- package/cjs/deprecated/plugins/index.js.map +0 -1
- package/cjs/deprecated/plugins/roving/TreeRovingPlugin.js.map +0 -1
- package/cjs/deprecated/plugins/roving/index.js.map +0 -1
- package/cjs/deprecated/plugins/searchable/SearchableTreePlugin.js.map +0 -1
- package/cjs/deprecated/plugins/searchable/index.js.map +0 -1
- package/cjs/deprecated/plugins/searchable/utils.js.map +0 -1
- package/cjs/deprecated/plugins/selectable/SelectablePluginTree.js.map +0 -1
- package/cjs/deprecated/plugins/selectable/helper.js.map +0 -1
- package/cjs/deprecated/plugins/selectable/index.js.map +0 -1
- package/cjs/deprecated/plugins/selectable/utils.js.map +0 -1
- package/cjs/deprecated/plugins/toolbar/TreeToolbarPlugin.js.map +0 -1
- package/cjs/deprecated/plugins/toolbar/index.js.map +0 -1
- package/cjs/deprecated/plugins/tree/TreeDataPlugin.js.map +0 -1
- package/cjs/deprecated/plugins/tree/index.js.map +0 -1
- package/cjs/deprecated/plugins/tree/useExpandTreeState.js.map +0 -1
- package/cjs/deprecated/plugins/tree/utils.js.map +0 -1
- package/cjs/deprecated/plugins/tree/walkTreeStrategy.js.map +0 -1
- package/cjs/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js.map +0 -1
- package/cjs/deprecated/plugins/virtualization/index.js.map +0 -1
- package/cjs/deprecated/renderers.js.map +0 -1
- package/cjs/index-72490bed.js +0 -31
- package/cjs/index-72490bed.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/parts/CheckboxSelectable.js.map +0 -1
- package/cjs/parts/ChildrenCountDisplayer.js.map +0 -1
- package/cjs/parts/ExpandCaret.js.map +0 -1
- package/cjs/parts/Icon.js.map +0 -1
- package/cjs/parts/NestingSpace.js.map +0 -1
- package/cjs/parts/RadioSelectable.js.map +0 -1
- package/cjs/parts/TreeItem.js.map +0 -1
- package/cjs/parts/TreeItemText.js.map +0 -1
- package/cjs/parts/TreeList.js.map +0 -1
- package/cjs/plugins/dnd/TreeDndPlugin.js.map +0 -1
- package/cjs/plugins/dnd/index.js.map +0 -1
- package/cjs/plugins/index.js.map +0 -1
- package/cjs/plugins/roving/TreeRovingPlugin.js.map +0 -1
- package/cjs/plugins/roving/index.js.map +0 -1
- package/cjs/plugins/searchable/SearchableTreePlugin.js.map +0 -1
- package/cjs/plugins/searchable/index.js.map +0 -1
- package/cjs/plugins/selectable/SelectablePluginTree.js.map +0 -1
- package/cjs/plugins/selectable/index.js.map +0 -1
- package/cjs/plugins/toolbar/TreeToolbarPlugin.js.map +0 -1
- package/cjs/plugins/toolbar/index.js.map +0 -1
- package/cjs/plugins/tree/TreeDataPlugin.js.map +0 -1
- package/cjs/plugins/tree/index.js.map +0 -1
- package/cjs/plugins/virtualization/TreeVirtualizationPlugin.js.map +0 -1
- package/cjs/plugins/virtualization/index.js.map +0 -1
- package/cjs/prop-types.js.map +0 -1
- package/cjs/react-desc-prop-types.js.map +0 -1
- package/cjs/related-components/TreeViewSearchBar.js.map +0 -1
- package/cjs/utils/array-helpers.js.map +0 -1
- package/cjs/utils/dnd-helpers.js.map +0 -1
- package/cjs/utils/group-expands-helpers.js.map +0 -1
- package/cjs/utils/keyboard-helpers.js.map +0 -1
- package/cjs/utils/object-helpers.js.map +0 -1
- package/cjs/utils/refs-helpers.js.map +0 -1
- package/cjs/utils/selectable-helper.js.map +0 -1
- package/cjs/utils/string-helpers.js.map +0 -1
- package/cjs/utils/tree-helpers.js.map +0 -1
- package/cjs/utils/useDnDHelpers.js.map +0 -1
- package/cjs/utils/useInstanceRefActions.js.map +0 -1
- package/cjs/utils/useTree.js.map +0 -1
- package/config/cssClassesConstants/package.json +0 -10
- package/deprecated/TreeView/package.json +0 -10
- package/deprecated/__testUtils__/utils/package.json +0 -10
- package/deprecated/package.json +0 -10
- package/deprecated/plugins/dnd/TreeDndPlugin/package.json +0 -10
- package/deprecated/plugins/dnd/package.json +0 -10
- package/deprecated/plugins/dnd/renderers/DraggableItem/package.json +0 -10
- package/deprecated/plugins/dnd/renderers/DroppableList/package.json +0 -10
- package/deprecated/plugins/dnd/utils/package.json +0 -10
- package/deprecated/plugins/package.json +0 -10
- package/deprecated/plugins/roving/TreeRovingPlugin/package.json +0 -10
- package/deprecated/plugins/roving/package.json +0 -10
- package/deprecated/plugins/searchable/SearchableTreePlugin/package.json +0 -10
- package/deprecated/plugins/searchable/package.json +0 -10
- package/deprecated/plugins/searchable/utils/package.json +0 -10
- package/deprecated/plugins/selectable/SelectablePluginTree/package.json +0 -10
- package/deprecated/plugins/selectable/helper/package.json +0 -10
- package/deprecated/plugins/selectable/package.json +0 -10
- package/deprecated/plugins/selectable/utils/package.json +0 -10
- package/deprecated/plugins/toolbar/TreeToolbarPlugin/package.json +0 -10
- package/deprecated/plugins/toolbar/package.json +0 -10
- package/deprecated/plugins/tree/TreeDataPlugin/package.json +0 -10
- package/deprecated/plugins/tree/package.json +0 -10
- package/deprecated/plugins/tree/useExpandTreeState/package.json +0 -10
- package/deprecated/plugins/tree/utils/package.json +0 -10
- package/deprecated/plugins/tree/walkTreeStrategy/package.json +0 -10
- package/deprecated/plugins/virtualization/TreeVirtualizationPlugin/package.json +0 -10
- package/deprecated/plugins/virtualization/package.json +0 -10
- package/deprecated/renderers/package.json +0 -10
- package/esm/TreeView.js.map +0 -1
- package/esm/TreeViewContext.js.map +0 -1
- package/esm/config/cssClassesConstants.js.map +0 -1
- package/esm/deprecated/TreeView.js.map +0 -1
- package/esm/deprecated/__testUtils__/utils.js.map +0 -1
- package/esm/deprecated/index.js.map +0 -1
- package/esm/deprecated/plugins/dnd/TreeDndPlugin.js.map +0 -1
- package/esm/deprecated/plugins/dnd/index.js.map +0 -1
- package/esm/deprecated/plugins/dnd/renderers/DraggableItem.js.map +0 -1
- package/esm/deprecated/plugins/dnd/renderers/DroppableList.js.map +0 -1
- package/esm/deprecated/plugins/dnd/utils.js.map +0 -1
- package/esm/deprecated/plugins/index.js.map +0 -1
- package/esm/deprecated/plugins/roving/TreeRovingPlugin.js.map +0 -1
- package/esm/deprecated/plugins/roving/index.js.map +0 -1
- package/esm/deprecated/plugins/searchable/SearchableTreePlugin.js.map +0 -1
- package/esm/deprecated/plugins/searchable/index.js.map +0 -1
- package/esm/deprecated/plugins/searchable/utils.js.map +0 -1
- package/esm/deprecated/plugins/selectable/SelectablePluginTree.js.map +0 -1
- package/esm/deprecated/plugins/selectable/helper.js.map +0 -1
- package/esm/deprecated/plugins/selectable/index.js.map +0 -1
- package/esm/deprecated/plugins/selectable/utils.js.map +0 -1
- package/esm/deprecated/plugins/toolbar/TreeToolbarPlugin.js.map +0 -1
- package/esm/deprecated/plugins/toolbar/index.js.map +0 -1
- package/esm/deprecated/plugins/tree/TreeDataPlugin.js.map +0 -1
- package/esm/deprecated/plugins/tree/index.js.map +0 -1
- package/esm/deprecated/plugins/tree/useExpandTreeState.js.map +0 -1
- package/esm/deprecated/plugins/tree/utils.js.map +0 -1
- package/esm/deprecated/plugins/tree/walkTreeStrategy.js.map +0 -1
- package/esm/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js.map +0 -1
- package/esm/deprecated/plugins/virtualization/index.js.map +0 -1
- package/esm/deprecated/renderers.js.map +0 -1
- package/esm/index-6009bfe6.js +0 -29
- package/esm/index-6009bfe6.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/parts/CheckboxSelectable.js.map +0 -1
- package/esm/parts/ChildrenCountDisplayer.js.map +0 -1
- package/esm/parts/ExpandCaret.js.map +0 -1
- package/esm/parts/Icon.js.map +0 -1
- package/esm/parts/NestingSpace.js.map +0 -1
- package/esm/parts/RadioSelectable.js.map +0 -1
- package/esm/parts/TreeItem.js.map +0 -1
- package/esm/parts/TreeItemText.js.map +0 -1
- package/esm/parts/TreeList.js.map +0 -1
- package/esm/plugins/dnd/TreeDndPlugin.js.map +0 -1
- package/esm/plugins/dnd/index.js.map +0 -1
- package/esm/plugins/index.js.map +0 -1
- package/esm/plugins/roving/TreeRovingPlugin.js.map +0 -1
- package/esm/plugins/roving/index.js.map +0 -1
- package/esm/plugins/searchable/SearchableTreePlugin.js.map +0 -1
- package/esm/plugins/searchable/index.js.map +0 -1
- package/esm/plugins/selectable/SelectablePluginTree.js.map +0 -1
- package/esm/plugins/selectable/index.js.map +0 -1
- package/esm/plugins/toolbar/TreeToolbarPlugin.js.map +0 -1
- package/esm/plugins/toolbar/index.js.map +0 -1
- package/esm/plugins/tree/TreeDataPlugin.js.map +0 -1
- package/esm/plugins/tree/index.js.map +0 -1
- package/esm/plugins/virtualization/TreeVirtualizationPlugin.js.map +0 -1
- package/esm/plugins/virtualization/index.js.map +0 -1
- package/esm/prop-types.js.map +0 -1
- package/esm/react-desc-prop-types.js.map +0 -1
- package/esm/related-components/TreeViewSearchBar.js.map +0 -1
- package/esm/utils/array-helpers.js.map +0 -1
- package/esm/utils/dnd-helpers.js.map +0 -1
- package/esm/utils/group-expands-helpers.js.map +0 -1
- package/esm/utils/keyboard-helpers.js.map +0 -1
- package/esm/utils/object-helpers.js.map +0 -1
- package/esm/utils/refs-helpers.js.map +0 -1
- package/esm/utils/selectable-helper.js.map +0 -1
- package/esm/utils/string-helpers.js.map +0 -1
- package/esm/utils/tree-helpers.js.map +0 -1
- package/esm/utils/useDnDHelpers.js.map +0 -1
- package/esm/utils/useInstanceRefActions.js.map +0 -1
- package/esm/utils/useTree.js.map +0 -1
- package/parts/CheckboxSelectable/package.json +0 -10
- package/parts/ChildrenCountDisplayer/package.json +0 -10
- package/parts/ExpandCaret/package.json +0 -10
- package/parts/Icon/package.json +0 -10
- package/parts/NestingSpace/package.json +0 -10
- package/parts/RadioSelectable/package.json +0 -10
- package/parts/TreeItem/package.json +0 -10
- package/parts/TreeItemText/package.json +0 -10
- package/parts/TreeList/package.json +0 -10
- package/plugins/dnd/TreeDndPlugin/package.json +0 -10
- package/plugins/dnd/package.json +0 -10
- package/plugins/package.json +0 -10
- package/plugins/roving/TreeRovingPlugin/package.json +0 -10
- package/plugins/roving/package.json +0 -10
- package/plugins/searchable/SearchableTreePlugin/package.json +0 -10
- package/plugins/searchable/package.json +0 -10
- package/plugins/selectable/SelectablePluginTree/package.json +0 -10
- package/plugins/selectable/package.json +0 -10
- package/plugins/toolbar/TreeToolbarPlugin/package.json +0 -10
- package/plugins/toolbar/package.json +0 -10
- package/plugins/tree/TreeDataPlugin/package.json +0 -10
- package/plugins/tree/package.json +0 -10
- package/plugins/virtualization/TreeVirtualizationPlugin/package.json +0 -10
- package/plugins/virtualization/package.json +0 -10
- package/prop-types/package.json +0 -10
- package/react-desc-prop-types/package.json +0 -10
- package/related-components/TreeViewSearchBar/package.json +0 -10
- package/utils/array-helpers/package.json +0 -10
- package/utils/dnd-helpers/package.json +0 -10
- package/utils/group-expands-helpers/package.json +0 -10
- package/utils/keyboard-helpers/package.json +0 -10
- package/utils/object-helpers/package.json +0 -10
- package/utils/refs-helpers/package.json +0 -10
- package/utils/selectable-helper/package.json +0 -10
- package/utils/string-helpers/package.json +0 -10
- package/utils/tree-helpers/package.json +0 -10
- package/utils/useDnDHelpers/package.json +0 -10
- package/utils/useInstanceRefActions/package.json +0 -10
- 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,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 @@
|
|
|
1
|
+
export declare const TreeDndPlugin: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TreeDndPlugin';
|
|
File without changes
|
|
@@ -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 @@
|
|
|
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;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SelectablePluginTree';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {};
|
package/types/index.d.ts
ADDED
|
@@ -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,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,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 @@
|
|
|
1
|
+
export * from './TreeDndPlugin';
|
|
@@ -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
|
+
};
|