@bigbinary/neeto-rules-frontend 0.6.3 → 0.6.5
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/dist/index.cjs.js +14 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -10693,6 +10693,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
10693
10693
|
errors = _useFormikContext.errors,
|
|
10694
10694
|
touched = _useFormikContext.touched;
|
|
10695
10695
|
var optionList = elementProps.actionOptions;
|
|
10696
|
+
var ActionChildren = action.children;
|
|
10696
10697
|
var actions = values[parentName].value || [];
|
|
10697
10698
|
var label = index ? t("neetoRules.common.and", {
|
|
10698
10699
|
what: t("neetoRules.common.then")
|
|
@@ -10820,6 +10821,11 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
10820
10821
|
selectedField: selectedField,
|
|
10821
10822
|
name: "".concat(name, ".metadata"),
|
|
10822
10823
|
options: getSelectedFieldOptions()
|
|
10824
|
+
}), isPresent(action === null || action === void 0 ? void 0 : action.children) && /*#__PURE__*/React__default.createElement(ActionChildren, {
|
|
10825
|
+
action: action,
|
|
10826
|
+
index: index,
|
|
10827
|
+
selectedField: selectedField,
|
|
10828
|
+
parentFieldName: name
|
|
10823
10829
|
}));
|
|
10824
10830
|
};
|
|
10825
10831
|
var ActionItem$1 = /*#__PURE__*/memo(ActionItem);
|
|
@@ -12042,7 +12048,9 @@ var Conditions = function Conditions(_ref) {
|
|
|
12042
12048
|
isCallback = _ref$isCallback === void 0 ? false : _ref$isCallback,
|
|
12043
12049
|
previewCallback = _ref.previewCallback,
|
|
12044
12050
|
_ref$isWithEvents = _ref.isWithEvents,
|
|
12045
|
-
isWithEvents = _ref$isWithEvents === void 0 ? false : _ref$isWithEvents
|
|
12051
|
+
isWithEvents = _ref$isWithEvents === void 0 ? false : _ref$isWithEvents,
|
|
12052
|
+
_ref$allowEmpty = _ref.allowEmpty,
|
|
12053
|
+
allowEmpty = _ref$allowEmpty === void 0 ? true : _ref$allowEmpty;
|
|
12046
12054
|
var _useField = useField(name),
|
|
12047
12055
|
_useField2 = _slicedToArray$1(_useField, 3),
|
|
12048
12056
|
field = _useField2[0],
|
|
@@ -12107,8 +12115,8 @@ var Conditions = function Conditions(_ref) {
|
|
|
12107
12115
|
}, index === conditions.length - 1 && /*#__PURE__*/React__default.createElement(Button, {
|
|
12108
12116
|
"data-cy": "add-condition-button",
|
|
12109
12117
|
icon: Plus,
|
|
12110
|
-
size:
|
|
12111
|
-
style: "
|
|
12118
|
+
size: "small",
|
|
12119
|
+
style: "text",
|
|
12112
12120
|
tooltipProps: {
|
|
12113
12121
|
content: t("neetoRules.form.addCondition"),
|
|
12114
12122
|
position: "top"
|
|
@@ -12116,11 +12124,11 @@ var Conditions = function Conditions(_ref) {
|
|
|
12116
12124
|
onClick: function onClick() {
|
|
12117
12125
|
return handleAddCondition(arrayHelpers, condition.joinType);
|
|
12118
12126
|
}
|
|
12119
|
-
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
12127
|
+
}), (allowEmpty || index !== 0) && /*#__PURE__*/React__default.createElement(Button, {
|
|
12120
12128
|
"data-cy": "delete-condition-button-".concat(index),
|
|
12121
12129
|
icon: Delete,
|
|
12122
|
-
size:
|
|
12123
|
-
style: "
|
|
12130
|
+
size: "small",
|
|
12131
|
+
style: "text",
|
|
12124
12132
|
tooltipProps: {
|
|
12125
12133
|
content: t("neetoRules.common.delete"),
|
|
12126
12134
|
position: "top"
|