@elliemae/ds-query-builder 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/DSQueryBuilder.js +58 -151
- package/cjs/components/AndOrController/AndOrController.js +126 -162
- package/cjs/components/ConditionController/ConditionController.js +40 -60
- package/cjs/components/DisplayOutput/DisplayOutput.js +62 -83
- package/cjs/components/DragContainerController/DragContainerController.js +20 -21
- package/cjs/components/DragControllerRow/DragControllerRow.js +33 -23
- package/cjs/components/FieldControllerRow/FieldControllerRow.js +14 -19
- package/cjs/components/Nestable/Nestable.js +243 -283
- package/cjs/components/Nestable/NestableItem.js +61 -52
- package/cjs/components/Nestable/actions/events.js +53 -35
- package/cjs/components/Nestable/actions/getItemOptions.js +14 -12
- package/cjs/components/Nestable/actions/getPaths.js +46 -38
- package/cjs/components/Nestable/actions/index.js +21 -26
- package/cjs/components/Nestable/actions/moveItem.js +26 -16
- package/cjs/components/Nestable/actions/paths.js +48 -40
- package/cjs/components/Nestable/actions/tryDecreaseDepth.js +12 -12
- package/cjs/components/Nestable/actions/tryIncreaseDepth.js +14 -14
- package/cjs/components/Nestable/index.js +2 -25
- package/cjs/components/QueryBuilderContext/QueryBuilderContext.js +1 -2
- package/cjs/components/QueryBuilderImpl.js +216 -283
- package/cjs/components/QueryBuilderItem/QueryBuilderItem.js +59 -77
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +154 -174
- package/cjs/components/ToolBarAnimation/ToolBarAnimation.js +16 -11
- package/cjs/components/format/format.js +27 -39
- package/cjs/components/format/sqlFormat.js +35 -32
- package/cjs/components/format/sqlSafeFormat.js +38 -35
- package/cjs/components/format/xmlFormat.js +35 -32
- package/cjs/components/helpers/actions.js +108 -93
- package/cjs/components/helpers/constants.js +3 -4
- package/cjs/components/helpers/dependencies.js +36 -26
- package/cjs/components/helpers/selectors.js +18 -19
- package/cjs/components/helpers/store.js +87 -109
- package/cjs/components/helpers/types.js +9 -10
- package/cjs/index.js +19 -76
- package/cjs/propTypes.js +4 -5
- package/esm/DSQueryBuilder.js +37 -130
- package/esm/components/AndOrController/AndOrController.js +120 -152
- package/esm/components/ConditionController/ConditionController.js +37 -57
- package/esm/components/DisplayOutput/DisplayOutput.js +61 -76
- package/esm/components/DragContainerController/DragContainerController.js +20 -21
- package/esm/components/DragControllerRow/DragControllerRow.js +27 -17
- package/esm/components/FieldControllerRow/FieldControllerRow.js +13 -18
- package/esm/components/Nestable/Nestable.js +235 -268
- package/esm/components/Nestable/NestableItem.js +58 -48
- package/esm/components/Nestable/actions/events.js +52 -34
- package/esm/components/Nestable/actions/getItemOptions.js +14 -12
- package/esm/components/Nestable/actions/getPaths.js +46 -33
- package/esm/components/Nestable/actions/index.js +0 -5
- package/esm/components/Nestable/actions/moveItem.js +23 -13
- package/esm/components/Nestable/actions/paths.js +48 -35
- package/esm/components/Nestable/actions/tryDecreaseDepth.js +12 -12
- package/esm/components/Nestable/actions/tryIncreaseDepth.js +14 -14
- package/esm/components/Nestable/index.js +0 -23
- package/esm/components/QueryBuilderContext/QueryBuilderContext.js +1 -2
- package/esm/components/QueryBuilderImpl.js +204 -265
- package/esm/components/QueryBuilderItem/QueryBuilderItem.js +52 -70
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js +149 -164
- package/esm/components/ToolBarAnimation/ToolBarAnimation.js +16 -10
- package/esm/components/format/format.js +19 -27
- package/esm/components/format/sqlFormat.js +34 -31
- package/esm/components/format/sqlSafeFormat.js +37 -34
- package/esm/components/format/xmlFormat.js +34 -31
- package/esm/components/helpers/actions.js +100 -85
- package/esm/components/helpers/constants.js +3 -4
- package/esm/components/helpers/dependencies.js +33 -21
- package/esm/components/helpers/selectors.js +5 -6
- package/esm/components/helpers/store.js +84 -104
- package/esm/components/helpers/types.js +9 -10
- package/esm/index.js +0 -57
- package/esm/propTypes.js +1 -2
- package/package.json +173 -15
- package/types/DSQueryBuilder.d.ts +211 -0
- package/types/components/AndOrController/AndOrController.d.ts +38 -0
- package/types/components/ConditionController/ConditionController.d.ts +16 -0
- package/types/components/DisplayOutput/DisplayOutput.d.ts +7 -0
- package/types/components/DragContainerController/DragContainerController.d.ts +9 -0
- package/types/components/DragControllerRow/DragControllerRow.d.ts +9 -0
- package/types/components/FieldControllerRow/FieldControllerRow.d.ts +9 -0
- package/types/components/Nestable/Nestable.d.ts +51 -0
- package/types/components/Nestable/NestableItem.d.ts +12 -0
- package/types/components/Nestable/actions/events.d.ts +6 -0
- package/types/components/Nestable/actions/getItemOptions.d.ts +11 -0
- package/types/components/Nestable/actions/getPaths.d.ts +5 -0
- package/types/components/Nestable/actions/index.d.ts +6 -0
- package/types/components/Nestable/actions/moveItem.d.ts +5 -0
- package/types/components/Nestable/actions/paths.d.ts +5 -0
- package/types/components/Nestable/actions/tryDecreaseDepth.d.ts +1 -0
- package/types/components/Nestable/actions/tryIncreaseDepth.d.ts +1 -0
- package/types/components/Nestable/index.d.ts +2 -0
- package/types/components/QueryBuilderContext/QueryBuilderContext.d.ts +2 -0
- package/types/components/QueryBuilderImpl.d.ts +49 -0
- package/types/components/QueryBuilderItem/QueryBuilderItem.d.ts +5 -0
- package/types/components/QueryBuilderRow/QueryBuilderRow.d.ts +12 -0
- package/types/components/ToolBarAnimation/ToolBarAnimation.d.ts +3 -0
- package/types/components/format/format.d.ts +26 -0
- package/types/components/format/sqlFormat.d.ts +5 -0
- package/types/components/format/sqlSafeFormat.d.ts +6 -0
- package/types/components/format/xmlFormat.d.ts +5 -0
- package/types/components/helpers/actions.d.ts +63 -0
- package/types/components/helpers/constants.d.ts +3 -0
- package/types/components/helpers/dependencies.d.ts +1 -0
- package/types/components/helpers/selectors.d.ts +20 -0
- package/types/components/helpers/store.d.ts +144 -0
- package/types/components/helpers/types.d.ts +50 -0
- package/types/index.d.ts +2 -0
- package/types/propTypes.d.ts +156 -0
- package/DSQueryBuilder/package.json +0 -10
- package/cjs/DSQueryBuilder.js.map +0 -1
- package/cjs/components/AndOrController/AndOrController.js.map +0 -1
- package/cjs/components/ConditionController/ConditionController.js.map +0 -1
- package/cjs/components/DisplayOutput/DisplayOutput.js.map +0 -1
- package/cjs/components/DragContainerController/DragContainerController.js.map +0 -1
- package/cjs/components/DragControllerRow/DragControllerRow.js.map +0 -1
- package/cjs/components/FieldControllerRow/FieldControllerRow.js.map +0 -1
- package/cjs/components/Nestable/Nestable.js.map +0 -1
- package/cjs/components/Nestable/NestableItem.js.map +0 -1
- package/cjs/components/Nestable/actions/events.js.map +0 -1
- package/cjs/components/Nestable/actions/getItemOptions.js.map +0 -1
- package/cjs/components/Nestable/actions/getPaths.js.map +0 -1
- package/cjs/components/Nestable/actions/index.js.map +0 -1
- package/cjs/components/Nestable/actions/moveItem.js.map +0 -1
- package/cjs/components/Nestable/actions/paths.js.map +0 -1
- package/cjs/components/Nestable/actions/tryDecreaseDepth.js.map +0 -1
- package/cjs/components/Nestable/actions/tryIncreaseDepth.js.map +0 -1
- package/cjs/components/Nestable/index.js.map +0 -1
- package/cjs/components/QueryBuilderContext/QueryBuilderContext.js.map +0 -1
- package/cjs/components/QueryBuilderImpl.js.map +0 -1
- package/cjs/components/QueryBuilderItem/QueryBuilderItem.js.map +0 -1
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js.map +0 -1
- package/cjs/components/ToolBarAnimation/ToolBarAnimation.js.map +0 -1
- package/cjs/components/format/format.js.map +0 -1
- package/cjs/components/format/sqlFormat.js.map +0 -1
- package/cjs/components/format/sqlSafeFormat.js.map +0 -1
- package/cjs/components/format/xmlFormat.js.map +0 -1
- package/cjs/components/helpers/actions.js.map +0 -1
- package/cjs/components/helpers/constants.js.map +0 -1
- package/cjs/components/helpers/dependencies.js.map +0 -1
- package/cjs/components/helpers/selectors.js.map +0 -1
- package/cjs/components/helpers/store.js.map +0 -1
- package/cjs/components/helpers/types.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/propTypes.js.map +0 -1
- package/components/AndOrController/AndOrController/package.json +0 -10
- package/components/ConditionController/ConditionController/package.json +0 -10
- package/components/DisplayOutput/DisplayOutput/package.json +0 -10
- package/components/DragContainerController/DragContainerController/package.json +0 -10
- package/components/DragControllerRow/DragControllerRow/package.json +0 -10
- package/components/FieldControllerRow/FieldControllerRow/package.json +0 -10
- package/components/Nestable/Nestable/package.json +0 -10
- package/components/Nestable/NestableItem/package.json +0 -10
- package/components/Nestable/actions/events/package.json +0 -10
- package/components/Nestable/actions/getItemOptions/package.json +0 -10
- package/components/Nestable/actions/getPaths/package.json +0 -10
- package/components/Nestable/actions/moveItem/package.json +0 -10
- package/components/Nestable/actions/package.json +0 -10
- package/components/Nestable/actions/paths/package.json +0 -10
- package/components/Nestable/actions/tryDecreaseDepth/package.json +0 -10
- package/components/Nestable/actions/tryIncreaseDepth/package.json +0 -10
- package/components/Nestable/package.json +0 -10
- package/components/QueryBuilderContext/QueryBuilderContext/package.json +0 -10
- package/components/QueryBuilderImpl/package.json +0 -10
- package/components/QueryBuilderItem/QueryBuilderItem/package.json +0 -10
- package/components/QueryBuilderRow/QueryBuilderRow/package.json +0 -10
- package/components/ToolBarAnimation/ToolBarAnimation/package.json +0 -10
- package/components/format/format/package.json +0 -10
- package/components/format/sqlFormat/package.json +0 -10
- package/components/format/sqlSafeFormat/package.json +0 -10
- package/components/format/xmlFormat/package.json +0 -10
- package/components/helpers/actions/package.json +0 -10
- package/components/helpers/constants/package.json +0 -10
- package/components/helpers/dependencies/package.json +0 -10
- package/components/helpers/selectors/package.json +0 -10
- package/components/helpers/store/package.json +0 -10
- package/components/helpers/types/package.json +0 -10
- package/esm/DSQueryBuilder.js.map +0 -1
- package/esm/components/AndOrController/AndOrController.js.map +0 -1
- package/esm/components/ConditionController/ConditionController.js.map +0 -1
- package/esm/components/DisplayOutput/DisplayOutput.js.map +0 -1
- package/esm/components/DragContainerController/DragContainerController.js.map +0 -1
- package/esm/components/DragControllerRow/DragControllerRow.js.map +0 -1
- package/esm/components/FieldControllerRow/FieldControllerRow.js.map +0 -1
- package/esm/components/Nestable/Nestable.js.map +0 -1
- package/esm/components/Nestable/NestableItem.js.map +0 -1
- package/esm/components/Nestable/actions/events.js.map +0 -1
- package/esm/components/Nestable/actions/getItemOptions.js.map +0 -1
- package/esm/components/Nestable/actions/getPaths.js.map +0 -1
- package/esm/components/Nestable/actions/index.js.map +0 -1
- package/esm/components/Nestable/actions/moveItem.js.map +0 -1
- package/esm/components/Nestable/actions/paths.js.map +0 -1
- package/esm/components/Nestable/actions/tryDecreaseDepth.js.map +0 -1
- package/esm/components/Nestable/actions/tryIncreaseDepth.js.map +0 -1
- package/esm/components/Nestable/index.js.map +0 -1
- package/esm/components/QueryBuilderContext/QueryBuilderContext.js.map +0 -1
- package/esm/components/QueryBuilderImpl.js.map +0 -1
- package/esm/components/QueryBuilderItem/QueryBuilderItem.js.map +0 -1
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js.map +0 -1
- package/esm/components/ToolBarAnimation/ToolBarAnimation.js.map +0 -1
- package/esm/components/format/format.js.map +0 -1
- package/esm/components/format/sqlFormat.js.map +0 -1
- package/esm/components/format/sqlSafeFormat.js.map +0 -1
- package/esm/components/format/xmlFormat.js.map +0 -1
- package/esm/components/helpers/actions.js.map +0 -1
- package/esm/components/helpers/constants.js.map +0 -1
- package/esm/components/helpers/dependencies.js.map +0 -1
- package/esm/components/helpers/selectors.js.map +0 -1
- package/esm/components/helpers/store.js.map +0 -1
- package/esm/components/helpers/types.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/propTypes.js.map +0 -1
- package/propTypes/package.json +0 -10
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
3
|
+
import 'core-js/modules/esnext.async-iterator.every.js';
|
|
4
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.every.js';
|
|
6
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
8
|
+
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
9
|
|
|
4
10
|
function getRealNextPath(prevPath, nextPath) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
const {
|
|
12
|
+
childrenProp
|
|
13
|
+
} = this.props;
|
|
14
|
+
const ppLastIndex = prevPath.length - 1;
|
|
15
|
+
const npLastIndex = nextPath.length - 1;
|
|
8
16
|
|
|
9
17
|
if (prevPath.length < nextPath.length) {
|
|
10
18
|
// move into deep
|
|
11
|
-
|
|
12
|
-
return nextPath.map(
|
|
19
|
+
let wasShifted = false;
|
|
20
|
+
return nextPath.map((nextIndex, i) => {
|
|
13
21
|
if (wasShifted) {
|
|
14
22
|
return i === npLastIndex ? nextIndex + 1 : nextIndex;
|
|
15
23
|
}
|
|
@@ -30,7 +38,7 @@ function getRealNextPath(prevPath, nextPath) {
|
|
|
30
38
|
if (prevPath.length === nextPath.length) {
|
|
31
39
|
// if move bottom + move to item with children => make it a first child instead of swap
|
|
32
40
|
if (nextPath[npLastIndex] > prevPath[npLastIndex]) {
|
|
33
|
-
|
|
41
|
+
const target = this.getItemByPath(nextPath);
|
|
34
42
|
|
|
35
43
|
if (target[childrenProp] && target[childrenProp].length && !this.isCollapsed(target)) {
|
|
36
44
|
return nextPath.slice(0, -1).concat(nextPath[npLastIndex] - 1).concat(0);
|
|
@@ -41,16 +49,16 @@ function getRealNextPath(prevPath, nextPath) {
|
|
|
41
49
|
return nextPath;
|
|
42
50
|
}
|
|
43
51
|
function getPathById(id) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
items.every(
|
|
52
|
+
let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDefaultItems();
|
|
53
|
+
const {
|
|
54
|
+
childrenProp
|
|
55
|
+
} = this.props;
|
|
56
|
+
let path = [];
|
|
57
|
+
items.every((item, i) => {
|
|
50
58
|
if (item.id === id) {
|
|
51
59
|
path.push(i);
|
|
52
60
|
} else if (item[childrenProp]) {
|
|
53
|
-
|
|
61
|
+
const childrenPath = this.getPathById(id, item[childrenProp]);
|
|
54
62
|
|
|
55
63
|
if (childrenPath.length) {
|
|
56
64
|
path = path.concat(i).concat(childrenPath);
|
|
@@ -62,39 +70,45 @@ function getPathById(id) {
|
|
|
62
70
|
return path;
|
|
63
71
|
}
|
|
64
72
|
function getItemByPath(path) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
73
|
+
let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDefaultItems();
|
|
74
|
+
const {
|
|
75
|
+
childrenProp
|
|
76
|
+
} = this.props;
|
|
77
|
+
let item = null;
|
|
78
|
+
path.forEach(index => {
|
|
79
|
+
const list = item ? item[childrenProp] : items;
|
|
70
80
|
item = list[index];
|
|
71
81
|
});
|
|
72
82
|
return item;
|
|
73
83
|
}
|
|
74
84
|
function getItemDepth(item) {
|
|
75
|
-
|
|
76
|
-
|
|
85
|
+
const {
|
|
86
|
+
childrenProp
|
|
87
|
+
} = this.props;
|
|
88
|
+
let level = 1;
|
|
77
89
|
|
|
78
90
|
if (item[childrenProp].length > 0) {
|
|
79
|
-
|
|
80
|
-
level += Math.max
|
|
91
|
+
const childrenDepths = item[childrenProp].map(this.getItemDepth);
|
|
92
|
+
level += Math.max(...childrenDepths);
|
|
81
93
|
}
|
|
82
94
|
|
|
83
95
|
return level;
|
|
84
96
|
}
|
|
85
97
|
function getSplicePath(path) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
path.forEach(
|
|
98
|
+
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
99
|
+
const splicePath = {};
|
|
100
|
+
const numToRemove = options.numToRemove || 0;
|
|
101
|
+
const itemsToInsert = options.itemsToInsert || [];
|
|
102
|
+
const lastIndex = path.length - 1;
|
|
103
|
+
let currentPath = splicePath;
|
|
104
|
+
path.forEach((index, i) => {
|
|
93
105
|
if (i === lastIndex) {
|
|
94
|
-
currentPath.$splice = [[index, numToRemove
|
|
106
|
+
currentPath.$splice = [[index, numToRemove, ...itemsToInsert]];
|
|
95
107
|
} else {
|
|
96
|
-
|
|
97
|
-
currentPath[index] =
|
|
108
|
+
const nextPath = {};
|
|
109
|
+
currentPath[index] = {
|
|
110
|
+
[options.childrenProp]: nextPath
|
|
111
|
+
};
|
|
98
112
|
currentPath = nextPath;
|
|
99
113
|
}
|
|
100
114
|
});
|
|
@@ -102,4 +116,3 @@ function getSplicePath(path) {
|
|
|
102
116
|
}
|
|
103
117
|
|
|
104
118
|
export { getItemByPath, getItemDepth, getPathById, getRealNextPath, getSplicePath };
|
|
105
|
-
//# sourceMappingURL=paths.js.map
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
function tryDecreaseDepth(dragItem) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
const {
|
|
3
|
+
childrenProp,
|
|
4
|
+
collapsed
|
|
5
|
+
} = this.props;
|
|
6
|
+
const pathFrom = this.getPathById(dragItem.id);
|
|
7
|
+
const itemIndex = pathFrom[pathFrom.length - 1]; // has parent
|
|
7
8
|
|
|
8
9
|
if (pathFrom.length > 1) {
|
|
9
|
-
|
|
10
|
+
const parent = this.getItemByPath(pathFrom.slice(0, -1)); // is last (by order) item in array
|
|
10
11
|
|
|
11
12
|
if (itemIndex + 1 === parent[childrenProp].length) {
|
|
12
|
-
|
|
13
|
+
const pathTo = pathFrom.slice(0, -1);
|
|
13
14
|
pathTo[pathTo.length - 1] += 1; // if collapsed by default and is last (by count) item in array remove this node from list of open nodes
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
let collapseProps = {};
|
|
16
17
|
|
|
17
18
|
if (collapsed && parent[childrenProp].length === 1) {
|
|
18
19
|
collapseProps = this.onToggleCollapse(parent, true);
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
this.moveItem({
|
|
22
|
-
dragItem
|
|
23
|
-
pathFrom
|
|
24
|
-
pathTo
|
|
23
|
+
dragItem,
|
|
24
|
+
pathFrom,
|
|
25
|
+
pathTo
|
|
25
26
|
}, collapseProps);
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
export { tryDecreaseDepth };
|
|
31
|
-
//# sourceMappingURL=tryDecreaseDepth.js.map
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
function tryIncreaseDepth(dragItem) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
const {
|
|
3
|
+
maxDepth,
|
|
4
|
+
childrenProp,
|
|
5
|
+
collapsed
|
|
6
|
+
} = this.props;
|
|
7
|
+
const pathFrom = this.getPathById(dragItem.id);
|
|
8
|
+
const itemIndex = pathFrom[pathFrom.length - 1];
|
|
9
|
+
const newDepth = pathFrom.length + this.getItemDepth(dragItem); // has previous sibling and isn't at max depth
|
|
9
10
|
|
|
10
11
|
if (itemIndex > 0 && newDepth <= maxDepth) {
|
|
11
|
-
|
|
12
|
+
const prevSibling = this.getItemByPath(pathFrom.slice(0, -1).concat(itemIndex - 1)); // previous sibling is not collapsed
|
|
12
13
|
|
|
13
14
|
if (!prevSibling[childrenProp].length || !this.isCollapsed(prevSibling)) {
|
|
14
|
-
|
|
15
|
+
const pathTo = pathFrom.slice(0, -1).concat(itemIndex - 1).concat(prevSibling[childrenProp].length); // if collapsed by default
|
|
15
16
|
// and was no children here
|
|
16
17
|
// open this node
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
let collapseProps = {};
|
|
19
20
|
|
|
20
21
|
if (collapsed && !prevSibling[childrenProp].length) {
|
|
21
22
|
collapseProps = this.onToggleCollapse(prevSibling, true);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
this.moveItem({
|
|
25
|
-
dragItem
|
|
26
|
-
pathFrom
|
|
27
|
-
pathTo
|
|
26
|
+
dragItem,
|
|
27
|
+
pathFrom,
|
|
28
|
+
pathTo
|
|
28
29
|
}, collapseProps);
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export { tryIncreaseDepth };
|
|
34
|
-
//# sourceMappingURL=tryIncreaseDepth.js.map
|
|
@@ -1,25 +1,2 @@
|
|
|
1
1
|
import Nestable from './Nestable.js';
|
|
2
2
|
export { default } from './Nestable.js';
|
|
3
|
-
import '@babel/runtime/helpers/esm/defineProperty';
|
|
4
|
-
import '@babel/runtime/helpers/esm/classCallCheck';
|
|
5
|
-
import '@babel/runtime/helpers/esm/createClass';
|
|
6
|
-
import '@babel/runtime/helpers/esm/assertThisInitialized';
|
|
7
|
-
import '@babel/runtime/helpers/esm/inherits';
|
|
8
|
-
import '@babel/runtime/helpers/esm/possibleConstructorReturn';
|
|
9
|
-
import '@babel/runtime/helpers/esm/getPrototypeOf';
|
|
10
|
-
import 'react';
|
|
11
|
-
import 'prop-types';
|
|
12
|
-
import 'classnames';
|
|
13
|
-
import '@elliemae/ds-shared/utils';
|
|
14
|
-
import '@elliemae/ds-utilities';
|
|
15
|
-
import './actions/tryIncreaseDepth.js';
|
|
16
|
-
import './actions/tryDecreaseDepth.js';
|
|
17
|
-
import './actions/moveItem.js';
|
|
18
|
-
import 'react-addons-update';
|
|
19
|
-
import './actions/paths.js';
|
|
20
|
-
import '@babel/runtime/helpers/esm/toConsumableArray';
|
|
21
|
-
import './actions/events.js';
|
|
22
|
-
import './actions/getItemOptions.js';
|
|
23
|
-
import './NestableItem.js';
|
|
24
|
-
import '@babel/runtime/helpers/esm/extends';
|
|
25
|
-
//# sourceMappingURL=index.js.map
|