@elliemae/ds-shuttle 2.0.0-alpha.10 → 2.0.0-alpha.14

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 (63) 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 +28 -16
  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 +18 -18
  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 +22 -10
  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 +16 -14
  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 +27 -12
  60. package/types/DSShuttle.d.ts +259 -37
  61. package/types/components/ShuttleBreadcrumb.d.ts +1 -1
  62. package/cjs/package.json +0 -7
  63. package/esm/package.json +0 -7
@@ -1,5 +1,11 @@
1
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
2
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
3
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
- import { addOrRemove, cloneDeep, compose, hashArray } from '@elliemae/ds-utilities/utils';
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 { addOrRemove, cloneDeep, compose, hashArray } from '@elliemae/ds-utilities';
3
9
  import { toggleInObject, filterMovedItems, getHierarchyTypeName } from './helper.js';
4
10
  import utils from './utils.js';
5
11
 
@@ -35,11 +41,13 @@ const defaultOptions = {
35
41
  op: hasMoved => !hasMoved
36
42
  }; // todo: optimize this
37
43
 
38
- function getItemDeep({
39
- collection,
40
- id,
41
- options
42
- }) {
44
+ function getItemDeep(_ref) {
45
+ let {
46
+ collection,
47
+ id,
48
+ options
49
+ } = _ref;
50
+
43
51
  const {
44
52
  idField
45
53
  } = _objectSpread(_objectSpread({}, defaultOptions), options);
@@ -57,9 +65,10 @@ function getItemDeep({
57
65
  }
58
66
 
59
67
  function addToTarget(itemToAdd, collection) {
60
- return (state, {
61
- idField
62
- }) => {
68
+ return (state, _ref2) => {
69
+ let {
70
+ idField
71
+ } = _ref2;
63
72
  const items = collection || state.preparedItems;
64
73
  const {
65
74
  item,
@@ -76,9 +85,10 @@ function addToTarget(itemToAdd, collection) {
76
85
  } // todo: optimize this
77
86
 
78
87
  function removeFromTarget(itemToRemove) {
79
- return (state, {
80
- idField
81
- }) => {
88
+ return (state, _ref3) => {
89
+ let {
90
+ idField
91
+ } = _ref3;
82
92
  let targetItems = cloneDeep(state.targetItems);
83
93
  const itemIndex = targetItems.findIndex(fItem => fItem.id === itemToRemove.id);
84
94
  const item = targetItems[itemIndex];
@@ -1,7 +1,12 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
+ import 'core-js/modules/esnext.async-iterator.filter.js';
4
+ import 'core-js/modules/esnext.iterator.constructor.js';
5
+ import 'core-js/modules/esnext.iterator.filter.js';
6
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
7
+ import 'core-js/modules/esnext.iterator.for-each.js';
3
8
  import { useContext, useMemo } from 'react';
4
- import { compose, sortBy, uniqBy, values, isFunction } from '@elliemae/ds-utilities/utils';
9
+ import { compose, sortBy, uniqBy, values, isFunction } from '@elliemae/ds-utilities';
5
10
  import withProviders from './withProviders.js';
6
11
  import { filterItemsByHierarchy, getActiveIdFromHierarchy, prepareItems, getItemsById } from './helper.js';
7
12
  import SearchState from './SearchState.js';
@@ -17,10 +22,12 @@ function filterItemsByTerm(items, term) {
17
22
  return items.filter(item => item.name.toLowerCase().indexOf(String(term).toLowerCase()) !== -1 || String(item.id).indexOf(String(term).toLowerCase()) !== -1);
18
23
  }
19
24
 
20
- function ShuttleContainer({
21
- items = [],
22
- children
23
- }) {
25
+ function ShuttleContainer(_ref) {
26
+ let {
27
+ items = [],
28
+ children
29
+ } = _ref;
30
+
24
31
  const _useContext = useContext(useShuttleState.Context),
25
32
  {
26
33
  state: shuttleState
@@ -1,7 +1,19 @@
1
- import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
2
1
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
2
+ import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
+ import 'core-js/modules/esnext.async-iterator.filter.js';
4
+ import 'core-js/modules/esnext.iterator.constructor.js';
5
+ import 'core-js/modules/esnext.iterator.filter.js';
6
+ import 'core-js/modules/esnext.async-iterator.some.js';
7
+ import 'core-js/modules/esnext.iterator.some.js';
8
+ import 'core-js/modules/esnext.async-iterator.map.js';
9
+ import 'core-js/modules/esnext.iterator.map.js';
10
+ import 'core-js/modules/web.dom-collections.iterator.js';
11
+ import 'core-js/modules/esnext.async-iterator.find.js';
12
+ import 'core-js/modules/esnext.iterator.find.js';
13
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
14
+ import 'core-js/modules/esnext.iterator.for-each.js';
3
15
  import { Component } from 'react';
4
- import { arrayMove, compose } from '@elliemae/ds-utilities/utils';
16
+ import { arrayMove, compose } from '@elliemae/ds-utilities';
5
17
  import withProviders from './withProviders.js';
6
18
  import { navigateTo, resetCheckedItems, resetMovedItems, addToTarget, removeFromTarget, toggleItemSelection } from './Shuttle.actions.js';
7
19
  import { pipe, getItemsById, getActiveIdFromHierarchy, filterBySearch, filterMovedItems, getChildrenFromParent } from './helper.js';
@@ -20,12 +32,12 @@ class ShuttleImpl extends Component {
20
32
  constructor(props) {
21
33
  super(props);
22
34
 
23
- _defineProperty(this, "getState", () => {
35
+ this.getState = () => {
24
36
  const {
25
37
  movedItems
26
38
  } = this.state;
27
39
  return Object.keys(movedItems);
28
- });
40
+ };
29
41
 
30
42
  this.state = {
31
43
  prevProps: {},
@@ -166,10 +178,11 @@ class ShuttleImpl extends Component {
166
178
  onAddCheckedItems(items);
167
179
  }
168
180
 
169
- handleTargetSortEnd({
170
- sourceItem,
171
- targetItem
172
- }) {
181
+ handleTargetSortEnd(_ref) {
182
+ let {
183
+ sourceItem,
184
+ targetItem
185
+ } = _ref;
173
186
  const {
174
187
  idField,
175
188
  onTargetSortEnd
@@ -285,8 +298,7 @@ class ShuttleImpl extends Component {
285
298
 
286
299
  }
287
300
 
288
- _defineProperty(ShuttleImpl, "contextType", SearchState.Context);
289
-
301
+ ShuttleImpl.contextType = SearchState.Context;
290
302
  var ShuttleImpl$1 = withProviders(ShuttleImpl);
291
303
 
292
304
  export { ShuttleImpl$1 as default };
@@ -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