@bigbinary/neeto-rules-frontend 0.6.4 → 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 +8 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -12048,7 +12048,9 @@ var Conditions = function Conditions(_ref) {
|
|
|
12048
12048
|
isCallback = _ref$isCallback === void 0 ? false : _ref$isCallback,
|
|
12049
12049
|
previewCallback = _ref.previewCallback,
|
|
12050
12050
|
_ref$isWithEvents = _ref.isWithEvents,
|
|
12051
|
-
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;
|
|
12052
12054
|
var _useField = useField(name),
|
|
12053
12055
|
_useField2 = _slicedToArray$1(_useField, 3),
|
|
12054
12056
|
field = _useField2[0],
|
|
@@ -12113,8 +12115,8 @@ var Conditions = function Conditions(_ref) {
|
|
|
12113
12115
|
}, index === conditions.length - 1 && /*#__PURE__*/React__default.createElement(Button, {
|
|
12114
12116
|
"data-cy": "add-condition-button",
|
|
12115
12117
|
icon: Plus,
|
|
12116
|
-
size:
|
|
12117
|
-
style: "
|
|
12118
|
+
size: "small",
|
|
12119
|
+
style: "text",
|
|
12118
12120
|
tooltipProps: {
|
|
12119
12121
|
content: t("neetoRules.form.addCondition"),
|
|
12120
12122
|
position: "top"
|
|
@@ -12122,11 +12124,11 @@ var Conditions = function Conditions(_ref) {
|
|
|
12122
12124
|
onClick: function onClick() {
|
|
12123
12125
|
return handleAddCondition(arrayHelpers, condition.joinType);
|
|
12124
12126
|
}
|
|
12125
|
-
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
12127
|
+
}), (allowEmpty || index !== 0) && /*#__PURE__*/React__default.createElement(Button, {
|
|
12126
12128
|
"data-cy": "delete-condition-button-".concat(index),
|
|
12127
12129
|
icon: Delete,
|
|
12128
|
-
size:
|
|
12129
|
-
style: "
|
|
12130
|
+
size: "small",
|
|
12131
|
+
style: "text",
|
|
12130
12132
|
tooltipProps: {
|
|
12131
12133
|
content: t("neetoRules.common.delete"),
|
|
12132
12134
|
position: "top"
|