@elliemae/ds-query-builder 2.1.0-rc.7 → 2.2.0-alpha.2
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 +117 -97
- package/cjs/DSQueryBuilder.js.map +7 -0
- package/cjs/components/AndOrController/AndOrController.js +148 -162
- package/cjs/components/AndOrController/AndOrController.js.map +7 -0
- package/cjs/components/ConditionController/ConditionController.js +88 -72
- package/cjs/components/ConditionController/ConditionController.js.map +7 -0
- package/cjs/components/DisplayOutput/DisplayOutput.js +61 -62
- package/cjs/components/DisplayOutput/DisplayOutput.js.map +7 -0
- package/cjs/components/DragContainerController/DragContainerController.js +61 -41
- package/cjs/components/DragContainerController/DragContainerController.js.map +7 -0
- package/cjs/components/DragControllerRow/DragControllerRow.js +50 -46
- package/cjs/components/DragControllerRow/DragControllerRow.js.map +7 -0
- package/cjs/components/FieldControllerRow/FieldControllerRow.js +54 -32
- package/cjs/components/FieldControllerRow/FieldControllerRow.js.map +7 -0
- package/cjs/components/Nestable/Nestable.js +143 -209
- package/cjs/components/Nestable/Nestable.js.map +7 -0
- package/cjs/components/Nestable/NestableItem.js +98 -90
- package/cjs/components/Nestable/NestableItem.js.map +7 -0
- package/cjs/components/Nestable/actions/events.js +72 -95
- package/cjs/components/Nestable/actions/events.js.map +7 -0
- package/cjs/components/Nestable/actions/getItemOptions.js +36 -15
- package/cjs/components/Nestable/actions/getItemOptions.js.map +7 -0
- package/cjs/components/Nestable/actions/getPaths.js +46 -51
- package/cjs/components/Nestable/actions/getPaths.js.map +7 -0
- package/cjs/components/Nestable/actions/index.js +42 -28
- package/cjs/components/Nestable/actions/index.js.map +7 -0
- package/cjs/components/Nestable/actions/moveItem.js +44 -42
- package/cjs/components/Nestable/actions/moveItem.js.map +7 -0
- package/cjs/components/Nestable/actions/paths.js +48 -55
- package/cjs/components/Nestable/actions/paths.js.map +7 -0
- package/cjs/components/Nestable/actions/tryDecreaseDepth.js +39 -23
- package/cjs/components/Nestable/actions/tryDecreaseDepth.js.map +7 -0
- package/cjs/components/Nestable/actions/tryIncreaseDepth.js +39 -26
- package/cjs/components/Nestable/actions/tryIncreaseDepth.js.map +7 -0
- package/cjs/components/Nestable/index.js +36 -7
- package/cjs/components/Nestable/index.js.map +7 -0
- package/cjs/components/QueryBuilderContext/QueryBuilderContext.js +36 -13
- package/cjs/components/QueryBuilderContext/QueryBuilderContext.js.map +7 -0
- package/cjs/components/QueryBuilderImpl.js +118 -202
- package/cjs/components/QueryBuilderImpl.js.map +7 -0
- package/cjs/components/QueryBuilderItem/QueryBuilderItem.js +80 -78
- package/cjs/components/QueryBuilderItem/QueryBuilderItem.js.map +7 -0
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +154 -211
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js.map +7 -0
- package/cjs/components/ToolBarAnimation/ToolBarAnimation.js +39 -26
- package/cjs/components/ToolBarAnimation/ToolBarAnimation.js.map +7 -0
- package/cjs/components/format/format.js +48 -22
- package/cjs/components/format/format.js.map +7 -0
- package/cjs/components/format/sqlFormat.js +69 -48
- package/cjs/components/format/sqlFormat.js.map +7 -0
- package/cjs/components/format/sqlSafeFormat.js +72 -55
- package/cjs/components/format/sqlSafeFormat.js.map +7 -0
- package/cjs/components/format/xmlFormat.js +71 -50
- package/cjs/components/format/xmlFormat.js.map +7 -0
- package/cjs/components/helpers/actions.js +151 -186
- package/cjs/components/helpers/actions.js.map +7 -0
- package/cjs/components/helpers/constants.js +36 -8
- package/cjs/components/helpers/constants.js.map +7 -0
- package/cjs/components/helpers/dependencies.js +49 -64
- package/cjs/components/helpers/dependencies.js.map +7 -0
- package/cjs/components/helpers/selectors.js +161 -101
- package/cjs/components/helpers/selectors.js.map +7 -0
- package/cjs/components/helpers/store.js +86 -104
- package/cjs/components/helpers/store.js.map +7 -0
- package/cjs/components/helpers/types.js +72 -44
- package/cjs/components/helpers/types.js.map +7 -0
- package/cjs/index.js +36 -29
- package/cjs/index.js.map +7 -0
- package/cjs/propTypes.js +102 -94
- package/cjs/propTypes.js.map +7 -0
- package/esm/DSQueryBuilder.js +103 -72
- package/esm/DSQueryBuilder.js.map +7 -0
- package/esm/components/AndOrController/AndOrController.js +113 -147
- package/esm/components/AndOrController/AndOrController.js.map +7 -0
- package/esm/components/ConditionController/ConditionController.js +57 -62
- package/esm/components/ConditionController/ConditionController.js.map +7 -0
- package/esm/components/DisplayOutput/DisplayOutput.js +29 -53
- package/esm/components/DisplayOutput/DisplayOutput.js.map +7 -0
- package/esm/components/DragContainerController/DragContainerController.js +32 -35
- package/esm/components/DragContainerController/DragContainerController.js.map +7 -0
- package/esm/components/DragControllerRow/DragControllerRow.js +21 -38
- package/esm/components/DragControllerRow/DragControllerRow.js.map +7 -0
- package/esm/components/FieldControllerRow/FieldControllerRow.js +25 -26
- package/esm/components/FieldControllerRow/FieldControllerRow.js.map +7 -0
- package/esm/components/Nestable/Nestable.js +115 -186
- package/esm/components/Nestable/Nestable.js.map +7 -0
- package/esm/components/Nestable/NestableItem.js +69 -82
- package/esm/components/Nestable/NestableItem.js.map +7 -0
- package/esm/components/Nestable/actions/events.js +45 -79
- package/esm/components/Nestable/actions/events.js.map +7 -0
- package/esm/components/Nestable/actions/getItemOptions.js +7 -11
- package/esm/components/Nestable/actions/getItemOptions.js.map +7 -0
- package/esm/components/Nestable/actions/getPaths.js +17 -43
- package/esm/components/Nestable/actions/getPaths.js.map +7 -0
- package/esm/components/Nestable/actions/index.js +13 -6
- package/esm/components/Nestable/actions/index.js.map +7 -0
- package/esm/components/Nestable/actions/moveItem.js +13 -31
- package/esm/components/Nestable/actions/moveItem.js.map +7 -0
- package/esm/components/Nestable/actions/paths.js +19 -47
- package/esm/components/Nestable/actions/paths.js.map +7 -0
- package/esm/components/Nestable/actions/tryDecreaseDepth.js +10 -19
- package/esm/components/Nestable/actions/tryDecreaseDepth.js.map +7 -0
- package/esm/components/Nestable/actions/tryIncreaseDepth.js +10 -22
- package/esm/components/Nestable/actions/tryIncreaseDepth.js.map +7 -0
- package/esm/components/Nestable/index.js +7 -2
- package/esm/components/Nestable/index.js.map +7 -0
- package/esm/components/QueryBuilderContext/QueryBuilderContext.js +7 -5
- package/esm/components/QueryBuilderContext/QueryBuilderContext.js.map +7 -0
- package/esm/components/QueryBuilderImpl.js +82 -187
- package/esm/components/QueryBuilderImpl.js.map +7 -0
- package/esm/components/QueryBuilderItem/QueryBuilderItem.js +50 -70
- package/esm/components/QueryBuilderItem/QueryBuilderItem.js.map +7 -0
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js +123 -201
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js.map +7 -0
- package/esm/components/ToolBarAnimation/ToolBarAnimation.js +10 -17
- package/esm/components/ToolBarAnimation/ToolBarAnimation.js.map +7 -0
- package/esm/components/format/format.js +16 -17
- package/esm/components/format/format.js.map +7 -0
- package/esm/components/format/sqlFormat.js +39 -43
- package/esm/components/format/sqlFormat.js.map +7 -0
- package/esm/components/format/sqlSafeFormat.js +43 -50
- package/esm/components/format/sqlSafeFormat.js.map +7 -0
- package/esm/components/format/xmlFormat.js +41 -45
- package/esm/components/format/xmlFormat.js.map +7 -0
- package/esm/components/helpers/actions.js +123 -160
- package/esm/components/helpers/actions.js.map +7 -0
- package/esm/components/helpers/constants.js +7 -2
- package/esm/components/helpers/constants.js.map +7 -0
- package/esm/components/helpers/dependencies.js +19 -39
- package/esm/components/helpers/dependencies.js.map +7 -0
- package/esm/components/helpers/selectors.js +132 -93
- package/esm/components/helpers/selectors.js.map +7 -0
- package/esm/components/helpers/store.js +54 -82
- package/esm/components/helpers/store.js.map +7 -0
- package/esm/components/helpers/types.js +44 -33
- package/esm/components/helpers/types.js.map +7 -0
- package/esm/index.js +7 -4
- package/esm/index.js.map +7 -0
- package/esm/propTypes.js +55 -72
- package/esm/propTypes.js.map +7 -0
- package/package.json +12 -12
|
@@ -1,33 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
const FieldControllerRow = _ref => {
|
|
12
|
-
let {
|
|
13
|
-
className = '',
|
|
14
|
-
onChange = () => null,
|
|
15
|
-
options = [],
|
|
16
|
-
value = '',
|
|
17
|
-
type = 'DSComboBox'
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/_jsx__default["default"]("div", {
|
|
20
|
-
className: className
|
|
21
|
-
}, void 0, type === 'DSComboBox' && /*#__PURE__*/_jsx__default["default"](dsForm.DSComboBox, {
|
|
22
|
-
onChange: onChange,
|
|
23
|
-
options: options,
|
|
24
|
-
value: value
|
|
25
|
-
}), type === 'DSTextBox' && /*#__PURE__*/_jsx__default["default"](dsForm.DSTextBox, {
|
|
26
|
-
fluidWidth: true,
|
|
27
|
-
onChange: onChange,
|
|
28
|
-
options: options,
|
|
29
|
-
value: value
|
|
30
|
-
}));
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
31
11
|
};
|
|
32
|
-
|
|
33
|
-
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var FieldControllerRow_exports = {};
|
|
29
|
+
__export(FieldControllerRow_exports, {
|
|
30
|
+
default: () => FieldControllerRow_default
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_react = __toESM(require("react"));
|
|
34
|
+
var import_ds_form = __toESM(require("@elliemae/ds-form"));
|
|
35
|
+
const FieldControllerRow = ({
|
|
36
|
+
className = "",
|
|
37
|
+
onChange = () => null,
|
|
38
|
+
options = [],
|
|
39
|
+
value = "",
|
|
40
|
+
type = "DSComboBox"
|
|
41
|
+
}) => /* @__PURE__ */ import_react.default.createElement("div", {
|
|
42
|
+
className
|
|
43
|
+
}, type === "DSComboBox" && /* @__PURE__ */ import_react.default.createElement(import_ds_form.DSComboBox, {
|
|
44
|
+
onChange,
|
|
45
|
+
options,
|
|
46
|
+
value
|
|
47
|
+
}), type === "DSTextBox" && /* @__PURE__ */ import_react.default.createElement(import_ds_form.DSTextBox, {
|
|
48
|
+
fluidWidth: true,
|
|
49
|
+
onChange,
|
|
50
|
+
options,
|
|
51
|
+
value
|
|
52
|
+
}));
|
|
53
|
+
var FieldControllerRow_default = FieldControllerRow;
|
|
54
|
+
module.exports = __toCommonJS(FieldControllerRow_exports);
|
|
55
|
+
//# sourceMappingURL=FieldControllerRow.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/components/FieldControllerRow/FieldControllerRow.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { DSTextBox, DSComboBox } from '@elliemae/ds-form';\n\nconst FieldControllerRow = ({\n className = '',\n onChange = () => null,\n options = [],\n value = '',\n type = 'DSComboBox',\n}) => (\n <div className={className}>\n {type === 'DSComboBox' && <DSComboBox onChange={onChange} options={options} value={value} />}\n {type === 'DSTextBox' && <DSTextBox fluidWidth onChange={onChange} options={options} value={value} />}\n </div>\n);\nexport default FieldControllerRow;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,qBAAsC;AAEtC,MAAM,qBAAqB,CAAC;AAAA,EAC1B,YAAY;AAAA,EACZ,WAAW,MAAM;AAAA,EACjB,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,OAAO;AAAA,MAEP,mDAAC,OAAD;AAAA,EAAK;AAAA,GACF,SAAS,gBAAgB,mDAAC,2BAAD;AAAA,EAAY;AAAA,EAAoB;AAAA,EAAkB;AAAA,IAC3E,SAAS,eAAe,mDAAC,0BAAD;AAAA,EAAW,YAAU;AAAA,EAAC;AAAA,EAAoB;AAAA,EAAkB;AAAA;AAGzF,IAAO,6BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,105 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var Nestable_exports = {};
|
|
29
|
+
__export(Nestable_exports, {
|
|
30
|
+
default: () => Nestable_default
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_react = __toESM(require("react"));
|
|
34
|
+
var import_prop_types = __toESM(require("prop-types"));
|
|
35
|
+
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_utils = __toESM(require("@elliemae/ds-shared/utils"));
|
|
37
|
+
var import_ds_utilities = __toESM(require("@elliemae/ds-utilities"));
|
|
38
|
+
var import_actions = __toESM(require("./actions"));
|
|
39
|
+
var import_NestableItem = __toESM(require("./NestableItem"));
|
|
40
|
+
const shallowCompare = (instance, nextProps, nextState) => !(0, import_ds_utilities.isEqualWith)(instance.props, nextProps) || !(0, import_ds_utilities.isEqualWith)(instance.state, nextState);
|
|
41
|
+
class Nestable extends import_react.Component {
|
|
39
42
|
constructor(props) {
|
|
40
43
|
super(props);
|
|
41
|
-
|
|
42
44
|
this.onDragStart = (e, item) => {
|
|
43
|
-
|
|
45
|
+
import_actions.onDragStart.call(this, e, item);
|
|
44
46
|
};
|
|
45
|
-
|
|
46
|
-
this.
|
|
47
|
-
|
|
48
|
-
this.
|
|
49
|
-
|
|
50
|
-
this.onMouseEnter = (e, item) => events.onMouseEnter.call(this, e, item);
|
|
51
|
-
|
|
52
|
-
this.onToggleCollapse = (item, isGetter) => events.onToggleCollapse.call(this, item, isGetter);
|
|
53
|
-
|
|
54
|
-
this.onKeyDown = e => events.onKeyDown.call(this, e);
|
|
55
|
-
|
|
47
|
+
this.onDragEnd = (e, isCancel) => import_actions.onDragEnd.call(this, e, isCancel);
|
|
48
|
+
this.onMouseMove = (e) => import_actions.onMouseMove.call(this, e);
|
|
49
|
+
this.onMouseEnter = (e, item) => import_actions.onMouseEnter.call(this, e, item);
|
|
50
|
+
this.onToggleCollapse = (item, isGetter) => import_actions.onToggleCollapse.call(this, item, isGetter);
|
|
51
|
+
this.onKeyDown = (e) => import_actions.onKeyDown.call(this, e);
|
|
56
52
|
this.getDefaultItems = () => {
|
|
57
|
-
const {
|
|
58
|
-
items
|
|
59
|
-
} = this.state;
|
|
53
|
+
const { items } = this.state;
|
|
60
54
|
return items;
|
|
61
55
|
};
|
|
62
|
-
|
|
63
|
-
this.getItemDepth = item => paths.getItemDepth.call(this, item);
|
|
64
|
-
|
|
56
|
+
this.getItemDepth = (item) => import_actions.getItemDepth.call(this, item);
|
|
65
57
|
this.startTrackMouse = () => {
|
|
66
|
-
document.addEventListener(
|
|
67
|
-
document.addEventListener(
|
|
68
|
-
document.addEventListener(
|
|
58
|
+
document.addEventListener("mousemove", this.onMouseMove);
|
|
59
|
+
document.addEventListener("mouseup", this.onDragEnd);
|
|
60
|
+
document.addEventListener("keydown", this.onKeyDown);
|
|
69
61
|
};
|
|
70
|
-
|
|
71
62
|
this.stopTrackMouse = () => {
|
|
72
|
-
document.removeEventListener(
|
|
73
|
-
document.removeEventListener(
|
|
74
|
-
document.removeEventListener(
|
|
63
|
+
document.removeEventListener("mousemove", this.onMouseMove);
|
|
64
|
+
document.removeEventListener("mouseup", this.onDragEnd);
|
|
65
|
+
document.removeEventListener("keydown", this.onKeyDown);
|
|
75
66
|
this.elCopyStyles = null;
|
|
76
67
|
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const {
|
|
80
|
-
collapsed
|
|
81
|
-
} = this.props;
|
|
82
|
-
const {
|
|
83
|
-
collapsedGroups
|
|
84
|
-
} = this.state;
|
|
68
|
+
this.isCollapsed = (item) => {
|
|
69
|
+
const { collapsed } = this.props;
|
|
70
|
+
const { collapsedGroups } = this.state;
|
|
85
71
|
return !!(collapsedGroups.indexOf(item.id) > -1 ^ collapsed);
|
|
86
72
|
};
|
|
87
|
-
|
|
88
|
-
this.checkFilterChildren = items => items.find(current => {
|
|
73
|
+
this.checkFilterChildren = (items) => items.find((current) => {
|
|
89
74
|
const {
|
|
90
|
-
element: {
|
|
91
|
-
type
|
|
92
|
-
},
|
|
75
|
+
element: { type },
|
|
93
76
|
children
|
|
94
77
|
} = current;
|
|
95
|
-
if (type ===
|
|
78
|
+
if (type === "filter" && children.length > 0)
|
|
79
|
+
return true;
|
|
96
80
|
return this.checkFilterChildren(children);
|
|
97
81
|
});
|
|
98
|
-
|
|
99
82
|
this.dragRevert = () => {
|
|
100
|
-
const {
|
|
101
|
-
itemsOld
|
|
102
|
-
} = this.state;
|
|
83
|
+
const { itemsOld } = this.state;
|
|
103
84
|
this.setState({
|
|
104
85
|
items: itemsOld,
|
|
105
86
|
itemsOld: null,
|
|
@@ -107,7 +88,6 @@ class Nestable extends React.Component {
|
|
|
107
88
|
isDirty: false
|
|
108
89
|
});
|
|
109
90
|
};
|
|
110
|
-
|
|
111
91
|
this.state = {
|
|
112
92
|
items: [],
|
|
113
93
|
itemsOld: null,
|
|
@@ -120,163 +100,101 @@ class Nestable extends React.Component {
|
|
|
120
100
|
this.el = null;
|
|
121
101
|
this.elCopyStyles = null;
|
|
122
102
|
this.mouse = {
|
|
123
|
-
last: {
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
shift: {
|
|
127
|
-
x: 0
|
|
128
|
-
}
|
|
103
|
+
last: { x: 0 },
|
|
104
|
+
shift: { x: 0 }
|
|
129
105
|
};
|
|
130
106
|
}
|
|
131
|
-
|
|
132
107
|
componentDidMount() {
|
|
133
|
-
const {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
items
|
|
138
|
-
} = this.props; // make sure every item has property 'children'
|
|
139
|
-
|
|
140
|
-
items = utils.listWithChildren(items, childrenProp);
|
|
141
|
-
this.setState({
|
|
142
|
-
items
|
|
143
|
-
});
|
|
108
|
+
const { childrenProp } = this.props;
|
|
109
|
+
let { items } = this.props;
|
|
110
|
+
items = (0, import_utils.listWithChildren)(items, childrenProp);
|
|
111
|
+
this.setState({ items });
|
|
144
112
|
}
|
|
145
|
-
|
|
146
113
|
componentWillUnmount() {
|
|
147
114
|
this.stopTrackMouse();
|
|
148
115
|
}
|
|
149
|
-
|
|
150
116
|
static getDerivedStateFromProps(props, state) {
|
|
151
|
-
const {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
} = props;
|
|
155
|
-
const {
|
|
156
|
-
stopTrackingMouse,
|
|
157
|
-
oldProps
|
|
158
|
-
} = state;
|
|
159
|
-
|
|
160
|
-
if (shallowCompare({
|
|
161
|
-
props: oldProps,
|
|
162
|
-
state: {}
|
|
163
|
-
}, props, {})) {
|
|
117
|
+
const { items: itemsNew, childrenProp } = props;
|
|
118
|
+
const { stopTrackingMouse, oldProps } = state;
|
|
119
|
+
if (shallowCompare({ props: oldProps, state: {} }, props, {})) {
|
|
164
120
|
stopTrackingMouse();
|
|
165
121
|
const extra = {};
|
|
166
|
-
|
|
167
122
|
if (oldProps.collapsed !== props.collapsed) {
|
|
168
123
|
extra.collapsedGroups = [];
|
|
169
124
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
items: utils.listWithChildren(itemsNew, childrenProp),
|
|
125
|
+
return {
|
|
126
|
+
items: (0, import_utils.listWithChildren)(itemsNew, childrenProp),
|
|
173
127
|
dragItem: null,
|
|
174
128
|
isDirty: false,
|
|
175
|
-
oldProps: props
|
|
176
|
-
|
|
129
|
+
oldProps: props,
|
|
130
|
+
...extra
|
|
131
|
+
};
|
|
177
132
|
}
|
|
178
|
-
|
|
179
133
|
return null;
|
|
180
134
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDefaultItems();
|
|
184
|
-
return paths.getPathById.call(this, id, items);
|
|
135
|
+
getPathById(id, items = this.getDefaultItems()) {
|
|
136
|
+
return import_actions.getPathById.call(this, id, items);
|
|
185
137
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDefaultItems();
|
|
189
|
-
return paths.getItemByPath.call(this, path, items);
|
|
138
|
+
getItemByPath(path, items = this.getDefaultItems()) {
|
|
139
|
+
return import_actions.getItemByPath.call(this, path, items);
|
|
190
140
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
194
|
-
return paths.getSplicePath.call(this, path, options);
|
|
141
|
+
getSplicePath(path, options = {}) {
|
|
142
|
+
return import_actions.getSplicePath.call(this, path, options);
|
|
195
143
|
}
|
|
196
|
-
|
|
197
144
|
getRealNextPath(prevPath, nextPath) {
|
|
198
|
-
return
|
|
145
|
+
return import_actions.getRealNextPath.call(this, prevPath, nextPath);
|
|
199
146
|
}
|
|
200
|
-
|
|
201
147
|
getItemOptions() {
|
|
202
|
-
return
|
|
148
|
+
return import_actions.getItemOptions.call(this);
|
|
203
149
|
}
|
|
204
|
-
|
|
205
150
|
dragApply() {
|
|
206
|
-
const {
|
|
207
|
-
|
|
208
|
-
} = this.props;
|
|
209
|
-
const {
|
|
210
|
-
items,
|
|
211
|
-
isDirty,
|
|
212
|
-
dragItem
|
|
213
|
-
} = this.state;
|
|
151
|
+
const { onChange } = this.props;
|
|
152
|
+
const { items, isDirty, dragItem } = this.state;
|
|
214
153
|
this.setState({
|
|
215
154
|
itemsOld: null,
|
|
216
155
|
dragItem: null,
|
|
217
156
|
isDirty: false
|
|
218
157
|
});
|
|
219
|
-
if (onChange && isDirty)
|
|
158
|
+
if (onChange && isDirty)
|
|
159
|
+
onChange(items, dragItem);
|
|
220
160
|
}
|
|
221
|
-
|
|
222
161
|
tryIncreaseDepth(dragItem) {
|
|
223
|
-
|
|
162
|
+
import_actions.tryIncreaseDepth.call(this, dragItem);
|
|
224
163
|
}
|
|
225
|
-
|
|
226
164
|
tryDecreaseDepth(dragItem) {
|
|
227
|
-
|
|
165
|
+
import_actions.tryDecreaseDepth.call(this, dragItem);
|
|
228
166
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
let {
|
|
232
|
-
dragItem,
|
|
233
|
-
pathFrom,
|
|
234
|
-
pathTo
|
|
235
|
-
} = _ref;
|
|
236
|
-
let extraProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
237
|
-
moveItem.moveItem.call(this, {
|
|
238
|
-
dragItem,
|
|
239
|
-
pathFrom,
|
|
240
|
-
pathTo
|
|
241
|
-
}, extraProps);
|
|
167
|
+
moveItem({ dragItem, pathFrom, pathTo }, extraProps = {}) {
|
|
168
|
+
import_actions.moveItem.call(this, { dragItem, pathFrom, pathTo }, extraProps);
|
|
242
169
|
}
|
|
243
|
-
|
|
244
170
|
renderDragLayer() {
|
|
245
|
-
const {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
const {
|
|
249
|
-
dragItem
|
|
250
|
-
} = this.state;
|
|
251
|
-
const el = document.querySelector(".nestable-".concat(group, " .nestable-item-").concat(dragItem.id));
|
|
171
|
+
const { group } = this.props;
|
|
172
|
+
const { dragItem } = this.state;
|
|
173
|
+
const el = document.querySelector(`.nestable-${group} .nestable-item-${dragItem.id}`);
|
|
252
174
|
let listStyles = {};
|
|
253
|
-
|
|
254
175
|
if (el) {
|
|
255
176
|
listStyles.width = el.clientWidth;
|
|
256
177
|
}
|
|
257
|
-
|
|
258
178
|
if (this.elCopyStyles) {
|
|
259
|
-
listStyles =
|
|
179
|
+
listStyles = {
|
|
180
|
+
...listStyles,
|
|
181
|
+
...this.elCopyStyles
|
|
182
|
+
};
|
|
260
183
|
}
|
|
261
|
-
|
|
262
184
|
const options = this.getItemOptions();
|
|
263
|
-
return
|
|
185
|
+
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
264
186
|
className: "nestable-drag-layer"
|
|
265
|
-
},
|
|
187
|
+
}, /* @__PURE__ */ import_react.default.createElement("ol", {
|
|
266
188
|
className: "nestable-list",
|
|
267
189
|
style: listStyles
|
|
268
|
-
},
|
|
190
|
+
}, /* @__PURE__ */ import_react.default.createElement(import_NestableItem.default, {
|
|
269
191
|
isCopy: true,
|
|
270
192
|
item: dragItem,
|
|
271
|
-
options
|
|
193
|
+
options
|
|
272
194
|
})));
|
|
273
195
|
}
|
|
274
|
-
|
|
275
196
|
render() {
|
|
276
|
-
const {
|
|
277
|
-
items,
|
|
278
|
-
dragItem
|
|
279
|
-
} = this.state;
|
|
197
|
+
const { items, dragItem } = this.state;
|
|
280
198
|
const {
|
|
281
199
|
group,
|
|
282
200
|
isAndItem,
|
|
@@ -287,34 +205,50 @@ class Nestable extends React.Component {
|
|
|
287
205
|
} = this.props;
|
|
288
206
|
const options = this.getItemOptions();
|
|
289
207
|
const childLength = items.length;
|
|
290
|
-
let childClass =
|
|
291
|
-
if (childLength === 0)
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
208
|
+
let childClass = "single";
|
|
209
|
+
if (childLength === 0)
|
|
210
|
+
childClass = "empty";
|
|
211
|
+
else if (childLength > 1)
|
|
212
|
+
childClass = "multiple";
|
|
213
|
+
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
214
|
+
className: (0, import_classnames.default)("nestable", `nestable-${group}`, {
|
|
215
|
+
"is-drag-active": dragItem
|
|
295
216
|
})
|
|
296
|
-
},
|
|
297
|
-
className:
|
|
298
|
-
},
|
|
217
|
+
}, /* @__PURE__ */ import_react.default.createElement("ol", {
|
|
218
|
+
className: `nestable-list nestable-group nestable-child-count-${childClass}`
|
|
219
|
+
}, items.map((item, i) => /* @__PURE__ */ import_react.default.createElement(import_NestableItem.default, {
|
|
220
|
+
key: item.id,
|
|
299
221
|
index: i,
|
|
300
|
-
isAndItem
|
|
301
|
-
isDraggableItem
|
|
302
|
-
isOrItem
|
|
303
|
-
item
|
|
304
|
-
options
|
|
305
|
-
setDraggableItems
|
|
306
|
-
singleRow
|
|
307
|
-
}
|
|
222
|
+
isAndItem,
|
|
223
|
+
isDraggableItem,
|
|
224
|
+
isOrItem,
|
|
225
|
+
item,
|
|
226
|
+
options,
|
|
227
|
+
setDraggableItems,
|
|
228
|
+
singleRow
|
|
229
|
+
}))), dragItem && this.renderDragLayer());
|
|
308
230
|
}
|
|
309
|
-
|
|
310
231
|
}
|
|
311
|
-
|
|
312
232
|
Nestable.defaultProps = {
|
|
313
233
|
items: [],
|
|
314
234
|
collapsed: false,
|
|
315
235
|
group: Math.random().toString(36).slice(2),
|
|
316
|
-
childrenProp:
|
|
317
|
-
onChange: () => {
|
|
236
|
+
childrenProp: "children",
|
|
237
|
+
onChange: () => {
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
Nestable.propTypes = {
|
|
241
|
+
childrenProp: import_prop_types.default.string,
|
|
242
|
+
group: import_prop_types.default.string,
|
|
243
|
+
items: import_prop_types.default.arrayOf(import_prop_types.default.shape({})),
|
|
244
|
+
collapsed: import_prop_types.default.bool,
|
|
245
|
+
onChange: import_prop_types.default.func,
|
|
246
|
+
isAndItem: import_prop_types.default.bool,
|
|
247
|
+
isOrItem: import_prop_types.default.bool,
|
|
248
|
+
isDraggableItem: import_prop_types.default.bool,
|
|
249
|
+
setDraggableItems: import_prop_types.default.func,
|
|
250
|
+
singleRow: import_prop_types.default.bool
|
|
318
251
|
};
|
|
319
|
-
|
|
320
|
-
module.exports =
|
|
252
|
+
var Nestable_default = Nestable;
|
|
253
|
+
module.exports = __toCommonJS(Nestable_exports);
|
|
254
|
+
//# sourceMappingURL=Nestable.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/components/Nestable/Nestable.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable no-bitwise, max-lines */\nimport React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport cn from 'classnames';\nimport { listWithChildren } from '@elliemae/ds-shared/utils';\nimport { isEqualWith } from '@elliemae/ds-utilities';\nimport {\n tryIncreaseDepth,\n tryDecreaseDepth,\n moveItem,\n getItemOptions,\n getRealNextPath,\n getPathById,\n getItemByPath,\n getItemDepth,\n getSplicePath,\n onDragStart,\n onDragEnd,\n onMouseMove,\n onMouseEnter,\n onToggleCollapse,\n onKeyDown,\n} from './actions';\n\nimport NestableItem from './NestableItem';\n\nconst shallowCompare = (instance, nextProps, nextState) =>\n !isEqualWith(instance.props, nextProps) ||\n !isEqualWith(instance.state, nextState);\n\nclass Nestable extends Component {\n constructor(props) {\n super(props);\n this.state = {\n items: [],\n itemsOld: null,\n dragItem: null,\n isDirty: false,\n collapsedGroups: [],\n stopTrackingMouse: this.stopTrackMouse.bind(this),\n oldProps: props,\n };\n\n this.el = null;\n this.elCopyStyles = null;\n this.mouse = {\n last: { x: 0 },\n shift: { x: 0 },\n };\n }\n\n componentDidMount() {\n const { childrenProp } = this.props;\n let { items } = this.props;\n // make sure every item has property 'children'\n items = listWithChildren(items, childrenProp);\n this.setState({ items });\n }\n\n componentWillUnmount() {\n this.stopTrackMouse();\n }\n\n static getDerivedStateFromProps(props, state) {\n const { items: itemsNew, childrenProp } = props;\n const { stopTrackingMouse, oldProps } = state;\n\n if (shallowCompare({ props: oldProps, state: {} }, props, {})) {\n stopTrackingMouse();\n const extra = {};\n if (oldProps.collapsed !== props.collapsed) {\n extra.collapsedGroups = [];\n }\n return {\n items: listWithChildren(itemsNew, childrenProp),\n dragItem: null,\n isDirty: false,\n oldProps: props,\n ...extra,\n };\n }\n return null;\n }\n\n onDragStart = (e, item) => {\n onDragStart.call(this, e, item);\n };\n\n onDragEnd = (e, isCancel) => onDragEnd.call(this, e, isCancel);\n\n onMouseMove = (e) => onMouseMove.call(this, e);\n\n onMouseEnter = (e, item) => onMouseEnter.call(this, e, item);\n\n onToggleCollapse = (item, isGetter) =>\n onToggleCollapse.call(this, item, isGetter);\n\n onKeyDown = (e) => onKeyDown.call(this, e);\n\n getDefaultItems = () => {\n const { items } = this.state;\n return items;\n };\n\n getPathById(id, items = this.getDefaultItems()) {\n return getPathById.call(this, id, items);\n }\n\n getItemByPath(path, items = this.getDefaultItems()) {\n return getItemByPath.call(this, path, items);\n }\n\n getItemDepth = (item) => getItemDepth.call(this, item);\n\n getSplicePath(path, options = {}) {\n return getSplicePath.call(this, path, options);\n }\n\n getRealNextPath(prevPath, nextPath) {\n return getRealNextPath.call(this, prevPath, nextPath);\n }\n\n getItemOptions() {\n return getItemOptions.call(this);\n }\n\n startTrackMouse = () => {\n document.addEventListener('mousemove', this.onMouseMove);\n document.addEventListener('mouseup', this.onDragEnd);\n document.addEventListener('keydown', this.onKeyDown);\n };\n\n stopTrackMouse = () => {\n document.removeEventListener('mousemove', this.onMouseMove);\n document.removeEventListener('mouseup', this.onDragEnd);\n document.removeEventListener('keydown', this.onKeyDown);\n this.elCopyStyles = null;\n };\n\n isCollapsed = (item) => {\n const { collapsed } = this.props;\n const { collapsedGroups } = this.state;\n return !!((collapsedGroups.indexOf(item.id) > -1) ^ collapsed);\n };\n\n checkFilterChildren = (items) =>\n items.find((current) => {\n const {\n element: { type },\n children,\n } = current;\n if (type === 'filter' && children.length > 0) return true;\n return this.checkFilterChildren(children);\n });\n\n dragRevert = () => {\n const { itemsOld } = this.state;\n\n this.setState({\n items: itemsOld,\n itemsOld: null,\n dragItem: null,\n isDirty: false,\n });\n };\n\n dragApply() {\n const { onChange } = this.props;\n const { items, isDirty, dragItem } = this.state;\n\n this.setState({\n itemsOld: null,\n dragItem: null,\n isDirty: false,\n });\n\n if (onChange && isDirty) onChange(items, dragItem);\n }\n\n tryIncreaseDepth(dragItem) {\n tryIncreaseDepth.call(this, dragItem);\n }\n\n tryDecreaseDepth(dragItem) {\n tryDecreaseDepth.call(this, dragItem);\n }\n\n moveItem({ dragItem, pathFrom, pathTo }, extraProps = {}) {\n moveItem.call(this, { dragItem, pathFrom, pathTo }, extraProps);\n }\n\n renderDragLayer() {\n const { group } = this.props;\n const { dragItem } = this.state;\n const el = document.querySelector(\n `.nestable-${group} .nestable-item-${dragItem.id}`,\n );\n\n let listStyles = {};\n if (el) {\n listStyles.width = el.clientWidth;\n }\n if (this.elCopyStyles) {\n listStyles = {\n ...listStyles,\n ...this.elCopyStyles,\n };\n }\n\n const options = this.getItemOptions();\n\n return (\n <div className=\"nestable-drag-layer\">\n <ol className=\"nestable-list\" style={listStyles}>\n <NestableItem isCopy item={dragItem} options={options} />\n </ol>\n </div>\n );\n }\n\n render() {\n const { items, dragItem } = this.state;\n const {\n group,\n isAndItem,\n isOrItem,\n isDraggableItem,\n setDraggableItems,\n singleRow,\n } = this.props;\n const options = this.getItemOptions();\n const childLength = items.length;\n let childClass = 'single';\n if (childLength === 0) childClass = 'empty';\n else if (childLength > 1) childClass = 'multiple';\n\n return (\n <div\n className={cn('nestable', `nestable-${group}`, {\n 'is-drag-active': dragItem,\n })}\n >\n <ol\n className={`nestable-list nestable-group nestable-child-count-${childClass}`}\n >\n {items.map((item, i) => (\n <NestableItem\n key={item.id}\n index={i}\n isAndItem={isAndItem}\n isDraggableItem={isDraggableItem}\n isOrItem={isOrItem}\n item={item}\n options={options}\n setDraggableItems={setDraggableItems}\n singleRow={singleRow}\n />\n ))}\n </ol>\n {dragItem && this.renderDragLayer()}\n </div>\n );\n }\n}\n\nNestable.defaultProps = {\n items: [],\n collapsed: false,\n group: Math.random().toString(36).slice(2),\n childrenProp: 'children',\n onChange: () => {},\n};\n\nNestable.propTypes = {\n childrenProp: PropTypes.string,\n group: PropTypes.string,\n items: PropTypes.arrayOf(PropTypes.shape({})),\n collapsed: PropTypes.bool,\n onChange: PropTypes.func,\n isAndItem: PropTypes.bool,\n isOrItem: PropTypes.bool,\n isDraggableItem: PropTypes.bool,\n setDraggableItems: PropTypes.func,\n singleRow: PropTypes.bool,\n};\n\nexport default Nestable;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;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