@elliemae/ds-treeview 2.0.0-alpha.1 → 2.0.0-alpha.13

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 (90) hide show
  1. package/cjs/TreeView.js +9 -3
  2. package/cjs/TreeViewContext.js +1 -1
  3. package/cjs/config/cssClassesConstants.js +1 -1
  4. package/cjs/deprecated/TreeView.js +11 -5
  5. package/cjs/deprecated/__testUtils__/utils.js +13 -4
  6. package/cjs/deprecated/plugins/dnd/TreeDndPlugin.js +17 -10
  7. package/cjs/deprecated/plugins/dnd/renderers/DraggableItem.js +13 -8
  8. package/cjs/deprecated/plugins/dnd/renderers/DroppableList.js +26 -20
  9. package/cjs/deprecated/plugins/dnd/utils.js +43 -35
  10. package/cjs/deprecated/plugins/roving/TreeRovingPlugin.js +18 -8
  11. package/cjs/deprecated/plugins/searchable/SearchableTreePlugin.js +7 -5
  12. package/cjs/deprecated/plugins/searchable/utils.js +1 -1
  13. package/cjs/deprecated/plugins/selectable/SelectablePluginTree.js +55 -35
  14. package/cjs/deprecated/plugins/toolbar/TreeToolbarPlugin.js +18 -14
  15. package/cjs/deprecated/plugins/tree/TreeDataPlugin.js +51 -40
  16. package/cjs/deprecated/plugins/tree/useExpandTreeState.js +10 -6
  17. package/cjs/deprecated/plugins/tree/utils.js +21 -8
  18. package/cjs/deprecated/plugins/tree/walkTreeStrategy.js +13 -9
  19. package/cjs/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js +27 -13
  20. package/cjs/deprecated/renderers.js +19 -11
  21. package/cjs/parts/CheckboxSelectable.js +10 -6
  22. package/cjs/parts/ChildrenCountDisplayer.js +3 -3
  23. package/cjs/parts/ExpandCaret.js +14 -14
  24. package/cjs/parts/Icon.js +4 -4
  25. package/cjs/parts/NestingSpace.js +8 -3
  26. package/cjs/parts/RadioSelectable.js +4 -5
  27. package/cjs/parts/TreeItem.js +44 -33
  28. package/cjs/parts/TreeItemText.js +27 -24
  29. package/cjs/parts/TreeList.js +30 -20
  30. package/cjs/plugins/dnd/TreeDndPlugin.js +2 -2
  31. package/cjs/prop-types.js +20 -20
  32. package/cjs/related-components/TreeViewSearchBar.js +2 -2
  33. package/cjs/utils/array-helpers.js +2 -0
  34. package/cjs/utils/dnd-helpers.js +29 -25
  35. package/cjs/utils/group-expands-helpers.js +7 -5
  36. package/cjs/utils/keyboard-helpers.js +7 -4
  37. package/cjs/utils/object-helpers.js +8 -0
  38. package/cjs/utils/refs-helpers.js +11 -1
  39. package/cjs/utils/selectable-helper.js +10 -3
  40. package/cjs/utils/tree-helpers.js +27 -9
  41. package/cjs/utils/useDnDHelpers.js +22 -15
  42. package/cjs/utils/useInstanceRefActions.js +14 -10
  43. package/cjs/utils/useTree.js +8 -2
  44. package/esm/TreeView.js +6 -0
  45. package/esm/config/cssClassesConstants.js +1 -1
  46. package/esm/deprecated/TreeView.js +7 -1
  47. package/esm/deprecated/__testUtils__/utils.js +10 -1
  48. package/esm/deprecated/plugins/dnd/TreeDndPlugin.js +14 -7
  49. package/esm/deprecated/plugins/dnd/renderers/DraggableItem.js +9 -3
  50. package/esm/deprecated/plugins/dnd/renderers/DroppableList.js +18 -11
  51. package/esm/deprecated/plugins/dnd/utils.js +35 -27
  52. package/esm/deprecated/plugins/roving/TreeRovingPlugin.js +12 -2
  53. package/esm/deprecated/plugins/searchable/SearchableTreePlugin.js +4 -1
  54. package/esm/deprecated/plugins/searchable/utils.js +1 -1
  55. package/esm/deprecated/plugins/selectable/SelectablePluginTree.js +45 -22
  56. package/esm/deprecated/plugins/toolbar/TreeToolbarPlugin.js +8 -3
  57. package/esm/deprecated/plugins/tree/TreeDataPlugin.js +35 -22
  58. package/esm/deprecated/plugins/tree/useExpandTreeState.js +7 -2
  59. package/esm/deprecated/plugins/tree/utils.js +19 -6
  60. package/esm/deprecated/plugins/tree/walkTreeStrategy.js +13 -9
  61. package/esm/deprecated/plugins/virtualization/TreeVirtualizationPlugin.js +24 -10
  62. package/esm/deprecated/renderers.js +17 -9
  63. package/esm/parts/CheckboxSelectable.js +7 -2
  64. package/esm/parts/ChildrenCountDisplayer.js +2 -2
  65. package/esm/parts/ExpandCaret.js +9 -7
  66. package/esm/parts/Icon.js +1 -1
  67. package/esm/parts/NestingSpace.js +6 -1
  68. package/esm/parts/RadioSelectable.js +3 -3
  69. package/esm/parts/TreeItem.js +34 -22
  70. package/esm/parts/TreeItemText.js +16 -13
  71. package/esm/parts/TreeList.js +25 -15
  72. package/esm/related-components/TreeViewSearchBar.js +1 -1
  73. package/esm/utils/array-helpers.js +2 -0
  74. package/esm/utils/dnd-helpers.js +29 -25
  75. package/esm/utils/group-expands-helpers.js +7 -5
  76. package/esm/utils/keyboard-helpers.js +6 -3
  77. package/esm/utils/object-helpers.js +8 -0
  78. package/esm/utils/refs-helpers.js +11 -1
  79. package/esm/utils/selectable-helper.js +9 -2
  80. package/esm/utils/tree-helpers.js +27 -9
  81. package/esm/utils/useDnDHelpers.js +21 -14
  82. package/esm/utils/useInstanceRefActions.js +14 -10
  83. package/esm/utils/useTree.js +6 -0
  84. package/package.json +14 -13
  85. package/types/TreeView.d.ts +118 -28
  86. package/types/deprecated/__testUtils__/utils.d.ts +49 -49
  87. package/types/deprecated/plugins/tree/useExpandTreeState.d.ts +12 -2
  88. package/types/react-desc-prop-types.d.ts +113 -27
  89. package/cjs/package.json +0 -7
  90. package/esm/package.json +0 -7
@@ -1,4 +1,10 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.constructor.js';
3
+ import 'core-js/modules/esnext.iterator.filter.js';
4
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
5
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
8
  import { useMemo, useState, useEffect, useCallback } from 'react';
3
9
  import TreeModel from 'tree-model';
4
10
  import { cloneDeep } from 'lodash';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-treeview",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.13",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Tree View",
6
6
  "module": "./esm/index.js",
@@ -319,32 +319,33 @@
319
319
  "generateSubmodules": true
320
320
  },
321
321
  "dependencies": {
322
- "@elliemae/ds-basic": "2.0.0-alpha.1",
323
- "@elliemae/ds-classnames": "2.0.0-alpha.1",
324
- "@elliemae/ds-dropdownmenu": "2.0.0-alpha.1",
325
- "@elliemae/ds-icons": "2.0.0-alpha.1",
326
- "@elliemae/ds-shared": "2.0.0-alpha.1",
327
- "@elliemae/ds-utilities": "2.0.0-alpha.1",
322
+ "@elliemae/ds-button": "2.0.0-alpha.13",
323
+ "@elliemae/ds-circular-progress-indicator": "2.0.0-alpha.13",
324
+ "@elliemae/ds-classnames": "2.0.0-alpha.13",
325
+ "@elliemae/ds-form": "2.0.0-alpha.13",
326
+ "@elliemae/ds-icons": "2.0.0-alpha.13",
327
+ "@elliemae/ds-shared": "2.0.0-alpha.13",
328
+ "@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.13",
329
+ "@elliemae/ds-utilities": "2.0.0-alpha.13",
328
330
  "@elliemae/react-sortable-hoc": "^1.0.0",
329
331
  "@john-osullivan/react-window-dynamic-fork": "1.9.0-alpha.1",
330
332
  "prop-types": "~15.7.2",
331
333
  "react-beautiful-dnd": "~13.0.0",
334
+ "react-desc": "~4.1.3",
332
335
  "react-highlight-words": "~0.17.0",
333
- "react-virtual": "^2.3.2",
334
- "react-virtualized-auto-sizer": "~1.0.6",
335
- "react-window": "~1.8.6",
336
+ "react-virtual": "~2.3.2",
336
337
  "resize-observer-polyfill": "~1.5.1",
337
- "stylesheet-helpers": "~0.2.2",
338
338
  "tree-model": "~1.0.7",
339
339
  "uuid": "~8.3.2"
340
340
  },
341
341
  "devDependencies": {
342
- "styled-components": "~5.3.1"
342
+ "@testing-library/react": "~12.1.2",
343
+ "styled-components": "~5.3.3"
343
344
  },
344
345
  "peerDependencies": {
345
346
  "lodash": "^4.17.21",
346
347
  "react": "~17.0.2",
347
348
  "react-dom": "^17.0.2",
348
- "styled-components": "^5.3.1"
349
+ "styled-components": "^5.3.3"
349
350
  }
350
351
  }
@@ -1,34 +1,120 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  import React from 'react';
2
3
  export declare function TreeView(props: any): JSX.Element;
3
4
  export declare namespace TreeView {
4
5
  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;
6
+ data: import("react-desc").PropTypesDescValidator;
7
+ plugins: {
8
+ deprecated: import("react-desc").PropTypesDescValidator;
9
+ };
10
+ selection: {
11
+ deprecated: import("react-desc").PropTypesDescValidator;
12
+ };
13
+ instanceRef: {
14
+ defaultValue<T = unknown>(arg: T): {
15
+ deprecated: import("react-desc").PropTypesDescValidator;
16
+ };
17
+ isRequired: import("react-desc").PropTypesDescValidator;
18
+ };
19
+ disableGroups: {
20
+ deprecated: import("react-desc").PropTypesDescValidator;
21
+ };
22
+ disableLeafs: {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ disableIcons: {
26
+ deprecated: import("react-desc").PropTypesDescValidator;
27
+ };
28
+ fluid: {
29
+ deprecated: import("react-desc").PropTypesDescValidator;
30
+ };
31
+ isMultiSelect: {
32
+ deprecated: import("react-desc").PropTypesDescValidator;
33
+ };
34
+ isSingleSelect: {
35
+ deprecated: import("react-desc").PropTypesDescValidator;
36
+ };
37
+ restrictDragAndDrop: {
38
+ deprecated: import("react-desc").PropTypesDescValidator;
39
+ };
40
+ showChildrenAmount: {
41
+ deprecated: import("react-desc").PropTypesDescValidator;
42
+ };
43
+ sortable: {
44
+ deprecated: import("react-desc").PropTypesDescValidator;
45
+ };
46
+ labelRenderer: {
47
+ defaultValue<T = unknown>(arg: T): {
48
+ deprecated: import("react-desc").PropTypesDescValidator;
49
+ };
50
+ isRequired: import("react-desc").PropTypesDescValidator;
51
+ };
52
+ onItemClick: {
53
+ defaultValue<T = unknown>(arg: T): {
54
+ deprecated: import("react-desc").PropTypesDescValidator;
55
+ };
56
+ isRequired: import("react-desc").PropTypesDescValidator;
57
+ };
58
+ onItemFocus: {
59
+ defaultValue<T = unknown>(arg: T): {
60
+ deprecated: import("react-desc").PropTypesDescValidator;
61
+ };
62
+ isRequired: import("react-desc").PropTypesDescValidator;
63
+ };
64
+ onVisibleItemsChange: {
65
+ defaultValue<T = unknown>(arg: T): {
66
+ deprecated: import("react-desc").PropTypesDescValidator;
67
+ };
68
+ isRequired: import("react-desc").PropTypesDescValidator;
69
+ };
70
+ onOrderChange: {
71
+ defaultValue<T = unknown>(arg: T): {
72
+ deprecated: import("react-desc").PropTypesDescValidator;
73
+ };
74
+ isRequired: import("react-desc").PropTypesDescValidator;
75
+ };
76
+ onSelectionChange: {
77
+ defaultValue<T = unknown>(arg: T): {
78
+ deprecated: import("react-desc").PropTypesDescValidator;
79
+ };
80
+ isRequired: import("react-desc").PropTypesDescValidator;
81
+ };
82
+ onExpandChange: {
83
+ defaultValue<T = unknown>(arg: T): {
84
+ deprecated: import("react-desc").PropTypesDescValidator;
85
+ };
86
+ isRequired: import("react-desc").PropTypesDescValidator;
87
+ };
88
+ rowSize: {
89
+ deprecated: import("react-desc").PropTypesDescValidator;
90
+ };
91
+ width: {
92
+ deprecated: import("react-desc").PropTypesDescValidator;
93
+ };
94
+ height: {
95
+ deprecated: import("react-desc").PropTypesDescValidator;
96
+ };
97
+ groupIcon: {
98
+ defaultValue<T = unknown>(arg: T): {
99
+ deprecated: import("react-desc").PropTypesDescValidator;
100
+ };
101
+ isRequired: import("react-desc").PropTypesDescValidator;
102
+ };
103
+ itemIcon: {
104
+ defaultValue<T = unknown>(arg: T): {
105
+ deprecated: import("react-desc").PropTypesDescValidator;
106
+ };
107
+ isRequired: import("react-desc").PropTypesDescValidator;
108
+ };
109
+ searchQuery: {
110
+ defaultValue<T = unknown>(arg: T): {
111
+ deprecated: import("react-desc").PropTypesDescValidator;
112
+ };
113
+ isRequired: import("react-desc").PropTypesDescValidator;
114
+ };
115
+ highlightOnlyQuery: {
116
+ deprecated: import("react-desc").PropTypesDescValidator;
117
+ };
32
118
  };
33
119
  var defaultProps: {
34
120
  plugins: never[];
@@ -63,5 +149,9 @@ export declare namespace TreeView {
63
149
  searchQuery: string;
64
150
  };
65
151
  }
66
- declare const TreeViewWithSchema: any;
152
+ declare const TreeViewWithSchema: {
153
+ (props?: any): JSX.Element;
154
+ propTypes: unknown;
155
+ toTypescript: () => import("react-desc").TypescriptSchema;
156
+ };
67
157
  export { TreeViewWithSchema };
@@ -15,58 +15,58 @@ export declare function getTreeItemsFromRender({ data, plugins, ...props }: {
15
15
  }, key?: string): {
16
16
  container: HTMLElement;
17
17
  baseElement: Element;
18
- debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format/build/types").PrettyFormatOptions | undefined) => void;
18
+ debug: (baseElement?: Element | DocumentFragment | (Element | DocumentFragment)[] | undefined, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
19
19
  rerender: (ui: React.ReactElement<any, string | React.JSXElementConstructor<any>>) => void;
20
20
  unmount: () => void;
21
21
  asFragment: () => DocumentFragment;
22
- getByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
23
- getAllByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
24
- queryByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
25
- queryAllByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
26
- findByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
27
- findAllByLabelText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
28
- getByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
29
- getAllByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
30
- queryByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
31
- queryAllByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
32
- findByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
33
- findAllByPlaceholderText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
34
- getByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
35
- getAllByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
36
- queryByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
37
- queryAllByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
38
- findByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
39
- findAllByText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
40
- getByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
41
- getAllByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
42
- queryByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
43
- queryAllByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
44
- findByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
45
- findAllByAltText: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
46
- getByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
47
- getAllByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
48
- queryByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
49
- queryAllByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
50
- findByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
51
- findAllByTitle: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
52
- getByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
53
- getAllByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
54
- queryByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
55
- queryAllByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
56
- findByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
57
- findAllByDisplayValue: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
58
- getByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
59
- getAllByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
60
- queryByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
61
- queryAllByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
62
- findByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
63
- findAllByRole: (text: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
64
- getByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement;
65
- queryByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement | null;
66
- queryAllByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
67
- findByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
68
- findAllByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
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
69
  items: HTMLElement[];
70
70
  itemsMap: Map<any, any>;
71
- getAllByTestId: (text: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: unknown) => HTMLElement[];
71
+ getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
72
72
  };
@@ -1,4 +1,14 @@
1
1
  export declare const useExpandTreeState: (instance: any) => {
2
- state: any;
3
- actions: 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
+ };
4
14
  };
@@ -1,29 +1,115 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  export declare const TreeViewPropTypes: {
2
- data: any;
3
- plugins: any;
4
- selection: any;
5
- instanceRef: any;
6
- disableGroups: any;
7
- disableLeafs: any;
8
- disableIcons: any;
9
- fluid: any;
10
- isMultiSelect: any;
11
- isSingleSelect: any;
12
- restrictDragAndDrop: any;
13
- showChildrenAmount: any;
14
- sortable: any;
15
- labelRenderer: any;
16
- onItemClick: any;
17
- onItemFocus: any;
18
- onVisibleItemsChange: any;
19
- onOrderChange: any;
20
- onSelectionChange: any;
21
- onExpandChange: any;
22
- rowSize: any;
23
- width: any;
24
- height: any;
25
- groupIcon: any;
26
- itemIcon: any;
27
- searchQuery: any;
28
- highlightOnlyQuery: any;
3
+ data: import("react-desc").PropTypesDescValidator;
4
+ plugins: {
5
+ deprecated: import("react-desc").PropTypesDescValidator;
6
+ };
7
+ selection: {
8
+ deprecated: import("react-desc").PropTypesDescValidator;
9
+ };
10
+ instanceRef: {
11
+ defaultValue<T = unknown>(arg: T): {
12
+ deprecated: import("react-desc").PropTypesDescValidator;
13
+ };
14
+ isRequired: import("react-desc").PropTypesDescValidator;
15
+ };
16
+ disableGroups: {
17
+ deprecated: import("react-desc").PropTypesDescValidator;
18
+ };
19
+ disableLeafs: {
20
+ deprecated: import("react-desc").PropTypesDescValidator;
21
+ };
22
+ disableIcons: {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ fluid: {
26
+ deprecated: import("react-desc").PropTypesDescValidator;
27
+ };
28
+ isMultiSelect: {
29
+ deprecated: import("react-desc").PropTypesDescValidator;
30
+ };
31
+ isSingleSelect: {
32
+ deprecated: import("react-desc").PropTypesDescValidator;
33
+ };
34
+ restrictDragAndDrop: {
35
+ deprecated: import("react-desc").PropTypesDescValidator;
36
+ };
37
+ showChildrenAmount: {
38
+ deprecated: import("react-desc").PropTypesDescValidator;
39
+ };
40
+ sortable: {
41
+ deprecated: import("react-desc").PropTypesDescValidator;
42
+ };
43
+ labelRenderer: {
44
+ defaultValue<T = unknown>(arg: T): {
45
+ deprecated: import("react-desc").PropTypesDescValidator;
46
+ };
47
+ isRequired: import("react-desc").PropTypesDescValidator;
48
+ };
49
+ onItemClick: {
50
+ defaultValue<T = unknown>(arg: T): {
51
+ deprecated: import("react-desc").PropTypesDescValidator;
52
+ };
53
+ isRequired: import("react-desc").PropTypesDescValidator;
54
+ };
55
+ onItemFocus: {
56
+ defaultValue<T = unknown>(arg: T): {
57
+ deprecated: import("react-desc").PropTypesDescValidator;
58
+ };
59
+ isRequired: import("react-desc").PropTypesDescValidator;
60
+ };
61
+ onVisibleItemsChange: {
62
+ defaultValue<T = unknown>(arg: T): {
63
+ deprecated: import("react-desc").PropTypesDescValidator;
64
+ };
65
+ isRequired: import("react-desc").PropTypesDescValidator;
66
+ };
67
+ onOrderChange: {
68
+ defaultValue<T = unknown>(arg: T): {
69
+ deprecated: import("react-desc").PropTypesDescValidator;
70
+ };
71
+ isRequired: import("react-desc").PropTypesDescValidator;
72
+ };
73
+ onSelectionChange: {
74
+ defaultValue<T = unknown>(arg: T): {
75
+ deprecated: import("react-desc").PropTypesDescValidator;
76
+ };
77
+ isRequired: import("react-desc").PropTypesDescValidator;
78
+ };
79
+ onExpandChange: {
80
+ defaultValue<T = unknown>(arg: T): {
81
+ deprecated: import("react-desc").PropTypesDescValidator;
82
+ };
83
+ isRequired: import("react-desc").PropTypesDescValidator;
84
+ };
85
+ rowSize: {
86
+ deprecated: import("react-desc").PropTypesDescValidator;
87
+ };
88
+ width: {
89
+ deprecated: import("react-desc").PropTypesDescValidator;
90
+ };
91
+ height: {
92
+ deprecated: import("react-desc").PropTypesDescValidator;
93
+ };
94
+ groupIcon: {
95
+ defaultValue<T = unknown>(arg: T): {
96
+ deprecated: import("react-desc").PropTypesDescValidator;
97
+ };
98
+ isRequired: import("react-desc").PropTypesDescValidator;
99
+ };
100
+ itemIcon: {
101
+ defaultValue<T = unknown>(arg: T): {
102
+ deprecated: import("react-desc").PropTypesDescValidator;
103
+ };
104
+ isRequired: import("react-desc").PropTypesDescValidator;
105
+ };
106
+ searchQuery: {
107
+ defaultValue<T = unknown>(arg: T): {
108
+ deprecated: import("react-desc").PropTypesDescValidator;
109
+ };
110
+ isRequired: import("react-desc").PropTypesDescValidator;
111
+ };
112
+ highlightOnlyQuery: {
113
+ deprecated: import("react-desc").PropTypesDescValidator;
114
+ };
29
115
  };
package/cjs/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "commonjs",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }
package/esm/package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "type": "module",
3
- "sideEffects": [
4
- "*.css",
5
- "*.scss"
6
- ]
7
- }