easy-email-extensions 3.2.1-alpha.3 → 3.2.1-alpha.8
Sign up to get free protection for your applications and to get access to all the features.
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
|
@@ -39832,7 +39833,7 @@ function EyeIcon() {
|
|
39832
39833
|
onClick: onToggleVisible
|
39833
39834
|
});
|
39834
39835
|
}
|
39835
|
-
function FontFamily() {
|
39836
|
+
function FontFamily({ name }) {
|
39836
39837
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
39837
39838
|
const { fontList: fontList2 } = useFontFamily();
|
39838
39839
|
return useMemo(() => {
|
@@ -39840,10 +39841,10 @@ function FontFamily() {
|
|
39840
39841
|
style: { minWidth: 100, flex: 1 },
|
39841
39842
|
showSearch: true,
|
39842
39843
|
label: "Font family",
|
39843
|
-
name: `${focusIdx2}.attributes.font-family`,
|
39844
|
+
name: name || `${focusIdx2}.attributes.font-family`,
|
39844
39845
|
options: fontList2
|
39845
39846
|
});
|
39846
|
-
}, [focusIdx2, fontList2]);
|
39847
|
+
}, [focusIdx2, fontList2, name]);
|
39847
39848
|
}
|
39848
39849
|
function Page() {
|
39849
39850
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
@@ -39885,7 +39886,9 @@ function Page() {
|
|
39885
39886
|
spacing: "tight"
|
39886
39887
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
39887
39888
|
span: 11
|
39888
|
-
}, /* @__PURE__ */ React__default.createElement(FontFamily,
|
39889
|
+
}, /* @__PURE__ */ React__default.createElement(FontFamily, {
|
39890
|
+
name: `${focusIdx2}.data.value.font-family`
|
39891
|
+
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
39889
39892
|
offset: 1,
|
39890
39893
|
span: 11
|
39891
39894
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
@@ -40162,7 +40165,7 @@ function Condition() {
|
|
40162
40165
|
groups: [
|
40163
40166
|
{
|
40164
40167
|
left: "",
|
40165
|
-
operator: Operator.
|
40168
|
+
operator: Operator.TRUTHY,
|
40166
40169
|
right: ""
|
40167
40170
|
}
|
40168
40171
|
]
|
@@ -40180,7 +40183,7 @@ function Condition() {
|
|
40180
40183
|
groups: [
|
40181
40184
|
{
|
40182
40185
|
left: "",
|
40183
|
-
operator: Operator.
|
40186
|
+
operator: Operator.TRUTHY,
|
40184
40187
|
right: ""
|
40185
40188
|
}
|
40186
40189
|
]
|
@@ -40191,7 +40194,7 @@ function Condition() {
|
|
40191
40194
|
const groups = lodash.exports.get(values2, path);
|
40192
40195
|
groups.push({
|
40193
40196
|
left: "",
|
40194
|
-
operator: Operator.
|
40197
|
+
operator: Operator.TRUTHY,
|
40195
40198
|
right: ""
|
40196
40199
|
});
|
40197
40200
|
change(path, [...groups]);
|
@@ -40298,12 +40301,14 @@ function Condition() {
|
|
40298
40301
|
const options$b = Object.values(Operator).map((item2) => ({ label: lodash.exports.upperFirst(item2), value: item2 }));
|
40299
40302
|
function ConditionItem({ path, onDelete, gIndex, ggIndex }) {
|
40300
40303
|
const name = `${path}.${gIndex}.groups.${ggIndex}`;
|
40304
|
+
const { input: { value } } = useField(name);
|
40305
|
+
const hideRight = value.operator === Operator.TRUTHY || value.operator === Operator.FALSY;
|
40301
40306
|
return /* @__PURE__ */ React__default.createElement(Grid.Row, {
|
40302
40307
|
align: "end"
|
40303
40308
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
40304
40309
|
span: 7
|
40305
40310
|
}, " ", /* @__PURE__ */ React__default.createElement(TextField, {
|
40306
|
-
label: "
|
40311
|
+
label: "Variable path",
|
40307
40312
|
name: `${name}.left`
|
40308
40313
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
40309
40314
|
span: 7
|
@@ -40313,7 +40318,7 @@ function ConditionItem({ path, onDelete, gIndex, ggIndex }) {
|
|
40313
40318
|
options: options$b
|
40314
40319
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
40315
40320
|
span: 7
|
40316
|
-
}, " ", /* @__PURE__ */ React__default.createElement(TextField, {
|
40321
|
+
}, " ", !hideRight && /* @__PURE__ */ React__default.createElement(TextField, {
|
40317
40322
|
label: "Right",
|
40318
40323
|
name: `${name}.right`
|
40319
40324
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -46780,8 +46785,6 @@ const SimpleLayout = (props) => {
|
|
46780
46785
|
bodyStyle: { padding: 0 },
|
46781
46786
|
className: styles.customScrollBar
|
46782
46787
|
}, /* @__PURE__ */ React__default.createElement(Tabs$1, null, /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {
|
46783
|
-
destroyOnHide: true,
|
46784
|
-
key: "Configuration",
|
46785
46788
|
title: "Configuration"
|
46786
46789
|
}, /* @__PURE__ */ React__default.createElement(AttributePanel, null)), showSourceCode && /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {
|
46787
46790
|
destroyOnHide: true,
|