@elliemae/ds-shuttle 1.60.0 → 2.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/AnimationState.js +26 -42
- package/cjs/DSShuttle.js +54 -146
- package/cjs/SearchState.js +10 -22
- package/cjs/Shuttle.actions.js +65 -73
- package/cjs/ShuttleContainer.js +49 -77
- package/cjs/ShuttleImpl.js +250 -338
- package/cjs/ShuttleRenderer.js +121 -184
- package/cjs/ShuttleState.js +22 -39
- package/cjs/animation/animationConfig.js +56 -63
- package/cjs/classedComponents.js +32 -35
- package/cjs/components/LoadingIndicator.js +11 -12
- package/cjs/components/OverflowList.js +33 -29
- package/cjs/components/ShuttleBreadcrumb.js +26 -32
- package/cjs/components/ShuttleInfiniteScrollIndicator.js +17 -13
- package/cjs/components/ShuttleListItem/ActionButtons.js +39 -34
- package/cjs/components/ShuttleListItem/ShuttleListItem.js +59 -58
- package/cjs/components/ShuttleListItem/ShuttleSourceListItem.js +40 -61
- package/cjs/components/ShuttleListItem/ShuttleTargetListItem.js +35 -50
- package/cjs/components/ShuttleListPanel.js +11 -23
- package/cjs/components/ShuttleSearchBox.js +79 -102
- package/cjs/components/ShuttleSource.js +99 -169
- package/cjs/components/ShuttleTarget.js +62 -82
- package/cjs/components/VirtualizedItem.js +28 -22
- package/cjs/components/VirtualizedList.js +52 -50
- package/cjs/components/VirtualizedSortableList.js +25 -23
- package/cjs/helper.js +52 -82
- package/cjs/index.js +1 -60
- package/cjs/updateShuttleStateFromProps.js +41 -40
- package/cjs/utils.js +9 -9
- package/cjs/withProviders.js +15 -16
- package/esm/AnimationState.js +25 -40
- package/esm/DSShuttle.js +51 -143
- package/esm/SearchState.js +9 -20
- package/esm/Shuttle.actions.js +64 -71
- package/esm/ShuttleContainer.js +47 -75
- package/esm/ShuttleImpl.js +254 -334
- package/esm/ShuttleRenderer.js +117 -179
- package/esm/ShuttleState.js +17 -32
- package/esm/animation/animationConfig.js +56 -63
- package/esm/classedComponents.js +30 -33
- package/esm/components/LoadingIndicator.js +10 -11
- package/esm/components/OverflowList.js +30 -26
- package/esm/components/ShuttleBreadcrumb.js +23 -29
- package/esm/components/ShuttleInfiniteScrollIndicator.js +16 -12
- package/esm/components/ShuttleListItem/ActionButtons.js +38 -33
- package/esm/components/ShuttleListItem/ShuttleListItem.js +56 -55
- package/esm/components/ShuttleListItem/ShuttleSourceListItem.js +36 -56
- package/esm/components/ShuttleListItem/ShuttleTargetListItem.js +31 -46
- package/esm/components/ShuttleListPanel.js +10 -22
- package/esm/components/ShuttleSearchBox.js +78 -95
- package/esm/components/ShuttleSource.js +89 -157
- package/esm/components/ShuttleTarget.js +55 -75
- package/esm/components/VirtualizedItem.js +26 -20
- package/esm/components/VirtualizedList.js +48 -46
- package/esm/components/VirtualizedSortableList.js +21 -18
- package/esm/helper.js +49 -77
- package/esm/index.js +0 -59
- package/esm/updateShuttleStateFromProps.js +40 -38
- package/esm/utils.js +6 -4
- package/esm/withProviders.js +13 -15
- package/package.json +163 -18
- package/types/AnimationState.d.ts +26 -0
- package/types/DSShuttle.d.ts +341 -0
- package/types/SearchState.d.ts +22 -0
- package/types/Shuttle.actions.d.ts +11 -0
- package/types/ShuttleContainer.d.ts +3 -0
- package/types/ShuttleImpl.d.ts +3 -0
- package/types/ShuttleRenderer.d.ts +37 -0
- package/types/ShuttleState.d.ts +53 -0
- package/types/animation/animationConfig.d.ts +68 -0
- package/types/classedComponents.d.ts +14 -0
- package/types/components/LoadingIndicator.d.ts +3 -0
- package/types/components/OverflowList.d.ts +7 -0
- package/types/components/ShuttleBreadcrumb.d.ts +7 -0
- package/types/components/ShuttleInfiniteScrollIndicator.d.ts +5 -0
- package/types/components/ShuttleListItem/ActionButtons.d.ts +4 -0
- package/types/components/ShuttleListItem/ShuttleListItem.d.ts +14 -0
- package/types/components/ShuttleListItem/ShuttleSourceListItem.d.ts +13 -0
- package/types/components/ShuttleListItem/ShuttleTargetListItem.d.ts +13 -0
- package/types/components/ShuttleListPanel.d.ts +7 -0
- package/types/components/ShuttleSearchBox.d.ts +20 -0
- package/types/components/ShuttleSource.d.ts +54 -0
- package/types/components/ShuttleTarget.d.ts +16 -0
- package/types/components/VirtualizedItem.d.ts +3 -0
- package/types/components/VirtualizedList.d.ts +12 -0
- package/types/components/VirtualizedSortableList.d.ts +6 -0
- package/types/helper.d.ts +16 -0
- package/types/index.d.ts +1 -0
- package/types/tests/DSShuttle.events.test.d.ts +1 -0
- package/types/tests/DSShuttle.test.d.ts +1 -0
- package/types/tests/utils.d.ts +116 -0
- package/types/updateShuttleStateFromProps.d.ts +1 -0
- package/types/utils.d.ts +2 -0
- package/types/withProviders.d.ts +3 -0
- package/AnimationState/package.json +0 -10
- package/DSShuttle/package.json +0 -10
- package/SearchState/package.json +0 -10
- package/Shuttle.actions/package.json +0 -10
- package/ShuttleContainer/package.json +0 -10
- package/ShuttleImpl/package.json +0 -10
- package/ShuttleRenderer/package.json +0 -10
- package/ShuttleState/package.json +0 -10
- package/animation/animationConfig/package.json +0 -10
- package/cjs/AnimationState.js.map +0 -1
- package/cjs/DSShuttle.js.map +0 -1
- package/cjs/SearchState.js.map +0 -1
- package/cjs/Shuttle.actions.js.map +0 -1
- package/cjs/ShuttleContainer.js.map +0 -1
- package/cjs/ShuttleImpl.js.map +0 -1
- package/cjs/ShuttleRenderer.js.map +0 -1
- package/cjs/ShuttleState.js.map +0 -1
- package/cjs/animation/animationConfig.js.map +0 -1
- package/cjs/classedComponents.js.map +0 -1
- package/cjs/components/LoadingIndicator.js.map +0 -1
- package/cjs/components/OverflowList.js.map +0 -1
- package/cjs/components/ShuttleBreadcrumb.js.map +0 -1
- package/cjs/components/ShuttleInfiniteScrollIndicator.js.map +0 -1
- package/cjs/components/ShuttleListItem/ActionButtons.js.map +0 -1
- package/cjs/components/ShuttleListItem/ShuttleListItem.js.map +0 -1
- package/cjs/components/ShuttleListItem/ShuttleSourceListItem.js.map +0 -1
- package/cjs/components/ShuttleListItem/ShuttleTargetListItem.js.map +0 -1
- package/cjs/components/ShuttleListPanel.js.map +0 -1
- package/cjs/components/ShuttleSearchBox.js.map +0 -1
- package/cjs/components/ShuttleSource.js.map +0 -1
- package/cjs/components/ShuttleTarget.js.map +0 -1
- package/cjs/components/VirtualizedItem.js.map +0 -1
- package/cjs/components/VirtualizedList.js.map +0 -1
- package/cjs/components/VirtualizedSortableList.js.map +0 -1
- package/cjs/helper.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/tests/utils.js +0 -1112
- package/cjs/tests/utils.js.map +0 -1
- package/cjs/updateShuttleStateFromProps.js.map +0 -1
- package/cjs/utils.js.map +0 -1
- package/cjs/withProviders.js.map +0 -1
- package/classedComponents/package.json +0 -10
- package/components/LoadingIndicator/package.json +0 -10
- package/components/OverflowList/package.json +0 -10
- package/components/ShuttleBreadcrumb/package.json +0 -10
- package/components/ShuttleInfiniteScrollIndicator/package.json +0 -10
- package/components/ShuttleListItem/ActionButtons/package.json +0 -10
- package/components/ShuttleListItem/ShuttleListItem/package.json +0 -10
- package/components/ShuttleListItem/ShuttleSourceListItem/package.json +0 -10
- package/components/ShuttleListItem/ShuttleTargetListItem/package.json +0 -10
- package/components/ShuttleListPanel/package.json +0 -10
- package/components/ShuttleSearchBox/package.json +0 -10
- package/components/ShuttleSource/package.json +0 -10
- package/components/ShuttleTarget/package.json +0 -10
- package/components/VirtualizedItem/package.json +0 -10
- package/components/VirtualizedList/package.json +0 -10
- package/components/VirtualizedSortableList/package.json +0 -10
- package/esm/AnimationState.js.map +0 -1
- package/esm/DSShuttle.js.map +0 -1
- package/esm/SearchState.js.map +0 -1
- package/esm/Shuttle.actions.js.map +0 -1
- package/esm/ShuttleContainer.js.map +0 -1
- package/esm/ShuttleImpl.js.map +0 -1
- package/esm/ShuttleRenderer.js.map +0 -1
- package/esm/ShuttleState.js.map +0 -1
- package/esm/animation/animationConfig.js.map +0 -1
- package/esm/classedComponents.js.map +0 -1
- package/esm/components/LoadingIndicator.js.map +0 -1
- package/esm/components/OverflowList.js.map +0 -1
- package/esm/components/ShuttleBreadcrumb.js.map +0 -1
- package/esm/components/ShuttleInfiniteScrollIndicator.js.map +0 -1
- package/esm/components/ShuttleListItem/ActionButtons.js.map +0 -1
- package/esm/components/ShuttleListItem/ShuttleListItem.js.map +0 -1
- package/esm/components/ShuttleListItem/ShuttleSourceListItem.js.map +0 -1
- package/esm/components/ShuttleListItem/ShuttleTargetListItem.js.map +0 -1
- package/esm/components/ShuttleListPanel.js.map +0 -1
- package/esm/components/ShuttleSearchBox.js.map +0 -1
- package/esm/components/ShuttleSource.js.map +0 -1
- package/esm/components/ShuttleTarget.js.map +0 -1
- package/esm/components/VirtualizedItem.js.map +0 -1
- package/esm/components/VirtualizedList.js.map +0 -1
- package/esm/components/VirtualizedSortableList.js.map +0 -1
- package/esm/helper.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/tests/utils.js +0 -1100
- package/esm/tests/utils.js.map +0 -1
- package/esm/updateShuttleStateFromProps.js.map +0 -1
- package/esm/utils.js.map +0 -1
- package/esm/withProviders.js.map +0 -1
- package/helper/package.json +0 -10
- package/tests/utils/package.json +0 -10
- package/updateShuttleStateFromProps/package.json +0 -10
- package/utils/package.json +0 -10
- package/withProviders/package.json +0 -10
|
@@ -1,86 +1,88 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
3
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
4
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
2
5
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
6
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
|
+
import 'core-js/modules/esnext.async-iterator.find.js';
|
|
10
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
11
|
+
import 'core-js/modules/esnext.iterator.find.js';
|
|
3
12
|
import { compose, isEqual, hashArray } from '@elliemae/ds-utilities';
|
|
4
13
|
import { getItemsById, pipe, prepareItems } from './helper.js';
|
|
5
14
|
import { addToTarget, resetMovedItems } from './Shuttle.actions.js';
|
|
6
|
-
import 'treetabular';
|
|
7
|
-
import './utils.js';
|
|
8
15
|
|
|
9
16
|
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; }
|
|
10
17
|
|
|
11
18
|
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; }
|
|
12
19
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
};
|
|
20
|
+
const mergeToPrevState = (prevState, nextState) => _objectSpread(_objectSpread(_objectSpread({}, prevState), nextState), {}, {
|
|
21
|
+
prevProps: _objectSpread(_objectSpread({}, prevState.prevProps), nextState.prevProps)
|
|
22
|
+
});
|
|
18
23
|
|
|
19
24
|
function compareSelectedItems(nextProps, prevProps) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
const {
|
|
26
|
+
selectedItems,
|
|
27
|
+
idField
|
|
28
|
+
} = nextProps;
|
|
29
|
+
return nextState => {
|
|
23
30
|
if (isEqual(selectedItems, prevProps.selectedItems)) return nextState; // if we are using nonSelectedItems skip this legacy logic and paint just what's passed
|
|
24
31
|
// to nonSelectedItems (source) and selectedItems (target)
|
|
25
32
|
// TODO make controlledV2 the default behavior for controlled shuttle
|
|
26
33
|
|
|
27
34
|
if (nextProps.nonSelectedItems) return nextState;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return mergeToPrevState(nextState, _objectSpread(_objectSpread({}, pipe([resetMovedItems()]
|
|
35
|
+
const {
|
|
36
|
+
preparedItems
|
|
37
|
+
} = nextState;
|
|
38
|
+
const prevSelectedItemsHash = hashArray(prevProps.selectedItems || []);
|
|
39
|
+
const itemsToMove = getItemsById(selectedItems, preparedItems);
|
|
40
|
+
const actions = itemsToMove.map(item => prevSelectedItemsHash[item[idField]] ? addToTarget(item, nextState.targetItems) : addToTarget(item));
|
|
41
|
+
return mergeToPrevState(nextState, _objectSpread(_objectSpread({}, pipe([resetMovedItems(), ...actions])(nextState, nextProps)), {}, {
|
|
35
42
|
prevProps: _objectSpread(_objectSpread({}, nextState.prevProps), {}, {
|
|
36
|
-
selectedItems
|
|
43
|
+
selectedItems
|
|
37
44
|
})
|
|
38
45
|
}));
|
|
39
46
|
};
|
|
40
47
|
}
|
|
41
48
|
|
|
42
49
|
function compareItems(nextProps, prevProps) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
const {
|
|
51
|
+
items
|
|
52
|
+
} = nextProps;
|
|
53
|
+
return nextState => {
|
|
54
|
+
const preparedItems = prepareItems(items);
|
|
55
|
+
const isControlledV2 = nextProps.nonSelectedItems; // TODO make controlledV2 the default behavior for controlled shuttle
|
|
47
56
|
|
|
48
57
|
if (isControlledV2) {
|
|
49
|
-
|
|
50
|
-
return preparedItems.find(function (it) {
|
|
51
|
-
return it.id === id;
|
|
52
|
-
});
|
|
53
|
-
});
|
|
58
|
+
const targetItems = nextProps.selectedItems.map(id => preparedItems.find(it => it.id === id));
|
|
54
59
|
return mergeToPrevState(nextState, {
|
|
55
|
-
preparedItems
|
|
60
|
+
preparedItems,
|
|
56
61
|
// PUI-4462 on async load and items change, the shuttle loads
|
|
57
62
|
// all children from currently selected targetItems from items prop
|
|
58
63
|
// (items prop update)
|
|
59
|
-
targetItems
|
|
64
|
+
targetItems,
|
|
60
65
|
movedItems: targetItems,
|
|
61
66
|
prevProps: {
|
|
62
|
-
items
|
|
67
|
+
items
|
|
63
68
|
}
|
|
64
69
|
});
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
if (isEqual(items, prevProps.items)) return nextState;
|
|
68
73
|
return mergeToPrevState(nextState, {
|
|
69
|
-
preparedItems
|
|
74
|
+
preparedItems,
|
|
70
75
|
prevProps: {
|
|
71
|
-
items
|
|
76
|
+
items
|
|
72
77
|
}
|
|
73
78
|
});
|
|
74
79
|
};
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
function updateShuttleStateFromProps (nextProps, prevState) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
});
|
|
81
|
-
var nextState = compose.apply(void 0, _toConsumableArray(stateReducers))(prevState);
|
|
83
|
+
const stateReducers = [compareSelectedItems, compareItems].map(fn => fn(nextProps, prevState.prevProps));
|
|
84
|
+
const nextState = compose(...stateReducers)(prevState);
|
|
82
85
|
return !isEqual(nextState, prevState) ? nextState : null;
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
export { updateShuttleStateFromProps as default };
|
|
86
|
-
//# sourceMappingURL=updateShuttleStateFromProps.js.map
|
package/esm/utils.js
CHANGED
|
@@ -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 * as tree from 'treetabular';
|
|
3
8
|
import { compose } from '@elliemae/ds-utilities';
|
|
@@ -7,10 +12,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
7
12
|
|
|
8
13
|
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; }
|
|
9
14
|
var utils = _objectSpread({
|
|
10
|
-
prepareItems:
|
|
11
|
-
return compose(tree.fixOrder(options), prepareItems)(items);
|
|
12
|
-
}
|
|
15
|
+
prepareItems: (items, options) => compose(tree.fixOrder(options), prepareItems)(items)
|
|
13
16
|
}, tree);
|
|
14
17
|
|
|
15
18
|
export { utils as default };
|
|
16
|
-
//# sourceMappingURL=utils.js.map
|
package/esm/withProviders.js
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import
|
|
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';
|
|
6
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import 'react';
|
|
2
9
|
import AnimationContext from './AnimationState.js';
|
|
3
10
|
import SearchState from './SearchState.js';
|
|
4
11
|
import useShuttleState from './ShuttleState.js';
|
|
5
|
-
import '
|
|
6
|
-
import 'constate';
|
|
7
|
-
import '@babel/runtime/helpers/esm/toConsumableArray';
|
|
8
|
-
import './helper.js';
|
|
9
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
10
|
-
import '@elliemae/ds-utilities';
|
|
11
|
-
import 'treetabular';
|
|
12
|
-
import './Shuttle.actions.js';
|
|
13
|
-
import './utils.js';
|
|
12
|
+
import { jsx } from 'react/jsx-runtime';
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
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; }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
16
17
|
|
|
17
18
|
function withProviders(Component) {
|
|
18
|
-
return
|
|
19
|
-
return /*#__PURE__*/React.createElement(useShuttleState.Provider, null, /*#__PURE__*/React.createElement(AnimationContext.Provider, null, /*#__PURE__*/React.createElement(SearchState.Provider, null, /*#__PURE__*/React.createElement(Component, props))));
|
|
20
|
-
};
|
|
19
|
+
return props => /*#__PURE__*/_jsx(useShuttleState.Provider, {}, void 0, /*#__PURE__*/_jsx(AnimationContext.Provider, {}, void 0, /*#__PURE__*/_jsx(SearchState.Provider, {}, void 0, /*#__PURE__*/jsx(Component, _objectSpread({}, props)))));
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
export { withProviders as default };
|
|
24
|
-
//# sourceMappingURL=withProviders.js.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,150 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-shuttle",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.12",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
5
|
+
"description": "ICE MT - Dimsum - Shuttle",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./withProviders": {
|
|
15
|
+
"import": "./esm/withProviders.js",
|
|
16
|
+
"require": "./cjs/withProviders.js"
|
|
17
|
+
},
|
|
18
|
+
"./utils": {
|
|
19
|
+
"import": "./esm/utils.js",
|
|
20
|
+
"require": "./cjs/utils.js"
|
|
21
|
+
},
|
|
22
|
+
"./updateShuttleStateFromProps": {
|
|
23
|
+
"import": "./esm/updateShuttleStateFromProps.js",
|
|
24
|
+
"require": "./cjs/updateShuttleStateFromProps.js"
|
|
25
|
+
},
|
|
26
|
+
"./tests/utils": {
|
|
27
|
+
"import": "./esm/tests/utils.js",
|
|
28
|
+
"require": "./cjs/tests/utils.js"
|
|
29
|
+
},
|
|
30
|
+
"./ShuttleState": {
|
|
31
|
+
"import": "./esm/ShuttleState.js",
|
|
32
|
+
"require": "./cjs/ShuttleState.js"
|
|
33
|
+
},
|
|
34
|
+
"./ShuttleRenderer": {
|
|
35
|
+
"import": "./esm/ShuttleRenderer.js",
|
|
36
|
+
"require": "./cjs/ShuttleRenderer.js"
|
|
37
|
+
},
|
|
38
|
+
"./ShuttleImpl": {
|
|
39
|
+
"import": "./esm/ShuttleImpl.js",
|
|
40
|
+
"require": "./cjs/ShuttleImpl.js"
|
|
41
|
+
},
|
|
42
|
+
"./ShuttleContainer": {
|
|
43
|
+
"import": "./esm/ShuttleContainer.js",
|
|
44
|
+
"require": "./cjs/ShuttleContainer.js"
|
|
45
|
+
},
|
|
46
|
+
"./Shuttle.actions": {
|
|
47
|
+
"import": "./esm/Shuttle.actions.js",
|
|
48
|
+
"require": "./cjs/Shuttle.actions.js"
|
|
49
|
+
},
|
|
50
|
+
"./SearchState": {
|
|
51
|
+
"import": "./esm/SearchState.js",
|
|
52
|
+
"require": "./cjs/SearchState.js"
|
|
53
|
+
},
|
|
54
|
+
"./helper": {
|
|
55
|
+
"import": "./esm/helper.js",
|
|
56
|
+
"require": "./cjs/helper.js"
|
|
57
|
+
},
|
|
58
|
+
"./DSShuttle": {
|
|
59
|
+
"import": "./esm/DSShuttle.js",
|
|
60
|
+
"require": "./cjs/DSShuttle.js"
|
|
61
|
+
},
|
|
62
|
+
"./components/VirtualizedSortableList": {
|
|
63
|
+
"import": "./esm/components/VirtualizedSortableList.js",
|
|
64
|
+
"require": "./cjs/components/VirtualizedSortableList.js"
|
|
65
|
+
},
|
|
66
|
+
"./components/VirtualizedList": {
|
|
67
|
+
"import": "./esm/components/VirtualizedList.js",
|
|
68
|
+
"require": "./cjs/components/VirtualizedList.js"
|
|
69
|
+
},
|
|
70
|
+
"./components/VirtualizedItem": {
|
|
71
|
+
"import": "./esm/components/VirtualizedItem.js",
|
|
72
|
+
"require": "./cjs/components/VirtualizedItem.js"
|
|
73
|
+
},
|
|
74
|
+
"./components/ShuttleTarget": {
|
|
75
|
+
"import": "./esm/components/ShuttleTarget.js",
|
|
76
|
+
"require": "./cjs/components/ShuttleTarget.js"
|
|
77
|
+
},
|
|
78
|
+
"./components/ShuttleSource": {
|
|
79
|
+
"import": "./esm/components/ShuttleSource.js",
|
|
80
|
+
"require": "./cjs/components/ShuttleSource.js"
|
|
81
|
+
},
|
|
82
|
+
"./components/ShuttleSearchBox": {
|
|
83
|
+
"import": "./esm/components/ShuttleSearchBox.js",
|
|
84
|
+
"require": "./cjs/components/ShuttleSearchBox.js"
|
|
85
|
+
},
|
|
86
|
+
"./components/ShuttleListPanel": {
|
|
87
|
+
"import": "./esm/components/ShuttleListPanel.js",
|
|
88
|
+
"require": "./cjs/components/ShuttleListPanel.js"
|
|
89
|
+
},
|
|
90
|
+
"./components/ShuttleListItem/ShuttleTargetListItem": {
|
|
91
|
+
"import": "./esm/components/ShuttleListItem/ShuttleTargetListItem.js",
|
|
92
|
+
"require": "./cjs/components/ShuttleListItem/ShuttleTargetListItem.js"
|
|
93
|
+
},
|
|
94
|
+
"./components/ShuttleListItem/ShuttleSourceListItem": {
|
|
95
|
+
"import": "./esm/components/ShuttleListItem/ShuttleSourceListItem.js",
|
|
96
|
+
"require": "./cjs/components/ShuttleListItem/ShuttleSourceListItem.js"
|
|
97
|
+
},
|
|
98
|
+
"./components/ShuttleListItem/ShuttleListItem": {
|
|
99
|
+
"import": "./esm/components/ShuttleListItem/ShuttleListItem.js",
|
|
100
|
+
"require": "./cjs/components/ShuttleListItem/ShuttleListItem.js"
|
|
101
|
+
},
|
|
102
|
+
"./components/ShuttleListItem/ActionButtons": {
|
|
103
|
+
"import": "./esm/components/ShuttleListItem/ActionButtons.js",
|
|
104
|
+
"require": "./cjs/components/ShuttleListItem/ActionButtons.js"
|
|
105
|
+
},
|
|
106
|
+
"./components/ShuttleInfiniteScrollIndicator": {
|
|
107
|
+
"import": "./esm/components/ShuttleInfiniteScrollIndicator.js",
|
|
108
|
+
"require": "./cjs/components/ShuttleInfiniteScrollIndicator.js"
|
|
109
|
+
},
|
|
110
|
+
"./components/ShuttleBreadcrumb": {
|
|
111
|
+
"import": "./esm/components/ShuttleBreadcrumb.js",
|
|
112
|
+
"require": "./cjs/components/ShuttleBreadcrumb.js"
|
|
113
|
+
},
|
|
114
|
+
"./components/OverflowList": {
|
|
115
|
+
"import": "./esm/components/OverflowList.js",
|
|
116
|
+
"require": "./cjs/components/OverflowList.js"
|
|
117
|
+
},
|
|
118
|
+
"./components/LoadingIndicator": {
|
|
119
|
+
"import": "./esm/components/LoadingIndicator.js",
|
|
120
|
+
"require": "./cjs/components/LoadingIndicator.js"
|
|
121
|
+
},
|
|
122
|
+
"./classedComponents": {
|
|
123
|
+
"import": "./esm/classedComponents.js",
|
|
124
|
+
"require": "./cjs/classedComponents.js"
|
|
125
|
+
},
|
|
126
|
+
"./AnimationState": {
|
|
127
|
+
"import": "./esm/AnimationState.js",
|
|
128
|
+
"require": "./cjs/AnimationState.js"
|
|
129
|
+
},
|
|
130
|
+
"./animation/animationConfig": {
|
|
131
|
+
"import": "./esm/animation/animationConfig.js",
|
|
132
|
+
"require": "./cjs/animation/animationConfig.js"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
8
135
|
"sideEffects": [
|
|
9
136
|
"*.css",
|
|
10
137
|
"*.scss"
|
|
11
138
|
],
|
|
139
|
+
"repository": {
|
|
140
|
+
"type": "git",
|
|
141
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
142
|
+
},
|
|
143
|
+
"engines": {
|
|
144
|
+
"npm": ">=7",
|
|
145
|
+
"node": ">=14"
|
|
146
|
+
},
|
|
147
|
+
"author": "ICE MT",
|
|
12
148
|
"scripts": {
|
|
13
149
|
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
14
150
|
"prebuild": "exit 0",
|
|
@@ -16,14 +152,19 @@
|
|
|
16
152
|
"build": "node ../../scripts/build/build.js"
|
|
17
153
|
},
|
|
18
154
|
"dependencies": {
|
|
19
|
-
"@elliemae/ds-basic": "
|
|
20
|
-
"@elliemae/ds-
|
|
21
|
-
"@elliemae/ds-
|
|
22
|
-
"@elliemae/ds-
|
|
23
|
-
"@elliemae/ds-
|
|
155
|
+
"@elliemae/ds-basic": "2.0.0-alpha.12",
|
|
156
|
+
"@elliemae/ds-button": "2.0.0-alpha.12",
|
|
157
|
+
"@elliemae/ds-circular-progress-indicator": "2.0.0-alpha.12",
|
|
158
|
+
"@elliemae/ds-classnames": "2.0.0-alpha.12",
|
|
159
|
+
"@elliemae/ds-form": "2.0.0-alpha.12",
|
|
160
|
+
"@elliemae/ds-icons": "2.0.0-alpha.12",
|
|
161
|
+
"@elliemae/ds-indeterminate-progress-indicator": "2.0.0-alpha.12",
|
|
162
|
+
"@elliemae/ds-system": "2.0.0-alpha.12",
|
|
163
|
+
"@elliemae/ds-truncated-tooltip-text": "2.0.0-alpha.12",
|
|
164
|
+
"@elliemae/ds-utilities": "2.0.0-alpha.12",
|
|
24
165
|
"constate": "~1.3.2",
|
|
25
166
|
"prop-types": "~15.7.2",
|
|
26
|
-
"react-desc": "
|
|
167
|
+
"react-desc": "~4.1.3",
|
|
27
168
|
"react-sortable-hoc": "~1.9.1",
|
|
28
169
|
"react-spring": "~8.0.27",
|
|
29
170
|
"react-virtualized-auto-sizer": "~1.0.4",
|
|
@@ -32,16 +173,20 @@
|
|
|
32
173
|
"treetabular": "~3.6.0"
|
|
33
174
|
},
|
|
34
175
|
"devDependencies": {
|
|
35
|
-
"
|
|
176
|
+
"@testing-library/jest-dom": "~5.15.0",
|
|
177
|
+
"@testing-library/react": "~12.1.2",
|
|
178
|
+
"@testing-library/user-event": "~13.5.0",
|
|
179
|
+
"styled-components": "~5.3.3"
|
|
180
|
+
},
|
|
181
|
+
"peerDependencies": {
|
|
182
|
+
"lodash": "^4.17.21",
|
|
183
|
+
"react": "~17.0.2",
|
|
184
|
+
"react-dom": "^17.0.2",
|
|
185
|
+
"styled-components": "^5.3.3"
|
|
36
186
|
},
|
|
37
187
|
"publishConfig": {
|
|
38
188
|
"access": "public",
|
|
39
|
-
"directory": "dist"
|
|
40
|
-
|
|
41
|
-
"peerDependencies": {
|
|
42
|
-
"lodash": "^4.17.20",
|
|
43
|
-
"react": "~17.0.1",
|
|
44
|
-
"react-dom": "^17.0.1",
|
|
45
|
-
"styled-components": "^5.3.0"
|
|
189
|
+
"directory": "dist",
|
|
190
|
+
"generateSubmodules": true
|
|
46
191
|
}
|
|
47
192
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: import("constate/dist/ts/src/types").ContextHookReturn<unknown, {
|
|
2
|
+
state: {
|
|
3
|
+
isMoving: boolean;
|
|
4
|
+
isMovingBack: boolean;
|
|
5
|
+
isDrillingDown: boolean;
|
|
6
|
+
};
|
|
7
|
+
setIsMoving: () => void;
|
|
8
|
+
setIsMovingBack: () => void;
|
|
9
|
+
setIsDrillingDown: () => void;
|
|
10
|
+
reset: () => void;
|
|
11
|
+
}, [(value: {
|
|
12
|
+
state: {
|
|
13
|
+
isMoving: boolean;
|
|
14
|
+
isMovingBack: boolean;
|
|
15
|
+
isDrillingDown: boolean;
|
|
16
|
+
};
|
|
17
|
+
setIsMoving: () => void;
|
|
18
|
+
setIsMovingBack: () => void;
|
|
19
|
+
setIsDrillingDown: () => void;
|
|
20
|
+
reset: () => void;
|
|
21
|
+
}) => {
|
|
22
|
+
isMoving: boolean;
|
|
23
|
+
isMovingBack: boolean;
|
|
24
|
+
isDrillingDown: boolean;
|
|
25
|
+
}[]]>;
|
|
26
|
+
export default _default;
|