@elliemae/ds-shared 1.57.1-rc.0 → 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.
- package/cjs/Animations/BaseAnimation.js +25 -36
- package/cjs/Animations/Grow.js +31 -39
- package/cjs/Animations/GrowRight.js +31 -40
- package/cjs/Animations/GrowVertical.js +3 -2
- package/cjs/CheckableGroup.js +36 -50
- package/cjs/DeferRenderAfterComputation.js +12 -22
- package/cjs/FocusGroup/FocusGrid.js +94 -102
- package/cjs/FocusGroup/FocusGroup.js +215 -270
- package/cjs/FocusGroup/FocusGroupContext.js +1 -2
- package/cjs/FocusGroup/FocusGroupManager.js +88 -124
- package/cjs/FocusGroup/focusGroupManagerHoc.js +24 -29
- package/cjs/FocusGroup/index.js +14 -28
- package/cjs/FocusGroup/useFocusGroupItem.js +24 -27
- package/cjs/FocusGroup/utils/getNextCellPosition.js +14 -16
- package/cjs/GroupContext/Group.js +76 -104
- package/cjs/GroupContext/GroupContext.js +1 -2
- package/cjs/GroupContext/GroupItem.js +10 -11
- package/cjs/GroupContext/index.js +6 -15
- package/cjs/ScrollSync/ScrollSync.js +86 -112
- package/cjs/ScrollSync/ScrollSyncPane.js +49 -92
- package/cjs/ScrollSync/ScrollSyncProvider.js +32 -28
- package/cjs/ScrollSync/index.js +4 -14
- package/cjs/ScrollSync/useScrollSync.js +0 -1
- package/cjs/constants.js +43 -4
- package/cjs/createDataInstance/createInstancePlugin.js +6 -10
- package/cjs/createDataInstance/createInstanceRef.js +34 -42
- package/cjs/createDataInstance/utils.js +42 -76
- package/cjs/defer-render-hoc/index.js +19 -64
- package/cjs/dimsum.config.js +7 -0
- package/cjs/index.js +10 -21
- package/cjs/prop-types.js +59 -0
- package/cjs/react-spring/index.js +3 -6
- package/cjs/react-spring/renderprops.js +3 -6
- package/cjs/toolbar/ToolbarProvider.js +60 -81
- package/cjs/useDataGrid/VolatileRowsListener.js +13 -27
- package/cjs/useDataGrid/index.js +2 -17
- package/cjs/useDataGrid/initColumnDefinition.js +45 -53
- package/cjs/useDataGrid/useDataGrid.js +105 -152
- package/cjs/useDataList/index.js +2 -15
- package/cjs/useDataList/recordIterator.js +7 -11
- package/cjs/useDataList/useDataList.js +42 -63
- package/cjs/utils.js +39 -59
- package/cjs/virtualization/AutoHeightList.js +34 -27
- package/cjs/virtualization/FluidHeightList.js +23 -17
- package/cjs/virtualization/index.js +12 -18
- package/esm/Animations/BaseAnimation.js +24 -35
- package/esm/Animations/Grow.js +29 -37
- package/esm/Animations/GrowRight.js +29 -38
- package/esm/Animations/GrowVertical.js +3 -2
- package/esm/CheckableGroup.js +33 -46
- package/esm/DeferRenderAfterComputation.js +12 -21
- package/esm/FocusGroup/FocusGrid.js +86 -96
- package/esm/FocusGroup/FocusGroup.js +210 -263
- package/esm/FocusGroup/FocusGroupContext.js +0 -1
- package/esm/FocusGroup/FocusGroupManager.js +85 -115
- package/esm/FocusGroup/focusGroupManagerHoc.js +19 -23
- package/esm/FocusGroup/index.js +0 -14
- package/esm/FocusGroup/useFocusGroupItem.js +22 -25
- package/esm/FocusGroup/utils/getNextCellPosition.js +14 -16
- package/esm/GroupContext/Group.js +75 -96
- package/esm/GroupContext/GroupContext.js +1 -2
- package/esm/GroupContext/GroupItem.js +8 -9
- package/esm/GroupContext/index.js +0 -9
- package/esm/ScrollSync/ScrollSync.js +83 -104
- package/esm/ScrollSync/ScrollSyncPane.js +47 -83
- package/esm/ScrollSync/ScrollSyncProvider.js +31 -28
- package/esm/ScrollSync/index.js +0 -10
- package/esm/ScrollSync/useScrollSync.js +0 -1
- package/esm/constants.js +31 -5
- package/esm/createDataInstance/createInstancePlugin.js +5 -8
- package/esm/createDataInstance/createInstanceRef.js +29 -36
- package/esm/createDataInstance/utils.js +40 -74
- package/esm/defer-render-hoc/index.js +19 -57
- package/esm/dimsum.config.js +5 -0
- package/esm/index.js +0 -11
- package/esm/prop-types.js +43 -0
- package/esm/react-spring/index.js +1 -2
- package/esm/react-spring/renderprops.js +1 -2
- package/esm/toolbar/ToolbarProvider.js +55 -75
- package/esm/useDataGrid/VolatileRowsListener.js +12 -24
- package/esm/useDataGrid/index.js +0 -15
- package/esm/useDataGrid/initColumnDefinition.js +38 -45
- package/esm/useDataGrid/useDataGrid.js +85 -131
- package/esm/useDataList/index.js +0 -13
- package/esm/useDataList/recordIterator.js +7 -11
- package/esm/useDataList/useDataList.js +31 -51
- package/esm/utils.js +37 -57
- package/esm/virtualization/AutoHeightList.js +26 -19
- package/esm/virtualization/FluidHeightList.js +20 -14
- package/esm/virtualization/index.js +6 -12
- package/package.json +202 -13
- package/types/Animations/BaseAnimation.d.ts +12 -0
- package/types/Animations/Grow.d.ts +11 -0
- package/types/Animations/GrowRight.d.ts +11 -0
- package/types/Animations/GrowVertical.d.ts +1 -0
- package/types/CheckableGroup.d.ts +20 -0
- package/types/DeferRenderAfterComputation.d.ts +6 -0
- package/types/FocusGroup/FocusGrid.d.ts +10 -0
- package/types/FocusGroup/FocusGroup.d.ts +36 -0
- package/types/FocusGroup/FocusGroupContext.d.ts +3 -0
- package/types/FocusGroup/FocusGroupManager.d.ts +24 -0
- package/types/FocusGroup/focusGroupManagerHoc.d.ts +7 -0
- package/types/FocusGroup/index.d.ts +6 -0
- package/types/FocusGroup/useFocusGroupItem.d.ts +2 -0
- package/types/FocusGroup/utils/getNextCellPosition.d.ts +12 -0
- package/types/GroupContext/Group.d.ts +14 -0
- package/types/GroupContext/GroupContext.d.ts +2 -0
- package/types/GroupContext/GroupItem.d.ts +5 -0
- package/types/GroupContext/index.d.ts +3 -0
- package/types/ScrollSync/ScrollSync.d.ts +21 -0
- package/types/ScrollSync/ScrollSyncPane.d.ts +3 -0
- package/types/ScrollSync/ScrollSyncProvider.d.ts +12 -0
- package/types/ScrollSync/index.d.ts +2 -0
- package/types/ScrollSync/useScrollSync.d.ts +6 -0
- package/types/constants.d.ts +30 -0
- package/types/createDataInstance/createInstancePlugin.d.ts +1 -0
- package/types/createDataInstance/createInstanceRef.d.ts +12 -0
- package/types/createDataInstance/tests/createInstanceRef.test.d.ts +0 -0
- package/types/createDataInstance/utils.d.ts +9 -0
- package/types/dimsum.config.d.ts +4 -0
- package/types/index.d.ts +2 -0
- package/types/prop-types.d.ts +41 -0
- package/types/react-spring/index.d.ts +1 -0
- package/types/react-spring/renderprops.d.ts +1 -0
- package/types/toolbar/ToolbarProvider.d.ts +10 -0
- package/types/useDataGrid/VolatileRowsListener.d.ts +5 -0
- package/types/useDataGrid/index.d.ts +1 -0
- package/types/useDataGrid/initColumnDefinition.d.ts +4 -0
- package/types/useDataGrid/useDataGrid.d.ts +8 -0
- package/types/useDataList/index.d.ts +1 -0
- package/types/useDataList/recordIterator.d.ts +1 -0
- package/types/useDataList/useDataList.d.ts +13 -0
- package/types/utils.d.ts +22 -0
- package/types/virtualization/AutoHeightList.d.ts +2 -0
- package/types/virtualization/FluidHeightList.d.ts +2 -0
- package/types/virtualization/index.d.ts +9 -0
- package/Animations/BaseAnimation/package.json +0 -10
- package/Animations/Grow/package.json +0 -10
- package/Animations/GrowRight/package.json +0 -10
- package/Animations/GrowVertical/package.json +0 -10
- package/CheckableGroup/package.json +0 -10
- package/DeferRenderAfterComputation/package.json +0 -10
- package/FocusGroup/FocusGrid/package.json +0 -10
- package/FocusGroup/FocusGroup/package.json +0 -10
- package/FocusGroup/FocusGroupContext/package.json +0 -10
- package/FocusGroup/FocusGroupManager/package.json +0 -10
- package/FocusGroup/focusGroupManagerHoc/package.json +0 -10
- package/FocusGroup/package.json +0 -10
- package/FocusGroup/useFocusGroupItem/package.json +0 -10
- package/FocusGroup/utils/getNextCellPosition/package.json +0 -10
- package/GroupContext/Group/package.json +0 -10
- package/GroupContext/GroupContext/package.json +0 -10
- package/GroupContext/GroupItem/package.json +0 -10
- package/GroupContext/package.json +0 -10
- package/ScrollSync/ScrollSync/package.json +0 -10
- package/ScrollSync/ScrollSyncPane/package.json +0 -10
- package/ScrollSync/ScrollSyncProvider/package.json +0 -10
- package/ScrollSync/package.json +0 -10
- package/ScrollSync/useScrollSync/package.json +0 -10
- package/cjs/Animations/BaseAnimation.js.map +0 -1
- package/cjs/Animations/Grow.js.map +0 -1
- package/cjs/Animations/GrowRight.js.map +0 -1
- package/cjs/Animations/GrowVertical.js.map +0 -1
- package/cjs/CheckableGroup.js.map +0 -1
- package/cjs/DeferRenderAfterComputation.js.map +0 -1
- package/cjs/FocusGroup/FocusGrid.js.map +0 -1
- package/cjs/FocusGroup/FocusGroup.js.map +0 -1
- package/cjs/FocusGroup/FocusGroupContext.js.map +0 -1
- package/cjs/FocusGroup/FocusGroupManager.js.map +0 -1
- package/cjs/FocusGroup/focusGroupManagerHoc.js.map +0 -1
- package/cjs/FocusGroup/index.js.map +0 -1
- package/cjs/FocusGroup/useFocusGroupItem.js.map +0 -1
- package/cjs/FocusGroup/utils/getNextCellPosition.js.map +0 -1
- package/cjs/GroupContext/Group.js.map +0 -1
- package/cjs/GroupContext/GroupContext.js.map +0 -1
- package/cjs/GroupContext/GroupItem.js.map +0 -1
- package/cjs/GroupContext/index.js.map +0 -1
- package/cjs/ScrollSync/ScrollSync.js.map +0 -1
- package/cjs/ScrollSync/ScrollSyncPane.js.map +0 -1
- package/cjs/ScrollSync/ScrollSyncProvider.js.map +0 -1
- package/cjs/ScrollSync/index.js.map +0 -1
- package/cjs/ScrollSync/useScrollSync.js.map +0 -1
- package/cjs/constants.js.map +0 -1
- package/cjs/createDataInstance/createInstancePlugin.js.map +0 -1
- package/cjs/createDataInstance/createInstanceRef.js.map +0 -1
- package/cjs/createDataInstance/utils.js.map +0 -1
- package/cjs/defer-render-hoc/index.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/react-spring/index.js.map +0 -1
- package/cjs/react-spring/renderprops.js.map +0 -1
- package/cjs/toolbar/ToolbarProvider.js.map +0 -1
- package/cjs/useDataGrid/VolatileRowsListener.js.map +0 -1
- package/cjs/useDataGrid/index.js.map +0 -1
- package/cjs/useDataGrid/initColumnDefinition.js.map +0 -1
- package/cjs/useDataGrid/useDataGrid.js.map +0 -1
- package/cjs/useDataList/index.js.map +0 -1
- package/cjs/useDataList/recordIterator.js.map +0 -1
- package/cjs/useDataList/useDataList.js.map +0 -1
- package/cjs/utils.js.map +0 -1
- package/cjs/virtualization/AutoHeightList.js.map +0 -1
- package/cjs/virtualization/FluidHeightList.js.map +0 -1
- package/cjs/virtualization/index.js.map +0 -1
- package/constants/package.json +0 -10
- package/createDataInstance/createInstancePlugin/package.json +0 -10
- package/createDataInstance/createInstanceRef/package.json +0 -10
- package/createDataInstance/utils/package.json +0 -10
- package/defer-render-hoc/package.json +0 -10
- package/esm/Animations/BaseAnimation.js.map +0 -1
- package/esm/Animations/Grow.js.map +0 -1
- package/esm/Animations/GrowRight.js.map +0 -1
- package/esm/Animations/GrowVertical.js.map +0 -1
- package/esm/CheckableGroup.js.map +0 -1
- package/esm/DeferRenderAfterComputation.js.map +0 -1
- package/esm/FocusGroup/FocusGrid.js.map +0 -1
- package/esm/FocusGroup/FocusGroup.js.map +0 -1
- package/esm/FocusGroup/FocusGroupContext.js.map +0 -1
- package/esm/FocusGroup/FocusGroupManager.js.map +0 -1
- package/esm/FocusGroup/focusGroupManagerHoc.js.map +0 -1
- package/esm/FocusGroup/index.js.map +0 -1
- package/esm/FocusGroup/useFocusGroupItem.js.map +0 -1
- package/esm/FocusGroup/utils/getNextCellPosition.js.map +0 -1
- package/esm/GroupContext/Group.js.map +0 -1
- package/esm/GroupContext/GroupContext.js.map +0 -1
- package/esm/GroupContext/GroupItem.js.map +0 -1
- package/esm/GroupContext/index.js.map +0 -1
- package/esm/ScrollSync/ScrollSync.js.map +0 -1
- package/esm/ScrollSync/ScrollSyncPane.js.map +0 -1
- package/esm/ScrollSync/ScrollSyncProvider.js.map +0 -1
- package/esm/ScrollSync/index.js.map +0 -1
- package/esm/ScrollSync/useScrollSync.js.map +0 -1
- package/esm/constants.js.map +0 -1
- package/esm/createDataInstance/createInstancePlugin.js.map +0 -1
- package/esm/createDataInstance/createInstanceRef.js.map +0 -1
- package/esm/createDataInstance/utils.js.map +0 -1
- package/esm/defer-render-hoc/index.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/react-spring/index.js.map +0 -1
- package/esm/react-spring/renderprops.js.map +0 -1
- package/esm/toolbar/ToolbarProvider.js.map +0 -1
- package/esm/useDataGrid/VolatileRowsListener.js.map +0 -1
- package/esm/useDataGrid/index.js.map +0 -1
- package/esm/useDataGrid/initColumnDefinition.js.map +0 -1
- package/esm/useDataGrid/useDataGrid.js.map +0 -1
- package/esm/useDataList/index.js.map +0 -1
- package/esm/useDataList/recordIterator.js.map +0 -1
- package/esm/useDataList/useDataList.js.map +0 -1
- package/esm/utils.js.map +0 -1
- package/esm/virtualization/AutoHeightList.js.map +0 -1
- package/esm/virtualization/FluidHeightList.js.map +0 -1
- package/esm/virtualization/index.js.map +0 -1
- package/react-spring/package.json +0 -10
- package/react-spring/renderprops/package.json +0 -10
- package/toolbar/ToolbarProvider/package.json +0 -10
- package/useDataGrid/VolatileRowsListener/package.json +0 -10
- package/useDataGrid/initColumnDefinition/package.json +0 -10
- package/useDataGrid/package.json +0 -10
- package/useDataGrid/useDataGrid/package.json +0 -10
- package/useDataList/package.json +0 -10
- package/useDataList/recordIterator/package.json +0 -10
- package/useDataList/useDataList/package.json +0 -10
- package/utils/package.json +0 -10
- package/virtualization/AutoHeightList/package.json +0 -10
- package/virtualization/FluidHeightList/package.json +0 -10
- package/virtualization/package.json +0 -10
|
@@ -1,92 +1,73 @@
|
|
|
1
|
-
import _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray';
|
|
2
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
3
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
4
|
import { useRef, useMemo } from 'react';
|
|
5
|
-
import { setRef } from '@elliemae/ds-utilities';
|
|
5
|
+
import { setRef } from '@elliemae/ds-utilities/system';
|
|
6
6
|
import get from 'lodash/get';
|
|
7
7
|
import { reducePropsGetter, composeFormatters } from '../createDataInstance/utils.js';
|
|
8
8
|
import { recordIterator } from './recordIterator.js';
|
|
9
9
|
import createDataInstanceRef from '../createDataInstance/createInstanceRef.js';
|
|
10
|
-
import '@babel/runtime/helpers/esm/slicedToArray';
|
|
11
|
-
import 'uuid';
|
|
12
|
-
import 'lodash';
|
|
13
10
|
|
|
14
|
-
|
|
11
|
+
const _excluded = ["data", "plugins", "renderers", "itemRenderer", "customDecorators"];
|
|
15
12
|
|
|
16
13
|
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; }
|
|
17
14
|
|
|
18
15
|
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; }
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
var getItemChildren = function getItemChildren(record) {
|
|
24
|
-
var childrenKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'children';
|
|
25
|
-
return get(record, ['data', childrenKey]);
|
|
26
|
-
};
|
|
27
|
-
var listRenderers = {
|
|
16
|
+
const getItemLabel = (record, nameKey = 'name') => get(record, ['data', nameKey]);
|
|
17
|
+
const getItemChildren = (record, childrenKey = 'children') => get(record, ['data', childrenKey]);
|
|
18
|
+
const listRenderers = {
|
|
28
19
|
list: 'ul',
|
|
29
20
|
item: 'li'
|
|
30
21
|
}; // todo: check if a plugin is a LIST plugin rather than GRID
|
|
31
22
|
|
|
32
23
|
function useDataList(_ref) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
itemRenderer = _ref$itemRenderer === void 0 ? [] : _ref$itemRenderer,
|
|
41
|
-
customDecorators = _ref.customDecorators,
|
|
24
|
+
let {
|
|
25
|
+
data = [],
|
|
26
|
+
plugins = [],
|
|
27
|
+
renderers = listRenderers,
|
|
28
|
+
itemRenderer = [],
|
|
29
|
+
customDecorators
|
|
30
|
+
} = _ref,
|
|
42
31
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
43
32
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
const listRef = useRef();
|
|
34
|
+
const {
|
|
35
|
+
instance,
|
|
36
|
+
decorators
|
|
37
|
+
} = createDataInstanceRef(_objectSpread({
|
|
38
|
+
data,
|
|
39
|
+
renderers,
|
|
40
|
+
plugins,
|
|
50
41
|
customDecorators: _objectSpread(_objectSpread({}, customDecorators), {}, {
|
|
51
|
-
recordIterator
|
|
42
|
+
recordIterator,
|
|
52
43
|
getListProps: [],
|
|
53
44
|
getItemProps: [],
|
|
54
|
-
itemRenderer:
|
|
45
|
+
itemRenderer: [...itemRenderer],
|
|
55
46
|
// components reduce to compose item content
|
|
56
47
|
record: [],
|
|
57
48
|
records: []
|
|
58
49
|
})
|
|
59
|
-
}, props))
|
|
60
|
-
instance = _createInstanceRef.instance,
|
|
61
|
-
decorators = _createInstanceRef.decorators;
|
|
50
|
+
}, props));
|
|
62
51
|
|
|
63
|
-
instance.current.getListRef =
|
|
64
|
-
return listRef;
|
|
65
|
-
};
|
|
52
|
+
instance.current.getListRef = () => listRef;
|
|
66
53
|
|
|
67
|
-
instance.current.setListRef =
|
|
54
|
+
instance.current.setListRef = ref => {
|
|
68
55
|
listRef.current = ref;
|
|
69
56
|
};
|
|
70
57
|
|
|
71
|
-
instance.current.getItemLabel =
|
|
72
|
-
return getItemLabel(record, props.nameKey);
|
|
73
|
-
};
|
|
58
|
+
instance.current.getItemLabel = record => getItemLabel(record, props.nameKey);
|
|
74
59
|
|
|
75
|
-
instance.current.getItemChildren =
|
|
76
|
-
return getItemChildren(record, props.childrenKey);
|
|
77
|
-
};
|
|
60
|
+
instance.current.getItemChildren = record => getItemChildren(record, props.childrenKey);
|
|
78
61
|
|
|
79
62
|
instance.current.decorators = decorators;
|
|
80
63
|
instance.current.getListProps = reducePropsGetter(decorators.getListProps, instance.current);
|
|
81
64
|
instance.current.getItemProps = reducePropsGetter(decorators.getItemProps, instance.current);
|
|
82
65
|
instance.current.itemRenderer = composeFormatters(instance.current.decorators.itemRenderer, instance.current);
|
|
83
|
-
instance.current.records = useMemo(
|
|
66
|
+
instance.current.records = useMemo(() => {
|
|
84
67
|
// record iterator TREE / Simple
|
|
85
|
-
|
|
68
|
+
let nextRecords = recordIterator(data, instance.current.decorators.recordIterator, decorators.record, instance.current); // compose all records
|
|
86
69
|
|
|
87
|
-
nextRecords = decorators.records.reduce(
|
|
88
|
-
return getter(nextRows, instance.current);
|
|
89
|
-
}, nextRecords);
|
|
70
|
+
nextRecords = decorators.records.reduce((nextRows, getter) => getter(nextRows, instance.current), nextRecords);
|
|
90
71
|
return nextRecords;
|
|
91
72
|
});
|
|
92
73
|
if (props.instanceRef) setRef(props.instanceRef, instance.current);
|
|
@@ -94,4 +75,3 @@ function useDataList(_ref) {
|
|
|
94
75
|
}
|
|
95
76
|
|
|
96
77
|
export { useDataList as default, getItemChildren, getItemLabel };
|
|
97
|
-
//# sourceMappingURL=useDataList.js.map
|
package/esm/utils.js
CHANGED
|
@@ -5,29 +5,15 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
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; }
|
|
6
6
|
|
|
7
7
|
/* eslint-disable no-cond-assign */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
var isUndefined = function isUndefined(param) {
|
|
15
|
-
return typeof param === 'undefined';
|
|
16
|
-
};
|
|
17
|
-
var isFunction = function isFunction(param) {
|
|
18
|
-
return typeof param === 'function';
|
|
19
|
-
};
|
|
20
|
-
var isNumber = function isNumber(param) {
|
|
21
|
-
return typeof param === 'number' && !isNaN(param);
|
|
22
|
-
}; // eslint-disable-line
|
|
8
|
+
const objectType = obj => Object.prototype.toString.call(obj).slice(8, -1);
|
|
9
|
+
const isDefined = param => typeof param !== 'undefined';
|
|
10
|
+
const isUndefined = param => typeof param === 'undefined';
|
|
11
|
+
const isFunction = param => typeof param === 'function';
|
|
12
|
+
const isNumber = param => typeof param === 'number' && !isNaN(param); // eslint-disable-line
|
|
23
13
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var isArray = function isArray(arr) {
|
|
28
|
-
return objectType(arr) === 'Array';
|
|
29
|
-
};
|
|
30
|
-
var closest = function closest(target, selector) {
|
|
14
|
+
const isString = str => objectType(str) === 'String';
|
|
15
|
+
const isArray = arr => objectType(arr) === 'Array';
|
|
16
|
+
const closest = (target, selector) => {
|
|
31
17
|
// closest(e.target, '.field')
|
|
32
18
|
while (target) {
|
|
33
19
|
// eslint-disable-line
|
|
@@ -39,29 +25,30 @@ var closest = function closest(target, selector) {
|
|
|
39
25
|
|
|
40
26
|
return null;
|
|
41
27
|
};
|
|
42
|
-
|
|
28
|
+
const getOffsetRect = elem => {
|
|
43
29
|
// (1)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
30
|
+
const box = elem.getBoundingClientRect();
|
|
31
|
+
const {
|
|
32
|
+
body,
|
|
33
|
+
documentElement
|
|
34
|
+
} = document; // (2)
|
|
48
35
|
|
|
49
|
-
|
|
50
|
-
|
|
36
|
+
const scrollTop = window.pageYOffset || documentElement.scrollTop || body.scrollTop;
|
|
37
|
+
const scrollLeft = window.pageXOffset || documentElement.scrollLeft || body.scrollLeft; // (3)
|
|
51
38
|
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
const clientTop = documentElement.clientTop || body.clientTop || 0;
|
|
40
|
+
const clientLeft = documentElement.clientLeft || body.clientLeft || 0; // (4)
|
|
54
41
|
|
|
55
|
-
|
|
56
|
-
|
|
42
|
+
const top = box.top + scrollTop - clientTop;
|
|
43
|
+
const left = box.left + scrollLeft - clientLeft;
|
|
57
44
|
return {
|
|
58
45
|
top: Math.round(top),
|
|
59
46
|
left: Math.round(left)
|
|
60
47
|
};
|
|
61
48
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
49
|
+
const getTotalScroll = elem => {
|
|
50
|
+
let top = 0;
|
|
51
|
+
let left = 0; // eslint-disable-next-line no-param-reassign
|
|
65
52
|
|
|
66
53
|
while (elem = elem.parentNode) {
|
|
67
54
|
top += elem.scrollTop || 0;
|
|
@@ -69,33 +56,27 @@ var getTotalScroll = function getTotalScroll(elem) {
|
|
|
69
56
|
}
|
|
70
57
|
|
|
71
58
|
return {
|
|
72
|
-
top
|
|
73
|
-
left
|
|
59
|
+
top,
|
|
60
|
+
left
|
|
74
61
|
};
|
|
75
62
|
};
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
};
|
|
86
|
-
var getAllNonEmptyNodesIds = function getAllNonEmptyNodesIds(items, childrenProp) {
|
|
87
|
-
var childrenIds = [];
|
|
88
|
-
var ids = items.filter(function (item) {
|
|
89
|
-
return item[childrenProp].length;
|
|
90
|
-
}).map(function (item) {
|
|
63
|
+
const getTransformProps = (x, y) => ({
|
|
64
|
+
transform: "translate(".concat(x, "px, ").concat(y, "px)")
|
|
65
|
+
});
|
|
66
|
+
const listWithChildren = (list, childrenProp) => list.map(item => _objectSpread(_objectSpread({}, item), {}, {
|
|
67
|
+
[childrenProp]: item[childrenProp] ? listWithChildren(item[childrenProp], childrenProp) : []
|
|
68
|
+
}));
|
|
69
|
+
const getAllNonEmptyNodesIds = (items, childrenProp) => {
|
|
70
|
+
let childrenIds = [];
|
|
71
|
+
const ids = items.filter(item => item[childrenProp].length).map(item => {
|
|
91
72
|
childrenIds = childrenIds.concat(getAllNonEmptyNodesIds(item[childrenProp], childrenProp));
|
|
92
73
|
return item.id;
|
|
93
74
|
});
|
|
94
75
|
return ids.concat(childrenIds);
|
|
95
76
|
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
77
|
+
const isInternetExplorer = () => {
|
|
78
|
+
const ua = window.navigator.userAgent;
|
|
79
|
+
const msie = ua.indexOf('MSIE '); // If Internet Explorer, return version number
|
|
99
80
|
|
|
100
81
|
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv:11\./)) {
|
|
101
82
|
return true;
|
|
@@ -105,4 +86,3 @@ var isInternetExplorer = function isInternetExplorer() {
|
|
|
105
86
|
};
|
|
106
87
|
|
|
107
88
|
export { closest, getAllNonEmptyNodesIds, getOffsetRect, getTotalScroll, getTransformProps, isArray, isDefined, isFunction, isInternetExplorer, isNumber, isString, isUndefined, listWithChildren, objectType };
|
|
108
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1,29 +1,37 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
-
import
|
|
3
|
+
import { forwardRef, useRef } from 'react';
|
|
4
4
|
import { FixedSizeList } from 'react-window';
|
|
5
|
-
import {
|
|
5
|
+
import { cx } from '@elliemae/ds-utilities/utils';
|
|
6
|
+
import { mergeRefs } from '@elliemae/ds-utilities/system';
|
|
7
|
+
import useWindowScrollerList from '@elliemae/ds-utilities/hooks/useWindowScrollerList';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
const _excluded = ["itemCount", "className", "innerRef", "itemData", "itemKey", "itemSize", "outerRef", "component"];
|
|
11
|
+
|
|
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
|
+
|
|
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 AutoHeightList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
16
|
+
let {
|
|
17
|
+
itemCount,
|
|
18
|
+
className,
|
|
19
|
+
innerRef,
|
|
20
|
+
itemData,
|
|
21
|
+
itemKey,
|
|
22
|
+
itemSize,
|
|
23
|
+
outerRef,
|
|
24
|
+
component: ListComponent = FixedSizeList
|
|
25
|
+
} = _ref,
|
|
18
26
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
19
27
|
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
const listRef = useRef();
|
|
29
|
+
const outerListRef = useRef();
|
|
22
30
|
useWindowScrollerList({
|
|
23
31
|
listInstance: listRef,
|
|
24
|
-
outerListRef
|
|
32
|
+
outerListRef
|
|
25
33
|
});
|
|
26
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/jsx(ListComponent, _objectSpread(_objectSpread({}, otherProps), {}, {
|
|
27
35
|
ref: mergeRefs(ref, listRef),
|
|
28
36
|
className: cx(className, 'window-scroller-override'),
|
|
29
37
|
height: window.innerHeight,
|
|
@@ -39,4 +47,3 @@ var AutoHeightList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
39
47
|
});
|
|
40
48
|
|
|
41
49
|
export { AutoHeightList };
|
|
42
|
-
//# sourceMappingURL=AutoHeightList.js.map
|
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
3
|
-
import
|
|
4
|
+
import { forwardRef } from 'react';
|
|
4
5
|
import AutoSizer from 'react-virtualized-auto-sizer';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
const _excluded = ["component"];
|
|
9
|
+
|
|
10
|
+
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; }
|
|
11
|
+
|
|
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
|
+
const FluidHeightList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
14
|
+
let {
|
|
15
|
+
component: Component
|
|
16
|
+
} = _ref,
|
|
9
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
10
18
|
|
|
11
|
-
return /*#__PURE__*/
|
|
19
|
+
return /*#__PURE__*/_jsx(AutoSizer, {
|
|
12
20
|
disableWidth: true
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
}, void 0, ({
|
|
22
|
+
height: fluidHeight
|
|
23
|
+
}) => /*#__PURE__*/jsx(Component, _objectSpread(_objectSpread({}, props), {}, {
|
|
24
|
+
ref: ref,
|
|
25
|
+
height: fluidHeight - 32 // taking in count the margins of the list
|
|
18
26
|
|
|
19
|
-
|
|
20
|
-
});
|
|
27
|
+
})));
|
|
21
28
|
});
|
|
22
29
|
|
|
23
30
|
export { FluidHeightList };
|
|
24
|
-
//# sourceMappingURL=FluidHeightList.js.map
|
|
@@ -2,22 +2,16 @@ import { FluidHeightList } from './FluidHeightList.js';
|
|
|
2
2
|
export { FluidHeightList } from './FluidHeightList.js';
|
|
3
3
|
import { AutoHeightList } from './AutoHeightList.js';
|
|
4
4
|
export { AutoHeightList } from './AutoHeightList.js';
|
|
5
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
6
|
-
import '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
7
|
-
import 'react';
|
|
8
|
-
import 'react-virtualized-auto-sizer';
|
|
9
|
-
import 'react-window';
|
|
10
|
-
import '@elliemae/ds-utilities';
|
|
11
5
|
|
|
12
|
-
function getVirtualListComponent(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
function getVirtualListComponent({
|
|
7
|
+
component: Component,
|
|
8
|
+
fluid,
|
|
9
|
+
height,
|
|
10
|
+
autoHeight
|
|
11
|
+
}) {
|
|
17
12
|
if (autoHeight) return AutoHeightList;
|
|
18
13
|
if (fluid) return FluidHeightList;
|
|
19
14
|
return Component;
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
export { getVirtualListComponent };
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,206 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.11",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
5
|
+
"description": "ICE MT - Dimsum - Shared components and utilities",
|
|
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
|
+
"./prop-types": {
|
|
15
|
+
"import": "./esm/prop-types.js",
|
|
16
|
+
"require": "./cjs/prop-types.js"
|
|
17
|
+
},
|
|
18
|
+
"./constants": {
|
|
19
|
+
"import": "./esm/constants.js",
|
|
20
|
+
"require": "./cjs/constants.js"
|
|
21
|
+
},
|
|
22
|
+
"./dimsum.config": {
|
|
23
|
+
"import": "./esm/dimsum.config.js",
|
|
24
|
+
"require": "./cjs/dimsum.config.js"
|
|
25
|
+
},
|
|
26
|
+
"./virtualization": {
|
|
27
|
+
"import": "./esm/virtualization/index.js",
|
|
28
|
+
"require": "./cjs/virtualization/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./virtualization/FluidHeightList": {
|
|
31
|
+
"import": "./esm/virtualization/FluidHeightList.js",
|
|
32
|
+
"require": "./cjs/virtualization/FluidHeightList.js"
|
|
33
|
+
},
|
|
34
|
+
"./virtualization/AutoHeightList": {
|
|
35
|
+
"import": "./esm/virtualization/AutoHeightList.js",
|
|
36
|
+
"require": "./cjs/virtualization/AutoHeightList.js"
|
|
37
|
+
},
|
|
38
|
+
"./utils": {
|
|
39
|
+
"import": "./esm/utils.js",
|
|
40
|
+
"require": "./cjs/utils.js"
|
|
41
|
+
},
|
|
42
|
+
"./useDataList/useDataList": {
|
|
43
|
+
"import": "./esm/useDataList/useDataList.js",
|
|
44
|
+
"require": "./cjs/useDataList/useDataList.js"
|
|
45
|
+
},
|
|
46
|
+
"./useDataList/recordIterator": {
|
|
47
|
+
"import": "./esm/useDataList/recordIterator.js",
|
|
48
|
+
"require": "./cjs/useDataList/recordIterator.js"
|
|
49
|
+
},
|
|
50
|
+
"./useDataList": {
|
|
51
|
+
"import": "./esm/useDataList/index.js",
|
|
52
|
+
"require": "./cjs/useDataList/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./useDataGrid/VolatileRowsListener": {
|
|
55
|
+
"import": "./esm/useDataGrid/VolatileRowsListener.js",
|
|
56
|
+
"require": "./cjs/useDataGrid/VolatileRowsListener.js"
|
|
57
|
+
},
|
|
58
|
+
"./useDataGrid/useDataGrid": {
|
|
59
|
+
"import": "./esm/useDataGrid/useDataGrid.js",
|
|
60
|
+
"require": "./cjs/useDataGrid/useDataGrid.js"
|
|
61
|
+
},
|
|
62
|
+
"./useDataGrid/initColumnDefinition": {
|
|
63
|
+
"import": "./esm/useDataGrid/initColumnDefinition.js",
|
|
64
|
+
"require": "./cjs/useDataGrid/initColumnDefinition.js"
|
|
65
|
+
},
|
|
66
|
+
"./useDataGrid": {
|
|
67
|
+
"import": "./esm/useDataGrid/index.js",
|
|
68
|
+
"require": "./cjs/useDataGrid/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./toolbar/ToolbarProvider": {
|
|
71
|
+
"import": "./esm/toolbar/ToolbarProvider.js",
|
|
72
|
+
"require": "./cjs/toolbar/ToolbarProvider.js"
|
|
73
|
+
},
|
|
74
|
+
"./ScrollSync/useScrollSync": {
|
|
75
|
+
"import": "./esm/ScrollSync/useScrollSync.js",
|
|
76
|
+
"require": "./cjs/ScrollSync/useScrollSync.js"
|
|
77
|
+
},
|
|
78
|
+
"./ScrollSync/ScrollSyncProvider": {
|
|
79
|
+
"import": "./esm/ScrollSync/ScrollSyncProvider.js",
|
|
80
|
+
"require": "./cjs/ScrollSync/ScrollSyncProvider.js"
|
|
81
|
+
},
|
|
82
|
+
"./ScrollSync/ScrollSyncPane": {
|
|
83
|
+
"import": "./esm/ScrollSync/ScrollSyncPane.js",
|
|
84
|
+
"require": "./cjs/ScrollSync/ScrollSyncPane.js"
|
|
85
|
+
},
|
|
86
|
+
"./ScrollSync/ScrollSync": {
|
|
87
|
+
"import": "./esm/ScrollSync/ScrollSync.js",
|
|
88
|
+
"require": "./cjs/ScrollSync/ScrollSync.js"
|
|
89
|
+
},
|
|
90
|
+
"./ScrollSync": {
|
|
91
|
+
"import": "./esm/ScrollSync/index.js",
|
|
92
|
+
"require": "./cjs/ScrollSync/index.js"
|
|
93
|
+
},
|
|
94
|
+
"./react-spring/renderprops": {
|
|
95
|
+
"import": "./esm/react-spring/renderprops.js",
|
|
96
|
+
"require": "./cjs/react-spring/renderprops.js"
|
|
97
|
+
},
|
|
98
|
+
"./react-spring": {
|
|
99
|
+
"import": "./esm/react-spring/index.js",
|
|
100
|
+
"require": "./cjs/react-spring/index.js"
|
|
101
|
+
},
|
|
102
|
+
"./GroupContext": {
|
|
103
|
+
"import": "./esm/GroupContext/index.js",
|
|
104
|
+
"require": "./cjs/GroupContext/index.js"
|
|
105
|
+
},
|
|
106
|
+
"./GroupContext/GroupItem": {
|
|
107
|
+
"import": "./esm/GroupContext/GroupItem.js",
|
|
108
|
+
"require": "./cjs/GroupContext/GroupItem.js"
|
|
109
|
+
},
|
|
110
|
+
"./GroupContext/GroupContext": {
|
|
111
|
+
"import": "./esm/GroupContext/GroupContext.js",
|
|
112
|
+
"require": "./cjs/GroupContext/GroupContext.js"
|
|
113
|
+
},
|
|
114
|
+
"./GroupContext/Group": {
|
|
115
|
+
"import": "./esm/GroupContext/Group.js",
|
|
116
|
+
"require": "./cjs/GroupContext/Group.js"
|
|
117
|
+
},
|
|
118
|
+
"./FocusGroup/utils/getNextCellPosition": {
|
|
119
|
+
"import": "./esm/FocusGroup/utils/getNextCellPosition.js",
|
|
120
|
+
"require": "./cjs/FocusGroup/utils/getNextCellPosition.js"
|
|
121
|
+
},
|
|
122
|
+
"./FocusGroup/useFocusGroupItem": {
|
|
123
|
+
"import": "./esm/FocusGroup/useFocusGroupItem.js",
|
|
124
|
+
"require": "./cjs/FocusGroup/useFocusGroupItem.js"
|
|
125
|
+
},
|
|
126
|
+
"./FocusGroup": {
|
|
127
|
+
"import": "./esm/FocusGroup/index.js",
|
|
128
|
+
"require": "./cjs/FocusGroup/index.js"
|
|
129
|
+
},
|
|
130
|
+
"./FocusGroup/focusGroupManagerHoc": {
|
|
131
|
+
"import": "./esm/FocusGroup/focusGroupManagerHoc.js",
|
|
132
|
+
"require": "./cjs/FocusGroup/focusGroupManagerHoc.js"
|
|
133
|
+
},
|
|
134
|
+
"./FocusGroup/FocusGroupManager": {
|
|
135
|
+
"import": "./esm/FocusGroup/FocusGroupManager.js",
|
|
136
|
+
"require": "./cjs/FocusGroup/FocusGroupManager.js"
|
|
137
|
+
},
|
|
138
|
+
"./FocusGroup/FocusGroupContext": {
|
|
139
|
+
"import": "./esm/FocusGroup/FocusGroupContext.js",
|
|
140
|
+
"require": "./cjs/FocusGroup/FocusGroupContext.js"
|
|
141
|
+
},
|
|
142
|
+
"./FocusGroup/FocusGroup": {
|
|
143
|
+
"import": "./esm/FocusGroup/FocusGroup.js",
|
|
144
|
+
"require": "./cjs/FocusGroup/FocusGroup.js"
|
|
145
|
+
},
|
|
146
|
+
"./FocusGroup/FocusGrid": {
|
|
147
|
+
"import": "./esm/FocusGroup/FocusGrid.js",
|
|
148
|
+
"require": "./cjs/FocusGroup/FocusGrid.js"
|
|
149
|
+
},
|
|
150
|
+
"./DeferRenderAfterComputation": {
|
|
151
|
+
"import": "./esm/DeferRenderAfterComputation.js",
|
|
152
|
+
"require": "./cjs/DeferRenderAfterComputation.js"
|
|
153
|
+
},
|
|
154
|
+
"./defer-render-hoc": {
|
|
155
|
+
"import": "./esm/defer-render-hoc/index.js",
|
|
156
|
+
"require": "./cjs/defer-render-hoc/index.js"
|
|
157
|
+
},
|
|
158
|
+
"./createDataInstance/utils": {
|
|
159
|
+
"import": "./esm/createDataInstance/utils.js",
|
|
160
|
+
"require": "./cjs/createDataInstance/utils.js"
|
|
161
|
+
},
|
|
162
|
+
"./createDataInstance/createInstanceRef": {
|
|
163
|
+
"import": "./esm/createDataInstance/createInstanceRef.js",
|
|
164
|
+
"require": "./cjs/createDataInstance/createInstanceRef.js"
|
|
165
|
+
},
|
|
166
|
+
"./createDataInstance/createInstancePlugin": {
|
|
167
|
+
"import": "./esm/createDataInstance/createInstancePlugin.js",
|
|
168
|
+
"require": "./cjs/createDataInstance/createInstancePlugin.js"
|
|
169
|
+
},
|
|
170
|
+
"./CheckableGroup": {
|
|
171
|
+
"import": "./esm/CheckableGroup.js",
|
|
172
|
+
"require": "./cjs/CheckableGroup.js"
|
|
173
|
+
},
|
|
174
|
+
"./Animations/GrowVertical": {
|
|
175
|
+
"import": "./esm/Animations/GrowVertical.js",
|
|
176
|
+
"require": "./cjs/Animations/GrowVertical.js"
|
|
177
|
+
},
|
|
178
|
+
"./Animations/GrowRight": {
|
|
179
|
+
"import": "./esm/Animations/GrowRight.js",
|
|
180
|
+
"require": "./cjs/Animations/GrowRight.js"
|
|
181
|
+
},
|
|
182
|
+
"./Animations/Grow": {
|
|
183
|
+
"import": "./esm/Animations/Grow.js",
|
|
184
|
+
"require": "./cjs/Animations/Grow.js"
|
|
185
|
+
},
|
|
186
|
+
"./Animations/BaseAnimation": {
|
|
187
|
+
"import": "./esm/Animations/BaseAnimation.js",
|
|
188
|
+
"require": "./cjs/Animations/BaseAnimation.js"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
8
191
|
"sideEffects": [
|
|
9
192
|
"*.css",
|
|
10
193
|
"*.scss"
|
|
11
194
|
],
|
|
195
|
+
"repository": {
|
|
196
|
+
"type": "git",
|
|
197
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
198
|
+
},
|
|
199
|
+
"engines": {
|
|
200
|
+
"npm": ">=7",
|
|
201
|
+
"node": ">=14"
|
|
202
|
+
},
|
|
203
|
+
"author": "ICE MT",
|
|
12
204
|
"scripts": {
|
|
13
205
|
"prebuild": "exit 0",
|
|
14
206
|
"predev": "exit 0",
|
|
@@ -17,23 +209,20 @@
|
|
|
17
209
|
},
|
|
18
210
|
"publishConfig": {
|
|
19
211
|
"access": "public",
|
|
20
|
-
"directory": "dist"
|
|
212
|
+
"directory": "dist",
|
|
213
|
+
"generateSubmodules": true
|
|
21
214
|
},
|
|
22
215
|
"dependencies": {
|
|
23
|
-
"@elliemae/ds-basic": "
|
|
24
|
-
"@elliemae/ds-utilities": "
|
|
216
|
+
"@elliemae/ds-basic": "2.0.0-alpha.11",
|
|
217
|
+
"@elliemae/ds-utilities": "2.0.0-alpha.11",
|
|
25
218
|
"hoist-non-react-statics": "~3.3.2",
|
|
26
|
-
"hotkeys-js": "~3.8.2",
|
|
27
|
-
"prop-types": "~15.7.2",
|
|
28
219
|
"raf": "~3.4.1",
|
|
29
220
|
"react-spring": "~8.0.27",
|
|
30
|
-
"react-virtualized-auto-sizer": "~1.0.
|
|
31
|
-
"react-window": "~1.8.6",
|
|
32
|
-
"table-resolver": "~4.1.1",
|
|
221
|
+
"react-virtualized-auto-sizer": "~1.0.6",
|
|
33
222
|
"uuid": "~8.3.2"
|
|
34
223
|
},
|
|
35
224
|
"peerDependencies": {
|
|
36
|
-
"lodash": "~4.17.
|
|
225
|
+
"lodash": "~4.17.21",
|
|
37
226
|
"react": "~16.14.0",
|
|
38
227
|
"react-dom": "~16.14.0"
|
|
39
228
|
}
|