@elliemae/ds-shuttle 2.0.0-alpha.8 → 2.0.0-next.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 (62) hide show
  1. package/cjs/AnimationState.js +1 -0
  2. package/cjs/DSShuttle.js +84 -80
  3. package/cjs/SearchState.js +1 -0
  4. package/cjs/Shuttle.actions.js +28 -18
  5. package/cjs/ShuttleContainer.js +15 -8
  6. package/cjs/ShuttleImpl.js +23 -10
  7. package/cjs/ShuttleRenderer.js +9 -2
  8. package/cjs/ShuttleState.js +7 -2
  9. package/cjs/animation/animationConfig.js +10 -10
  10. package/cjs/classedComponents.js +31 -22
  11. package/cjs/components/LoadingIndicator.js +2 -2
  12. package/cjs/components/OverflowList.js +23 -12
  13. package/cjs/components/ShuttleBreadcrumb.js +21 -15
  14. package/cjs/components/ShuttleInfiniteScrollIndicator.js +22 -16
  15. package/cjs/components/ShuttleListItem/ActionButtons.js +10 -10
  16. package/cjs/components/ShuttleListItem/ShuttleListItem.js +22 -15
  17. package/cjs/components/ShuttleListItem/ShuttleSourceListItem.js +6 -0
  18. package/cjs/components/ShuttleListItem/ShuttleTargetListItem.js +5 -0
  19. package/cjs/components/ShuttleListPanel.js +7 -6
  20. package/cjs/components/ShuttleSearchBox.js +16 -13
  21. package/cjs/components/ShuttleSource.js +49 -43
  22. package/cjs/components/ShuttleTarget.js +29 -22
  23. package/cjs/components/VirtualizedItem.js +12 -6
  24. package/cjs/components/VirtualizedList.js +47 -35
  25. package/cjs/components/VirtualizedSortableList.js +5 -0
  26. package/cjs/helper.js +36 -14
  27. package/cjs/updateShuttleStateFromProps.js +16 -6
  28. package/cjs/utils.js +7 -2
  29. package/cjs/withProviders.js +5 -0
  30. package/esm/AnimationState.js +1 -0
  31. package/esm/DSShuttle.js +84 -80
  32. package/esm/SearchState.js +1 -0
  33. package/esm/Shuttle.actions.js +22 -12
  34. package/esm/ShuttleContainer.js +12 -5
  35. package/esm/ShuttleImpl.js +18 -5
  36. package/esm/ShuttleRenderer.js +9 -2
  37. package/esm/ShuttleState.js +7 -2
  38. package/esm/animation/animationConfig.js +10 -10
  39. package/esm/classedComponents.js +31 -22
  40. package/esm/components/LoadingIndicator.js +1 -1
  41. package/esm/components/OverflowList.js +23 -12
  42. package/esm/components/ShuttleBreadcrumb.js +21 -15
  43. package/esm/components/ShuttleInfiniteScrollIndicator.js +22 -16
  44. package/esm/components/ShuttleListItem/ActionButtons.js +7 -4
  45. package/esm/components/ShuttleListItem/ShuttleListItem.js +21 -13
  46. package/esm/components/ShuttleListItem/ShuttleSourceListItem.js +6 -0
  47. package/esm/components/ShuttleListItem/ShuttleTargetListItem.js +5 -0
  48. package/esm/components/ShuttleListPanel.js +7 -6
  49. package/esm/components/ShuttleSearchBox.js +14 -10
  50. package/esm/components/ShuttleSource.js +44 -36
  51. package/esm/components/ShuttleTarget.js +29 -22
  52. package/esm/components/VirtualizedItem.js +12 -6
  53. package/esm/components/VirtualizedList.js +47 -35
  54. package/esm/components/VirtualizedSortableList.js +5 -0
  55. package/esm/helper.js +33 -11
  56. package/esm/updateShuttleStateFromProps.js +11 -1
  57. package/esm/utils.js +6 -1
  58. package/esm/withProviders.js +5 -0
  59. package/package.json +10 -7
  60. package/types/components/ShuttleBreadcrumb.d.ts +1 -1
  61. package/cjs/package.json +0 -7
  62. package/esm/package.json +0 -7
@@ -1,3 +1,8 @@
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';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import { useContext, useCallback } from 'react';
@@ -79,7 +84,8 @@ function ShuttleRenderer(_ref) {
79
84
  onMoveItemToTarget(item);
80
85
  removeAnimationState();
81
86
  },
82
- onNavigateTo: (item, direction = 'down') => {
87
+ onNavigateTo: function (item) {
88
+ let direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'down';
83
89
  const indexInHierarchy = hierarchy.findIndex(hItem => hItem.id === item.id);
84
90
  setIsDrillingDown(indexInHierarchy === -1);
85
91
  onNavigateOnSourceTo(item, direction);
@@ -110,7 +116,8 @@ function ShuttleRenderer(_ref) {
110
116
  removeAnimationState();
111
117
  onMoveItemToSource(item);
112
118
  },
113
- onNavigateTo: (item, direction = 'down') => {
119
+ onNavigateTo: function (item) {
120
+ let direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'down';
114
121
  const indexInHierarchy = hierarchyDest.findIndex(hItem => hItem.id === item.id);
115
122
  setIsDrillingDown(indexInHierarchy === -1);
116
123
  onNavigateOnTargetTo(item, direction);
@@ -1,3 +1,6 @@
1
+ import 'core-js/modules/web.dom-collections.iterator.js';
2
+ import 'core-js/modules/esnext.async-iterator.map.js';
3
+ import 'core-js/modules/esnext.iterator.map.js';
1
4
  import { useState } from 'react';
2
5
  import createContainer from 'constate';
3
6
  import { getItemsById, pipe } from './helper.js';
@@ -19,7 +22,9 @@ function useShuttleState() {
19
22
 
20
23
  const setState = state => setShuttleState(state(shuttleState));
21
24
 
22
- function setMovedItems(itemsIds = [], items = []) {
25
+ function setMovedItems() {
26
+ let itemsIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
27
+ let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
23
28
  const itemsToMove = getItemsById(itemsIds, items);
24
29
  const pipeActions = itemsToMove.map(item => moveItem(item));
25
30
  setState(pipe([resetMovedItems(), ...pipeActions]));
@@ -47,7 +52,7 @@ function useShuttleState() {
47
52
  setState(toggleItemSelection(item.id));
48
53
  }
49
54
 
50
- function moveCheckedItems(items, dest = true) {
55
+ function moveCheckedItems(items) {
51
56
  const pipeActions = items.map(item => moveItem$1(item));
52
57
  setState(pipe([...pipeActions, resetCheckedItems$1()]));
53
58
  }
@@ -11,7 +11,7 @@ const animationConfig = {
11
11
  transform: 'translate3d(0,0,0)'
12
12
  },
13
13
  to: {
14
- transform: `translate3d(${xPosMovement}px,0,0)`
14
+ transform: "translate3d(".concat(xPosMovement, "px,0,0)")
15
15
  }
16
16
  },
17
17
  slideLeft: {
@@ -19,7 +19,7 @@ const animationConfig = {
19
19
  transform: 'translate3d(0,0,0)'
20
20
  },
21
21
  to: {
22
- transform: `translate3d(${-xPosMovement}px,0,0)`
22
+ transform: "translate3d(".concat(-xPosMovement, "px,0,0)")
23
23
  }
24
24
  },
25
25
  moveItem: isMovingLeft => ({
@@ -28,14 +28,14 @@ const animationConfig = {
28
28
  },
29
29
  enter: {
30
30
  opacity: 1,
31
- transform: `translate3d(${0}px,0,0)`
31
+ transform: "translate3d(".concat(0, "px,0,0)")
32
32
  },
33
33
  from: {
34
34
  opacity: 1,
35
- transform: `translate3d(${isMovingLeft ? -xPosMovement : xPosMovement}px,0,0)`
35
+ transform: "translate3d(".concat(isMovingLeft ? -xPosMovement : xPosMovement, "px,0,0)")
36
36
  },
37
37
  leave: {
38
- transform: `translate3d(${isMovingLeft ? -xPosMovement : xPosMovement}px,0,0)`
38
+ transform: "translate3d(".concat(isMovingLeft ? -xPosMovement : xPosMovement, "px,0,0)")
39
39
  }
40
40
  }),
41
41
  moveList: isDrillingDown => ({
@@ -48,11 +48,11 @@ const animationConfig = {
48
48
  },
49
49
  from: {
50
50
  opacity: 0,
51
- transform: `translate3d(0px,${isDrillingDown ? xPosMovement : -xPosMovement}px,0)`
51
+ transform: "translate3d(0px,".concat(isDrillingDown ? xPosMovement : -xPosMovement, "px,0)")
52
52
  },
53
53
  leave: {
54
54
  opacity: 0,
55
- transform: `translate3d(0,${isDrillingDown ? -xPosMovement : xPosMovement}px,0)`
55
+ transform: "translate3d(0,".concat(isDrillingDown ? -xPosMovement : xPosMovement, "px,0)")
56
56
  }
57
57
  }),
58
58
  breadcrumb: () => ({
@@ -61,15 +61,15 @@ const animationConfig = {
61
61
  },
62
62
  enter: {
63
63
  opacity: 1,
64
- transform: `translate3d(${0}px,0,0)`
64
+ transform: "translate3d(".concat(0, "px,0,0)")
65
65
  },
66
66
  from: {
67
67
  opacity: 0,
68
- transform: `translate3d(${xBreadcrumbPos}px,0px,0)`
68
+ transform: "translate3d(".concat(xBreadcrumbPos, "px,0px,0)")
69
69
  },
70
70
  leave: {
71
71
  opacity: 0,
72
- transform: `translate3d(${xBreadcrumbPos}px,0,0)`
72
+ transform: "translate3d(".concat(xBreadcrumbPos, "px,0,0)")
73
73
  }
74
74
  })
75
75
  };
@@ -1,37 +1,46 @@
1
- import DSButton from '@elliemae/ds-basic/Button';
1
+ import DSButton from '@elliemae/ds-button';
2
2
  import { aggregatedClasses } from '@elliemae/ds-classnames';
3
3
  import ShuttleBreadcrumb from './components/ShuttleBreadcrumb.js';
4
4
  import OverflowList from './components/OverflowList.js';
5
5
 
6
6
  const blockName = 'shuttle';
7
- const headerBlockName = `${blockName}-header`;
8
- const listBlockName = `${blockName}-list`;
9
- const footerBlockName = `${blockName}-footer`;
7
+ const headerBlockName = "".concat(blockName, "-header");
8
+ const listBlockName = "".concat(blockName, "-list");
9
+ const footerBlockName = "".concat(blockName, "-footer");
10
10
  const ShuttleContainer = aggregatedClasses('div')(blockName); // wrapper
11
11
 
12
- const ShuttleWrapper = aggregatedClasses('div')(`${blockName}-wrapper`); // header
12
+ const ShuttleWrapper = aggregatedClasses('div')("".concat(blockName, "-wrapper")); // header
13
13
 
14
14
  const ShuttleHeader = aggregatedClasses('div')(headerBlockName);
15
15
  const ShuttleHeaderBreadcrumb = aggregatedClasses(ShuttleBreadcrumb)(headerBlockName, 'breadcrumb');
16
16
  const ShuttleHeaderSearchToggle = aggregatedClasses(DSButton)(headerBlockName, 'search-toggle'); // list
17
17
 
18
- const ShuttleList = aggregatedClasses('div')(listBlockName, null, ({
19
- showPulse
20
- }) => ({
21
- 'show-pulse': showPulse
22
- }));
23
- const ShuttleListPanel = aggregatedClasses('div')(listBlockName, 'panel', ({
24
- open
25
- }) => ({
26
- open
27
- }));
28
- const Overflow = aggregatedClasses(OverflowList)(listBlockName, 'overflow', ({
29
- empty,
30
- searching
31
- }) => ({
32
- empty,
33
- searching
34
- }));
18
+ const ShuttleList = aggregatedClasses('div')(listBlockName, null, _ref => {
19
+ let {
20
+ showPulse
21
+ } = _ref;
22
+ return {
23
+ 'show-pulse': showPulse
24
+ };
25
+ });
26
+ const ShuttleListPanel = aggregatedClasses('div')(listBlockName, 'panel', _ref2 => {
27
+ let {
28
+ open
29
+ } = _ref2;
30
+ return {
31
+ open
32
+ };
33
+ });
34
+ const Overflow = aggregatedClasses(OverflowList)(listBlockName, 'overflow', _ref3 => {
35
+ let {
36
+ empty,
37
+ searching
38
+ } = _ref3;
39
+ return {
40
+ empty,
41
+ searching
42
+ };
43
+ });
35
44
  const EmptyMessage = aggregatedClasses('span')(listBlockName, 'empty-message');
36
45
  const LoadingList = aggregatedClasses('div')(listBlockName, 'loading-list'); // footer
37
46
 
@@ -1,6 +1,6 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import { DSCircularProgressIndicator } from '@elliemae/ds-basic/CircularProgressIndicator';
3
+ import { DSCircularProgressIndicator } from '@elliemae/ds-circular-progress-indicator';
4
4
  import styled from 'styled-components';
5
5
 
6
6
  var _Wrapper;
@@ -1,5 +1,12 @@
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 _jsx from '@babel/runtime/helpers/esm/jsx';
2
7
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
8
+ import 'core-js/modules/esnext.async-iterator.map.js';
9
+ import 'core-js/modules/esnext.iterator.map.js';
3
10
  import { useContext } from 'react';
4
11
  import { useTransition, animated } from 'react-spring/web';
5
12
  import { animationConfig } from '../animation/animationConfig.js';
@@ -9,11 +16,12 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
9
16
 
10
17
  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; }
11
18
 
12
- function OverflowList({
13
- className = '',
14
- activeHierarchy = '',
15
- children
16
- }) {
19
+ function OverflowList(_ref) {
20
+ let {
21
+ className = '',
22
+ activeHierarchy = '',
23
+ children
24
+ } = _ref;
17
25
  const {
18
26
  state: {
19
27
  isDrillingDown = false
@@ -23,13 +31,16 @@ function OverflowList({
23
31
  const overflowTransition = useTransition(activeHierarchy, null, _objectSpread(_objectSpread({}, animationConfig.moveList(isDrillingDown)), {}, {
24
32
  onDestroyed: () => setIsDrillingDown(false)
25
33
  }));
26
- return overflowTransition.map(({
27
- props,
28
- key
29
- }) => /*#__PURE__*/_jsx(animated.div, {
30
- className: className,
31
- style: props
32
- }, key, children));
34
+ return overflowTransition.map(_ref2 => {
35
+ let {
36
+ props,
37
+ key
38
+ } = _ref2;
39
+ return /*#__PURE__*/_jsx(animated.div, {
40
+ className: className,
41
+ style: props
42
+ }, key, children);
43
+ });
33
44
  }
34
45
 
35
46
  export { OverflowList as default };
@@ -1,29 +1,35 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
+ import 'core-js/modules/esnext.async-iterator.map.js';
3
+ import 'core-js/modules/esnext.iterator.map.js';
2
4
  import 'react';
3
5
  import { useTransition, animated } from 'react-spring/web';
4
6
  import DSBreadcrumb from '@elliemae/ds-basic/Breadcrumb';
5
7
  import { animationConfig } from '../animation/animationConfig.js';
6
8
 
7
- function ShuttleBreadcrumb({
8
- className = '',
9
- hierarchy = [],
10
- onNavigateTo = () => null
11
- }) {
9
+ function ShuttleBreadcrumb(_ref) {
10
+ let {
11
+ className = '',
12
+ hierarchy = [],
13
+ onNavigateTo = () => null
14
+ } = _ref;
12
15
  const animatedCrumbs = useTransition(hierarchy, item => item.id, animationConfig.breadcrumb());
13
16
  return /*#__PURE__*/_jsx("div", {
14
17
  className: className
15
18
  }, void 0, /*#__PURE__*/_jsx(DSBreadcrumb, {
16
19
  isTitle: true
17
- }, void 0, animatedCrumbs.map(({
18
- item,
19
- props,
20
- key
21
- }) => /*#__PURE__*/_jsx(DSBreadcrumb.Item, {
22
- containerComponent: animated.li,
23
- label: item.name,
24
- onClick: () => onNavigateTo(item, 'up'),
25
- style: props
26
- }, key))));
20
+ }, void 0, animatedCrumbs.map(_ref2 => {
21
+ let {
22
+ item,
23
+ props,
24
+ key
25
+ } = _ref2;
26
+ return /*#__PURE__*/_jsx(DSBreadcrumb.Item, {
27
+ containerComponent: animated.li,
28
+ label: item.name,
29
+ onClick: () => onNavigateTo(item, 'up'),
30
+ style: props
31
+ }, key);
32
+ })));
27
33
  }
28
34
 
29
35
  export { ShuttleBreadcrumb as default };
@@ -1,26 +1,32 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { aggregatedClasses } from '@elliemae/ds-classnames';
4
- import DSIndeterminateProgressIndicator from '@elliemae/ds-basic/IndeterminateProgressIndicator';
4
+ import DSIndeterminateProgressIndicator from '@elliemae/ds-indeterminate-progress-indicator';
5
5
 
6
6
  var _DSIndeterminateProgr;
7
7
  const blockName = 'shuttle-infinite-scroll-indicator';
8
- const InfiniteScrollBarContainer = aggregatedClasses('div')(blockName, null, ({
9
- isOpen
10
- }) => ({
11
- opened: isOpen
12
- }));
8
+ const InfiniteScrollBarContainer = aggregatedClasses('div')(blockName, null, _ref => {
9
+ let {
10
+ isOpen
11
+ } = _ref;
12
+ return {
13
+ opened: isOpen
14
+ };
15
+ });
13
16
 
14
- const ShuttleInfiniteScrollIndicator = ({
15
- isOpen
16
- }) => /*#__PURE__*/_jsx(InfiniteScrollBarContainer, {
17
- classProps: {
17
+ const ShuttleInfiniteScrollIndicator = _ref2 => {
18
+ let {
18
19
  isOpen
19
- },
20
- "data-testid": blockName
21
- }, void 0, _DSIndeterminateProgr || (_DSIndeterminateProgr = /*#__PURE__*/_jsx(DSIndeterminateProgressIndicator, {
22
- processing: true,
23
- title: "Loading"
24
- })));
20
+ } = _ref2;
21
+ return /*#__PURE__*/_jsx(InfiniteScrollBarContainer, {
22
+ classProps: {
23
+ isOpen
24
+ },
25
+ "data-testid": blockName
26
+ }, void 0, _DSIndeterminateProgr || (_DSIndeterminateProgr = /*#__PURE__*/_jsx(DSIndeterminateProgressIndicator, {
27
+ processing: true,
28
+ title: "Loading"
29
+ })));
30
+ };
25
31
 
26
32
  export { ShuttleInfiniteScrollIndicator as default };
@@ -1,11 +1,14 @@
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';
2
7
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
8
  import 'react';
4
9
  import { aggregatedClasses } from '@elliemae/ds-classnames';
5
- import DSButton from '@elliemae/ds-basic/Button';
6
- import CloseCircle from '@elliemae/ds-icons/CloseCircle';
7
- import ArrowShortRight from '@elliemae/ds-icons/ArrowShortRight';
8
- import ArrowShortReturn from '@elliemae/ds-icons/ArrowShortReturn';
10
+ import DSButton from '@elliemae/ds-button';
11
+ import { ArrowShortRight, ArrowShortReturn, CloseCircle } from '@elliemae/ds-icons';
9
12
  import { jsx } from 'react/jsx-runtime';
10
13
 
11
14
  var _CloseCircle, _ArrowShortRight, _ArrowShortReturn;
@@ -1,3 +1,8 @@
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';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import _jsx from '@babel/runtime/helpers/esm/jsx';
@@ -6,7 +11,7 @@ import { aggregatedClasses } from '@elliemae/ds-classnames';
6
11
  import { animated } from 'react-spring/web';
7
12
  import TruncatedTooltipText from '@elliemae/ds-basic/TruncatedTooltipText';
8
13
  import { sortableHandle } from 'react-sortable-hoc';
9
- import GripperVertical from '@elliemae/ds-icons/GripperVertical';
14
+ import { GripperVertical } from '@elliemae/ds-icons';
10
15
  import { isMovable } from '../../helper.js';
11
16
  import { jsxs } from 'react/jsx-runtime';
12
17
 
@@ -21,20 +26,23 @@ const blockName = 'shuttle-list-item';
21
26
  const Wrapper = aggregatedClasses(animated.li)(blockName);
22
27
  const ActionsGroup = aggregatedClasses('div')(blockName, 'actions');
23
28
  const IconWrapper = aggregatedClasses('div')(blockName, 'icon-wrapper');
24
- const Content = aggregatedClasses('label')(blockName, 'content', ({
25
- isChecked,
26
- canMove,
27
- isReadonly
28
- }) => ({
29
- checked: isChecked,
30
- 'can-hover': canMove,
31
- 'read-only': isReadonly
32
- }));
29
+ const Content = aggregatedClasses('label')(blockName, 'content', _ref => {
30
+ let {
31
+ isChecked,
32
+ canMove,
33
+ isReadonly
34
+ } = _ref;
35
+ return {
36
+ checked: isChecked,
37
+ 'can-hover': canMove,
38
+ 'read-only': isReadonly
39
+ };
40
+ });
33
41
  const SortHandler = sortableHandle(() => _GripperVertical || (_GripperVertical = /*#__PURE__*/_jsx(GripperVertical, {
34
42
  className: "gripper"
35
43
  })));
36
44
 
37
- function ShuttleListItem(_ref) {
45
+ function ShuttleListItem(_ref2) {
38
46
  let {
39
47
  item = {},
40
48
  showIcons = undefined,
@@ -45,8 +53,8 @@ function ShuttleListItem(_ref) {
45
53
  showActions = true,
46
54
  actions = [],
47
55
  showSortHandler = false
48
- } = _ref,
49
- rest = _objectWithoutProperties(_ref, _excluded);
56
+ } = _ref2,
57
+ rest = _objectWithoutProperties(_ref2, _excluded);
50
58
 
51
59
  return /*#__PURE__*/jsxs(Wrapper, _objectSpread(_objectSpread({}, rest), {}, {
52
60
  role: "listitem",
@@ -1,6 +1,12 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
3
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
4
+ import 'core-js/modules/web.dom-collections.iterator.js';
5
+ import 'core-js/modules/esnext.async-iterator.filter.js';
6
+ import 'core-js/modules/esnext.iterator.constructor.js';
7
+ import 'core-js/modules/esnext.iterator.filter.js';
8
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
9
+ import 'core-js/modules/esnext.iterator.for-each.js';
4
10
  import { useState, useCallback, useEffect } from 'react';
5
11
  import { isMovable } from '../../helper.js';
6
12
  import { DrillDownButton, MoveButton } from './ActionButtons.js';
@@ -1,3 +1,8 @@
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';
2
7
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
8
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
@@ -1,13 +1,14 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import DSButton from '@elliemae/ds-basic/Button';
3
+ import DSButton from '@elliemae/ds-button';
4
4
  import { ShuttleListPanel as ShuttleListPanel$1 } from '../classedComponents.js';
5
5
 
6
- function ShuttleListPanel({
7
- onClick = () => null,
8
- open = false,
9
- children
10
- }) {
6
+ function ShuttleListPanel(_ref) {
7
+ let {
8
+ onClick = () => null,
9
+ open = false,
10
+ children
11
+ } = _ref;
11
12
  return /*#__PURE__*/_jsx(ShuttleListPanel$1, {
12
13
  classProps: {
13
14
  open
@@ -2,15 +2,18 @@ import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
3
  import { Component } from 'react';
4
4
  import { aggregatedClasses } from '@elliemae/ds-classnames';
5
- import { debounce } from '@elliemae/ds-utilities/utils';
6
- import DSTextBox from '@elliemae/ds-basic/form/TextBox';
5
+ import { debounce } from '@elliemae/ds-utilities';
6
+ import { DSTextBox } from '@elliemae/ds-form';
7
7
 
8
8
  const blockName = 'shuttle-search-box';
9
- const SearchBoxContainer = aggregatedClasses('div')(blockName, null, ({
10
- isOpen
11
- }) => ({
12
- opened: isOpen
13
- }));
9
+ const SearchBoxContainer = aggregatedClasses('div')(blockName, null, _ref => {
10
+ let {
11
+ isOpen
12
+ } = _ref;
13
+ return {
14
+ opened: isOpen
15
+ };
16
+ });
14
17
  const filterList = debounce((term, onFilterCallback) => {
15
18
  onFilterCallback(term);
16
19
  }, 200);
@@ -25,9 +28,10 @@ class ShuttleSearchBox extends Component {
25
28
  this.handleKeyPress = this.handleKeyPress.bind(this);
26
29
  }
27
30
 
28
- static getDerivedStateFromProps(nextProps, {
29
- prevProps
30
- }) {
31
+ static getDerivedStateFromProps(nextProps, _ref2) {
32
+ let {
33
+ prevProps
34
+ } = _ref2;
31
35
  const {
32
36
  value
33
37
  } = nextProps;
@@ -1,11 +1,17 @@
1
1
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
2
2
  import _jsx from '@babel/runtime/helpers/esm/jsx';
3
3
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
4
+ import 'core-js/modules/esnext.async-iterator.reduce.js';
5
+ import 'core-js/modules/esnext.iterator.constructor.js';
6
+ import 'core-js/modules/esnext.iterator.reduce.js';
7
+ import 'core-js/modules/esnext.async-iterator.filter.js';
8
+ import 'core-js/modules/esnext.iterator.filter.js';
9
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
10
+ import 'core-js/modules/esnext.iterator.for-each.js';
4
11
  import { useContext, useMemo, useCallback } from 'react';
5
- import ArrowShortRight from '@elliemae/ds-icons/ArrowShortRight';
6
- import DSButton from '@elliemae/ds-basic/Button';
7
- import Search from '@elliemae/ds-icons/Search';
8
- import { runAll } from '@elliemae/ds-utilities/utils';
12
+ import { Search, ArrowShortRight } from '@elliemae/ds-icons';
13
+ import DSButton from '@elliemae/ds-button';
14
+ import { runAll } from '@elliemae/ds-utilities';
9
15
  import ShuttleSearchBox from './ShuttleSearchBox.js';
10
16
  import ShuttleInfiniteScrollIndicator from './ShuttleInfiniteScrollIndicator.js';
11
17
  import ShuttleSourceListItem from './ShuttleListItem/ShuttleSourceListItem.js';
@@ -29,31 +35,32 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
29
35
 
30
36
  const noop = () => {};
31
37
 
32
- function ShuttleSource({
33
- items = [],
34
- checkedItems = [],
35
- // build Map() and memoize it for better performance
36
- hierarchy = [],
37
- onMoveItem = noop,
38
- onCheckItem = noop,
39
- onMoveCheckedItems = noop,
40
- onNavigateTo = noop,
41
- onClearCheckedItems = noop,
42
- emptyMessage = 'No items found',
43
- composeSourceItemProps = noop,
44
- loading = false,
45
- onSearch = noop,
46
- onSearchClose = noop,
47
- onSearchOpen = noop,
48
- sourceSortable = false,
49
- onSortEnd = noop,
50
- sourceClearItemsText = 'CLEAR ALL',
51
- searchPlaceholder,
52
- renderSourceCounter = amount => `${amount} items`,
53
- onGetMoreItems = () => {},
54
- moreItemsLoading = false,
55
- hasNextPage = false
56
- }) {
38
+ function ShuttleSource(_ref) {
39
+ let {
40
+ items = [],
41
+ checkedItems = [],
42
+ // build Map() and memoize it for better performance
43
+ hierarchy = [],
44
+ onMoveItem = noop,
45
+ onCheckItem = noop,
46
+ onMoveCheckedItems = noop,
47
+ onNavigateTo = noop,
48
+ onClearCheckedItems = noop,
49
+ emptyMessage = 'No items found',
50
+ composeSourceItemProps = noop,
51
+ loading = false,
52
+ onSearch = noop,
53
+ onSearchClose = noop,
54
+ onSearchOpen = noop,
55
+ sourceSortable = false,
56
+ onSortEnd = noop,
57
+ sourceClearItemsText = 'CLEAR ALL',
58
+ searchPlaceholder,
59
+ renderSourceCounter = amount => "".concat(amount, " items"),
60
+ onGetMoreItems = () => {},
61
+ moreItemsLoading = false,
62
+ hasNextPage = false
63
+ } = _ref;
57
64
  const {
58
65
  state: {
59
66
  isMovingBack = false,
@@ -87,10 +94,11 @@ function ShuttleSource({
87
94
  }, [searching]);
88
95
  const ComponentList = useMemo(() => sourceSortable ? VirtualizedSortableList : VirtualizedList, [sourceSortable]);
89
96
 
90
- const handleSortEnd = ({
91
- oldIndex,
92
- newIndex
93
- }) => {
97
+ const handleSortEnd = _ref2 => {
98
+ let {
99
+ oldIndex,
100
+ newIndex
101
+ } = _ref2;
94
102
  onSortEnd({
95
103
  sourceItem: items[oldIndex],
96
104
  targetItem: items[newIndex]
@@ -131,11 +139,11 @@ function ShuttleSource({
131
139
  }
132
140
  }, void 0, /*#__PURE__*/_jsx(ComponentList, {
133
141
  helperClass: "drag-helper",
134
- itemRenderer: _ref => {
142
+ itemRenderer: _ref3 => {
135
143
  let {
136
144
  item
137
- } = _ref,
138
- rest = _objectWithoutProperties(_ref, _excluded);
145
+ } = _ref3,
146
+ rest = _objectWithoutProperties(_ref3, _excluded);
139
147
 
140
148
  return /*#__PURE__*/jsx(ShuttleSourceListItem, _objectSpread(_objectSpread(_objectSpread({
141
149
  "data-testid": "source-list-item"