easy-email-extensions 3.2.1-alpha.7 → 3.2.1-alpha.8
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/lib/index2.js +8 -5
- package/lib/index2.js.map +1 -1
- package/package.json +2 -2
package/lib/index2.js
CHANGED
@@ -39048,6 +39048,7 @@ function ColorPicker(props) {
|
|
39048
39048
|
}
|
39049
39049
|
function Select(props) {
|
39050
39050
|
return /* @__PURE__ */ React__default.createElement(Select$2, __spreadProps(__spreadValues({}, props), {
|
39051
|
+
dropdownMenuClassName: "easy-email-overlay",
|
39051
39052
|
style: lodash.exports.merge({ width: "100%" }, props.style),
|
39052
39053
|
value: props.value,
|
39053
39054
|
onChange: props.onChange
|
@@ -40164,7 +40165,7 @@ function Condition() {
|
|
40164
40165
|
groups: [
|
40165
40166
|
{
|
40166
40167
|
left: "",
|
40167
|
-
operator: Operator.
|
40168
|
+
operator: Operator.TRUTHY,
|
40168
40169
|
right: ""
|
40169
40170
|
}
|
40170
40171
|
]
|
@@ -40182,7 +40183,7 @@ function Condition() {
|
|
40182
40183
|
groups: [
|
40183
40184
|
{
|
40184
40185
|
left: "",
|
40185
|
-
operator: Operator.
|
40186
|
+
operator: Operator.TRUTHY,
|
40186
40187
|
right: ""
|
40187
40188
|
}
|
40188
40189
|
]
|
@@ -40193,7 +40194,7 @@ function Condition() {
|
|
40193
40194
|
const groups = lodash.exports.get(values2, path);
|
40194
40195
|
groups.push({
|
40195
40196
|
left: "",
|
40196
|
-
operator: Operator.
|
40197
|
+
operator: Operator.TRUTHY,
|
40197
40198
|
right: ""
|
40198
40199
|
});
|
40199
40200
|
change(path, [...groups]);
|
@@ -40300,12 +40301,14 @@ function Condition() {
|
|
40300
40301
|
const options$b = Object.values(Operator).map((item2) => ({ label: lodash.exports.upperFirst(item2), value: item2 }));
|
40301
40302
|
function ConditionItem({ path, onDelete, gIndex, ggIndex }) {
|
40302
40303
|
const name = `${path}.${gIndex}.groups.${ggIndex}`;
|
40304
|
+
const { input: { value } } = useField(name);
|
40305
|
+
const hideRight = value.operator === Operator.TRUTHY || value.operator === Operator.FALSY;
|
40303
40306
|
return /* @__PURE__ */ React__default.createElement(Grid.Row, {
|
40304
40307
|
align: "end"
|
40305
40308
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
40306
40309
|
span: 7
|
40307
40310
|
}, " ", /* @__PURE__ */ React__default.createElement(TextField, {
|
40308
|
-
label: "
|
40311
|
+
label: "Variable path",
|
40309
40312
|
name: `${name}.left`
|
40310
40313
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
40311
40314
|
span: 7
|
@@ -40315,7 +40318,7 @@ function ConditionItem({ path, onDelete, gIndex, ggIndex }) {
|
|
40315
40318
|
options: options$b
|
40316
40319
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
40317
40320
|
span: 7
|
40318
|
-
}, " ", /* @__PURE__ */ React__default.createElement(TextField, {
|
40321
|
+
}, " ", !hideRight && /* @__PURE__ */ React__default.createElement(TextField, {
|
40319
40322
|
label: "Right",
|
40320
40323
|
name: `${name}.right`
|
40321
40324
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|