@elliemae/ds-treeview 2.0.0-alpha.10 → 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 (60) hide show
  1. package/cjs/TreeView.js +1 -0
  2. package/cjs/config/cssClassesConstants.js +1 -1
  3. package/cjs/deprecated/TreeView.js +2 -1
  4. package/cjs/deprecated/__testUtils__/utils.js +1 -0
  5. package/cjs/deprecated/plugins/dnd/TreeDndPlugin.js +1 -0
  6. package/cjs/deprecated/plugins/dnd/renderers/DraggableItem.js +3 -2
  7. package/cjs/deprecated/plugins/dnd/renderers/DroppableList.js +1 -0
  8. package/cjs/deprecated/plugins/dnd/utils.js +1 -0
  9. package/cjs/deprecated/plugins/roving/TreeRovingPlugin.js +1 -0
  10. package/cjs/deprecated/plugins/searchable/utils.js +1 -1
  11. package/cjs/deprecated/plugins/selectable/SelectablePluginTree.js +1 -0
  12. package/cjs/deprecated/plugins/tree/TreeDataPlugin.js +7 -6
  13. package/cjs/deprecated/plugins/tree/useExpandTreeState.js +1 -0
  14. package/cjs/deprecated/plugins/tree/utils.js +2 -2
  15. package/cjs/deprecated/plugins/tree/walkTreeStrategy.js +2 -0
  16. package/cjs/deprecated/renderers.js +2 -2
  17. package/cjs/parts/ChildrenCountDisplayer.js +2 -2
  18. package/cjs/parts/ExpandCaret.js +1 -1
  19. package/cjs/parts/NestingSpace.js +1 -1
  20. package/cjs/parts/RadioSelectable.js +1 -1
  21. package/cjs/parts/TreeItem.js +6 -5
  22. package/cjs/parts/TreeItemText.js +6 -6
  23. package/cjs/parts/TreeList.js +10 -10
  24. package/cjs/utils/array-helpers.js +2 -0
  25. package/cjs/utils/tree-helpers.js +1 -1
  26. package/cjs/utils/useDnDHelpers.js +3 -2
  27. package/cjs/utils/useInstanceRefActions.js +1 -0
  28. package/cjs/utils/useTree.js +1 -0
  29. package/esm/TreeView.js +1 -0
  30. package/esm/config/cssClassesConstants.js +1 -1
  31. package/esm/deprecated/TreeView.js +2 -1
  32. package/esm/deprecated/__testUtils__/utils.js +1 -0
  33. package/esm/deprecated/plugins/dnd/TreeDndPlugin.js +1 -0
  34. package/esm/deprecated/plugins/dnd/renderers/DraggableItem.js +3 -2
  35. package/esm/deprecated/plugins/dnd/renderers/DroppableList.js +1 -0
  36. package/esm/deprecated/plugins/dnd/utils.js +1 -0
  37. package/esm/deprecated/plugins/roving/TreeRovingPlugin.js +1 -0
  38. package/esm/deprecated/plugins/searchable/utils.js +1 -1
  39. package/esm/deprecated/plugins/selectable/SelectablePluginTree.js +1 -0
  40. package/esm/deprecated/plugins/tree/TreeDataPlugin.js +7 -6
  41. package/esm/deprecated/plugins/tree/useExpandTreeState.js +1 -0
  42. package/esm/deprecated/plugins/tree/utils.js +2 -2
  43. package/esm/deprecated/plugins/tree/walkTreeStrategy.js +2 -0
  44. package/esm/deprecated/renderers.js +2 -2
  45. package/esm/parts/ChildrenCountDisplayer.js +2 -2
  46. package/esm/parts/ExpandCaret.js +1 -1
  47. package/esm/parts/NestingSpace.js +1 -1
  48. package/esm/parts/RadioSelectable.js +1 -1
  49. package/esm/parts/TreeItem.js +6 -5
  50. package/esm/parts/TreeItemText.js +6 -6
  51. package/esm/parts/TreeList.js +10 -10
  52. package/esm/utils/array-helpers.js +2 -0
  53. package/esm/utils/tree-helpers.js +1 -1
  54. package/esm/utils/useDnDHelpers.js +3 -2
  55. package/esm/utils/useInstanceRefActions.js +1 -0
  56. package/esm/utils/useTree.js +1 -0
  57. package/package.json +7 -7
  58. package/types/deprecated/__testUtils__/utils.d.ts +48 -48
  59. package/cjs/package.json +0 -7
  60. package/esm/package.json +0 -7
package/cjs/TreeView.js CHANGED
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
+ require('core-js/modules/web.dom-collections.iterator.js');
7
8
  var React = require('react');
8
9
  var reactVirtual = require('react-virtual');
9
10
  var uuid = require('uuid');
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const DSTreeViewPrefix = 'em-ds';
6
6
  const treeItemBlockName = 'tree-item';
7
7
  const treeListBlockName = 'tree-list';
8
- const treeListNoItemsBn = `${treeListBlockName}-no-items`;
8
+ const treeListNoItemsBn = "".concat(treeListBlockName, "-no-items");
9
9
 
10
10
  exports.DSTreeViewPrefix = DSTreeViewPrefix;
11
11
  exports.treeItemBlockName = treeItemBlockName;
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
6
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
7
  var _jsx = require('@babel/runtime/helpers/jsx');
8
+ require('core-js/modules/web.dom-collections.iterator.js');
8
9
  require('react');
9
10
  var useDataList = require('@elliemae/ds-shared/useDataList');
10
11
  var renderers = require('./renderers.js');
@@ -59,7 +60,7 @@ function TreeView(_ref) {
59
60
  return wrapComponentIfExists(Wrapper, /*#__PURE__*/jsxRuntime.jsx(ListComponent, _objectSpread(_objectSpread({
60
61
  records: instance.records
61
62
  }, getListProps()), {}, {
62
- className: `em-ds-tv-row-size-${rowSize}`
63
+ className: "em-ds-tv-row-size-".concat(rowSize)
63
64
  })));
64
65
  }
65
66
 
@@ -17,6 +17,7 @@ require('core-js/modules/esnext.map.merge.js');
17
17
  require('core-js/modules/esnext.map.reduce.js');
18
18
  require('core-js/modules/esnext.map.some.js');
19
19
  require('core-js/modules/esnext.map.update.js');
20
+ require('core-js/modules/web.dom-collections.iterator.js');
20
21
  require('core-js/modules/es.string.replace.js');
21
22
  require('react');
22
23
  var react = require('@testing-library/react');
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
+ require('core-js/modules/web.dom-collections.iterator.js');
6
7
  var React = require('react');
7
8
  var utils$1 = require('@elliemae/ds-utilities/utils');
8
9
  var createInstancePlugin = require('@elliemae/ds-shared/createDataInstance/createInstancePlugin');
@@ -3,6 +3,7 @@
3
3
  var _jsx = require('@babel/runtime/helpers/jsx');
4
4
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
5
5
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
6
+ require('core-js/modules/web.dom-collections.iterator.js');
6
7
  require('react');
7
8
  var reactBeautifulDnd = require('react-beautiful-dnd');
8
9
  var GripperVertical = require('@elliemae/ds-icons/GripperVertical');
@@ -39,7 +40,7 @@ const DraggableItem = (renderers // , instance
39
40
  isDragDisabled: isDragDisabled,
40
41
  draggableId: String(record.id),
41
42
  index: index
42
- }, `${record.id}-draggable`, (provided, snapshot) => {
43
+ }, "".concat(record.id, "-draggable"), (provided, snapshot) => {
43
44
  const _getDraggableProps = utils.getDraggableProps(props, provided, snapshot),
44
45
  {
45
46
  key
@@ -53,7 +54,7 @@ const DraggableItem = (renderers // , instance
53
54
  }, provided.dragHandleProps), {}, {
54
55
  className: "drag-handle",
55
56
  tabIndex: isItemFocused ? 0 : -1
56
- }), `${record.id}-drag-handle`), ...(props.leftAddons || [])],
57
+ }), "".concat(record.id, "-drag-handle")), ...(props.leftAddons || [])],
57
58
  children: props.children
58
59
  }), key);
59
60
  });
@@ -3,6 +3,7 @@
3
3
  var _jsx = require('@babel/runtime/helpers/jsx');
4
4
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
5
5
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
6
+ require('core-js/modules/web.dom-collections.iterator.js');
6
7
  var React = require('react');
7
8
  var reactBeautifulDnd = require('react-beautiful-dnd');
8
9
  var utils$2 = require('@elliemae/ds-utilities/utils');
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
+ require('core-js/modules/web.dom-collections.iterator.js');
6
7
  var utils = require('@elliemae/ds-utilities/utils');
7
8
  var system = require('@elliemae/ds-utilities/system');
8
9
 
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
6
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
7
  var _jsx = require('@babel/runtime/helpers/jsx');
8
+ require('core-js/modules/web.dom-collections.iterator.js');
8
9
  var React = require('react');
9
10
  var FocusGroupProvider = require('@elliemae/ds-shared/FocusGroup/FocusGroupManager');
10
11
  var useFocusGroupItem = require('@elliemae/ds-shared/FocusGroup/useFocusGroupItem');
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const getListFromDocument = document.querySelector(`[data-testid="tree-list"]`);
5
+ const getListFromDocument = document.querySelector("[data-testid=\"tree-list\"]");
6
6
 
7
7
  exports.getListFromDocument = getListFromDocument;
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
+ require('core-js/modules/web.dom-collections.iterator.js');
7
8
  var React = require('react');
8
9
  var Checkbox = require('@elliemae/ds-basic/form/Checkbox');
9
10
  var Radio = require('@elliemae/ds-basic/form/Radio');
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _jsx = require('@babel/runtime/helpers/jsx');
6
6
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
7
+ require('core-js/modules/web.dom-collections.iterator.js');
7
8
  var React = require('react');
8
9
  var utils = require('@elliemae/ds-utilities/utils');
9
10
  var Button = require('@elliemae/ds-basic/Button');
@@ -31,7 +32,7 @@ var _ArrowheadDown, _ArrowheadRight;
31
32
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
32
33
 
33
34
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
34
- const ItemContent = dsClassnames.aggregatedClasses('div')(`${renderers.treeItemBlockName}-content`);
35
+ const ItemContent = dsClassnames.aggregatedClasses('div')("".concat(renderers.treeItemBlockName, "-content"));
35
36
  const ItemValue = dsClassnames.aggregatedClasses('span')(renderers.treeItemBlockName, 'value');
36
37
 
37
38
  const noop = () => null;
@@ -45,7 +46,7 @@ const getItemNestingLeftPadding = (level, opts) => {
45
46
  }, opts);
46
47
 
47
48
  const groupLeftPadding = spaceForNestingLevel * (level - 1);
48
- return isChild ? `${groupLeftPadding + spaceForNestingLevel - 0.1}em` : `${groupLeftPadding}em`;
49
+ return isChild ? "".concat(groupLeftPadding + spaceForNestingLevel - 0.1, "em") : "".concat(groupLeftPadding, "em");
49
50
  };
50
51
 
51
52
  const itemRenderer = (value, itemProps, instance) => {
@@ -66,9 +67,9 @@ const itemRenderer = (value, itemProps, instance) => {
66
67
  const amountChildren = Number(utils$1.getItemChildrenLength(record));
67
68
  const renderedLabel = utils.isFunction(labelRenderer) && labelRenderer(value, itemProps) || value;
68
69
  return /*#__PURE__*/_jsx__default["default"](ItemContent, {
69
- "data-testid": `${renderers.treeItemBlockName}-content`,
70
+ "data-testid": "".concat(renderers.treeItemBlockName, "-content"),
70
71
  onClick: handleItemClick
71
- }, void 0, /*#__PURE__*/_jsx__default["default"](ItemValue, {}, void 0, renderedLabel, showChildrenAmount && record.isGroup && ` (${amountChildren})`));
72
+ }, void 0, /*#__PURE__*/_jsx__default["default"](ItemValue, {}, void 0, renderedLabel, showChildrenAmount && record.isGroup && " (".concat(amountChildren, ")")));
72
73
  };
73
74
 
74
75
  itemRenderer.order = 100;
@@ -134,7 +135,7 @@ const TreePluginList = createInstancePlugin__default["default"]('tree-data', {
134
135
  size: "s",
135
136
  tabIndex: -1 // eslint-disable-next-line max-lines
136
137
 
137
- }, `${record.id}-expand-addon`);
138
+ }, "".concat(record.id, "-expand-addon"));
138
139
 
139
140
  const iconAddon = icon && /*#__PURE__*/React__default["default"].cloneElement(icon, {
140
141
  'data-testid': record.isGroup ? 'tree-item-group-icon' : 'tree-item-icon',
@@ -146,7 +147,7 @@ const TreePluginList = createInstancePlugin__default["default"]('tree-data', {
146
147
  style: {
147
148
  width: itemNestingLeftPadding
148
149
  }
149
- }, `${record.id}-space-addon`);
150
+ }, "".concat(record.id, "-space-addon"));
150
151
 
151
152
  return _objectSpread(_objectSpread({}, props), {}, {
152
153
  'data-id': record.id,
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
+ require('core-js/modules/web.dom-collections.iterator.js');
6
7
  var React = require('react');
7
8
  var useExpandState = require('@elliemae/ds-utilities/hooks/useExpandState');
8
9
  var utils = require('@elliemae/ds-utilities/utils');
@@ -9,8 +9,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
  var get__default = /*#__PURE__*/_interopDefaultLegacy(get);
10
10
 
11
11
  const getParentId = record => get__default["default"](record, ['parentNode', 'id']);
12
- const findItemOnDocument = id => document.querySelector(`[data-id="${id}"]`);
13
- const getListFromDocument = () => document.querySelector(`[data-testid="tree-list"]`);
12
+ const findItemOnDocument = id => document.querySelector("[data-id=\"".concat(id, "\"]"));
13
+ const getListFromDocument = () => document.querySelector("[data-testid=\"tree-list\"]");
14
14
  const getParentChildren = (record, childrenKey = 'children') => get__default["default"](record, ['parentNode', 'data', childrenKey]);
15
15
  const getItemLabel = (record, nameKey = 'name') => get__default["default"](record, ['data', nameKey]);
16
16
  const getItemChildren = (record, childrenKey = 'children') => get__default["default"](record, ['data', childrenKey]);
@@ -2,6 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('core-js/modules/web.dom-collections.iterator.js');
6
+
5
7
  function getPath(parentNode, index, childrenKey) {
6
8
  if (!parentNode) return [index];
7
9
  return [...parentNode.path, childrenKey, index];
@@ -22,7 +22,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
22
22
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
23
23
  const treeListBlockName = 'tree-list';
24
24
  const treeItemBlockName = 'tree-item';
25
- const treeListNoItemsBn = `${treeListBlockName}-no-items`;
25
+ const treeListNoItemsBn = "".concat(treeListBlockName, "-no-items");
26
26
  const TreeListItem = dsClassnames.aggregatedClasses('li', {
27
27
  'data-testid': treeItemBlockName,
28
28
  role: 'treeitem'
@@ -34,7 +34,7 @@ const TreeList = dsClassnames.aggregatedClasses('ul', {
34
34
  })(treeListBlockName, null, ({
35
35
  rowSize
36
36
  }) => ({
37
- [`rowsize-${rowSize}`]: rowSize
37
+ ["rowsize-".concat(rowSize)]: rowSize
38
38
  }));
39
39
  const TreeListNoItems = dsClassnames.aggregatedClasses('div', {
40
40
  'data-testid': treeListNoItemsBn
@@ -10,7 +10,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
 
11
11
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
12
12
 
13
- const className = `${cssClassesConstants.DSTreeViewPrefix}-${cssClassesConstants.treeItemBlockName}-children-count-displayer`;
13
+ const className = "".concat(cssClassesConstants.DSTreeViewPrefix, "-").concat(cssClassesConstants.treeItemBlockName, "-children-count-displayer");
14
14
  const ChildrenCountDisplayer = props => {
15
15
  const {
16
16
  item
@@ -24,7 +24,7 @@ const ChildrenCountDisplayer = props => {
24
24
  return /*#__PURE__*/_jsx__default["default"]("span", {
25
25
  "data-testid": "tree-item-children-count-displayer",
26
26
  className: className
27
- }, void 0, ` | ${children.length} Items`);
27
+ }, void 0, " | ".concat(children.length, " Items"));
28
28
  };
29
29
 
30
30
  exports.ChildrenCountDisplayer = ChildrenCountDisplayer;
@@ -77,7 +77,7 @@ const ExpandCaret = props => {
77
77
  },
78
78
  size: "s",
79
79
  tabIndex: -1
80
- }, `${id}-expand-addon`);
80
+ }, "".concat(id, "-expand-addon"));
81
81
  return /*#__PURE__*/_jsx__default["default"]("div", {
82
82
  style: {
83
83
  width: '24px'
@@ -24,7 +24,7 @@ const getItemNestingLeftPadding = (level, opts) => {
24
24
  const finalLeftPadding = groupLeftPadding + spaceForNestingLevel - 0.1; // root level left-padding would be negative and would not be applied
25
25
  // if "root-level" nesting, then defaults to 0 left-padding.
26
26
 
27
- return finalLeftPadding > 0 ? `${finalLeftPadding}em` : '0';
27
+ return finalLeftPadding > 0 ? "".concat(finalLeftPadding, "em") : '0';
28
28
  };
29
29
 
30
30
  const NestingSpace = props => {
@@ -47,7 +47,7 @@ function RadioSelectable(props) {
47
47
  };
48
48
  if (onSelectionChange) onSelectionChange(newSelectionHasmap, item, indexAndScrollTo);
49
49
  }, [item, id, onSelectionChange, scrollToIndex]);
50
- const radioName = React.useMemo(() => `radios-${uniqueTreeViewUUID}`, [uniqueTreeViewUUID]);
50
+ const radioName = React.useMemo(() => "radios-".concat(uniqueTreeViewUUID), [uniqueTreeViewUUID]);
51
51
  return /*#__PURE__*/_jsx__default["default"](Radio__default["default"], {
52
52
  checked: selectedCheckboxes[id] === true,
53
53
  name: radioName,
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
6
  var _jsx = require('@babel/runtime/helpers/jsx');
7
+ require('core-js/modules/web.dom-collections.iterator.js');
7
8
  var React = require('react');
8
9
  var reactSortableHoc = require('@elliemae/react-sortable-hoc');
9
10
  var dsClassnames = require('@elliemae/ds-classnames');
@@ -47,7 +48,7 @@ const DnDHandle = reactSortableHoc.SortableHandle(({
47
48
  }
48
49
  },
49
50
  tabIndex: "0"
50
- }, `${id}-drag-handle`));
51
+ }, "".concat(id, "-drag-handle")));
51
52
  const TreeItem = props => {
52
53
  const {
53
54
  item,
@@ -106,7 +107,7 @@ const TreeItem = props => {
106
107
  isAfter,
107
108
  isValid
108
109
  } = relativeMouseCord;
109
- let className = `${cssClassesConstants.DSTreeViewPrefix}-${cssClassesConstants.treeItemBlockName}${isValid ? '--valid' : '--invalid'}`;
110
+ let className = "".concat(cssClassesConstants.DSTreeViewPrefix, "-").concat(cssClassesConstants.treeItemBlockName).concat(isValid ? '--valid' : '--invalid');
110
111
  if (isBefore) className += '-drop-before';else if (isAfter) className += '-drop-after';else className += '-drop-in';
111
112
  return className;
112
113
  }, [withDragAndDrop, relativeMouseCord, isDraggingOverThis]);
@@ -114,13 +115,13 @@ const TreeItem = props => {
114
115
  const hoverClassName = React.useMemo(() => (hoverItem === null || hoverItem === void 0 ? void 0 : hoverItem.id) !== item.id || withDragAndDrop && isDragging ? '' : 'hover', [hoverItem, withDragAndDrop, isDragging]);
115
116
  const fixedHeightClassname = React.useMemo(() => {
116
117
  if (labelOverflow === 'truncate') {
117
- if (rowSize === 'compact') return `${cssClassesConstants.DSTreeViewPrefix}-${cssClassesConstants.treeItemBlockName}--fixed-height-compact`;
118
- return `${cssClassesConstants.DSTreeViewPrefix}-${cssClassesConstants.treeItemBlockName}--fixed-height`;
118
+ if (rowSize === 'compact') return "".concat(cssClassesConstants.DSTreeViewPrefix, "-").concat(cssClassesConstants.treeItemBlockName, "--fixed-height-compact");
119
+ return "".concat(cssClassesConstants.DSTreeViewPrefix, "-").concat(cssClassesConstants.treeItemBlockName, "--fixed-height");
119
120
  }
120
121
 
121
122
  return '';
122
123
  }, [labelOverflow, rowSize]);
123
- const finalClassName = React.useMemo(() => `${dropPreviewClassName} ${fixedHeightClassname} ${selectedClassName} ${hoverClassName}`, [dropPreviewClassName, selectedClassName, hoverClassName, fixedHeightClassname]);
124
+ const finalClassName = React.useMemo(() => "".concat(dropPreviewClassName, " ").concat(fixedHeightClassname, " ").concat(selectedClassName, " ").concat(hoverClassName), [dropPreviewClassName, selectedClassName, hoverClassName, fixedHeightClassname]);
124
125
  const handleItemClick = React.useCallback(e => {
125
126
  onItemClick(item, e);
126
127
  setFocusedItem(item);
@@ -17,11 +17,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
17
17
  var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
18
18
  var Highlighter__default = /*#__PURE__*/_interopDefaultLegacy(Highlighter);
19
19
 
20
- const ItemContent = dsClassnames.aggregatedClasses('div')(`${cssClassesConstants.treeItemBlockName}-content`);
20
+ const ItemContent = dsClassnames.aggregatedClasses('div')("".concat(cssClassesConstants.treeItemBlockName, "-content"));
21
21
  const ItemValue = dsClassnames.aggregatedClasses('span')(cssClassesConstants.treeItemBlockName, 'value'); // const wrapperClassName = `${DSTreeViewPrefix}-${treeItemBlockName}-content`;
22
22
 
23
- const classNameModifierWrapAll = `${cssClassesConstants.DSTreeViewPrefix}-${cssClassesConstants.treeItemBlockName}__value--wrap-all`;
24
- const classNameModifierTruncate = `${cssClassesConstants.DSTreeViewPrefix}-${cssClassesConstants.treeItemBlockName}__value--truncate`; // eslint-disable-next-line react/prop-types
23
+ const classNameModifierWrapAll = "".concat(cssClassesConstants.DSTreeViewPrefix, "-").concat(cssClassesConstants.treeItemBlockName, "__value--wrap-all");
24
+ const classNameModifierTruncate = "".concat(cssClassesConstants.DSTreeViewPrefix, "-").concat(cssClassesConstants.treeItemBlockName, "__value--truncate"); // eslint-disable-next-line react/prop-types
25
25
 
26
26
  const CustomHighlight = ({
27
27
  children
@@ -93,10 +93,10 @@ function TreeItemText(props) {
93
93
  });
94
94
  }, [item, searchQuery, nameKey, showChildrenAmount, labelOverflow]);
95
95
  let className = '';
96
- if (labelOverflow === 'wrap-all') className += `${classNameModifierWrapAll} `;
97
- if (labelOverflow === 'truncate') className += `${classNameModifierTruncate} `;
96
+ if (labelOverflow === 'wrap-all') className += "".concat(classNameModifierWrapAll, " ");
97
+ if (labelOverflow === 'truncate') className += "".concat(classNameModifierTruncate, " ");
98
98
  return /*#__PURE__*/_jsx__default["default"](ItemContent, {
99
- "data-testid": `${cssClassesConstants.treeItemBlockName}-content`
99
+ "data-testid": "".concat(cssClassesConstants.treeItemBlockName, "-content")
100
100
  }, void 0, /*#__PURE__*/_jsx__default["default"](ItemValue, {
101
101
  className: className
102
102
  }, void 0, Text));
@@ -21,7 +21,7 @@ var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
21
21
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
22
22
 
23
23
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
24
- const treeListNoItemsBn = `${cssClassesConstants.treeListBlockName}-no-items`;
24
+ const treeListNoItemsBn = "".concat(cssClassesConstants.treeListBlockName, "-no-items");
25
25
  const TreeListNoItems = dsClassnames.aggregatedClasses('div', {
26
26
  'data-testid': treeListNoItemsBn
27
27
  })(treeListNoItemsBn);
@@ -31,10 +31,10 @@ const TreeListWrapper = dsClassnames.aggregatedClasses('ul', {
31
31
  })(cssClassesConstants.treeListBlockName, null, ({
32
32
  rowSize
33
33
  }) => ({
34
- [`rowsize-${rowSize}`]: rowSize
34
+ ["rowsize-".concat(rowSize)]: rowSize
35
35
  }));
36
- const compactRowClass = `${cssClassesConstants.DSTreeViewPrefix}-tv-row-size-compact`;
37
- const normaRowClass = `${cssClassesConstants.DSTreeViewPrefix}-tv-row-size-normal`;
36
+ const compactRowClass = "".concat(cssClassesConstants.DSTreeViewPrefix, "-tv-row-size-compact");
37
+ const normaRowClass = "".concat(cssClassesConstants.DSTreeViewPrefix, "-tv-row-size-normal");
38
38
  const TreeList = props => {
39
39
  const {
40
40
  onMouseDragOverItem
@@ -57,13 +57,13 @@ const TreeList = props => {
57
57
  totalSize,
58
58
  virtualItems
59
59
  } = virtualListHelpers;
60
- const className = `${rowSize === 'compact' ? `${compactRowClass}` : `${normaRowClass}`}`;
60
+ const className = "".concat(rowSize === 'compact' ? "".concat(compactRowClass) : "".concat(normaRowClass));
61
61
  return /*#__PURE__*/jsxRuntime.jsxs(TreeListWrapper, {
62
62
  ref: virtualListRef,
63
63
  className: className,
64
64
  style: {
65
- height: `${typeof height === 'number' ? `${height}px` : height}`,
66
- width: `${typeof width === 'number' ? `${width}px` : width}`,
65
+ height: "".concat(typeof height === 'number' ? "".concat(height, "px") : height),
66
+ width: "".concat(typeof width === 'number' ? "".concat(width, "px") : width),
67
67
  overflow: 'auto'
68
68
  },
69
69
  children: [isLoading ? /*#__PURE__*/_jsx__default["default"]("div", {
@@ -82,7 +82,7 @@ const TreeList = props => {
82
82
  showTooltip: false
83
83
  })) : null, !isLoading && virtualItems.length === 0 ? /*#__PURE__*/_jsx__default["default"](TreeListNoItems, {}, void 0, noItemsPlaceholder) : null, !isLoading && virtualItems.length !== 0 ? /*#__PURE__*/_jsx__default["default"]("div", {
84
84
  style: {
85
- height: `${totalSize}px`,
85
+ height: "".concat(totalSize, "px"),
86
86
  width: '100%',
87
87
  position: 'relative'
88
88
  }
@@ -102,10 +102,10 @@ const TreeList = props => {
102
102
  top: 0,
103
103
  left: 0,
104
104
  width: '100%',
105
- transform: `translateY(${start}px)`
105
+ transform: "translateY(".concat(start, "px)")
106
106
  };
107
107
  const listItemProps = {
108
- key: `DS-TreeView-List-Item-${id}`,
108
+ key: "DS-TreeView-List-Item-".concat(id),
109
109
  virtualItemRef: measureRef,
110
110
  index,
111
111
  // this is consumed by the DnD HOC
@@ -2,6 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('core-js/modules/web.dom-collections.iterator.js');
6
+
5
7
  // https://github.com/sindresorhus/array-move/blob/master/index.js
6
8
  const arrayMoveMutate = (array, from, to) => {
7
9
  const startIndex = from < 0 ? array.length + from : from;
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('core-js/modules/web.dom-collections.iterator.js');
5
6
  var React = require('react');
6
7
  var stringHelpers = require('./string-helpers.js');
7
8
 
8
- /* eslint-disable max-params */
9
9
  const walkVisibles = (node, callback, skipRoot = true, highlightOnlyQuery = false) => {
10
10
  const {
11
11
  children,
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('core-js/modules/web.dom-collections.iterator.js');
5
6
  var React = require('react');
6
7
  var lodash = require('lodash');
7
8
  var TreeViewContext = require('../TreeViewContext.js');
8
9
  var treeHelpers = require('./tree-helpers.js');
9
10
  var dndHelpers = require('./dnd-helpers.js');
10
11
 
11
- /* eslint-disable max-depth */
12
12
  const useDnDHelpers = () => {
13
13
  const ctx = React.useContext(TreeViewContext["default"]);
14
14
  const {
@@ -183,7 +183,8 @@ const useDnDHelpers = () => {
183
183
  setIsDraggingOverThis(true);
184
184
 
185
185
  if (!(openFolderOnHoverTimeout !== null && openFolderOnHoverTimeout !== void 0 && openFolderOnHoverTimeout.current) && // only set the interval if it wasn't set already once
186
- (draggedItem === null || draggedItem === void 0 ? void 0 : draggedItem.id) !== (item === null || item === void 0 ? void 0 : item.id) && (item.isGroup || item.children.length > 0) && // only open groups
186
+ (draggedItem === null || draggedItem === void 0 ? void 0 : draggedItem.id) !== (item === null || item === void 0 ? void 0 : item.id) && ( // don't open ghost element
187
+ item.isGroup || item.children.length > 0) && // only open groups
187
188
  !restrictDragAndDrop) {
188
189
  openFolderOnHoverTimeout.current = setTimeout(() => {
189
190
  item.node.model.isExpanded = true;
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ require('core-js/modules/web.dom-collections.iterator.js');
5
6
  var React = require('react');
6
7
  var treeHelpers = require('./tree-helpers.js');
7
8
  var groupExpandsHelpers = require('./group-expands-helpers.js');
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
+ require('core-js/modules/web.dom-collections.iterator.js');
6
7
  var React = require('react');
7
8
  var TreeModel = require('tree-model');
8
9
  var lodash = require('lodash');
package/esm/TreeView.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import { useRef, useState, useEffect } from 'react';
4
5
  import { useVirtual } from 'react-virtual';
5
6
  import { v4 } from 'uuid';
@@ -1,6 +1,6 @@
1
1
  const DSTreeViewPrefix = 'em-ds';
2
2
  const treeItemBlockName = 'tree-item';
3
3
  const treeListBlockName = 'tree-list';
4
- const treeListNoItemsBn = `${treeListBlockName}-no-items`;
4
+ const treeListNoItemsBn = "".concat(treeListBlockName, "-no-items");
5
5
 
6
6
  export { DSTreeViewPrefix, treeItemBlockName, treeListBlockName, treeListNoItemsBn };
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
3
  import _jsx from '@babel/runtime/helpers/esm/jsx';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
5
  import 'react';
5
6
  import useDataList from '@elliemae/ds-shared/useDataList';
6
7
  import { TreeRenderers } from './renderers.js';
@@ -48,7 +49,7 @@ function TreeView(_ref) {
48
49
  return wrapComponentIfExists(Wrapper, /*#__PURE__*/jsx(ListComponent, _objectSpread(_objectSpread({
49
50
  records: instance.records
50
51
  }, getListProps()), {}, {
51
- className: `em-ds-tv-row-size-${rowSize}`
52
+ className: "em-ds-tv-row-size-".concat(rowSize)
52
53
  })));
53
54
  }
54
55
 
@@ -13,6 +13,7 @@ import 'core-js/modules/esnext.map.merge.js';
13
13
  import 'core-js/modules/esnext.map.reduce.js';
14
14
  import 'core-js/modules/esnext.map.some.js';
15
15
  import 'core-js/modules/esnext.map.update.js';
16
+ import 'core-js/modules/web.dom-collections.iterator.js';
16
17
  import 'core-js/modules/es.string.replace.js';
17
18
  import 'react';
18
19
  import { render } from '@testing-library/react';
@@ -1,4 +1,5 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import { useState, useCallback, useMemo } from 'react';
3
4
  import { isEqual } from '@elliemae/ds-utilities/utils';
4
5
  import createInstancePlugin from '@elliemae/ds-shared/createDataInstance/createInstancePlugin';
@@ -1,6 +1,7 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
5
  import 'react';
5
6
  import { Draggable } from 'react-beautiful-dnd';
6
7
  import GripperVertical from '@elliemae/ds-icons/GripperVertical';
@@ -30,7 +31,7 @@ const DraggableItem = (renderers // , instance
30
31
  isDragDisabled: isDragDisabled,
31
32
  draggableId: String(record.id),
32
33
  index: index
33
- }, `${record.id}-draggable`, (provided, snapshot) => {
34
+ }, "".concat(record.id, "-draggable"), (provided, snapshot) => {
34
35
  const _getDraggableProps = getDraggableProps(props, provided, snapshot),
35
36
  {
36
37
  key
@@ -44,7 +45,7 @@ const DraggableItem = (renderers // , instance
44
45
  }, provided.dragHandleProps), {}, {
45
46
  className: "drag-handle",
46
47
  tabIndex: isItemFocused ? 0 : -1
47
- }), `${record.id}-drag-handle`), ...(props.leftAddons || [])],
48
+ }), "".concat(record.id, "-drag-handle")), ...(props.leftAddons || [])],
48
49
  children: props.children
49
50
  }), key);
50
51
  });
@@ -1,6 +1,7 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
5
  import { useContext, useState, useRef, useCallback, createElement } from 'react';
5
6
  import { DragDropContext, Droppable } from 'react-beautiful-dnd';
6
7
  import { cx } from '@elliemae/ds-utilities/utils';
@@ -1,4 +1,5 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import { cx, set, get, cloneDeep, arrayMove } from '@elliemae/ds-utilities/utils';
3
4
  import { mergeRefs } from '@elliemae/ds-utilities/system';
4
5
 
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
3
  import _jsx from '@babel/runtime/helpers/esm/jsx';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
4
5
  import { useState, useMemo, useRef } from 'react';
5
6
  import FocusGroupProvider from '@elliemae/ds-shared/FocusGroup/FocusGroupManager';
6
7
  import useFocusGroupItem from '@elliemae/ds-shared/FocusGroup/useFocusGroupItem';
@@ -1,3 +1,3 @@
1
- const getListFromDocument = document.querySelector(`[data-testid="tree-list"]`);
1
+ const getListFromDocument = document.querySelector("[data-testid=\"tree-list\"]");
2
2
 
3
3
  export { getListFromDocument };
@@ -1,5 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import { useMemo, useCallback } from 'react';
4
5
  import Checkbox from '@elliemae/ds-basic/form/Checkbox';
5
6
  import Radio from '@elliemae/ds-basic/form/Radio';
@@ -1,5 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import React, { useCallback } from 'react';
4
5
  import { cx, isFunction } from '@elliemae/ds-utilities/utils';
5
6
  import Button from '@elliemae/ds-basic/Button';
@@ -17,7 +18,7 @@ var _ArrowheadDown, _ArrowheadRight;
17
18
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
18
19
 
19
20
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
20
- const ItemContent = aggregatedClasses('div')(`${treeItemBlockName}-content`);
21
+ const ItemContent = aggregatedClasses('div')("".concat(treeItemBlockName, "-content"));
21
22
  const ItemValue = aggregatedClasses('span')(treeItemBlockName, 'value');
22
23
 
23
24
  const noop = () => null;
@@ -31,7 +32,7 @@ const getItemNestingLeftPadding = (level, opts) => {
31
32
  }, opts);
32
33
 
33
34
  const groupLeftPadding = spaceForNestingLevel * (level - 1);
34
- return isChild ? `${groupLeftPadding + spaceForNestingLevel - 0.1}em` : `${groupLeftPadding}em`;
35
+ return isChild ? "".concat(groupLeftPadding + spaceForNestingLevel - 0.1, "em") : "".concat(groupLeftPadding, "em");
35
36
  };
36
37
 
37
38
  const itemRenderer = (value, itemProps, instance) => {
@@ -52,9 +53,9 @@ const itemRenderer = (value, itemProps, instance) => {
52
53
  const amountChildren = Number(getItemChildrenLength(record));
53
54
  const renderedLabel = isFunction(labelRenderer) && labelRenderer(value, itemProps) || value;
54
55
  return /*#__PURE__*/_jsx(ItemContent, {
55
- "data-testid": `${treeItemBlockName}-content`,
56
+ "data-testid": "".concat(treeItemBlockName, "-content"),
56
57
  onClick: handleItemClick
57
- }, void 0, /*#__PURE__*/_jsx(ItemValue, {}, void 0, renderedLabel, showChildrenAmount && record.isGroup && ` (${amountChildren})`));
58
+ }, void 0, /*#__PURE__*/_jsx(ItemValue, {}, void 0, renderedLabel, showChildrenAmount && record.isGroup && " (".concat(amountChildren, ")")));
58
59
  };
59
60
 
60
61
  itemRenderer.order = 100;
@@ -120,7 +121,7 @@ const TreePluginList = createInstancePlugin('tree-data', {
120
121
  size: "s",
121
122
  tabIndex: -1 // eslint-disable-next-line max-lines
122
123
 
123
- }, `${record.id}-expand-addon`);
124
+ }, "".concat(record.id, "-expand-addon"));
124
125
 
125
126
  const iconAddon = icon && /*#__PURE__*/React.cloneElement(icon, {
126
127
  'data-testid': record.isGroup ? 'tree-item-group-icon' : 'tree-item-icon',
@@ -132,7 +133,7 @@ const TreePluginList = createInstancePlugin('tree-data', {
132
133
  style: {
133
134
  width: itemNestingLeftPadding
134
135
  }
135
- }, `${record.id}-space-addon`);
136
+ }, "".concat(record.id, "-space-addon"));
136
137
 
137
138
  return _objectSpread(_objectSpread({}, props), {}, {
138
139
  'data-id': record.id,
@@ -1,4 +1,5 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import { useRef, useState, useEffect } from 'react';
3
4
  import useExpandState from '@elliemae/ds-utilities/hooks/useExpandState';
4
5
  import { isFunction } from '@elliemae/ds-utilities/utils';
@@ -1,8 +1,8 @@
1
1
  import get from 'lodash/get';
2
2
 
3
3
  const getParentId = record => get(record, ['parentNode', 'id']);
4
- const findItemOnDocument = id => document.querySelector(`[data-id="${id}"]`);
5
- const getListFromDocument = () => document.querySelector(`[data-testid="tree-list"]`);
4
+ const findItemOnDocument = id => document.querySelector("[data-id=\"".concat(id, "\"]"));
5
+ const getListFromDocument = () => document.querySelector("[data-testid=\"tree-list\"]");
6
6
  const getParentChildren = (record, childrenKey = 'children') => get(record, ['parentNode', 'data', childrenKey]);
7
7
  const getItemLabel = (record, nameKey = 'name') => get(record, ['data', nameKey]);
8
8
  const getItemChildren = (record, childrenKey = 'children') => get(record, ['data', childrenKey]);
@@ -1,3 +1,5 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
+
1
3
  function getPath(parentNode, index, childrenKey) {
2
4
  if (!parentNode) return [index];
3
5
  return [...parentNode.path, childrenKey, index];
@@ -12,7 +12,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
12
12
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
13
13
  const treeListBlockName = 'tree-list';
14
14
  const treeItemBlockName = 'tree-item';
15
- const treeListNoItemsBn = `${treeListBlockName}-no-items`;
15
+ const treeListNoItemsBn = "".concat(treeListBlockName, "-no-items");
16
16
  const TreeListItem = aggregatedClasses('li', {
17
17
  'data-testid': treeItemBlockName,
18
18
  role: 'treeitem'
@@ -24,7 +24,7 @@ const TreeList = aggregatedClasses('ul', {
24
24
  })(treeListBlockName, null, ({
25
25
  rowSize
26
26
  }) => ({
27
- [`rowsize-${rowSize}`]: rowSize
27
+ ["rowsize-".concat(rowSize)]: rowSize
28
28
  }));
29
29
  const TreeListNoItems = aggregatedClasses('div', {
30
30
  'data-testid': treeListNoItemsBn
@@ -2,7 +2,7 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { DSTreeViewPrefix, treeItemBlockName } from '../config/cssClassesConstants.js';
4
4
 
5
- const className = `${DSTreeViewPrefix}-${treeItemBlockName}-children-count-displayer`;
5
+ const className = "".concat(DSTreeViewPrefix, "-").concat(treeItemBlockName, "-children-count-displayer");
6
6
  const ChildrenCountDisplayer = props => {
7
7
  const {
8
8
  item
@@ -16,7 +16,7 @@ const ChildrenCountDisplayer = props => {
16
16
  return /*#__PURE__*/_jsx("span", {
17
17
  "data-testid": "tree-item-children-count-displayer",
18
18
  className: className
19
- }, void 0, ` | ${children.length} Items`);
19
+ }, void 0, " | ".concat(children.length, " Items"));
20
20
  };
21
21
 
22
22
  export { ChildrenCountDisplayer };
@@ -66,7 +66,7 @@ const ExpandCaret = props => {
66
66
  },
67
67
  size: "s",
68
68
  tabIndex: -1
69
- }, `${id}-expand-addon`);
69
+ }, "".concat(id, "-expand-addon"));
70
70
  return /*#__PURE__*/_jsx("div", {
71
71
  style: {
72
72
  width: '24px'
@@ -15,7 +15,7 @@ const getItemNestingLeftPadding = (level, opts) => {
15
15
  const finalLeftPadding = groupLeftPadding + spaceForNestingLevel - 0.1; // root level left-padding would be negative and would not be applied
16
16
  // if "root-level" nesting, then defaults to 0 left-padding.
17
17
 
18
- return finalLeftPadding > 0 ? `${finalLeftPadding}em` : '0';
18
+ return finalLeftPadding > 0 ? "".concat(finalLeftPadding, "em") : '0';
19
19
  };
20
20
 
21
21
  const NestingSpace = props => {
@@ -40,7 +40,7 @@ function RadioSelectable(props) {
40
40
  };
41
41
  if (onSelectionChange) onSelectionChange(newSelectionHasmap, item, indexAndScrollTo);
42
42
  }, [item, id, onSelectionChange, scrollToIndex]);
43
- const radioName = useMemo(() => `radios-${uniqueTreeViewUUID}`, [uniqueTreeViewUUID]);
43
+ const radioName = useMemo(() => "radios-".concat(uniqueTreeViewUUID), [uniqueTreeViewUUID]);
44
44
  return /*#__PURE__*/_jsx(Radio, {
45
45
  checked: selectedCheckboxes[id] === true,
46
46
  name: radioName,
@@ -1,5 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
+ import 'core-js/modules/web.dom-collections.iterator.js';
3
4
  import { useRef, useState, useContext, useMemo, useCallback } from 'react';
4
5
  import { SortableHandle, SortableElement } from '@elliemae/react-sortable-hoc';
5
6
  import { aggregatedClasses } from '@elliemae/ds-classnames';
@@ -37,7 +38,7 @@ const DnDHandle = SortableHandle(({
37
38
  }
38
39
  },
39
40
  tabIndex: "0"
40
- }, `${id}-drag-handle`));
41
+ }, "".concat(id, "-drag-handle")));
41
42
  const TreeItem = props => {
42
43
  const {
43
44
  item,
@@ -96,7 +97,7 @@ const TreeItem = props => {
96
97
  isAfter,
97
98
  isValid
98
99
  } = relativeMouseCord;
99
- let className = `${DSTreeViewPrefix}-${treeItemBlockName}${isValid ? '--valid' : '--invalid'}`;
100
+ let className = "".concat(DSTreeViewPrefix, "-").concat(treeItemBlockName).concat(isValid ? '--valid' : '--invalid');
100
101
  if (isBefore) className += '-drop-before';else if (isAfter) className += '-drop-after';else className += '-drop-in';
101
102
  return className;
102
103
  }, [withDragAndDrop, relativeMouseCord, isDraggingOverThis]);
@@ -104,13 +105,13 @@ const TreeItem = props => {
104
105
  const hoverClassName = useMemo(() => (hoverItem === null || hoverItem === void 0 ? void 0 : hoverItem.id) !== item.id || withDragAndDrop && isDragging ? '' : 'hover', [hoverItem, withDragAndDrop, isDragging]);
105
106
  const fixedHeightClassname = useMemo(() => {
106
107
  if (labelOverflow === 'truncate') {
107
- if (rowSize === 'compact') return `${DSTreeViewPrefix}-${treeItemBlockName}--fixed-height-compact`;
108
- return `${DSTreeViewPrefix}-${treeItemBlockName}--fixed-height`;
108
+ if (rowSize === 'compact') return "".concat(DSTreeViewPrefix, "-").concat(treeItemBlockName, "--fixed-height-compact");
109
+ return "".concat(DSTreeViewPrefix, "-").concat(treeItemBlockName, "--fixed-height");
109
110
  }
110
111
 
111
112
  return '';
112
113
  }, [labelOverflow, rowSize]);
113
- const finalClassName = useMemo(() => `${dropPreviewClassName} ${fixedHeightClassname} ${selectedClassName} ${hoverClassName}`, [dropPreviewClassName, selectedClassName, hoverClassName, fixedHeightClassname]);
114
+ const finalClassName = useMemo(() => "".concat(dropPreviewClassName, " ").concat(fixedHeightClassname, " ").concat(selectedClassName, " ").concat(hoverClassName), [dropPreviewClassName, selectedClassName, hoverClassName, fixedHeightClassname]);
114
115
  const handleItemClick = useCallback(e => {
115
116
  onItemClick(item, e);
116
117
  setFocusedItem(item);
@@ -8,11 +8,11 @@ import { treeItemBlockName, DSTreeViewPrefix } from '../config/cssClassesConstan
8
8
  import TreeViewContext from '../TreeViewContext.js';
9
9
  import { jsxs, Fragment } from 'react/jsx-runtime';
10
10
 
11
- const ItemContent = aggregatedClasses('div')(`${treeItemBlockName}-content`);
11
+ const ItemContent = aggregatedClasses('div')("".concat(treeItemBlockName, "-content"));
12
12
  const ItemValue = aggregatedClasses('span')(treeItemBlockName, 'value'); // const wrapperClassName = `${DSTreeViewPrefix}-${treeItemBlockName}-content`;
13
13
 
14
- const classNameModifierWrapAll = `${DSTreeViewPrefix}-${treeItemBlockName}__value--wrap-all`;
15
- const classNameModifierTruncate = `${DSTreeViewPrefix}-${treeItemBlockName}__value--truncate`; // eslint-disable-next-line react/prop-types
14
+ const classNameModifierWrapAll = "".concat(DSTreeViewPrefix, "-").concat(treeItemBlockName, "__value--wrap-all");
15
+ const classNameModifierTruncate = "".concat(DSTreeViewPrefix, "-").concat(treeItemBlockName, "__value--truncate"); // eslint-disable-next-line react/prop-types
16
16
 
17
17
  const CustomHighlight = ({
18
18
  children
@@ -84,10 +84,10 @@ function TreeItemText(props) {
84
84
  });
85
85
  }, [item, searchQuery, nameKey, showChildrenAmount, labelOverflow]);
86
86
  let className = '';
87
- if (labelOverflow === 'wrap-all') className += `${classNameModifierWrapAll} `;
88
- if (labelOverflow === 'truncate') className += `${classNameModifierTruncate} `;
87
+ if (labelOverflow === 'wrap-all') className += "".concat(classNameModifierWrapAll, " ");
88
+ if (labelOverflow === 'truncate') className += "".concat(classNameModifierTruncate, " ");
89
89
  return /*#__PURE__*/_jsx(ItemContent, {
90
- "data-testid": `${treeItemBlockName}-content`
90
+ "data-testid": "".concat(treeItemBlockName, "-content")
91
91
  }, void 0, /*#__PURE__*/_jsx(ItemValue, {
92
92
  className: className
93
93
  }, void 0, Text));
@@ -12,7 +12,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
12
12
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
13
13
 
14
14
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
- const treeListNoItemsBn = `${treeListBlockName}-no-items`;
15
+ const treeListNoItemsBn = "".concat(treeListBlockName, "-no-items");
16
16
  const TreeListNoItems = aggregatedClasses('div', {
17
17
  'data-testid': treeListNoItemsBn
18
18
  })(treeListNoItemsBn);
@@ -22,10 +22,10 @@ const TreeListWrapper = aggregatedClasses('ul', {
22
22
  })(treeListBlockName, null, ({
23
23
  rowSize
24
24
  }) => ({
25
- [`rowsize-${rowSize}`]: rowSize
25
+ ["rowsize-".concat(rowSize)]: rowSize
26
26
  }));
27
- const compactRowClass = `${DSTreeViewPrefix}-tv-row-size-compact`;
28
- const normaRowClass = `${DSTreeViewPrefix}-tv-row-size-normal`;
27
+ const compactRowClass = "".concat(DSTreeViewPrefix, "-tv-row-size-compact");
28
+ const normaRowClass = "".concat(DSTreeViewPrefix, "-tv-row-size-normal");
29
29
  const TreeList = props => {
30
30
  const {
31
31
  onMouseDragOverItem
@@ -48,13 +48,13 @@ const TreeList = props => {
48
48
  totalSize,
49
49
  virtualItems
50
50
  } = virtualListHelpers;
51
- const className = `${rowSize === 'compact' ? `${compactRowClass}` : `${normaRowClass}`}`;
51
+ const className = "".concat(rowSize === 'compact' ? "".concat(compactRowClass) : "".concat(normaRowClass));
52
52
  return /*#__PURE__*/jsxs(TreeListWrapper, {
53
53
  ref: virtualListRef,
54
54
  className: className,
55
55
  style: {
56
- height: `${typeof height === 'number' ? `${height}px` : height}`,
57
- width: `${typeof width === 'number' ? `${width}px` : width}`,
56
+ height: "".concat(typeof height === 'number' ? "".concat(height, "px") : height),
57
+ width: "".concat(typeof width === 'number' ? "".concat(width, "px") : width),
58
58
  overflow: 'auto'
59
59
  },
60
60
  children: [isLoading ? /*#__PURE__*/_jsx("div", {
@@ -73,7 +73,7 @@ const TreeList = props => {
73
73
  showTooltip: false
74
74
  })) : null, !isLoading && virtualItems.length === 0 ? /*#__PURE__*/_jsx(TreeListNoItems, {}, void 0, noItemsPlaceholder) : null, !isLoading && virtualItems.length !== 0 ? /*#__PURE__*/_jsx("div", {
75
75
  style: {
76
- height: `${totalSize}px`,
76
+ height: "".concat(totalSize, "px"),
77
77
  width: '100%',
78
78
  position: 'relative'
79
79
  }
@@ -93,10 +93,10 @@ const TreeList = props => {
93
93
  top: 0,
94
94
  left: 0,
95
95
  width: '100%',
96
- transform: `translateY(${start}px)`
96
+ transform: "translateY(".concat(start, "px)")
97
97
  };
98
98
  const listItemProps = {
99
- key: `DS-TreeView-List-Item-${id}`,
99
+ key: "DS-TreeView-List-Item-".concat(id),
100
100
  virtualItemRef: measureRef,
101
101
  index,
102
102
  // this is consumed by the DnD HOC
@@ -1,3 +1,5 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
+
1
3
  // https://github.com/sindresorhus/array-move/blob/master/index.js
2
4
  const arrayMoveMutate = (array, from, to) => {
3
5
  const startIndex = from < 0 ? array.length + from : from;
@@ -1,7 +1,7 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
1
2
  import { createRef } from 'react';
2
3
  import { standardizeSearchQueryString } from './string-helpers.js';
3
4
 
4
- /* eslint-disable max-params */
5
5
  const walkVisibles = (node, callback, skipRoot = true, highlightOnlyQuery = false) => {
6
6
  const {
7
7
  children,
@@ -1,10 +1,10 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
1
2
  import { useContext, useCallback } from 'react';
2
3
  import { cloneDeep } from 'lodash';
3
4
  import TreeViewContext, { defaultRelativeMouseCoord } from '../TreeViewContext.js';
4
5
  import { getNodeById, focusItem } from './tree-helpers.js';
5
6
  import { inferKeyboardKinshipDrop, inferHoverItemKinshipDrop, isDropValid } from './dnd-helpers.js';
6
7
 
7
- /* eslint-disable max-depth */
8
8
  const useDnDHelpers = () => {
9
9
  const ctx = useContext(TreeViewContext);
10
10
  const {
@@ -179,7 +179,8 @@ const useDnDHelpers = () => {
179
179
  setIsDraggingOverThis(true);
180
180
 
181
181
  if (!(openFolderOnHoverTimeout !== null && openFolderOnHoverTimeout !== void 0 && openFolderOnHoverTimeout.current) && // only set the interval if it wasn't set already once
182
- (draggedItem === null || draggedItem === void 0 ? void 0 : draggedItem.id) !== (item === null || item === void 0 ? void 0 : item.id) && (item.isGroup || item.children.length > 0) && // only open groups
182
+ (draggedItem === null || draggedItem === void 0 ? void 0 : draggedItem.id) !== (item === null || item === void 0 ? void 0 : item.id) && ( // don't open ghost element
183
+ item.isGroup || item.children.length > 0) && // only open groups
183
184
  !restrictDragAndDrop) {
184
185
  openFolderOnHoverTimeout.current = setTimeout(() => {
185
186
  item.node.model.isExpanded = true;
@@ -1,3 +1,4 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
1
2
  import { useRef, useMemo, useState, useEffect, useCallback } from 'react';
2
3
  import { focusItem } from './tree-helpers.js';
3
4
  import { toggleExpandAllHelper } from './group-expands-helpers.js';
@@ -1,4 +1,5 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
3
  import { useMemo, useState, useEffect, useCallback } from 'react';
3
4
  import TreeModel from 'tree-model';
4
5
  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.10",
3
+ "version": "2.0.0-alpha.11",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Tree View",
6
6
  "module": "./esm/index.js",
@@ -319,12 +319,12 @@
319
319
  "generateSubmodules": true
320
320
  },
321
321
  "dependencies": {
322
- "@elliemae/ds-basic": "2.0.0-alpha.10",
323
- "@elliemae/ds-classnames": "2.0.0-alpha.10",
324
- "@elliemae/ds-dropdownmenu": "2.0.0-alpha.10",
325
- "@elliemae/ds-icons": "2.0.0-alpha.10",
326
- "@elliemae/ds-shared": "2.0.0-alpha.10",
327
- "@elliemae/ds-utilities": "2.0.0-alpha.10",
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",
328
328
  "@elliemae/react-sortable-hoc": "^1.0.0",
329
329
  "@john-osullivan/react-window-dynamic-fork": "1.9.0-alpha.1",
330
330
  "prop-types": "~15.7.2",
@@ -19,54 +19,54 @@ export declare function getTreeItemsFromRender({ data, plugins, ...props }: {
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
  };
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
- }