@elliemae/ds-query-builder 2.3.0-alpha.6 → 2.3.0-next.0
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 +98 -0
- package/cjs/components/AndOrController/AndOrController.js +222 -0
- package/cjs/components/ConditionController/ConditionController.js +100 -0
- package/cjs/components/DisplayOutput/DisplayOutput.js +93 -0
- package/cjs/components/DragContainerController/DragContainerController.js +45 -0
- package/cjs/components/DragControllerRow/DragControllerRow.js +47 -0
- package/cjs/components/FieldControllerRow/FieldControllerRow.js +33 -0
- package/cjs/components/Nestable/Nestable.js +320 -0
- package/cjs/components/Nestable/NestableItem.js +111 -0
- package/cjs/components/Nestable/actions/events.js +166 -0
- package/cjs/components/Nestable/actions/getItemOptions.js +28 -0
- package/cjs/components/Nestable/actions/getPaths.js +124 -0
- package/cjs/components/Nestable/actions/index.js +28 -0
- package/cjs/components/Nestable/actions/moveItem.js +54 -0
- package/cjs/components/Nestable/actions/paths.js +126 -0
- package/cjs/components/Nestable/actions/tryDecreaseDepth.js +35 -0
- package/cjs/components/Nestable/actions/tryIncreaseDepth.js +38 -0
- package/cjs/components/Nestable/index.js +7 -0
- package/cjs/components/QueryBuilderContext/QueryBuilderContext.js +13 -0
- package/cjs/components/QueryBuilderImpl.js +309 -0
- package/cjs/components/QueryBuilderItem/QueryBuilderItem.js +90 -0
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +276 -0
- package/cjs/components/ToolBarAnimation/ToolBarAnimation.js +29 -0
- package/cjs/components/format/format.js +33 -0
- package/cjs/components/format/sqlFormat.js +73 -0
- package/cjs/components/format/sqlSafeFormat.js +81 -0
- package/cjs/components/format/xmlFormat.js +73 -0
- package/cjs/components/helpers/actions.js +277 -0
- package/cjs/components/helpers/constants.js +11 -0
- package/cjs/components/helpers/dependencies.js +84 -0
- package/cjs/components/helpers/selectors.js +101 -0
- package/cjs/components/helpers/store.js +177 -0
- package/cjs/components/helpers/types.js +64 -0
- package/cjs/index.js +29 -0
- package/cjs/propTypes.js +97 -0
- package/esm/DSQueryBuilder.js +74 -0
- package/esm/components/AndOrController/AndOrController.js +213 -0
- package/esm/components/ConditionController/ConditionController.js +92 -0
- package/esm/components/DisplayOutput/DisplayOutput.js +87 -0
- package/esm/components/DragContainerController/DragContainerController.js +39 -0
- package/esm/components/DragControllerRow/DragControllerRow.js +39 -0
- package/esm/components/FieldControllerRow/FieldControllerRow.js +27 -0
- package/esm/components/Nestable/Nestable.js +312 -0
- package/esm/components/Nestable/NestableItem.js +103 -0
- package/esm/components/Nestable/actions/events.js +153 -0
- package/{dist/esm → esm}/components/Nestable/actions/getItemOptions.js +11 -7
- package/{dist/esm → esm}/components/Nestable/actions/getPaths.js +43 -17
- package/esm/components/Nestable/actions/index.js +6 -0
- package/esm/components/Nestable/actions/moveItem.js +45 -0
- package/{dist/esm → esm}/components/Nestable/actions/paths.js +47 -19
- package/esm/components/Nestable/actions/tryDecreaseDepth.js +31 -0
- package/{dist/esm → esm}/components/Nestable/actions/tryIncreaseDepth.js +22 -10
- package/esm/components/Nestable/index.js +2 -0
- package/esm/components/QueryBuilderContext/QueryBuilderContext.js +5 -0
- package/esm/components/QueryBuilderImpl.js +301 -0
- package/esm/components/QueryBuilderItem/QueryBuilderItem.js +83 -0
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js +268 -0
- package/esm/components/ToolBarAnimation/ToolBarAnimation.js +20 -0
- package/esm/components/format/format.js +31 -0
- package/esm/components/format/sqlFormat.js +69 -0
- package/esm/components/format/sqlSafeFormat.js +76 -0
- package/esm/components/format/xmlFormat.js +69 -0
- package/esm/components/helpers/actions.js +254 -0
- package/esm/components/helpers/constants.js +5 -0
- package/esm/components/helpers/dependencies.js +60 -0
- package/esm/components/helpers/selectors.js +93 -0
- package/esm/components/helpers/store.js +171 -0
- package/esm/components/helpers/types.js +52 -0
- package/esm/index.js +4 -0
- package/esm/propTypes.js +93 -0
- package/package.json +95 -97
- package/types/DSQueryBuilder.d.ts +180 -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/dist/cjs/DSQueryBuilder.js +0 -118
- package/dist/cjs/DSQueryBuilder.js.map +0 -7
- package/dist/cjs/components/AndOrController/AndOrController.js +0 -208
- package/dist/cjs/components/AndOrController/AndOrController.js.map +0 -7
- package/dist/cjs/components/ConditionController/ConditionController.js +0 -116
- package/dist/cjs/components/ConditionController/ConditionController.js.map +0 -7
- package/dist/cjs/components/DisplayOutput/DisplayOutput.js +0 -92
- package/dist/cjs/components/DisplayOutput/DisplayOutput.js.map +0 -7
- package/dist/cjs/components/DragContainerController/DragContainerController.js +0 -65
- package/dist/cjs/components/DragContainerController/DragContainerController.js.map +0 -7
- package/dist/cjs/components/DragControllerRow/DragControllerRow.js +0 -51
- package/dist/cjs/components/DragControllerRow/DragControllerRow.js.map +0 -7
- package/dist/cjs/components/FieldControllerRow/FieldControllerRow.js +0 -55
- package/dist/cjs/components/FieldControllerRow/FieldControllerRow.js.map +0 -7
- package/dist/cjs/components/Nestable/Nestable.js +0 -254
- package/dist/cjs/components/Nestable/Nestable.js.map +0 -7
- package/dist/cjs/components/Nestable/NestableItem.js +0 -119
- package/dist/cjs/components/Nestable/NestableItem.js.map +0 -7
- package/dist/cjs/components/Nestable/actions/events.js +0 -143
- package/dist/cjs/components/Nestable/actions/events.js.map +0 -7
- package/dist/cjs/components/Nestable/actions/getItemOptions.js +0 -49
- package/dist/cjs/components/Nestable/actions/getItemOptions.js.map +0 -7
- package/dist/cjs/components/Nestable/actions/getPaths.js +0 -119
- package/dist/cjs/components/Nestable/actions/getPaths.js.map +0 -7
- package/dist/cjs/components/Nestable/actions/index.js +0 -42
- package/dist/cjs/components/Nestable/actions/index.js.map +0 -7
- package/dist/cjs/components/Nestable/actions/moveItem.js +0 -56
- package/dist/cjs/components/Nestable/actions/moveItem.js.map +0 -7
- package/dist/cjs/components/Nestable/actions/paths.js +0 -119
- package/dist/cjs/components/Nestable/actions/paths.js.map +0 -7
- package/dist/cjs/components/Nestable/actions/tryDecreaseDepth.js +0 -51
- package/dist/cjs/components/Nestable/actions/tryDecreaseDepth.js.map +0 -7
- package/dist/cjs/components/Nestable/actions/tryIncreaseDepth.js +0 -51
- package/dist/cjs/components/Nestable/actions/tryIncreaseDepth.js.map +0 -7
- package/dist/cjs/components/Nestable/index.js +0 -36
- package/dist/cjs/components/Nestable/index.js.map +0 -7
- package/dist/cjs/components/QueryBuilderContext/QueryBuilderContext.js +0 -36
- package/dist/cjs/components/QueryBuilderContext/QueryBuilderContext.js.map +0 -7
- package/dist/cjs/components/QueryBuilderImpl.js +0 -225
- package/dist/cjs/components/QueryBuilderImpl.js.map +0 -7
- package/dist/cjs/components/QueryBuilderItem/QueryBuilderItem.js +0 -92
- package/dist/cjs/components/QueryBuilderItem/QueryBuilderItem.js.map +0 -7
- package/dist/cjs/components/QueryBuilderRow/QueryBuilderRow.js +0 -219
- package/dist/cjs/components/QueryBuilderRow/QueryBuilderRow.js.map +0 -7
- package/dist/cjs/components/ToolBarAnimation/ToolBarAnimation.js +0 -42
- package/dist/cjs/components/ToolBarAnimation/ToolBarAnimation.js.map +0 -7
- package/dist/cjs/components/format/format.js +0 -59
- package/dist/cjs/components/format/format.js.map +0 -7
- package/dist/cjs/components/format/sqlFormat.js +0 -94
- package/dist/cjs/components/format/sqlFormat.js.map +0 -7
- package/dist/cjs/components/format/sqlSafeFormat.js +0 -98
- package/dist/cjs/components/format/sqlSafeFormat.js.map +0 -7
- package/dist/cjs/components/format/xmlFormat.js +0 -94
- package/dist/cjs/components/format/xmlFormat.js.map +0 -7
- package/dist/cjs/components/helpers/actions.js +0 -242
- package/dist/cjs/components/helpers/actions.js.map +0 -7
- package/dist/cjs/components/helpers/constants.js +0 -39
- package/dist/cjs/components/helpers/constants.js.map +0 -7
- package/dist/cjs/components/helpers/dependencies.js +0 -69
- package/dist/cjs/components/helpers/dependencies.js.map +0 -7
- package/dist/cjs/components/helpers/selectors.js +0 -161
- package/dist/cjs/components/helpers/selectors.js.map +0 -7
- package/dist/cjs/components/helpers/store.js +0 -159
- package/dist/cjs/components/helpers/store.js.map +0 -7
- package/dist/cjs/components/helpers/types.js +0 -92
- package/dist/cjs/components/helpers/types.js.map +0 -7
- package/dist/cjs/index.js +0 -36
- package/dist/cjs/index.js.map +0 -7
- package/dist/cjs/propTypes.js +0 -105
- package/dist/cjs/propTypes.js.map +0 -7
- package/dist/esm/DSQueryBuilder.js +0 -105
- package/dist/esm/DSQueryBuilder.js.map +0 -7
- package/dist/esm/components/AndOrController/AndOrController.js +0 -179
- package/dist/esm/components/AndOrController/AndOrController.js.map +0 -7
- package/dist/esm/components/ConditionController/ConditionController.js +0 -87
- package/dist/esm/components/ConditionController/ConditionController.js.map +0 -7
- package/dist/esm/components/DisplayOutput/DisplayOutput.js +0 -63
- package/dist/esm/components/DisplayOutput/DisplayOutput.js.map +0 -7
- package/dist/esm/components/DragContainerController/DragContainerController.js +0 -36
- package/dist/esm/components/DragContainerController/DragContainerController.js.map +0 -7
- package/dist/esm/components/DragControllerRow/DragControllerRow.js +0 -22
- package/dist/esm/components/DragControllerRow/DragControllerRow.js.map +0 -7
- package/dist/esm/components/FieldControllerRow/FieldControllerRow.js +0 -26
- package/dist/esm/components/FieldControllerRow/FieldControllerRow.js.map +0 -7
- package/dist/esm/components/Nestable/Nestable.js +0 -241
- package/dist/esm/components/Nestable/Nestable.js.map +0 -7
- package/dist/esm/components/Nestable/NestableItem.js +0 -90
- package/dist/esm/components/Nestable/NestableItem.js.map +0 -7
- package/dist/esm/components/Nestable/actions/events.js +0 -119
- package/dist/esm/components/Nestable/actions/events.js.map +0 -7
- package/dist/esm/components/Nestable/actions/getItemOptions.js.map +0 -7
- package/dist/esm/components/Nestable/actions/getPaths.js.map +0 -7
- package/dist/esm/components/Nestable/actions/index.js +0 -13
- package/dist/esm/components/Nestable/actions/index.js.map +0 -7
- package/dist/esm/components/Nestable/actions/moveItem.js +0 -27
- package/dist/esm/components/Nestable/actions/moveItem.js.map +0 -7
- package/dist/esm/components/Nestable/actions/paths.js.map +0 -7
- package/dist/esm/components/Nestable/actions/tryDecreaseDepth.js +0 -22
- package/dist/esm/components/Nestable/actions/tryDecreaseDepth.js.map +0 -7
- package/dist/esm/components/Nestable/actions/tryIncreaseDepth.js.map +0 -7
- package/dist/esm/components/Nestable/index.js +0 -7
- package/dist/esm/components/Nestable/index.js.map +0 -7
- package/dist/esm/components/QueryBuilderContext/QueryBuilderContext.js +0 -7
- package/dist/esm/components/QueryBuilderContext/QueryBuilderContext.js.map +0 -7
- package/dist/esm/components/QueryBuilderImpl.js +0 -196
- package/dist/esm/components/QueryBuilderImpl.js.map +0 -7
- package/dist/esm/components/QueryBuilderItem/QueryBuilderItem.js +0 -63
- package/dist/esm/components/QueryBuilderItem/QueryBuilderItem.js.map +0 -7
- package/dist/esm/components/QueryBuilderRow/QueryBuilderRow.js +0 -190
- package/dist/esm/components/QueryBuilderRow/QueryBuilderRow.js.map +0 -7
- package/dist/esm/components/ToolBarAnimation/ToolBarAnimation.js +0 -13
- package/dist/esm/components/ToolBarAnimation/ToolBarAnimation.js.map +0 -7
- package/dist/esm/components/format/format.js +0 -30
- package/dist/esm/components/format/format.js.map +0 -7
- package/dist/esm/components/format/sqlFormat.js +0 -65
- package/dist/esm/components/format/sqlFormat.js.map +0 -7
- package/dist/esm/components/format/sqlSafeFormat.js +0 -69
- package/dist/esm/components/format/sqlSafeFormat.js.map +0 -7
- package/dist/esm/components/format/xmlFormat.js +0 -65
- package/dist/esm/components/format/xmlFormat.js.map +0 -7
- package/dist/esm/components/helpers/actions.js +0 -217
- package/dist/esm/components/helpers/actions.js.map +0 -7
- package/dist/esm/components/helpers/constants.js +0 -10
- package/dist/esm/components/helpers/constants.js.map +0 -7
- package/dist/esm/components/helpers/dependencies.js +0 -40
- package/dist/esm/components/helpers/dependencies.js.map +0 -7
- package/dist/esm/components/helpers/selectors.js +0 -132
- package/dist/esm/components/helpers/selectors.js.map +0 -7
- package/dist/esm/components/helpers/store.js +0 -143
- package/dist/esm/components/helpers/store.js.map +0 -7
- package/dist/esm/components/helpers/types.js +0 -63
- package/dist/esm/components/helpers/types.js.map +0 -7
- package/dist/esm/index.js +0 -7
- package/dist/esm/index.js.map +0 -7
- package/dist/esm/propTypes.js +0 -76
- package/dist/esm/propTypes.js.map +0 -7
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
3
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
6
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
7
|
+
import { createNewFilter, createNewGroup, addFilterToMap, addFilterToMainItem, findItemFilterById, addFilterToItem, removeFilterItem, addGroupFilterToItem, addGroupToMap, unGroupFilterToItem, changeGroupOperator, changeFilterItem } from './actions.js';
|
|
8
|
+
import QueryBuilderFormat from '../format/format.js';
|
|
9
|
+
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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 = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
+
/**
|
|
14
|
+
* Fluent interface: https://en.wikipedia.org/wiki/Fluent_interface
|
|
15
|
+
*
|
|
16
|
+
* @param idGroup
|
|
17
|
+
* @param parentIdGroup
|
|
18
|
+
* @param items
|
|
19
|
+
* @param idFilter
|
|
20
|
+
* @param value
|
|
21
|
+
* @param data
|
|
22
|
+
* @class QueryBuilderStore
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
class QueryBuilderStore {
|
|
26
|
+
constructor(init, _format) {
|
|
27
|
+
this.items = [];
|
|
28
|
+
this.step = 0;
|
|
29
|
+
this.steps = {};
|
|
30
|
+
this.mapFilters = {};
|
|
31
|
+
this.mapGroups = {};
|
|
32
|
+
this.main = null;
|
|
33
|
+
this.format = null;
|
|
34
|
+
|
|
35
|
+
this.createNewFilter = idGroup => createNewFilter.call(this, idGroup);
|
|
36
|
+
|
|
37
|
+
this.createNewGroup = parentIdGroup => createNewGroup.call(this, parentIdGroup);
|
|
38
|
+
|
|
39
|
+
this.onOrderDragAndDrop = items => {
|
|
40
|
+
this.items = items;
|
|
41
|
+
return this.getState();
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
this.addFilterNextToFilterId = (idGroup, idFilter) => {
|
|
45
|
+
// eslint-disable-line
|
|
46
|
+
this.addFilter(idGroup);
|
|
47
|
+
return this.getState();
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
this.addFilter = idGroup => {
|
|
51
|
+
const newFilter = this.createNewFilter(idGroup);
|
|
52
|
+
addFilterToMap.call(this, newFilter); // new API
|
|
53
|
+
|
|
54
|
+
if (this.main === idGroup) {
|
|
55
|
+
addFilterToMainItem.call(this, this.items, newFilter);
|
|
56
|
+
} else {
|
|
57
|
+
const foundInItems = findItemFilterById.call(this, idGroup);
|
|
58
|
+
|
|
59
|
+
if (foundInItems) {
|
|
60
|
+
addFilterToItem.call(this, foundInItems, newFilter);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return this.getState();
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
this.onRemoveFilter = idFilter => {
|
|
68
|
+
// new API
|
|
69
|
+
removeFilterItem.call(this, idFilter);
|
|
70
|
+
return this.getState();
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
this.addRuleContainerInPlace = (idGroup, idFilter) => {
|
|
74
|
+
// Create a new group
|
|
75
|
+
const newGroup = this.createNewGroup(idGroup);
|
|
76
|
+
addGroupFilterToItem.call(this, idGroup, idFilter, newGroup);
|
|
77
|
+
return this.getState();
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
this.addRuleContainer = (idGroup, idFilter) => {
|
|
81
|
+
// eslint-disable-line
|
|
82
|
+
const newGroup = this.createNewGroup(idGroup);
|
|
83
|
+
addGroupToMap.call(this, newGroup);
|
|
84
|
+
|
|
85
|
+
if (this.main === idGroup) {
|
|
86
|
+
addFilterToMainItem.call(this, this.items, newGroup);
|
|
87
|
+
} else {
|
|
88
|
+
const foundInItems = findItemFilterById.call(this, idGroup);
|
|
89
|
+
|
|
90
|
+
if (foundInItems) {
|
|
91
|
+
addFilterToItem.call(this, foundInItems, newGroup);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return this.getState();
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
this.unGroup = idGroup => {
|
|
99
|
+
unGroupFilterToItem.call(this, idGroup);
|
|
100
|
+
return this.getState();
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
this.changeGroupOperator = (idGroup, value) => {
|
|
104
|
+
this.getGroupById(idGroup).condition = value;
|
|
105
|
+
changeGroupOperator.call(this, idGroup, value);
|
|
106
|
+
return this.getState();
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
this.changeFilter = data => {
|
|
110
|
+
const {
|
|
111
|
+
idFilter
|
|
112
|
+
} = data;
|
|
113
|
+
this.mapFilters[idFilter] = _objectSpread(_objectSpread({}, this.mapFilters[idFilter]), data);
|
|
114
|
+
changeFilterItem.call(this, data);
|
|
115
|
+
return this.getState();
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
this.getGroupById = idGroup => this.mapGroups[idGroup] || {};
|
|
119
|
+
|
|
120
|
+
this.getFilterById = idFilter => this.mapFilters[idFilter];
|
|
121
|
+
|
|
122
|
+
this.getInitialState = () => {
|
|
123
|
+
const newFilters = {
|
|
124
|
+
step: this.step,
|
|
125
|
+
mapFilters: _objectSpread({}, this.mapFilters),
|
|
126
|
+
mapGroups: _objectSpread({}, this.mapGroups),
|
|
127
|
+
main: this.main,
|
|
128
|
+
items: this.items
|
|
129
|
+
};
|
|
130
|
+
const format = QueryBuilderFormat.run(newFilters, this.format);
|
|
131
|
+
return _objectSpread(_objectSpread({}, newFilters), {}, {
|
|
132
|
+
format
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
this.getState = () => {
|
|
137
|
+
this.step += 1;
|
|
138
|
+
const newFilters = {
|
|
139
|
+
step: this.step,
|
|
140
|
+
mapFilters: _objectSpread({}, this.mapFilters),
|
|
141
|
+
mapGroups: _objectSpread({}, this.mapGroups),
|
|
142
|
+
main: this.main,
|
|
143
|
+
items: this.items
|
|
144
|
+
};
|
|
145
|
+
const format = QueryBuilderFormat.run(newFilters, this.format);
|
|
146
|
+
return _objectSpread(_objectSpread({}, newFilters), {}, {
|
|
147
|
+
format
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
this.firstLoad = true;
|
|
152
|
+
this.format = _format;
|
|
153
|
+
if (init) return this.initSetupUp(init);
|
|
154
|
+
const mainGroup = this.createNewGroup('main');
|
|
155
|
+
this.mapGroups = {
|
|
156
|
+
[mainGroup.idGroup]: mainGroup
|
|
157
|
+
};
|
|
158
|
+
this.main = mainGroup.idGroup;
|
|
159
|
+
this.addFilter(mainGroup.idGroup);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
initSetupUp(init) {
|
|
163
|
+
this.step = init.step || 1;
|
|
164
|
+
Object.keys(init).forEach(key => {
|
|
165
|
+
if (init[key] && this[key] !== undefined) this[key] = init[key];
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export { QueryBuilderStore as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const QB_FIELD_TYPES = {
|
|
2
|
+
LOAN_VALUES: 'loanValues',
|
|
3
|
+
LTV_VALUES: 'ltvValues',
|
|
4
|
+
SUBJECT_VALUES: 'subjectValues',
|
|
5
|
+
LAST_VALUES: 'lastValues',
|
|
6
|
+
CREDIT_VALUES: 'creditValues'
|
|
7
|
+
};
|
|
8
|
+
const QB_OPERATOR_TYPES = {
|
|
9
|
+
EQUAL: 'equal',
|
|
10
|
+
NOT_EQUAL: 'notEqual',
|
|
11
|
+
GREATER_THAN: 'greaterThan',
|
|
12
|
+
LESS_THAN: 'lessThan',
|
|
13
|
+
CONTAINS: 'contains',
|
|
14
|
+
NOT_CONTAINS: 'notNontains',
|
|
15
|
+
BETWEEN: 'between',
|
|
16
|
+
GREATER_THAN_OR_EQUAL: 'greaterThanOrEquals',
|
|
17
|
+
LESS_THAN_OR_EQUAL: 'lessThanOrEquals',
|
|
18
|
+
START_WITH: 'startsWith'
|
|
19
|
+
};
|
|
20
|
+
const QB_GROUP_CONDITION_TYPES = {
|
|
21
|
+
AND: true,
|
|
22
|
+
OR: false
|
|
23
|
+
};
|
|
24
|
+
const QB_DRAG_TYPES = {
|
|
25
|
+
FILTER: 'filter',
|
|
26
|
+
GROUP: 'group'
|
|
27
|
+
};
|
|
28
|
+
const QB_DRAG_LOCATIONS = {
|
|
29
|
+
ABOVE: 'above',
|
|
30
|
+
BELOW: 'below'
|
|
31
|
+
};
|
|
32
|
+
const QB_EXPORT_FORMAT_TYPES = {
|
|
33
|
+
DEFAULT: 'defaultFormat',
|
|
34
|
+
XML: 'xmlFormat',
|
|
35
|
+
SQL: 'sqlFormat',
|
|
36
|
+
SAFESQL: 'sqlSafeFormat'
|
|
37
|
+
};
|
|
38
|
+
const QB_ADD_FILTER_METHOD_TYPES = {
|
|
39
|
+
IN_PLACE: 'inplace',
|
|
40
|
+
APPEND: 'append'
|
|
41
|
+
};
|
|
42
|
+
const QB_GROUP_FILTER_METHOD_TYPES = {
|
|
43
|
+
IN_PLACE: 'inplace',
|
|
44
|
+
APPEND: 'append'
|
|
45
|
+
};
|
|
46
|
+
const QB_FIELD_SHARED_ACTIONS = {
|
|
47
|
+
RESET_FIELD: 'resetField',
|
|
48
|
+
RESET_OPERATOR: 'resetOperator',
|
|
49
|
+
RESET_VALUE: 'resetValue'
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export { QB_ADD_FILTER_METHOD_TYPES, QB_DRAG_LOCATIONS, QB_DRAG_TYPES, QB_EXPORT_FORMAT_TYPES, QB_FIELD_SHARED_ACTIONS, QB_FIELD_TYPES, QB_GROUP_CONDITION_TYPES, QB_GROUP_FILTER_METHOD_TYPES, QB_OPERATOR_TYPES };
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { DSQueryBuilder, DSQueryBuilderWithSchema, DSQueryBuilder as default } from './DSQueryBuilder.js';
|
|
2
|
+
export { QB_ADD_FILTER_METHOD_TYPES, QB_DRAG_LOCATIONS, QB_DRAG_TYPES, QB_EXPORT_FORMAT_TYPES, QB_FIELD_SHARED_ACTIONS, QB_FIELD_TYPES, QB_GROUP_CONDITION_TYPES, QB_GROUP_FILTER_METHOD_TYPES, QB_OPERATOR_TYPES } from './components/helpers/types.js';
|
|
3
|
+
export { QB_DEFAULT_VALUES_OPTIONS, QB_FIELD_OPTIONS, QB_LOAN_VALUES_OPTIONS, QB_OPERATOR_OPTIONS, QB_SUBJECT_VALUES_OPTIONS } from './components/helpers/selectors.js';
|
|
4
|
+
export { default as QueryBuilderFormat } from './components/format/format.js';
|
package/esm/propTypes.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { PropTypes } from 'react-desc';
|
|
2
|
+
import { QB_ADD_FILTER_METHOD_TYPES } from './components/helpers/types.js';
|
|
3
|
+
|
|
4
|
+
const props = {
|
|
5
|
+
/** inpect props to component wrapper */
|
|
6
|
+
containerProps: PropTypes.object.description('inject props to component wrapper'),
|
|
7
|
+
|
|
8
|
+
/** add filter strategy */
|
|
9
|
+
addFilterMethod: PropTypes.oneOf([QB_ADD_FILTER_METHOD_TYPES.APPEND, QB_ADD_FILTER_METHOD_TYPES.IN_PLACE]).description('add filter strategy'),
|
|
10
|
+
|
|
11
|
+
/** group filter strategy */
|
|
12
|
+
groupFilterMethod: PropTypes.oneOf([QB_ADD_FILTER_METHOD_TYPES.APPEND, QB_ADD_FILTER_METHOD_TYPES.IN_PLACE]).description('group filter strategy'),
|
|
13
|
+
|
|
14
|
+
/** change callback */
|
|
15
|
+
onChange: PropTypes.func.description('change callback'),
|
|
16
|
+
|
|
17
|
+
/** fields to query */
|
|
18
|
+
fields: PropTypes.arrayOf(PropTypes.shape({
|
|
19
|
+
target: PropTypes.oneOf(['operator', 'field', 'value']),
|
|
20
|
+
component: PropTypes.element,
|
|
21
|
+
condition: PropTypes.arrayOf(PropTypes.shape({
|
|
22
|
+
source: PropTypes.oneOf(['operator', 'field', 'value']),
|
|
23
|
+
operator: PropTypes.oneOf(['checkNotEmpty', 'greaterThan', 'greaterThanOrEquals', 'lessThanOrEquals', 'startsWith', 'contains', 'validDate', 'equal', 'notEqual', 'isNull', 'isNotNull', 'isIn', 'isNotIn']),
|
|
24
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
25
|
+
}))
|
|
26
|
+
})).description('fields to query'),
|
|
27
|
+
|
|
28
|
+
/** fields actions */
|
|
29
|
+
fieldsSharedActions: PropTypes.shape({
|
|
30
|
+
onFieldChange: PropTypes.arrayOf(PropTypes.func),
|
|
31
|
+
onOperatorChange: PropTypes.arrayOf(PropTypes.func),
|
|
32
|
+
onValueChange: PropTypes.arrayOf(PropTypes.func)
|
|
33
|
+
}).description('fields actions'),
|
|
34
|
+
|
|
35
|
+
/** query builder format */
|
|
36
|
+
format: PropTypes.string.description('query builder format'),
|
|
37
|
+
|
|
38
|
+
/** initial values */
|
|
39
|
+
init: PropTypes.shape({
|
|
40
|
+
step: PropTypes.number,
|
|
41
|
+
mapFilters: PropTypes.object,
|
|
42
|
+
mapGroups: PropTypes.object,
|
|
43
|
+
main: PropTypes.string,
|
|
44
|
+
items: PropTypes.arrayOf(PropTypes.object)
|
|
45
|
+
}).description('initial values'),
|
|
46
|
+
|
|
47
|
+
/** class for rule container */
|
|
48
|
+
ruleContainerClassName: PropTypes.string.description('class for rule container'),
|
|
49
|
+
|
|
50
|
+
/** handle field change */
|
|
51
|
+
handleDrop: PropTypes.func.description('handle field change'),
|
|
52
|
+
|
|
53
|
+
/** handle field change drop */
|
|
54
|
+
handleDropFilter: PropTypes.func.description('handle field change drop'),
|
|
55
|
+
|
|
56
|
+
/** handle field group change */
|
|
57
|
+
handleDropGroup: PropTypes.func.description('handle field group change'),
|
|
58
|
+
|
|
59
|
+
/** handle field change */
|
|
60
|
+
handleFieldChange: PropTypes.func.description('handle field change'),
|
|
61
|
+
|
|
62
|
+
/** handle rule container operator change */
|
|
63
|
+
handleRuleContainerOperator: PropTypes.func.description('handle rule container operator change'),
|
|
64
|
+
|
|
65
|
+
/** handle rule container grouping change */
|
|
66
|
+
handleRuleContainerUnGroup: PropTypes.func.description('handle rule container grouping change'),
|
|
67
|
+
|
|
68
|
+
/** filter add callback */
|
|
69
|
+
onAddFilter: PropTypes.func.description('filter add callback'),
|
|
70
|
+
|
|
71
|
+
/** rule container add callback */
|
|
72
|
+
onAddRuleContainer: PropTypes.func.description('rule container add callback'),
|
|
73
|
+
|
|
74
|
+
/** remove filter callback */
|
|
75
|
+
onRemoveFilter: PropTypes.func.description('remove filter callback'),
|
|
76
|
+
displayFixedOutput: PropTypes.string.description("Label for fixed output.Using this props it will ignore 'displayOutput' and 'displayOutputLabel' \n and it will always render the output without the ability to close it. \n ").defaultValue(''),
|
|
77
|
+
|
|
78
|
+
/** show output */
|
|
79
|
+
displayOutput: PropTypes.bool.description('show output'),
|
|
80
|
+
|
|
81
|
+
/** show output label */
|
|
82
|
+
displayOutputLabel: PropTypes.shape({
|
|
83
|
+
show: PropTypes.string,
|
|
84
|
+
hide: PropTypes.string,
|
|
85
|
+
open: PropTypes.bool
|
|
86
|
+
}).description('show output label'),
|
|
87
|
+
|
|
88
|
+
/** one or multiple rows for query */
|
|
89
|
+
singleRow: PropTypes.bool.description('one or multiple rows for query'),
|
|
90
|
+
toolTipZIndex: PropTypes.number.description('ZIndex for action controls').defaultValue(110)
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export { props };
|
package/package.json
CHANGED
|
@@ -1,154 +1,151 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-query-builder",
|
|
3
|
-
"version": "2.3.0-
|
|
3
|
+
"version": "2.3.0-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Query Builder",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"module": "./dist/esm/index.js",
|
|
10
|
-
"main": "./dist/cjs/index.js",
|
|
11
|
-
"types": "./dist/types/index.d.ts",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
12
9
|
"exports": {
|
|
13
10
|
".": {
|
|
14
|
-
"import": "./
|
|
15
|
-
"require": "./
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
16
13
|
},
|
|
17
14
|
"./propTypes": {
|
|
18
|
-
"import": "./
|
|
19
|
-
"require": "./
|
|
15
|
+
"import": "./esm/propTypes.js",
|
|
16
|
+
"require": "./cjs/propTypes.js"
|
|
20
17
|
},
|
|
21
18
|
"./DSQueryBuilder": {
|
|
22
|
-
"import": "./
|
|
23
|
-
"require": "./
|
|
19
|
+
"import": "./esm/DSQueryBuilder.js",
|
|
20
|
+
"require": "./cjs/DSQueryBuilder.js"
|
|
24
21
|
},
|
|
25
22
|
"./components/ToolBarAnimation/ToolBarAnimation": {
|
|
26
|
-
"import": "./
|
|
27
|
-
"require": "./
|
|
23
|
+
"import": "./esm/components/ToolBarAnimation/ToolBarAnimation.js",
|
|
24
|
+
"require": "./cjs/components/ToolBarAnimation/ToolBarAnimation.js"
|
|
28
25
|
},
|
|
29
26
|
"./components/QueryBuilderRow/QueryBuilderRow": {
|
|
30
|
-
"import": "./
|
|
31
|
-
"require": "./
|
|
27
|
+
"import": "./esm/components/QueryBuilderRow/QueryBuilderRow.js",
|
|
28
|
+
"require": "./cjs/components/QueryBuilderRow/QueryBuilderRow.js"
|
|
32
29
|
},
|
|
33
30
|
"./components/QueryBuilderItem/QueryBuilderItem": {
|
|
34
|
-
"import": "./
|
|
35
|
-
"require": "./
|
|
31
|
+
"import": "./esm/components/QueryBuilderItem/QueryBuilderItem.js",
|
|
32
|
+
"require": "./cjs/components/QueryBuilderItem/QueryBuilderItem.js"
|
|
36
33
|
},
|
|
37
34
|
"./components/QueryBuilderImpl": {
|
|
38
|
-
"import": "./
|
|
39
|
-
"require": "./
|
|
35
|
+
"import": "./esm/components/QueryBuilderImpl.js",
|
|
36
|
+
"require": "./cjs/components/QueryBuilderImpl.js"
|
|
40
37
|
},
|
|
41
38
|
"./components/QueryBuilderContext/QueryBuilderContext": {
|
|
42
|
-
"import": "./
|
|
43
|
-
"require": "./
|
|
39
|
+
"import": "./esm/components/QueryBuilderContext/QueryBuilderContext.js",
|
|
40
|
+
"require": "./cjs/components/QueryBuilderContext/QueryBuilderContext.js"
|
|
44
41
|
},
|
|
45
42
|
"./components/Nestable/NestableItem": {
|
|
46
|
-
"import": "./
|
|
47
|
-
"require": "./
|
|
43
|
+
"import": "./esm/components/Nestable/NestableItem.js",
|
|
44
|
+
"require": "./cjs/components/Nestable/NestableItem.js"
|
|
48
45
|
},
|
|
49
46
|
"./components/Nestable/Nestable": {
|
|
50
|
-
"import": "./
|
|
51
|
-
"require": "./
|
|
47
|
+
"import": "./esm/components/Nestable/Nestable.js",
|
|
48
|
+
"require": "./cjs/components/Nestable/Nestable.js"
|
|
52
49
|
},
|
|
53
50
|
"./components/Nestable": {
|
|
54
|
-
"import": "./
|
|
55
|
-
"require": "./
|
|
51
|
+
"import": "./esm/components/Nestable/index.js",
|
|
52
|
+
"require": "./cjs/components/Nestable/index.js"
|
|
56
53
|
},
|
|
57
54
|
"./components/Nestable/actions/tryIncreaseDepth": {
|
|
58
|
-
"import": "./
|
|
59
|
-
"require": "./
|
|
55
|
+
"import": "./esm/components/Nestable/actions/tryIncreaseDepth.js",
|
|
56
|
+
"require": "./cjs/components/Nestable/actions/tryIncreaseDepth.js"
|
|
60
57
|
},
|
|
61
58
|
"./components/Nestable/actions/tryDecreaseDepth": {
|
|
62
|
-
"import": "./
|
|
63
|
-
"require": "./
|
|
59
|
+
"import": "./esm/components/Nestable/actions/tryDecreaseDepth.js",
|
|
60
|
+
"require": "./cjs/components/Nestable/actions/tryDecreaseDepth.js"
|
|
64
61
|
},
|
|
65
62
|
"./components/Nestable/actions/paths": {
|
|
66
|
-
"import": "./
|
|
67
|
-
"require": "./
|
|
63
|
+
"import": "./esm/components/Nestable/actions/paths.js",
|
|
64
|
+
"require": "./cjs/components/Nestable/actions/paths.js"
|
|
68
65
|
},
|
|
69
66
|
"./components/Nestable/actions/moveItem": {
|
|
70
|
-
"import": "./
|
|
71
|
-
"require": "./
|
|
67
|
+
"import": "./esm/components/Nestable/actions/moveItem.js",
|
|
68
|
+
"require": "./cjs/components/Nestable/actions/moveItem.js"
|
|
72
69
|
},
|
|
73
70
|
"./components/Nestable/actions": {
|
|
74
|
-
"import": "./
|
|
75
|
-
"require": "./
|
|
71
|
+
"import": "./esm/components/Nestable/actions/index.js",
|
|
72
|
+
"require": "./cjs/components/Nestable/actions/index.js"
|
|
76
73
|
},
|
|
77
74
|
"./components/Nestable/actions/getPaths": {
|
|
78
|
-
"import": "./
|
|
79
|
-
"require": "./
|
|
75
|
+
"import": "./esm/components/Nestable/actions/getPaths.js",
|
|
76
|
+
"require": "./cjs/components/Nestable/actions/getPaths.js"
|
|
80
77
|
},
|
|
81
78
|
"./components/Nestable/actions/getItemOptions": {
|
|
82
|
-
"import": "./
|
|
83
|
-
"require": "./
|
|
79
|
+
"import": "./esm/components/Nestable/actions/getItemOptions.js",
|
|
80
|
+
"require": "./cjs/components/Nestable/actions/getItemOptions.js"
|
|
84
81
|
},
|
|
85
82
|
"./components/Nestable/actions/events": {
|
|
86
|
-
"import": "./
|
|
87
|
-
"require": "./
|
|
83
|
+
"import": "./esm/components/Nestable/actions/events.js",
|
|
84
|
+
"require": "./cjs/components/Nestable/actions/events.js"
|
|
88
85
|
},
|
|
89
86
|
"./components/helpers/types": {
|
|
90
|
-
"import": "./
|
|
91
|
-
"require": "./
|
|
87
|
+
"import": "./esm/components/helpers/types.js",
|
|
88
|
+
"require": "./cjs/components/helpers/types.js"
|
|
92
89
|
},
|
|
93
90
|
"./components/helpers/store": {
|
|
94
|
-
"import": "./
|
|
95
|
-
"require": "./
|
|
91
|
+
"import": "./esm/components/helpers/store.js",
|
|
92
|
+
"require": "./cjs/components/helpers/store.js"
|
|
96
93
|
},
|
|
97
94
|
"./components/helpers/selectors": {
|
|
98
|
-
"import": "./
|
|
99
|
-
"require": "./
|
|
95
|
+
"import": "./esm/components/helpers/selectors.js",
|
|
96
|
+
"require": "./cjs/components/helpers/selectors.js"
|
|
100
97
|
},
|
|
101
98
|
"./components/helpers/dependencies": {
|
|
102
|
-
"import": "./
|
|
103
|
-
"require": "./
|
|
99
|
+
"import": "./esm/components/helpers/dependencies.js",
|
|
100
|
+
"require": "./cjs/components/helpers/dependencies.js"
|
|
104
101
|
},
|
|
105
102
|
"./components/helpers/constants": {
|
|
106
|
-
"import": "./
|
|
107
|
-
"require": "./
|
|
103
|
+
"import": "./esm/components/helpers/constants.js",
|
|
104
|
+
"require": "./cjs/components/helpers/constants.js"
|
|
108
105
|
},
|
|
109
106
|
"./components/helpers/actions": {
|
|
110
|
-
"import": "./
|
|
111
|
-
"require": "./
|
|
107
|
+
"import": "./esm/components/helpers/actions.js",
|
|
108
|
+
"require": "./cjs/components/helpers/actions.js"
|
|
112
109
|
},
|
|
113
110
|
"./components/format/xmlFormat": {
|
|
114
|
-
"import": "./
|
|
115
|
-
"require": "./
|
|
111
|
+
"import": "./esm/components/format/xmlFormat.js",
|
|
112
|
+
"require": "./cjs/components/format/xmlFormat.js"
|
|
116
113
|
},
|
|
117
114
|
"./components/format/sqlSafeFormat": {
|
|
118
|
-
"import": "./
|
|
119
|
-
"require": "./
|
|
115
|
+
"import": "./esm/components/format/sqlSafeFormat.js",
|
|
116
|
+
"require": "./cjs/components/format/sqlSafeFormat.js"
|
|
120
117
|
},
|
|
121
118
|
"./components/format/sqlFormat": {
|
|
122
|
-
"import": "./
|
|
123
|
-
"require": "./
|
|
119
|
+
"import": "./esm/components/format/sqlFormat.js",
|
|
120
|
+
"require": "./cjs/components/format/sqlFormat.js"
|
|
124
121
|
},
|
|
125
122
|
"./components/format/format": {
|
|
126
|
-
"import": "./
|
|
127
|
-
"require": "./
|
|
123
|
+
"import": "./esm/components/format/format.js",
|
|
124
|
+
"require": "./cjs/components/format/format.js"
|
|
128
125
|
},
|
|
129
126
|
"./components/FieldControllerRow/FieldControllerRow": {
|
|
130
|
-
"import": "./
|
|
131
|
-
"require": "./
|
|
127
|
+
"import": "./esm/components/FieldControllerRow/FieldControllerRow.js",
|
|
128
|
+
"require": "./cjs/components/FieldControllerRow/FieldControllerRow.js"
|
|
132
129
|
},
|
|
133
130
|
"./components/DragControllerRow/DragControllerRow": {
|
|
134
|
-
"import": "./
|
|
135
|
-
"require": "./
|
|
131
|
+
"import": "./esm/components/DragControllerRow/DragControllerRow.js",
|
|
132
|
+
"require": "./cjs/components/DragControllerRow/DragControllerRow.js"
|
|
136
133
|
},
|
|
137
134
|
"./components/DragContainerController/DragContainerController": {
|
|
138
|
-
"import": "./
|
|
139
|
-
"require": "./
|
|
135
|
+
"import": "./esm/components/DragContainerController/DragContainerController.js",
|
|
136
|
+
"require": "./cjs/components/DragContainerController/DragContainerController.js"
|
|
140
137
|
},
|
|
141
138
|
"./components/DisplayOutput/DisplayOutput": {
|
|
142
|
-
"import": "./
|
|
143
|
-
"require": "./
|
|
139
|
+
"import": "./esm/components/DisplayOutput/DisplayOutput.js",
|
|
140
|
+
"require": "./cjs/components/DisplayOutput/DisplayOutput.js"
|
|
144
141
|
},
|
|
145
142
|
"./components/ConditionController/ConditionController": {
|
|
146
|
-
"import": "./
|
|
147
|
-
"require": "./
|
|
143
|
+
"import": "./esm/components/ConditionController/ConditionController.js",
|
|
144
|
+
"require": "./cjs/components/ConditionController/ConditionController.js"
|
|
148
145
|
},
|
|
149
146
|
"./components/AndOrController/AndOrController": {
|
|
150
|
-
"import": "./
|
|
151
|
-
"require": "./
|
|
147
|
+
"import": "./esm/components/AndOrController/AndOrController.js",
|
|
148
|
+
"require": "./cjs/components/AndOrController/AndOrController.js"
|
|
152
149
|
}
|
|
153
150
|
},
|
|
154
151
|
"sideEffects": [
|
|
@@ -160,22 +157,28 @@
|
|
|
160
157
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
161
158
|
},
|
|
162
159
|
"engines": {
|
|
163
|
-
"
|
|
164
|
-
"node": ">=
|
|
160
|
+
"npm": ">=7",
|
|
161
|
+
"node": ">=14"
|
|
165
162
|
},
|
|
166
163
|
"author": "ICE MT",
|
|
164
|
+
"scripts": {
|
|
165
|
+
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
166
|
+
"prebuild": "exit 0",
|
|
167
|
+
"predev": "exit 0",
|
|
168
|
+
"build": "node ../../scripts/build/build.js"
|
|
169
|
+
},
|
|
167
170
|
"dependencies": {
|
|
168
|
-
"@elliemae/ds-accordion": "2.3.0-
|
|
169
|
-
"@elliemae/ds-button": "2.3.0-
|
|
170
|
-
"@elliemae/ds-classnames": "2.3.0-
|
|
171
|
-
"@elliemae/ds-form": "2.3.0-
|
|
172
|
-
"@elliemae/ds-grid": "2.3.0-
|
|
173
|
-
"@elliemae/ds-icon": "2.3.0-
|
|
174
|
-
"@elliemae/ds-icons": "2.3.0-
|
|
175
|
-
"@elliemae/ds-popper": "2.3.0-
|
|
176
|
-
"@elliemae/ds-shared": "2.3.0-
|
|
177
|
-
"@elliemae/ds-tooltip": "2.3.0-
|
|
178
|
-
"@elliemae/ds-utilities": "2.3.0-
|
|
171
|
+
"@elliemae/ds-accordion": "2.3.0-next.0",
|
|
172
|
+
"@elliemae/ds-button": "2.3.0-next.0",
|
|
173
|
+
"@elliemae/ds-classnames": "2.3.0-next.0",
|
|
174
|
+
"@elliemae/ds-form": "2.3.0-next.0",
|
|
175
|
+
"@elliemae/ds-grid": "2.3.0-next.0",
|
|
176
|
+
"@elliemae/ds-icon": "2.3.0-next.0",
|
|
177
|
+
"@elliemae/ds-icons": "2.3.0-next.0",
|
|
178
|
+
"@elliemae/ds-popper": "2.3.0-next.0",
|
|
179
|
+
"@elliemae/ds-shared": "2.3.0-next.0",
|
|
180
|
+
"@elliemae/ds-tooltip": "2.3.0-next.0",
|
|
181
|
+
"@elliemae/ds-utilities": "2.3.0-next.0",
|
|
179
182
|
"classnames": "~2.2.6",
|
|
180
183
|
"prop-types": "~15.7.2",
|
|
181
184
|
"react-addons-update": "~15.6.3",
|
|
@@ -188,12 +191,7 @@
|
|
|
188
191
|
},
|
|
189
192
|
"publishConfig": {
|
|
190
193
|
"access": "public",
|
|
191
|
-
"
|
|
192
|
-
|
|
193
|
-
"scripts": {
|
|
194
|
-
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
195
|
-
"prebuild": "exit 0",
|
|
196
|
-
"predev": "exit 0",
|
|
197
|
-
"build": "node ../../scripts/build/build.js"
|
|
194
|
+
"directory": "dist",
|
|
195
|
+
"generateSubmodules": true
|
|
198
196
|
}
|
|
199
197
|
}
|