easy-email-extensions 4.6.0 → 4.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/AttributePanel/components/attributes/BorderStyle.d.ts +1 -1
- package/lib/AttributePanel/components/blocks/Page/index.d.ts +6 -1
- package/lib/AttributePanel/index.d.ts +1 -0
- package/lib/AttributePanel/utils/BlockAttributeConfigurationManager.d.ts +2 -1
- package/lib/ShortcutToolbar/components/BlocksPanel/presetTemplate/index.d.ts +5 -5
- package/lib/ShortcutToolbar/components/DragIcon/index.d.ts +1 -2
- package/lib/index.js +1 -1
- package/lib/index2.js +1049 -892
- package/lib/index2.js.map +1 -1
- package/package.json +3 -3
package/lib/index2.js
CHANGED
@@ -30803,7 +30803,7 @@ function ImageUploader(props) {
|
|
30803
30803
|
const onChange = props.onChange;
|
30804
30804
|
const onUpload = useCallback(() => {
|
30805
30805
|
if (isUploading) {
|
30806
|
-
return Message$1.warning("Uploading...");
|
30806
|
+
return Message$1.warning(t("Uploading..."));
|
30807
30807
|
}
|
30808
30808
|
if (!uploadHandlerRef.current)
|
30809
30809
|
return;
|
@@ -30842,7 +30842,7 @@ function ImageUploader(props) {
|
|
30842
30842
|
props.onChange(picture);
|
30843
30843
|
setIsUploading(false);
|
30844
30844
|
} catch (error2) {
|
30845
|
-
Message$1.error((error2 == null ? void 0 : error2.message) || error2 || "Upload failed");
|
30845
|
+
Message$1.error((error2 == null ? void 0 : error2.message) || error2 || t("Upload failed"));
|
30846
30846
|
setIsUploading(false);
|
30847
30847
|
}
|
30848
30848
|
}
|
@@ -30876,10 +30876,10 @@ function ImageUploader(props) {
|
|
30876
30876
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
30877
30877
|
className: styles$8["btn-wrap"]
|
30878
30878
|
}, /* @__PURE__ */ React__default.createElement("a", {
|
30879
|
-
title: "Preview",
|
30879
|
+
title: t("Preview"),
|
30880
30880
|
onClick: () => setPreview(true)
|
30881
30881
|
}, /* @__PURE__ */ React__default.createElement(IconEye$1, null)), /* @__PURE__ */ React__default.createElement("a", {
|
30882
|
-
title: "Remove",
|
30882
|
+
title: t("Remove"),
|
30883
30883
|
onClick: () => onRemove()
|
30884
30884
|
}, /* @__PURE__ */ React__default.createElement(IconDelete$1, null)))));
|
30885
30885
|
}, [isUploading, onRemove, onUpload, props.value]);
|
@@ -30936,7 +30936,7 @@ function ImageUploader(props) {
|
|
30936
30936
|
footer: null,
|
30937
30937
|
onCancel: () => setPreview(false)
|
30938
30938
|
}, /* @__PURE__ */ React__default.createElement("img", {
|
30939
|
-
alt: "Preview",
|
30939
|
+
alt: t("Preview"),
|
30940
30940
|
style: { width: "100%" },
|
30941
30941
|
src: props.value
|
30942
30942
|
})));
|
@@ -31264,7 +31264,7 @@ function EditTab(props) {
|
|
31264
31264
|
onChange: setActiveTab
|
31265
31265
|
}, (Array.isArray(value) ? value : []).map((item2, index2) => /* @__PURE__ */ React__default.createElement(TabPane$1, {
|
31266
31266
|
style: { paddingLeft: 12 },
|
31267
|
-
title: `${props.label || "Tab"} ${index2 + 1}`,
|
31267
|
+
title: `${props.label || t("Tab")} ${index2 + 1}`,
|
31268
31268
|
key: index2
|
31269
31269
|
}, props.renderItem(item2, index2))));
|
31270
31270
|
}
|
@@ -31284,7 +31284,7 @@ function EditGridTab(props) {
|
|
31284
31284
|
style: { width: "100%" },
|
31285
31285
|
key: index2
|
31286
31286
|
}, /* @__PURE__ */ React__default.createElement(Card$1, {
|
31287
|
-
title: /* @__PURE__ */ React__default.createElement(Space$1, null, /* @__PURE__ */ React__default.createElement(Typography$1.Text, null, "Item ", index2 + 1)),
|
31287
|
+
title: /* @__PURE__ */ React__default.createElement(Space$1, null, /* @__PURE__ */ React__default.createElement(Typography$1.Text, null, t("Item"), " ", index2 + 1)),
|
31288
31288
|
extra: /* @__PURE__ */ React__default.createElement(Space$1, {
|
31289
31289
|
size: "large"
|
31290
31290
|
}, /* @__PURE__ */ React__default.createElement(IconPlus$1, {
|
@@ -33101,7 +33101,7 @@ function ColorPickerContent(props) {
|
|
33101
33101
|
paddingLeft: 10,
|
33102
33102
|
position: "relative"
|
33103
33103
|
}
|
33104
|
-
}, /* @__PURE__ */ React__default.createElement("span", null, "Picker..."), /* @__PURE__ */ React__default.createElement("input", {
|
33104
|
+
}, /* @__PURE__ */ React__default.createElement("span", null, t("Picker...")), /* @__PURE__ */ React__default.createElement("input", {
|
33105
33105
|
style: {
|
33106
33106
|
position: "absolute",
|
33107
33107
|
width: "100%",
|
@@ -33296,10 +33296,10 @@ function Link$1(props) {
|
|
33296
33296
|
}, /* @__PURE__ */ React__default.createElement(SearchField, {
|
33297
33297
|
size: "small",
|
33298
33298
|
name: "link",
|
33299
|
-
label: "Link",
|
33299
|
+
label: t("Link"),
|
33300
33300
|
labelHidden: true,
|
33301
|
-
searchButton: "Apply",
|
33302
|
-
placeholder: "https://www.example.com",
|
33301
|
+
searchButton: t("Apply"),
|
33302
|
+
placeholder: t("https://www.example.com"),
|
33303
33303
|
onSearch: () => handleSubmit()
|
33304
33304
|
})), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33305
33305
|
span: 12
|
@@ -33308,13 +33308,13 @@ function Link$1(props) {
|
|
33308
33308
|
size: "mini"
|
33309
33309
|
}, /* @__PURE__ */ React__default.createElement(TextStyle, {
|
33310
33310
|
size: "smallest"
|
33311
|
-
}, "Target"), /* @__PURE__ */ React__default.createElement(SwitchField, {
|
33311
|
+
}, t("Target")), /* @__PURE__ */ React__default.createElement(SwitchField, {
|
33312
33312
|
size: "small",
|
33313
|
-
label: "Target",
|
33313
|
+
label: t("Target"),
|
33314
33314
|
labelHidden: true,
|
33315
33315
|
name: "blank",
|
33316
|
-
checkedText: "blank",
|
33317
|
-
uncheckedText: "self",
|
33316
|
+
checkedText: t("blank"),
|
33317
|
+
uncheckedText: t("self"),
|
33318
33318
|
inline: true
|
33319
33319
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33320
33320
|
span: 12
|
@@ -33323,18 +33323,18 @@ function Link$1(props) {
|
|
33323
33323
|
size: "mini"
|
33324
33324
|
}, /* @__PURE__ */ React__default.createElement(TextStyle, {
|
33325
33325
|
size: "smallest"
|
33326
|
-
}, "Underline"), /* @__PURE__ */ React__default.createElement(SwitchField, {
|
33326
|
+
}, t("Underline")), /* @__PURE__ */ React__default.createElement(SwitchField, {
|
33327
33327
|
size: "small",
|
33328
|
-
label: "Underline",
|
33328
|
+
label: t("Underline"),
|
33329
33329
|
labelHidden: true,
|
33330
33330
|
name: "underline",
|
33331
|
-
checkedText: "off",
|
33332
|
-
uncheckedText: "on",
|
33331
|
+
checkedText: t("off"),
|
33332
|
+
uncheckedText: t("on"),
|
33333
33333
|
inline: true
|
33334
33334
|
})))))
|
33335
33335
|
}), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
33336
33336
|
isActive: Boolean(initialValues.link),
|
33337
|
-
title: "Link",
|
33337
|
+
title: t("Link"),
|
33338
33338
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
33339
33339
|
iconName: "icon-link"
|
33340
33340
|
})
|
@@ -33577,12 +33577,12 @@ function AddFont() {
|
|
33577
33577
|
fill: true
|
33578
33578
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
33579
33579
|
name: `${focusIdx2}.data.value.fonts.${index2}.name`,
|
33580
|
-
label: "Name"
|
33580
|
+
label: t("Name")
|
33581
33581
|
})), /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
|
33582
33582
|
fill: true
|
33583
33583
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
33584
33584
|
name: `${focusIdx2}.data.value.fonts.${index2}.href`,
|
33585
|
-
label: "Href"
|
33585
|
+
label: t("Href")
|
33586
33586
|
})), /* @__PURE__ */ React__default.createElement(Stack$4, {
|
33587
33587
|
vertical: true,
|
33588
33588
|
spacing: "loose"
|
@@ -33666,7 +33666,7 @@ function FontFamily({ name: name2 }) {
|
|
33666
33666
|
});
|
33667
33667
|
}, [focusIdx2, fontList2, name2]);
|
33668
33668
|
}
|
33669
|
-
function Page() {
|
33669
|
+
function Page({ hideSubTitle, hideSubject }) {
|
33670
33670
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
33671
33671
|
if (!focusIdx2)
|
33672
33672
|
return null;
|
@@ -33681,11 +33681,11 @@ function Page() {
|
|
33681
33681
|
header: t("Email Setting")
|
33682
33682
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
33683
33683
|
direction: "vertical"
|
33684
|
-
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
33684
|
+
}, !hideSubject && /* @__PURE__ */ React__default.createElement(TextField, {
|
33685
33685
|
label: t("Subject"),
|
33686
33686
|
name: "subject",
|
33687
33687
|
inline: true
|
33688
|
-
}), /* @__PURE__ */ React__default.createElement(TextField, {
|
33688
|
+
}), !hideSubTitle && /* @__PURE__ */ React__default.createElement(TextField, {
|
33689
33689
|
label: t("SubTitle"),
|
33690
33690
|
name: "subTitle",
|
33691
33691
|
inline: true
|
@@ -33719,7 +33719,7 @@ function Page() {
|
|
33719
33719
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33720
33720
|
span: 11
|
33721
33721
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
33722
|
-
label: "Line height",
|
33722
|
+
label: t("Line height"),
|
33723
33723
|
unitOptions: "percent",
|
33724
33724
|
name: `${focusIdx2}.data.value.line-height`
|
33725
33725
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -33820,31 +33820,31 @@ function Padding(props = {}) {
|
|
33820
33820
|
})
|
33821
33821
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33822
33822
|
span: 11
|
33823
|
-
}, /* @__PURE__ */ React__default.createElement(
|
33824
|
-
label: "Top (px)",
|
33823
|
+
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
33824
|
+
label: t("Top (px)"),
|
33825
33825
|
name: "top",
|
33826
33826
|
autoComplete: "off",
|
33827
33827
|
config: pixelAdapter
|
33828
33828
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33829
33829
|
offset: 1,
|
33830
33830
|
span: 11
|
33831
|
-
}, /* @__PURE__ */ React__default.createElement(
|
33832
|
-
label: "Left (px)",
|
33831
|
+
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
33832
|
+
label: t("Left (px)"),
|
33833
33833
|
name: "left",
|
33834
33834
|
autoComplete: "off",
|
33835
33835
|
config: pixelAdapter
|
33836
33836
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33837
33837
|
span: 11
|
33838
|
-
}, /* @__PURE__ */ React__default.createElement(
|
33839
|
-
label: "Bottom (px)",
|
33838
|
+
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
33839
|
+
label: t("Bottom (px)"),
|
33840
33840
|
name: "bottom",
|
33841
33841
|
config: pixelAdapter,
|
33842
33842
|
autoComplete: "off"
|
33843
33843
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33844
33844
|
offset: 1,
|
33845
33845
|
span: 11
|
33846
|
-
}, /* @__PURE__ */ React__default.createElement(
|
33847
|
-
label: "Right (px)",
|
33846
|
+
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
33847
|
+
label: t("Right (px)"),
|
33848
33848
|
name: "right",
|
33849
33849
|
autoComplete: "off",
|
33850
33850
|
config: pixelAdapter
|
@@ -33863,7 +33863,7 @@ const PaddingChangeWrapper = (props) => {
|
|
33863
33863
|
}, [top, right, bottom, left, onChange]);
|
33864
33864
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null);
|
33865
33865
|
};
|
33866
|
-
function BackgroundColor({ title: title2 = "Background color" }) {
|
33866
|
+
function BackgroundColor({ title: title2 = t("Background color") }) {
|
33867
33867
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
33868
33868
|
return useMemo(() => {
|
33869
33869
|
return /* @__PURE__ */ React__default.createElement(ColorPickerField, {
|
@@ -33875,19 +33875,27 @@ function BackgroundColor({ title: title2 = "Background color" }) {
|
|
33875
33875
|
const backgroundRepeatOptions = [
|
33876
33876
|
{
|
33877
33877
|
value: "no-repeat",
|
33878
|
-
label
|
33878
|
+
get label() {
|
33879
|
+
return t("No repeat");
|
33880
|
+
}
|
33879
33881
|
},
|
33880
33882
|
{
|
33881
33883
|
value: "repeat",
|
33882
|
-
label
|
33884
|
+
get label() {
|
33885
|
+
return t("Repeat");
|
33886
|
+
}
|
33883
33887
|
},
|
33884
33888
|
{
|
33885
33889
|
value: "repeat-x",
|
33886
|
-
label
|
33890
|
+
get label() {
|
33891
|
+
return t("Repeat X");
|
33892
|
+
}
|
33887
33893
|
},
|
33888
33894
|
{
|
33889
33895
|
value: "repeat-y",
|
33890
|
-
label
|
33896
|
+
get label() {
|
33897
|
+
return t("Repeat Y");
|
33898
|
+
}
|
33891
33899
|
}
|
33892
33900
|
];
|
33893
33901
|
function Background() {
|
@@ -33898,9 +33906,9 @@ function Background() {
|
|
33898
33906
|
key: focusIdx2,
|
33899
33907
|
direction: "vertical"
|
33900
33908
|
}, /* @__PURE__ */ React__default.createElement(ImageUploaderField, {
|
33901
|
-
label: "Background image",
|
33909
|
+
label: t("Background image"),
|
33902
33910
|
name: `${focusIdx2}.attributes.background-url`,
|
33903
|
-
helpText: "The image suffix should be .jpg, jpeg, png, gif, etc. Otherwise, the picture may not be displayed normally.",
|
33911
|
+
helpText: t("The image suffix should be .jpg, jpeg, png, gif, etc. Otherwise, the picture may not be displayed normally."),
|
33904
33912
|
uploadHandler: onUploadImage
|
33905
33913
|
}), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33906
33914
|
span: 11
|
@@ -33908,11 +33916,11 @@ function Background() {
|
|
33908
33916
|
offset: 1,
|
33909
33917
|
span: 11
|
33910
33918
|
}, /* @__PURE__ */ React__default.createElement(SelectField, {
|
33911
|
-
label: "Background repeat",
|
33919
|
+
label: t("Background repeat"),
|
33912
33920
|
name: `${focusIdx2}.attributes.background-repeat`,
|
33913
33921
|
options: backgroundRepeatOptions
|
33914
33922
|
}))), /* @__PURE__ */ React__default.createElement(TextField, {
|
33915
|
-
label: "Background size",
|
33923
|
+
label: t("Background size"),
|
33916
33924
|
name: `${focusIdx2}.attributes.background-size`
|
33917
33925
|
}));
|
33918
33926
|
}, [focusIdx2, onUploadImage]);
|
@@ -33923,13 +33931,13 @@ function Border() {
|
|
33923
33931
|
return /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33924
33932
|
span: 11
|
33925
33933
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
33926
|
-
label: "Border",
|
33934
|
+
label: t("Border"),
|
33927
33935
|
name: `${focusIdx2}.attributes.border`
|
33928
33936
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33929
33937
|
offset: 1,
|
33930
33938
|
span: 11
|
33931
33939
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
33932
|
-
label: "Border radius",
|
33940
|
+
label: t("Border radius"),
|
33933
33941
|
name: `${focusIdx2}.attributes.border-radius`,
|
33934
33942
|
unitOptions: "percent"
|
33935
33943
|
})));
|
@@ -33939,7 +33947,7 @@ function ClassName() {
|
|
33939
33947
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
33940
33948
|
return useMemo(() => {
|
33941
33949
|
return /* @__PURE__ */ React__default.createElement(TextField, {
|
33942
|
-
label: "Class name",
|
33950
|
+
label: t("Class name"),
|
33943
33951
|
name: `${focusIdx2}.attributes.css-class`
|
33944
33952
|
});
|
33945
33953
|
}, [focusIdx2]);
|
@@ -33971,7 +33979,7 @@ function Iteration() {
|
|
33971
33979
|
className: "iteration",
|
33972
33980
|
destroyOnHide: true,
|
33973
33981
|
name: "Iteration",
|
33974
|
-
header: "Iteration",
|
33982
|
+
header: t("Iteration"),
|
33975
33983
|
extra: /* @__PURE__ */ React__default.createElement("div", {
|
33976
33984
|
style: { marginRight: 10 }
|
33977
33985
|
}, /* @__PURE__ */ React__default.createElement(Switch$1, {
|
@@ -33983,18 +33991,18 @@ function Iteration() {
|
|
33983
33991
|
}, /* @__PURE__ */ React__default.createElement("div", null, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33984
33992
|
span: 11
|
33985
33993
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
33986
|
-
label: "Data source",
|
33994
|
+
label: t("Data source"),
|
33987
33995
|
name: `${focusIdx2}.data.value.iteration.dataSource`
|
33988
33996
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33989
33997
|
offset: 1,
|
33990
33998
|
span: 11
|
33991
33999
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
33992
|
-
label: "Item name",
|
34000
|
+
label: t("Item name"),
|
33993
34001
|
name: `${focusIdx2}.data.value.iteration.itemName`
|
33994
34002
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
33995
34003
|
span: 11
|
33996
34004
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
33997
|
-
label: "Limit",
|
34005
|
+
label: t("Limit"),
|
33998
34006
|
name: `${focusIdx2}.data.value.iteration.limit`,
|
33999
34007
|
quickchange: true,
|
34000
34008
|
type: "number",
|
@@ -34003,7 +34011,7 @@ function Iteration() {
|
|
34003
34011
|
offset: 1,
|
34004
34012
|
span: 11
|
34005
34013
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
34006
|
-
label: "Mock quantity",
|
34014
|
+
label: t("Mock quantity"),
|
34007
34015
|
max: iteration == null ? void 0 : iteration.limit,
|
34008
34016
|
name: `${focusIdx2}.data.value.iteration.mockQuantity`,
|
34009
34017
|
type: "number",
|
@@ -34072,7 +34080,7 @@ function Condition() {
|
|
34072
34080
|
subGroups.splice(ggIndex, 1);
|
34073
34081
|
if (subGroups.length === 0) {
|
34074
34082
|
if (groups.length === 1) {
|
34075
|
-
Message$1.warning("At least one condition");
|
34083
|
+
Message$1.warning(t("At least one condition"));
|
34076
34084
|
return;
|
34077
34085
|
}
|
34078
34086
|
groups.splice(gIndex, 1);
|
@@ -34092,7 +34100,7 @@ function Condition() {
|
|
34092
34100
|
className: "condition",
|
34093
34101
|
destroyOnHide: true,
|
34094
34102
|
name: "Condition",
|
34095
|
-
header: "Condition",
|
34103
|
+
header: t("Condition"),
|
34096
34104
|
extra: /* @__PURE__ */ React__default.createElement("div", {
|
34097
34105
|
style: { marginRight: 10 }
|
34098
34106
|
}, /* @__PURE__ */ React__default.createElement(Switch$1, {
|
@@ -34110,14 +34118,14 @@ function Condition() {
|
|
34110
34118
|
}, condition.groups.length > 1 && /* @__PURE__ */ React__default.createElement(SelectField, {
|
34111
34119
|
inline: true,
|
34112
34120
|
name: `${focusIdx2}.data.value.condition.symbol`,
|
34113
|
-
label: "Symbol",
|
34121
|
+
label: t("Symbol"),
|
34114
34122
|
options: [
|
34115
34123
|
{
|
34116
|
-
label: "And",
|
34124
|
+
label: t("And"),
|
34117
34125
|
value: OperatorSymbol.AND
|
34118
34126
|
},
|
34119
34127
|
{
|
34120
|
-
label: "Or",
|
34128
|
+
label: t("Or"),
|
34121
34129
|
value: OperatorSymbol.OR
|
34122
34130
|
}
|
34123
34131
|
]
|
@@ -34137,14 +34145,14 @@ function Condition() {
|
|
34137
34145
|
}, group.groups.length > 1 && /* @__PURE__ */ React__default.createElement(SelectField, {
|
34138
34146
|
inline: true,
|
34139
34147
|
name: `${focusIdx2}.data.value.condition.symbol`,
|
34140
|
-
label: "Symbol",
|
34148
|
+
label: t("Symbol"),
|
34141
34149
|
options: [
|
34142
34150
|
{
|
34143
|
-
label: "And",
|
34151
|
+
label: t("And"),
|
34144
34152
|
value: OperatorSymbol.AND
|
34145
34153
|
},
|
34146
34154
|
{
|
34147
|
-
label: "Or",
|
34155
|
+
label: t("Or"),
|
34148
34156
|
value: OperatorSymbol.OR
|
34149
34157
|
}
|
34150
34158
|
]
|
@@ -34172,12 +34180,12 @@ function ConditionItem({ path, onDelete, gIndex, ggIndex }) {
|
|
34172
34180
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34173
34181
|
span: 7
|
34174
34182
|
}, " ", /* @__PURE__ */ React__default.createElement(TextField, {
|
34175
|
-
label: "Variable path",
|
34183
|
+
label: t("Variable path"),
|
34176
34184
|
name: `${name2}.left`
|
34177
34185
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34178
34186
|
span: 7
|
34179
34187
|
}, " ", /* @__PURE__ */ React__default.createElement(SelectField, {
|
34180
|
-
label: "Operator",
|
34188
|
+
label: t("Operator"),
|
34181
34189
|
name: `${name2}.operator`,
|
34182
34190
|
options: options$b
|
34183
34191
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -34267,7 +34275,7 @@ function Section() {
|
|
34267
34275
|
defaultActiveKey: ["0", "1", "2"]
|
34268
34276
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34269
34277
|
name: "0",
|
34270
|
-
header: "Dimension"
|
34278
|
+
header: t("Dimension")
|
34271
34279
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
34272
34280
|
direction: "vertical"
|
34273
34281
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -34276,25 +34284,25 @@ function Section() {
|
|
34276
34284
|
style: { width: "100%", display: "flex" }
|
34277
34285
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
34278
34286
|
style: { flex: 1 }
|
34279
|
-
}, "Group")), /* @__PURE__ */ React__default.createElement(Switch$1, {
|
34287
|
+
}, t("Group"))), /* @__PURE__ */ React__default.createElement(Switch$1, {
|
34280
34288
|
checked: noWrap,
|
34281
|
-
checkedText: "True",
|
34282
|
-
uncheckedText: "False",
|
34289
|
+
checkedText: t("True"),
|
34290
|
+
uncheckedText: t("False"),
|
34283
34291
|
onChange
|
34284
34292
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34285
34293
|
span: 12
|
34286
34294
|
})), /* @__PURE__ */ React__default.createElement(Padding, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34287
34295
|
name: "1",
|
34288
|
-
header: "Background"
|
34296
|
+
header: t("Background")
|
34289
34297
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
34290
34298
|
vertical: true,
|
34291
34299
|
spacing: "tight"
|
34292
34300
|
}, /* @__PURE__ */ React__default.createElement(Background, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34293
34301
|
name: "2",
|
34294
|
-
header: "Border"
|
34302
|
+
header: t("Border")
|
34295
34303
|
}, /* @__PURE__ */ React__default.createElement(Border, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34296
34304
|
name: "4",
|
34297
|
-
header: "Extra"
|
34305
|
+
header: t("Extra")
|
34298
34306
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34299
34307
|
span: 24
|
34300
34308
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -34310,13 +34318,13 @@ function Width({
|
|
34310
34318
|
const parentType = (_a = getParentByIdx(values2, focusIdx2)) == null ? void 0 : _a.type;
|
34311
34319
|
const validate3 = useCallback((val) => {
|
34312
34320
|
if ((focusBlock2 == null ? void 0 : focusBlock2.type) === BasicType.COLUMN && parentType === BasicType.GROUP) {
|
34313
|
-
return /(\d)*%/.test(val) ? void 0 : "Column inside a group must have a width in percentage, not in pixel";
|
34321
|
+
return /(\d)*%/.test(val) ? void 0 : t("Column inside a group must have a width in percentage, not in pixel");
|
34314
34322
|
}
|
34315
34323
|
return void 0;
|
34316
34324
|
}, [focusBlock2 == null ? void 0 : focusBlock2.type, parentType]);
|
34317
34325
|
return /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
34318
34326
|
validate: validate3,
|
34319
|
-
label: "Width",
|
34327
|
+
label: t("Width"),
|
34320
34328
|
inline,
|
34321
34329
|
name: `${focusIdx2}.attributes.width`,
|
34322
34330
|
unitOptions,
|
@@ -34326,15 +34334,21 @@ function Width({
|
|
34326
34334
|
const options$a = [
|
34327
34335
|
{
|
34328
34336
|
value: "top",
|
34329
|
-
label
|
34337
|
+
get label() {
|
34338
|
+
return t("top");
|
34339
|
+
}
|
34330
34340
|
},
|
34331
34341
|
{
|
34332
34342
|
value: "middle",
|
34333
|
-
label
|
34343
|
+
get label() {
|
34344
|
+
return t("middle");
|
34345
|
+
}
|
34334
34346
|
},
|
34335
34347
|
{
|
34336
34348
|
value: "bottom",
|
34337
|
-
label
|
34349
|
+
get label() {
|
34350
|
+
return t("bottom");
|
34351
|
+
}
|
34338
34352
|
}
|
34339
34353
|
];
|
34340
34354
|
function VerticalAlign({
|
@@ -34344,146 +34358,45 @@ function VerticalAlign({
|
|
34344
34358
|
return useMemo(() => {
|
34345
34359
|
return /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(SelectField, {
|
34346
34360
|
style: { width: 120 },
|
34347
|
-
label: "Vertical align",
|
34361
|
+
label: t("Vertical align"),
|
34348
34362
|
name: `${focusIdx2}.attributes.${attributeName}`,
|
34349
34363
|
options: options$a
|
34350
34364
|
}));
|
34351
34365
|
}, [attributeName, focusIdx2]);
|
34352
34366
|
}
|
34353
|
-
function Column() {
|
34354
|
-
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
|
34355
|
-
defaultActiveKey: ["0", "1", "2"]
|
34356
|
-
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34357
|
-
name: "0",
|
34358
|
-
header: "Dimension"
|
34359
|
-
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
34360
|
-
direction: "vertical"
|
34361
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34362
|
-
span: 11
|
34363
|
-
}, /* @__PURE__ */ React__default.createElement(Width, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34364
|
-
offset: 1,
|
34365
|
-
span: 11
|
34366
|
-
}, /* @__PURE__ */ React__default.createElement(VerticalAlign, null))), /* @__PURE__ */ React__default.createElement(Padding, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34367
|
-
name: "1",
|
34368
|
-
header: "Background"
|
34369
|
-
}, /* @__PURE__ */ React__default.createElement(Background, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34370
|
-
name: "2",
|
34371
|
-
header: "Border"
|
34372
|
-
}, /* @__PURE__ */ React__default.createElement(Border, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34373
|
-
name: "4",
|
34374
|
-
header: "Extra"
|
34375
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34376
|
-
span: 24
|
34377
|
-
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
34378
|
-
}
|
34379
34367
|
const options$9 = [
|
34380
34368
|
{
|
34381
|
-
value: "",
|
34382
|
-
label
|
34383
|
-
|
34384
|
-
|
34385
|
-
value: "underline",
|
34386
|
-
label: "Underline"
|
34387
|
-
},
|
34388
|
-
{
|
34389
|
-
value: "overline",
|
34390
|
-
label: "Overline"
|
34391
|
-
},
|
34392
|
-
{
|
34393
|
-
value: "line-through",
|
34394
|
-
label: "Line through"
|
34395
|
-
},
|
34396
|
-
{
|
34397
|
-
value: "blink",
|
34398
|
-
label: "Blink"
|
34399
|
-
},
|
34400
|
-
{
|
34401
|
-
value: "inherit",
|
34402
|
-
label: "Inherit"
|
34403
|
-
}
|
34404
|
-
];
|
34405
|
-
function TextDecoration({ name: name2 }) {
|
34406
|
-
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34407
|
-
return useMemo(() => {
|
34408
|
-
return /* @__PURE__ */ React__default.createElement(SelectField, {
|
34409
|
-
label: "Text decoration",
|
34410
|
-
name: name2 || `${focusIdx2}.attributes.text-decoration`,
|
34411
|
-
options: options$9
|
34412
|
-
});
|
34413
|
-
}, [focusIdx2, name2]);
|
34414
|
-
}
|
34415
|
-
const options$8 = [
|
34416
|
-
{
|
34417
|
-
value: "normal",
|
34418
|
-
label: "Normal"
|
34419
|
-
},
|
34420
|
-
{
|
34421
|
-
value: "bold",
|
34422
|
-
label: "Bold"
|
34423
|
-
},
|
34424
|
-
{
|
34425
|
-
value: "100",
|
34426
|
-
label: "100"
|
34427
|
-
},
|
34428
|
-
{
|
34429
|
-
value: "200",
|
34430
|
-
label: "200"
|
34431
|
-
},
|
34432
|
-
{
|
34433
|
-
value: "300",
|
34434
|
-
label: "300"
|
34435
|
-
},
|
34436
|
-
{
|
34437
|
-
value: "400",
|
34438
|
-
label: "400"
|
34439
|
-
},
|
34440
|
-
{
|
34441
|
-
value: "500",
|
34442
|
-
label: "500"
|
34443
|
-
},
|
34444
|
-
{
|
34445
|
-
value: "600",
|
34446
|
-
label: "600"
|
34447
|
-
},
|
34448
|
-
{
|
34449
|
-
value: "700",
|
34450
|
-
label: "700"
|
34369
|
+
value: "left",
|
34370
|
+
get label() {
|
34371
|
+
return t("left");
|
34372
|
+
}
|
34451
34373
|
},
|
34452
34374
|
{
|
34453
|
-
value: "
|
34454
|
-
label
|
34375
|
+
value: "center",
|
34376
|
+
get label() {
|
34377
|
+
return t("center");
|
34378
|
+
}
|
34455
34379
|
},
|
34456
34380
|
{
|
34457
|
-
value: "
|
34458
|
-
label
|
34381
|
+
value: "right",
|
34382
|
+
get label() {
|
34383
|
+
return t("right");
|
34384
|
+
}
|
34459
34385
|
}
|
34460
34386
|
];
|
34461
|
-
function
|
34387
|
+
function Align({ inline }) {
|
34462
34388
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34463
|
-
return
|
34464
|
-
|
34465
|
-
|
34466
|
-
|
34467
|
-
|
34468
|
-
});
|
34469
|
-
}, [focusIdx2, name2]);
|
34389
|
+
return /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
34390
|
+
label: t("Align"),
|
34391
|
+
name: `${focusIdx2}.attributes.align`,
|
34392
|
+
options: options$9
|
34393
|
+
});
|
34470
34394
|
}
|
34471
|
-
|
34472
|
-
{
|
34473
|
-
value: "normal",
|
34474
|
-
label: "Normal"
|
34475
|
-
},
|
34476
|
-
{
|
34477
|
-
value: "italic",
|
34478
|
-
label: "Italic"
|
34479
|
-
}
|
34480
|
-
];
|
34481
|
-
function FontStyle({ name: name2 }) {
|
34395
|
+
function Color({ title: title2 = t("Color") }) {
|
34482
34396
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34483
|
-
return /* @__PURE__ */ React__default.createElement(
|
34484
|
-
label:
|
34485
|
-
name:
|
34486
|
-
options: options$7
|
34397
|
+
return /* @__PURE__ */ React__default.createElement(ColorPickerField, {
|
34398
|
+
label: title2,
|
34399
|
+
name: `${focusIdx2}.attributes.color`
|
34487
34400
|
});
|
34488
34401
|
}
|
34489
34402
|
function Height({
|
@@ -34497,7 +34410,7 @@ function Height({
|
|
34497
34410
|
}, /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
|
34498
34411
|
fill: true
|
34499
34412
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
34500
|
-
label: "Height",
|
34413
|
+
label: t("Height"),
|
34501
34414
|
name: `${focusIdx2}.attributes.height`,
|
34502
34415
|
quickchange: true,
|
34503
34416
|
inline,
|
@@ -34505,8 +34418,38 @@ function Height({
|
|
34505
34418
|
})));
|
34506
34419
|
}, [focusIdx2, inline]);
|
34507
34420
|
}
|
34421
|
+
const options$8 = [
|
34422
|
+
{
|
34423
|
+
value: "left",
|
34424
|
+
get label() {
|
34425
|
+
return t("Left");
|
34426
|
+
}
|
34427
|
+
},
|
34428
|
+
{
|
34429
|
+
value: "center",
|
34430
|
+
get label() {
|
34431
|
+
return t("Center");
|
34432
|
+
}
|
34433
|
+
},
|
34434
|
+
{
|
34435
|
+
value: "right",
|
34436
|
+
get label() {
|
34437
|
+
return t("Right");
|
34438
|
+
}
|
34439
|
+
}
|
34440
|
+
];
|
34441
|
+
function TextAlign({ name: name2 }) {
|
34442
|
+
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34443
|
+
return useMemo(() => {
|
34444
|
+
return /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
34445
|
+
label: t("Text align"),
|
34446
|
+
name: name2 || `${focusIdx2}.attributes.text-align`,
|
34447
|
+
options: options$8
|
34448
|
+
}));
|
34449
|
+
}, [focusIdx2, name2]);
|
34450
|
+
}
|
34508
34451
|
function ContainerBackgroundColor({
|
34509
|
-
title: title2 = "Container background color"
|
34452
|
+
title: title2 = t("Container background color")
|
34510
34453
|
}) {
|
34511
34454
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34512
34455
|
return useMemo(() => {
|
@@ -34516,228 +34459,157 @@ function ContainerBackgroundColor({
|
|
34516
34459
|
});
|
34517
34460
|
}, [focusIdx2, title2]);
|
34518
34461
|
}
|
34519
|
-
function
|
34520
|
-
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34521
|
-
return /* @__PURE__ */ React__default.createElement(NumberField, {
|
34522
|
-
label: "Font size (px)",
|
34523
|
-
name: `${focusIdx2}.attributes.font-size`,
|
34524
|
-
config: pixelAdapter,
|
34525
|
-
autoComplete: "off"
|
34526
|
-
});
|
34527
|
-
}
|
34528
|
-
function Color({ title: title2 = "Color" }) {
|
34462
|
+
function LetterSpacing({ name: name2 }) {
|
34529
34463
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34530
|
-
return /* @__PURE__ */ React__default.createElement(
|
34531
|
-
label:
|
34532
|
-
name: `${focusIdx2}.attributes.
|
34464
|
+
return /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
34465
|
+
label: t("Letter spacing"),
|
34466
|
+
name: name2 || `${focusIdx2}.attributes.letter-spacing`
|
34533
34467
|
});
|
34534
34468
|
}
|
34535
|
-
const options$
|
34469
|
+
const options$7 = [
|
34536
34470
|
{
|
34537
|
-
value: "
|
34471
|
+
value: "",
|
34538
34472
|
get label() {
|
34539
|
-
return t("
|
34473
|
+
return t("None");
|
34540
34474
|
}
|
34541
34475
|
},
|
34542
34476
|
{
|
34543
|
-
value: "
|
34477
|
+
value: "underline",
|
34544
34478
|
get label() {
|
34545
|
-
return t("
|
34479
|
+
return t("Underline");
|
34546
34480
|
}
|
34547
34481
|
},
|
34548
34482
|
{
|
34549
|
-
value: "
|
34483
|
+
value: "overline",
|
34550
34484
|
get label() {
|
34551
|
-
return t("
|
34485
|
+
return t("Overline");
|
34486
|
+
}
|
34487
|
+
},
|
34488
|
+
{
|
34489
|
+
value: "line-through",
|
34490
|
+
get label() {
|
34491
|
+
return t("Line through");
|
34492
|
+
}
|
34493
|
+
},
|
34494
|
+
{
|
34495
|
+
value: "blink",
|
34496
|
+
get label() {
|
34497
|
+
return t("Blink");
|
34498
|
+
}
|
34499
|
+
},
|
34500
|
+
{
|
34501
|
+
value: "inherit",
|
34502
|
+
get label() {
|
34503
|
+
return t("Inherit");
|
34552
34504
|
}
|
34553
34505
|
}
|
34554
34506
|
];
|
34555
|
-
function
|
34507
|
+
function TextDecoration({ name: name2 }) {
|
34556
34508
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34557
|
-
return
|
34558
|
-
|
34559
|
-
|
34560
|
-
|
34561
|
-
|
34509
|
+
return useMemo(() => {
|
34510
|
+
return /* @__PURE__ */ React__default.createElement(SelectField, {
|
34511
|
+
label: t("Text decoration"),
|
34512
|
+
name: name2 || `${focusIdx2}.attributes.text-decoration`,
|
34513
|
+
options: options$7
|
34514
|
+
});
|
34515
|
+
}, [focusIdx2, name2]);
|
34516
|
+
}
|
34517
|
+
function Decoration() {
|
34518
|
+
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34519
|
+
return useMemo(() => {
|
34520
|
+
return /* @__PURE__ */ React__default.createElement(Stack$4, {
|
34521
|
+
key: focusIdx2,
|
34522
|
+
vertical: true,
|
34523
|
+
spacing: "extraTight"
|
34524
|
+
}, /* @__PURE__ */ React__default.createElement(TextStyle, {
|
34525
|
+
variation: "strong",
|
34526
|
+
size: "large"
|
34527
|
+
}, "Decoration"), /* @__PURE__ */ React__default.createElement(TextField, {
|
34528
|
+
label: t("Border radius"),
|
34529
|
+
name: `${focusIdx2}.attributes.borderRadius`,
|
34530
|
+
inline: true
|
34531
|
+
}), /* @__PURE__ */ React__default.createElement(TextField, {
|
34532
|
+
label: t("Border"),
|
34533
|
+
name: `${focusIdx2}.attributes.border`,
|
34534
|
+
inline: true
|
34535
|
+
}), /* @__PURE__ */ React__default.createElement(NumberField, {
|
34536
|
+
label: t("Opacity"),
|
34537
|
+
max: 1,
|
34538
|
+
min: 0,
|
34539
|
+
step: 0.1,
|
34540
|
+
name: `${focusIdx2}.attributes.opacity`,
|
34541
|
+
inline: true
|
34542
|
+
}));
|
34543
|
+
}, [focusIdx2]);
|
34562
34544
|
}
|
34563
34545
|
function LineHeight({ name: name2 }) {
|
34564
34546
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34565
34547
|
return /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
34566
|
-
label: "Line height",
|
34548
|
+
label: t("Line height"),
|
34567
34549
|
unitOptions: "percent",
|
34568
34550
|
name: name2 || `${focusIdx2}.attributes.line-height`
|
34569
34551
|
});
|
34570
34552
|
}
|
34571
|
-
|
34572
|
-
|
34573
|
-
|
34574
|
-
label
|
34575
|
-
|
34576
|
-
});
|
34577
|
-
}
|
34578
|
-
const ShadowDom = (props) => {
|
34579
|
-
const [root2, setRoot] = useState(null);
|
34580
|
-
const [ref, setRef] = useState(null);
|
34581
|
-
useEffect(() => {
|
34582
|
-
if (ref) {
|
34583
|
-
const root22 = ref.attachShadow({ mode: "open" });
|
34584
|
-
setRoot(root22);
|
34553
|
+
const options$6 = [
|
34554
|
+
{
|
34555
|
+
value: "initial",
|
34556
|
+
get label() {
|
34557
|
+
return t("None");
|
34585
34558
|
}
|
34586
|
-
},
|
34587
|
-
|
34588
|
-
|
34589
|
-
|
34590
|
-
|
34591
|
-
|
34592
|
-
|
34593
|
-
|
34594
|
-
|
34595
|
-
|
34596
|
-
|
34559
|
+
},
|
34560
|
+
{
|
34561
|
+
value: "uppercase",
|
34562
|
+
get label() {
|
34563
|
+
return t("uppercase");
|
34564
|
+
}
|
34565
|
+
},
|
34566
|
+
{
|
34567
|
+
value: "lowercase",
|
34568
|
+
get label() {
|
34569
|
+
return t("lowercase");
|
34570
|
+
}
|
34571
|
+
},
|
34572
|
+
{
|
34573
|
+
value: "capitalize",
|
34574
|
+
get label() {
|
34575
|
+
return t("capitalize");
|
34576
|
+
}
|
34577
|
+
}
|
34578
|
+
];
|
34579
|
+
function TextTransform({ name: name2 }) {
|
34597
34580
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34598
|
-
|
34599
|
-
|
34600
|
-
|
34601
|
-
|
34602
|
-
|
34603
|
-
|
34604
|
-
|
34605
|
-
|
34606
|
-
|
34607
|
-
|
34608
|
-
|
34609
|
-
|
34610
|
-
|
34611
|
-
|
34612
|
-
}
|
34613
|
-
|
34614
|
-
|
34615
|
-
|
34616
|
-
|
34617
|
-
|
34618
|
-
|
34619
|
-
|
34620
|
-
|
34621
|
-
|
34622
|
-
|
34623
|
-
|
34624
|
-
|
34625
|
-
|
34626
|
-
|
34627
|
-
|
34628
|
-
|
34629
|
-
|
34630
|
-
distribution: "equalSpacing"
|
34631
|
-
}, /* @__PURE__ */ React__default.createElement(TextStyle, {
|
34632
|
-
variation: "strong",
|
34633
|
-
size: "large"
|
34634
|
-
}, "Html"), /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(Button$4, {
|
34635
|
-
type: "primary",
|
34636
|
-
onClick: onSave
|
34637
|
-
}, "Save"))),
|
34638
|
-
closable: false,
|
34639
|
-
escToExit: false,
|
34640
|
-
width: "100vw",
|
34641
|
-
visible,
|
34642
|
-
footer: null,
|
34643
|
-
bodyStyle: { padding: 0, overflow: "hidden" }
|
34644
|
-
}, /* @__PURE__ */ React__default.createElement("div", {
|
34645
|
-
style: { display: "flex", height: "100%" }
|
34646
|
-
}, /* @__PURE__ */ React__default.createElement("div", {
|
34647
|
-
style: { flex: 1, height: "100%" }
|
34648
|
-
}, /* @__PURE__ */ React__default.createElement(Suspense, {
|
34649
|
-
fallback: /* @__PURE__ */ React__default.createElement("div", {
|
34650
|
-
style: {
|
34651
|
-
height: "100%",
|
34652
|
-
width: "100%",
|
34653
|
-
display: "flex",
|
34654
|
-
alignItems: "center",
|
34655
|
-
backgroundColor: "#263238",
|
34656
|
-
justifyContent: "center",
|
34657
|
-
fontSize: 24,
|
34658
|
-
color: "#fff"
|
34659
|
-
}
|
34660
|
-
}, "Editor Loading...")
|
34661
|
-
}, /* @__PURE__ */ React__default.createElement(CodeMirrorEditor, {
|
34662
|
-
value: content,
|
34663
|
-
onChange: setContent
|
34664
|
-
}))), /* @__PURE__ */ React__default.createElement("div", {
|
34665
|
-
style: { flex: 1, height: "100%", overflow: "auto", marginRight: 10 }
|
34666
|
-
}, /* @__PURE__ */ React__default.createElement(ShadowDom, {
|
34667
|
-
style: __spreadProps(__spreadValues({}, styles2), {
|
34668
|
-
width: pageData2.attributes.width || "600px",
|
34669
|
-
margin: "auto"
|
34670
|
-
})
|
34671
|
-
}, isTable ? /* @__PURE__ */ React__default.createElement("table", null, /* @__PURE__ */ React__default.createElement("tbody", {
|
34672
|
-
dangerouslySetInnerHTML: { __html: content }
|
34673
|
-
})) : /* @__PURE__ */ React__default.createElement("div", {
|
34674
|
-
dangerouslySetInnerHTML: { __html: content }
|
34675
|
-
})))));
|
34676
|
-
};
|
34677
|
-
function Text() {
|
34678
|
-
const [visible, setVisible] = useState(false);
|
34679
|
-
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, {
|
34680
|
-
extra: /* @__PURE__ */ React__default.createElement(Tooltip$1, {
|
34681
|
-
content: "Html mode"
|
34682
|
-
}, /* @__PURE__ */ React__default.createElement(Button$4, {
|
34683
|
-
onClick: () => setVisible(true),
|
34684
|
-
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
34685
|
-
iconName: "icon-html"
|
34686
|
-
})
|
34687
|
-
}))
|
34688
|
-
}, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
|
34689
|
-
defaultActiveKey: ["0", "1", "2"]
|
34690
|
-
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34691
|
-
name: "0",
|
34692
|
-
header: "Dimension"
|
34693
|
-
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
34694
|
-
direction: "vertical"
|
34695
|
-
}, /* @__PURE__ */ React__default.createElement(Height, null), /* @__PURE__ */ React__default.createElement(Padding, {
|
34696
|
-
showResetAll: true
|
34697
|
-
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34698
|
-
name: "1",
|
34699
|
-
header: "Color"
|
34700
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34701
|
-
span: 11
|
34702
|
-
}, /* @__PURE__ */ React__default.createElement(Color, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34703
|
-
offset: 1,
|
34704
|
-
span: 11
|
34705
|
-
}, /* @__PURE__ */ React__default.createElement(ContainerBackgroundColor, {
|
34706
|
-
title: "Background color"
|
34707
|
-
})))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34708
|
-
name: "2",
|
34709
|
-
header: "Typography"
|
34710
|
-
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
34711
|
-
direction: "vertical"
|
34712
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34713
|
-
span: 11
|
34714
|
-
}, /* @__PURE__ */ React__default.createElement(FontFamily, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34715
|
-
offset: 1,
|
34716
|
-
span: 11
|
34717
|
-
}, /* @__PURE__ */ React__default.createElement(FontSize$1, null))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34718
|
-
span: 11
|
34719
|
-
}, /* @__PURE__ */ React__default.createElement(LineHeight, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34720
|
-
offset: 1,
|
34721
|
-
span: 11
|
34722
|
-
}, /* @__PURE__ */ React__default.createElement(LetterSpacing, null))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34723
|
-
span: 11
|
34724
|
-
}, /* @__PURE__ */ React__default.createElement(TextDecoration, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34725
|
-
offset: 1,
|
34726
|
-
span: 11
|
34727
|
-
}, /* @__PURE__ */ React__default.createElement(FontWeight, null))), /* @__PURE__ */ React__default.createElement(Align, null), /* @__PURE__ */ React__default.createElement(FontStyle, null), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34728
|
-
span: 11
|
34729
|
-
}), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34730
|
-
offset: 1,
|
34731
|
-
span: 11
|
34732
|
-
})))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34733
|
-
name: "4",
|
34734
|
-
header: "Extra"
|
34735
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34736
|
-
span: 24
|
34737
|
-
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))), /* @__PURE__ */ React__default.createElement(HtmlEditor, {
|
34738
|
-
visible,
|
34739
|
-
setVisible
|
34740
|
-
}));
|
34581
|
+
return useMemo(() => {
|
34582
|
+
return /* @__PURE__ */ React__default.createElement(SelectField, {
|
34583
|
+
label: t("Text transform"),
|
34584
|
+
name: name2 || `${focusIdx2}.attributes.text-transform`,
|
34585
|
+
options: options$6
|
34586
|
+
});
|
34587
|
+
}, [focusIdx2, name2]);
|
34588
|
+
}
|
34589
|
+
const options$5 = [
|
34590
|
+
{
|
34591
|
+
value: "ltr",
|
34592
|
+
get label() {
|
34593
|
+
return t("ltr");
|
34594
|
+
}
|
34595
|
+
},
|
34596
|
+
{
|
34597
|
+
value: "rtl",
|
34598
|
+
get label() {
|
34599
|
+
return t("rtl");
|
34600
|
+
}
|
34601
|
+
}
|
34602
|
+
];
|
34603
|
+
function Direction() {
|
34604
|
+
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34605
|
+
return useMemo(() => {
|
34606
|
+
return /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
34607
|
+
label: t("Direction"),
|
34608
|
+
name: `${focusIdx2}.attributes.direction`,
|
34609
|
+
options: options$5,
|
34610
|
+
inline: true
|
34611
|
+
}));
|
34612
|
+
}, [focusIdx2]);
|
34741
34613
|
}
|
34742
34614
|
function Link() {
|
34743
34615
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
@@ -34746,226 +34618,28 @@ function Link() {
|
|
34746
34618
|
span: 11
|
34747
34619
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
34748
34620
|
prefix: /* @__PURE__ */ React__default.createElement(IconLink$1, null),
|
34749
|
-
label: /* @__PURE__ */ React__default.createElement("span", null, "Href\xA0\xA0\xA0"),
|
34621
|
+
label: /* @__PURE__ */ React__default.createElement("span", null, t("Href"), "\xA0\xA0\xA0"),
|
34750
34622
|
name: `${focusIdx2}.attributes.href`
|
34751
34623
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34752
34624
|
offset: 1,
|
34753
34625
|
span: 11
|
34754
34626
|
}, /* @__PURE__ */ React__default.createElement(SelectField, {
|
34755
|
-
label: "Target",
|
34627
|
+
label: t("Target"),
|
34756
34628
|
name: `${focusIdx2}.attributes.target`,
|
34757
34629
|
options: [
|
34758
34630
|
{
|
34759
34631
|
value: "",
|
34760
|
-
label: "_self"
|
34632
|
+
label: t("_self")
|
34761
34633
|
},
|
34762
34634
|
{
|
34763
34635
|
value: "_blank",
|
34764
|
-
label: "_blank"
|
34636
|
+
label: t("_blank")
|
34765
34637
|
}
|
34766
34638
|
]
|
34767
34639
|
})));
|
34768
34640
|
}, [focusIdx2]);
|
34769
34641
|
}
|
34770
|
-
function
|
34771
|
-
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34772
|
-
const { onUploadImage } = useEditorProps();
|
34773
|
-
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, {
|
34774
|
-
style: { padding: 0 }
|
34775
|
-
}, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
|
34776
|
-
defaultActiveKey: ["0", "1", "2", "3", "4"]
|
34777
|
-
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34778
|
-
name: "1",
|
34779
|
-
header: "Setting"
|
34780
|
-
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
34781
|
-
vertical: true,
|
34782
|
-
spacing: "tight"
|
34783
|
-
}, /* @__PURE__ */ React__default.createElement(ImageUploaderField, {
|
34784
|
-
label: "src",
|
34785
|
-
labelHidden: true,
|
34786
|
-
name: `${focusIdx2}.attributes.src`,
|
34787
|
-
helpText: "The image suffix should be .jpg, jpeg, png, gif, etc. Otherwise, the picture may not be displayed normally.",
|
34788
|
-
uploadHandler: onUploadImage
|
34789
|
-
}), /* @__PURE__ */ React__default.createElement(ColorPickerField, {
|
34790
|
-
label: "Background color",
|
34791
|
-
name: `${focusIdx2}.attributes.container-background-color`,
|
34792
|
-
inline: true
|
34793
|
-
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34794
|
-
name: "0",
|
34795
|
-
header: "Dimension"
|
34796
|
-
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
34797
|
-
direction: "vertical"
|
34798
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34799
|
-
span: 11
|
34800
|
-
}, /* @__PURE__ */ React__default.createElement(Width, {
|
34801
|
-
config: pixelAdapter
|
34802
|
-
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34803
|
-
offset: 1,
|
34804
|
-
span: 11
|
34805
|
-
}, /* @__PURE__ */ React__default.createElement(Height, {
|
34806
|
-
config: imageHeightAdapter
|
34807
|
-
}))), /* @__PURE__ */ React__default.createElement(Padding, {
|
34808
|
-
showResetAll: true
|
34809
|
-
}), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34810
|
-
span: 24
|
34811
|
-
}, /* @__PURE__ */ React__default.createElement(Align, null))))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34812
|
-
name: "2",
|
34813
|
-
header: "Link"
|
34814
|
-
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
34815
|
-
vertical: true,
|
34816
|
-
spacing: "tight"
|
34817
|
-
}, /* @__PURE__ */ React__default.createElement(Link, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34818
|
-
name: "3",
|
34819
|
-
header: "Border"
|
34820
|
-
}, /* @__PURE__ */ React__default.createElement(Border, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34821
|
-
name: "4",
|
34822
|
-
header: "Extra"
|
34823
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34824
|
-
span: 11
|
34825
|
-
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
34826
|
-
label: "title",
|
34827
|
-
name: `${focusIdx2}.attributes.title`
|
34828
|
-
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34829
|
-
offset: 1,
|
34830
|
-
span: 11
|
34831
|
-
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
34832
|
-
label: "alt",
|
34833
|
-
name: `${focusIdx2}.attributes.alt`
|
34834
|
-
}))), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34835
|
-
span: 24
|
34836
|
-
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
34837
|
-
label: "class name",
|
34838
|
-
name: `${focusIdx2}.attributes.css-class`
|
34839
|
-
})))));
|
34840
|
-
}
|
34841
|
-
function Group() {
|
34842
|
-
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
|
34843
|
-
defaultActiveKey: ["0", "1", "2"]
|
34844
|
-
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34845
|
-
name: "0",
|
34846
|
-
header: "Dimension"
|
34847
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34848
|
-
span: 11
|
34849
|
-
}, /* @__PURE__ */ React__default.createElement(Width, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34850
|
-
offset: 1,
|
34851
|
-
span: 11
|
34852
|
-
}, /* @__PURE__ */ React__default.createElement(VerticalAlign, null)))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34853
|
-
name: "1",
|
34854
|
-
header: "Background"
|
34855
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34856
|
-
span: 11
|
34857
|
-
}, /* @__PURE__ */ React__default.createElement(BackgroundColor, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34858
|
-
offset: 1,
|
34859
|
-
span: 11
|
34860
|
-
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34861
|
-
name: "4",
|
34862
|
-
header: "Extra"
|
34863
|
-
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34864
|
-
span: 24
|
34865
|
-
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
34866
|
-
}
|
34867
|
-
const options$5 = [
|
34868
|
-
{
|
34869
|
-
value: "left",
|
34870
|
-
label: "Left"
|
34871
|
-
},
|
34872
|
-
{
|
34873
|
-
value: "center",
|
34874
|
-
label: "Center"
|
34875
|
-
},
|
34876
|
-
{
|
34877
|
-
value: "right",
|
34878
|
-
label: "Right"
|
34879
|
-
}
|
34880
|
-
];
|
34881
|
-
function TextAlign({ name: name2 }) {
|
34882
|
-
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34883
|
-
return useMemo(() => {
|
34884
|
-
return /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
34885
|
-
label: t("Text align"),
|
34886
|
-
name: name2 || `${focusIdx2}.attributes.text-align`,
|
34887
|
-
options: options$5
|
34888
|
-
}));
|
34889
|
-
}, [focusIdx2, name2]);
|
34890
|
-
}
|
34891
|
-
function Decoration() {
|
34892
|
-
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34893
|
-
return useMemo(() => {
|
34894
|
-
return /* @__PURE__ */ React__default.createElement(Stack$4, {
|
34895
|
-
key: focusIdx2,
|
34896
|
-
vertical: true,
|
34897
|
-
spacing: "extraTight"
|
34898
|
-
}, /* @__PURE__ */ React__default.createElement(TextStyle, {
|
34899
|
-
variation: "strong",
|
34900
|
-
size: "large"
|
34901
|
-
}, "Decoration"), /* @__PURE__ */ React__default.createElement(TextField, {
|
34902
|
-
label: "Border radius",
|
34903
|
-
name: `${focusIdx2}.attributes.borderRadius`,
|
34904
|
-
inline: true
|
34905
|
-
}), /* @__PURE__ */ React__default.createElement(TextField, {
|
34906
|
-
label: "Border",
|
34907
|
-
name: `${focusIdx2}.attributes.border`,
|
34908
|
-
inline: true
|
34909
|
-
}), /* @__PURE__ */ React__default.createElement(NumberField, {
|
34910
|
-
label: "Opacity",
|
34911
|
-
max: 1,
|
34912
|
-
min: 0,
|
34913
|
-
step: 0.1,
|
34914
|
-
name: `${focusIdx2}.attributes.opacity`,
|
34915
|
-
inline: true
|
34916
|
-
}));
|
34917
|
-
}, [focusIdx2]);
|
34918
|
-
}
|
34919
|
-
const options$4 = [
|
34920
|
-
{
|
34921
|
-
value: "initial",
|
34922
|
-
label: "none"
|
34923
|
-
},
|
34924
|
-
{
|
34925
|
-
value: "uppercase",
|
34926
|
-
label: "uppercase"
|
34927
|
-
},
|
34928
|
-
{
|
34929
|
-
value: "lowercase",
|
34930
|
-
label: "lowercase"
|
34931
|
-
},
|
34932
|
-
{
|
34933
|
-
value: "capitalize",
|
34934
|
-
label: "capitalize"
|
34935
|
-
}
|
34936
|
-
];
|
34937
|
-
function TextTransform({ name: name2 }) {
|
34938
|
-
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34939
|
-
return useMemo(() => {
|
34940
|
-
return /* @__PURE__ */ React__default.createElement(SelectField, {
|
34941
|
-
label: "Text transform",
|
34942
|
-
name: name2 || `${focusIdx2}.attributes.text-transform`,
|
34943
|
-
options: options$4
|
34944
|
-
});
|
34945
|
-
}, [focusIdx2, name2]);
|
34946
|
-
}
|
34947
|
-
const options$3 = [
|
34948
|
-
{
|
34949
|
-
value: "ltr",
|
34950
|
-
label: "ltr"
|
34951
|
-
},
|
34952
|
-
{
|
34953
|
-
value: "rtl",
|
34954
|
-
label: "rtl"
|
34955
|
-
}
|
34956
|
-
];
|
34957
|
-
function Direction() {
|
34958
|
-
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34959
|
-
return useMemo(() => {
|
34960
|
-
return /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
34961
|
-
label: "Direction",
|
34962
|
-
name: `${focusIdx2}.attributes.direction`,
|
34963
|
-
options: options$3,
|
34964
|
-
inline: true
|
34965
|
-
}));
|
34966
|
-
}, [focusIdx2]);
|
34967
|
-
}
|
34968
|
-
function Margin() {
|
34642
|
+
function Margin() {
|
34969
34643
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34970
34644
|
return useMemo(() => {
|
34971
34645
|
return /* @__PURE__ */ React__default.createElement(Stack$4, {
|
@@ -34973,19 +34647,19 @@ function Margin() {
|
|
34973
34647
|
spacing: "extraTight"
|
34974
34648
|
}, /* @__PURE__ */ React__default.createElement(TextStyle, {
|
34975
34649
|
size: "large"
|
34976
|
-
}, "Margin"), /* @__PURE__ */ React__default.createElement(Stack$4, {
|
34650
|
+
}, t("Margin")), /* @__PURE__ */ React__default.createElement(Stack$4, {
|
34977
34651
|
wrap: false
|
34978
34652
|
}, /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
|
34979
34653
|
fill: true
|
34980
34654
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
34981
|
-
label: "Top",
|
34655
|
+
label: t("Top"),
|
34982
34656
|
quickchange: true,
|
34983
34657
|
name: `${focusIdx2}.attributes.marginTop`,
|
34984
34658
|
inline: true
|
34985
34659
|
})), /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
|
34986
34660
|
fill: true
|
34987
34661
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
34988
|
-
label: "Bottom",
|
34662
|
+
label: t("Bottom"),
|
34989
34663
|
quickchange: true,
|
34990
34664
|
name: `${focusIdx2}.attributes.marginBottom`,
|
34991
34665
|
inline: true
|
@@ -34994,14 +34668,14 @@ function Margin() {
|
|
34994
34668
|
}, /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
|
34995
34669
|
fill: true
|
34996
34670
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
34997
|
-
label: "Left",
|
34671
|
+
label: t("Left"),
|
34998
34672
|
quickchange: true,
|
34999
34673
|
name: `${focusIdx2}.attributes.marginLeft`,
|
35000
34674
|
inline: true
|
35001
34675
|
})), /* @__PURE__ */ React__default.createElement(Stack$4.Item, {
|
35002
34676
|
fill: true
|
35003
34677
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35004
|
-
label: "Right",
|
34678
|
+
label: t("Right"),
|
35005
34679
|
quickchange: true,
|
35006
34680
|
name: `${focusIdx2}.attributes.marginRight`,
|
35007
34681
|
inline: true
|
@@ -35012,11 +34686,20 @@ function BorderColor() {
|
|
35012
34686
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
35013
34687
|
return useMemo(() => {
|
35014
34688
|
return /* @__PURE__ */ React__default.createElement(ColorPickerField, {
|
35015
|
-
label: "Color",
|
34689
|
+
label: t("Color"),
|
35016
34690
|
name: `${focusIdx2}.attributes.border-color`
|
35017
34691
|
});
|
35018
34692
|
}, [focusIdx2]);
|
35019
34693
|
}
|
34694
|
+
function FontSize$1() {
|
34695
|
+
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34696
|
+
return /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
34697
|
+
label: t("Font size (px)"),
|
34698
|
+
name: `${focusIdx2}.attributes.font-size`,
|
34699
|
+
config: pixelAdapter,
|
34700
|
+
autoComplete: "off"
|
34701
|
+
});
|
34702
|
+
}
|
35020
34703
|
function getContextMergeTags(mergeTags2, context, idx) {
|
35021
34704
|
const loop = (currentIdx, combineMergeTags) => {
|
35022
34705
|
var _a, _b;
|
@@ -35112,7 +34795,7 @@ const MergeTags$1 = React__default.memo((props) => {
|
|
35112
34795
|
value: props.value,
|
35113
34796
|
size: "small",
|
35114
34797
|
dropdownMenuStyle: { maxHeight: 400, overflow: "auto" },
|
35115
|
-
placeholder: "Please select",
|
34798
|
+
placeholder: t("Please select"),
|
35116
34799
|
treeData: treeOptions,
|
35117
34800
|
onChange: (val) => onSelect(val)
|
35118
34801
|
}) : /* @__PURE__ */ React__default.createElement(Tree$1, {
|
@@ -35126,70 +34809,455 @@ const MergeTags$1 = React__default.memo((props) => {
|
|
35126
34809
|
overflow: "auto"
|
35127
34810
|
}
|
35128
34811
|
}));
|
35129
|
-
});
|
35130
|
-
const borderStyleOptions = [
|
35131
|
-
{
|
35132
|
-
value: "dashed",
|
35133
|
-
label
|
35134
|
-
|
35135
|
-
|
35136
|
-
|
35137
|
-
|
35138
|
-
|
35139
|
-
|
35140
|
-
|
35141
|
-
|
35142
|
-
},
|
35143
|
-
{
|
35144
|
-
value: "
|
35145
|
-
label
|
35146
|
-
|
35147
|
-
|
35148
|
-
|
35149
|
-
|
35150
|
-
|
35151
|
-
|
35152
|
-
|
35153
|
-
|
35154
|
-
},
|
35155
|
-
{
|
35156
|
-
value: "
|
35157
|
-
label
|
35158
|
-
|
35159
|
-
|
35160
|
-
|
35161
|
-
|
35162
|
-
|
35163
|
-
|
35164
|
-
|
35165
|
-
|
35166
|
-
|
35167
|
-
|
35168
|
-
|
35169
|
-
|
35170
|
-
|
35171
|
-
}
|
35172
|
-
},
|
35173
|
-
|
35174
|
-
|
35175
|
-
|
35176
|
-
|
35177
|
-
|
35178
|
-
|
35179
|
-
|
35180
|
-
|
35181
|
-
|
35182
|
-
|
34812
|
+
});
|
34813
|
+
const borderStyleOptions = [
|
34814
|
+
{
|
34815
|
+
value: "dashed",
|
34816
|
+
get label() {
|
34817
|
+
return t("Dashed");
|
34818
|
+
}
|
34819
|
+
},
|
34820
|
+
{
|
34821
|
+
value: "dotted",
|
34822
|
+
get label() {
|
34823
|
+
return t("Dotted");
|
34824
|
+
}
|
34825
|
+
},
|
34826
|
+
{
|
34827
|
+
value: "solid",
|
34828
|
+
get label() {
|
34829
|
+
return t("Solid");
|
34830
|
+
}
|
34831
|
+
},
|
34832
|
+
{
|
34833
|
+
value: "double",
|
34834
|
+
get label() {
|
34835
|
+
return t("double");
|
34836
|
+
}
|
34837
|
+
},
|
34838
|
+
{
|
34839
|
+
value: "ridge",
|
34840
|
+
get label() {
|
34841
|
+
return t("ridge");
|
34842
|
+
}
|
34843
|
+
},
|
34844
|
+
{
|
34845
|
+
value: "groove",
|
34846
|
+
get label() {
|
34847
|
+
return t("groove");
|
34848
|
+
}
|
34849
|
+
},
|
34850
|
+
{
|
34851
|
+
value: "inset",
|
34852
|
+
get label() {
|
34853
|
+
return t("inset");
|
34854
|
+
}
|
34855
|
+
},
|
34856
|
+
{
|
34857
|
+
value: "outset",
|
34858
|
+
get label() {
|
34859
|
+
return t("outset");
|
34860
|
+
}
|
34861
|
+
}
|
34862
|
+
];
|
34863
|
+
function BorderStyle() {
|
34864
|
+
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34865
|
+
return useMemo(() => {
|
34866
|
+
return /* @__PURE__ */ React__default.createElement(SelectField, {
|
34867
|
+
label: t("Style"),
|
34868
|
+
name: `${focusIdx2}.attributes.border-style`,
|
34869
|
+
options: borderStyleOptions
|
34870
|
+
});
|
34871
|
+
}, [focusIdx2]);
|
34872
|
+
}
|
34873
|
+
const options$4 = [
|
34874
|
+
{
|
34875
|
+
value: "normal",
|
34876
|
+
get label() {
|
34877
|
+
return t("Normal");
|
34878
|
+
}
|
34879
|
+
},
|
34880
|
+
{
|
34881
|
+
value: "italic",
|
34882
|
+
get label() {
|
34883
|
+
return t("Italic");
|
34884
|
+
}
|
34885
|
+
}
|
34886
|
+
];
|
34887
|
+
function FontStyle({ name: name2 }) {
|
34888
|
+
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34889
|
+
return /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
34890
|
+
label: t("Font style"),
|
34891
|
+
name: name2 || `${focusIdx2}.attributes.font-style`,
|
34892
|
+
options: options$4
|
34893
|
+
});
|
34894
|
+
}
|
34895
|
+
function NavbarLinkPadding({ name: name2 }) {
|
34896
|
+
return useMemo(() => {
|
34897
|
+
return /* @__PURE__ */ React__default.createElement(Stack$4, {
|
34898
|
+
vertical: true,
|
34899
|
+
spacing: "extraTight"
|
34900
|
+
}, /* @__PURE__ */ React__default.createElement(Padding, {
|
34901
|
+
name: name2
|
34902
|
+
}));
|
34903
|
+
}, [name2]);
|
34904
|
+
}
|
34905
|
+
function BorderWidth() {
|
34906
|
+
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34907
|
+
return useMemo(() => {
|
34908
|
+
return /* @__PURE__ */ React__default.createElement(TextField, {
|
34909
|
+
label: t("Width"),
|
34910
|
+
quickchange: true,
|
34911
|
+
name: `${focusIdx2}.attributes.border-width`
|
34912
|
+
});
|
34913
|
+
}, [focusIdx2]);
|
34914
|
+
}
|
34915
|
+
const options$3 = [
|
34916
|
+
{
|
34917
|
+
value: "normal",
|
34918
|
+
get label() {
|
34919
|
+
return t("Normal");
|
34920
|
+
}
|
34921
|
+
},
|
34922
|
+
{
|
34923
|
+
value: "bold",
|
34924
|
+
get label() {
|
34925
|
+
return t("Bold");
|
34926
|
+
}
|
34927
|
+
},
|
34928
|
+
{
|
34929
|
+
value: "100",
|
34930
|
+
label: "100"
|
34931
|
+
},
|
34932
|
+
{
|
34933
|
+
value: "200",
|
34934
|
+
label: "200"
|
34935
|
+
},
|
34936
|
+
{
|
34937
|
+
value: "300",
|
34938
|
+
label: "300"
|
34939
|
+
},
|
34940
|
+
{
|
34941
|
+
value: "400",
|
34942
|
+
label: "400"
|
34943
|
+
},
|
34944
|
+
{
|
34945
|
+
value: "500",
|
34946
|
+
label: "500"
|
34947
|
+
},
|
34948
|
+
{
|
34949
|
+
value: "600",
|
34950
|
+
label: "600"
|
34951
|
+
},
|
34952
|
+
{
|
34953
|
+
value: "700",
|
34954
|
+
label: "700"
|
34955
|
+
},
|
34956
|
+
{
|
34957
|
+
value: "800",
|
34958
|
+
label: "800"
|
34959
|
+
},
|
34960
|
+
{
|
34961
|
+
value: "900",
|
34962
|
+
label: "900"
|
34963
|
+
}
|
34964
|
+
];
|
34965
|
+
function FontWeight({ name: name2 }) {
|
34966
|
+
const { focusIdx: focusIdx2 } = useFocusIdx();
|
34967
|
+
return useMemo(() => {
|
34968
|
+
return /* @__PURE__ */ React__default.createElement(SelectField, {
|
34969
|
+
label: t("Font weight"),
|
34970
|
+
name: name2 || `${focusIdx2}.attributes.font-weight`,
|
34971
|
+
options: options$3
|
34972
|
+
});
|
34973
|
+
}, [focusIdx2, name2]);
|
34974
|
+
}
|
34975
|
+
function Column() {
|
34976
|
+
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
|
34977
|
+
defaultActiveKey: ["0", "1", "2"]
|
34978
|
+
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34979
|
+
name: "0",
|
34980
|
+
header: t("Dimension")
|
34981
|
+
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
34982
|
+
direction: "vertical"
|
34983
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34984
|
+
span: 11
|
34985
|
+
}, /* @__PURE__ */ React__default.createElement(Width, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34986
|
+
offset: 1,
|
34987
|
+
span: 11
|
34988
|
+
}, /* @__PURE__ */ React__default.createElement(VerticalAlign, null))), /* @__PURE__ */ React__default.createElement(Padding, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34989
|
+
name: "1",
|
34990
|
+
header: t("Background")
|
34991
|
+
}, /* @__PURE__ */ React__default.createElement(BackgroundColor, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34992
|
+
name: "2",
|
34993
|
+
header: t("Border")
|
34994
|
+
}, /* @__PURE__ */ React__default.createElement(Border, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
34995
|
+
name: "4",
|
34996
|
+
header: t("Extra")
|
34997
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
34998
|
+
span: 24
|
34999
|
+
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
35000
|
+
}
|
35001
|
+
const ShadowDom = (props) => {
|
35002
|
+
const [root2, setRoot] = useState(null);
|
35003
|
+
const [ref, setRef] = useState(null);
|
35004
|
+
useEffect(() => {
|
35005
|
+
if (ref) {
|
35006
|
+
const root22 = ref.attachShadow({ mode: "open" });
|
35007
|
+
setRoot(root22);
|
35008
|
+
}
|
35009
|
+
}, [ref]);
|
35010
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues({}, props), {
|
35011
|
+
ref: setRef
|
35012
|
+
}), root2 && ReactDOM.createPortal(props.children, root2)));
|
35013
|
+
};
|
35014
|
+
const CodeMirrorEditorPromise = import("./index3.js");
|
35015
|
+
const CodeMirrorEditor = React__default.lazy(() => CodeMirrorEditorPromise);
|
35016
|
+
const HtmlEditor = (props) => {
|
35017
|
+
const { visible, setVisible } = props;
|
35018
|
+
const { focusBlock: focusBlock2, setValueByIdx: setValueByIdx2 } = useBlock();
|
35019
|
+
const { pageData: pageData2 } = useEditorContext();
|
35020
|
+
const { focusIdx: focusIdx2 } = useFocusIdx();
|
35021
|
+
const [content, setContent] = useState(focusBlock2 == null ? void 0 : focusBlock2.data.value.content);
|
35022
|
+
const isTable = (focusBlock2 == null ? void 0 : focusBlock2.type) === BasicType.TABLE;
|
35023
|
+
useEffect(() => {
|
35024
|
+
setContent(focusBlock2 == null ? void 0 : focusBlock2.data.value.content);
|
35025
|
+
}, [focusBlock2 == null ? void 0 : focusBlock2.data.value.content]);
|
35026
|
+
const onClose = () => {
|
35027
|
+
setVisible(false);
|
35028
|
+
};
|
35029
|
+
const onSave = () => {
|
35030
|
+
if (!focusBlock2)
|
35031
|
+
return;
|
35032
|
+
focusBlock2.data.value.content = content;
|
35033
|
+
setValueByIdx2(focusIdx2, __spreadValues({}, focusBlock2));
|
35034
|
+
onClose();
|
35035
|
+
};
|
35036
|
+
const styles2 = useMemo(() => {
|
35037
|
+
if (!focusBlock2)
|
35038
|
+
return {};
|
35039
|
+
const attributes = focusBlock2.attributes;
|
35040
|
+
return {
|
35041
|
+
color: attributes.color || pageData2.data.value["text-color"],
|
35042
|
+
fontSize: attributes["font-size"] || pageData2.data.value["font-size"],
|
35043
|
+
fontFamily: attributes["font-family"] || pageData2.data.value["font-family"],
|
35044
|
+
fontWeight: attributes["font-weight"] || pageData2.data.value["font-weight"],
|
35045
|
+
backgroundColor: attributes["container-background-color"],
|
35046
|
+
padding: attributes.padding
|
35047
|
+
};
|
35048
|
+
}, [focusBlock2, pageData2.data.value]);
|
35049
|
+
return /* @__PURE__ */ React__default.createElement(Drawer$1, {
|
35050
|
+
placement: "left",
|
35051
|
+
headerStyle: { display: "block", lineHeight: "48px" },
|
35052
|
+
title: /* @__PURE__ */ React__default.createElement(Stack$4, {
|
35053
|
+
distribution: "equalSpacing"
|
35054
|
+
}, /* @__PURE__ */ React__default.createElement(TextStyle, {
|
35055
|
+
variation: "strong",
|
35056
|
+
size: "large"
|
35057
|
+
}, t("Html")), /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(Button$4, {
|
35058
|
+
type: "primary",
|
35059
|
+
onClick: onSave
|
35060
|
+
}, t("Save")))),
|
35061
|
+
closable: false,
|
35062
|
+
escToExit: false,
|
35063
|
+
width: "100vw",
|
35064
|
+
visible,
|
35065
|
+
footer: null,
|
35066
|
+
bodyStyle: { padding: 0, overflow: "hidden" }
|
35067
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
35068
|
+
style: { display: "flex", height: "100%" }
|
35069
|
+
}, /* @__PURE__ */ React__default.createElement("div", {
|
35070
|
+
style: { flex: 1, height: "100%" }
|
35071
|
+
}, /* @__PURE__ */ React__default.createElement(Suspense, {
|
35072
|
+
fallback: /* @__PURE__ */ React__default.createElement("div", {
|
35073
|
+
style: {
|
35074
|
+
height: "100%",
|
35075
|
+
width: "100%",
|
35076
|
+
display: "flex",
|
35077
|
+
alignItems: "center",
|
35078
|
+
backgroundColor: "#263238",
|
35079
|
+
justifyContent: "center",
|
35080
|
+
fontSize: 24,
|
35081
|
+
color: "#fff"
|
35082
|
+
}
|
35083
|
+
}, t("Editor Loading..."))
|
35084
|
+
}, /* @__PURE__ */ React__default.createElement(CodeMirrorEditor, {
|
35085
|
+
value: content,
|
35086
|
+
onChange: setContent
|
35087
|
+
}))), /* @__PURE__ */ React__default.createElement("div", {
|
35088
|
+
style: { flex: 1, height: "100%", overflow: "auto", marginRight: 10 }
|
35089
|
+
}, /* @__PURE__ */ React__default.createElement(ShadowDom, {
|
35090
|
+
style: __spreadProps(__spreadValues({}, styles2), {
|
35091
|
+
width: pageData2.attributes.width || "600px",
|
35092
|
+
margin: "auto"
|
35093
|
+
})
|
35094
|
+
}, isTable ? /* @__PURE__ */ React__default.createElement("table", null, /* @__PURE__ */ React__default.createElement("tbody", {
|
35095
|
+
dangerouslySetInnerHTML: { __html: content }
|
35096
|
+
})) : /* @__PURE__ */ React__default.createElement("div", {
|
35097
|
+
dangerouslySetInnerHTML: { __html: content }
|
35098
|
+
})))));
|
35099
|
+
};
|
35100
|
+
function Text() {
|
35101
|
+
const [visible, setVisible] = useState(false);
|
35102
|
+
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, {
|
35103
|
+
extra: /* @__PURE__ */ React__default.createElement(Tooltip$1, {
|
35104
|
+
content: t("Html mode")
|
35105
|
+
}, /* @__PURE__ */ React__default.createElement(Button$4, {
|
35106
|
+
onClick: () => setVisible(true),
|
35107
|
+
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
35108
|
+
iconName: "icon-html"
|
35109
|
+
})
|
35110
|
+
}))
|
35111
|
+
}, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
|
35112
|
+
defaultActiveKey: ["0", "1", "2"]
|
35113
|
+
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35114
|
+
name: "0",
|
35115
|
+
header: t("Dimension")
|
35116
|
+
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35117
|
+
direction: "vertical"
|
35118
|
+
}, /* @__PURE__ */ React__default.createElement(Height, null), /* @__PURE__ */ React__default.createElement(Padding, {
|
35119
|
+
showResetAll: true
|
35120
|
+
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35121
|
+
name: "1",
|
35122
|
+
header: t("Color")
|
35123
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35124
|
+
span: 11
|
35125
|
+
}, /* @__PURE__ */ React__default.createElement(Color, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35126
|
+
offset: 1,
|
35127
|
+
span: 11
|
35128
|
+
}, /* @__PURE__ */ React__default.createElement(ContainerBackgroundColor, {
|
35129
|
+
title: t("Background color")
|
35130
|
+
})))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35131
|
+
name: "2",
|
35132
|
+
header: t("Typography")
|
35133
|
+
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35134
|
+
direction: "vertical"
|
35135
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35136
|
+
span: 11
|
35137
|
+
}, /* @__PURE__ */ React__default.createElement(FontFamily, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35138
|
+
offset: 1,
|
35139
|
+
span: 11
|
35140
|
+
}, /* @__PURE__ */ React__default.createElement(FontSize$1, null))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35141
|
+
span: 11
|
35142
|
+
}, /* @__PURE__ */ React__default.createElement(LineHeight, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35143
|
+
offset: 1,
|
35144
|
+
span: 11
|
35145
|
+
}, /* @__PURE__ */ React__default.createElement(LetterSpacing, null))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35146
|
+
span: 11
|
35147
|
+
}, /* @__PURE__ */ React__default.createElement(TextDecoration, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35148
|
+
offset: 1,
|
35149
|
+
span: 11
|
35150
|
+
}, /* @__PURE__ */ React__default.createElement(FontWeight, null))), /* @__PURE__ */ React__default.createElement(Align, null), /* @__PURE__ */ React__default.createElement(FontStyle, null), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35151
|
+
span: 11
|
35152
|
+
}), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35153
|
+
offset: 1,
|
35154
|
+
span: 11
|
35155
|
+
})))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35156
|
+
name: "4",
|
35157
|
+
header: t("Extra")
|
35158
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35159
|
+
span: 24
|
35160
|
+
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))), /* @__PURE__ */ React__default.createElement(HtmlEditor, {
|
35161
|
+
visible,
|
35162
|
+
setVisible
|
35163
|
+
}));
|
35183
35164
|
}
|
35184
|
-
function
|
35165
|
+
function Image$1() {
|
35185
35166
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
35186
|
-
|
35187
|
-
|
35188
|
-
|
35189
|
-
|
35190
|
-
|
35191
|
-
|
35192
|
-
|
35167
|
+
const { onUploadImage } = useEditorProps();
|
35168
|
+
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, {
|
35169
|
+
style: { padding: 0 }
|
35170
|
+
}, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
|
35171
|
+
defaultActiveKey: ["0", "1", "2", "3", "4"]
|
35172
|
+
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35173
|
+
name: "1",
|
35174
|
+
header: t("Setting")
|
35175
|
+
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
35176
|
+
vertical: true,
|
35177
|
+
spacing: "tight"
|
35178
|
+
}, /* @__PURE__ */ React__default.createElement(ImageUploaderField, {
|
35179
|
+
label: t("src"),
|
35180
|
+
labelHidden: true,
|
35181
|
+
name: `${focusIdx2}.attributes.src`,
|
35182
|
+
helpText: t("The image suffix should be .jpg, jpeg, png, gif, etc. Otherwise, the picture may not be displayed normally."),
|
35183
|
+
uploadHandler: onUploadImage
|
35184
|
+
}), /* @__PURE__ */ React__default.createElement(ColorPickerField, {
|
35185
|
+
label: t("Background color"),
|
35186
|
+
name: `${focusIdx2}.attributes.container-background-color`,
|
35187
|
+
inline: true
|
35188
|
+
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35189
|
+
name: "0",
|
35190
|
+
header: t("Dimension")
|
35191
|
+
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35192
|
+
direction: "vertical"
|
35193
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35194
|
+
span: 11
|
35195
|
+
}, /* @__PURE__ */ React__default.createElement(Width, {
|
35196
|
+
config: pixelAdapter
|
35197
|
+
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35198
|
+
offset: 1,
|
35199
|
+
span: 11
|
35200
|
+
}, /* @__PURE__ */ React__default.createElement(Height, {
|
35201
|
+
config: imageHeightAdapter
|
35202
|
+
}))), /* @__PURE__ */ React__default.createElement(Padding, {
|
35203
|
+
showResetAll: true
|
35204
|
+
}), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35205
|
+
span: 24
|
35206
|
+
}, /* @__PURE__ */ React__default.createElement(Align, null))))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35207
|
+
name: "2",
|
35208
|
+
header: t("Link")
|
35209
|
+
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
35210
|
+
vertical: true,
|
35211
|
+
spacing: "tight"
|
35212
|
+
}, /* @__PURE__ */ React__default.createElement(Link, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35213
|
+
name: "3",
|
35214
|
+
header: t("Border")
|
35215
|
+
}, /* @__PURE__ */ React__default.createElement(Border, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35216
|
+
name: "4",
|
35217
|
+
header: t("Extra")
|
35218
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35219
|
+
span: 11
|
35220
|
+
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35221
|
+
label: t("title"),
|
35222
|
+
name: `${focusIdx2}.attributes.title`
|
35223
|
+
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35224
|
+
offset: 1,
|
35225
|
+
span: 11
|
35226
|
+
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35227
|
+
label: t("alt"),
|
35228
|
+
name: `${focusIdx2}.attributes.alt`
|
35229
|
+
}))), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35230
|
+
span: 24
|
35231
|
+
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35232
|
+
label: t("class name"),
|
35233
|
+
name: `${focusIdx2}.attributes.css-class`
|
35234
|
+
})))));
|
35235
|
+
}
|
35236
|
+
function Group() {
|
35237
|
+
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, null, /* @__PURE__ */ React__default.createElement(CollapseWrapper, {
|
35238
|
+
defaultActiveKey: ["0", "1", "2"]
|
35239
|
+
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35240
|
+
name: "0",
|
35241
|
+
header: t("Dimension")
|
35242
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35243
|
+
span: 11
|
35244
|
+
}, /* @__PURE__ */ React__default.createElement(Width, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35245
|
+
offset: 1,
|
35246
|
+
span: 11
|
35247
|
+
}, /* @__PURE__ */ React__default.createElement(VerticalAlign, null)))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35248
|
+
name: "1",
|
35249
|
+
header: t("Background")
|
35250
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35251
|
+
span: 11
|
35252
|
+
}, /* @__PURE__ */ React__default.createElement(BackgroundColor, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35253
|
+
offset: 1,
|
35254
|
+
span: 11
|
35255
|
+
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35256
|
+
name: "4",
|
35257
|
+
header: t("Extra")
|
35258
|
+
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35259
|
+
span: 24
|
35260
|
+
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
35193
35261
|
}
|
35194
35262
|
function Button() {
|
35195
35263
|
const { focusIdx: focusIdx2 } = useFocusIdx();
|
@@ -35201,11 +35269,11 @@ function Button() {
|
|
35201
35269
|
defaultActiveKey: ["-1", "0", "1", "2", "3"]
|
35202
35270
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35203
35271
|
name: "-1",
|
35204
|
-
header: "Setting"
|
35272
|
+
header: t("Setting")
|
35205
35273
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35206
35274
|
direction: "vertical"
|
35207
35275
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35208
|
-
label: /* @__PURE__ */ React__default.createElement(Space$1, null, /* @__PURE__ */ React__default.createElement("span", null, "Content"), mergeTags2 && /* @__PURE__ */ React__default.createElement(Popover$1, {
|
35276
|
+
label: /* @__PURE__ */ React__default.createElement(Space$1, null, /* @__PURE__ */ React__default.createElement("span", null, t("Content")), mergeTags2 && /* @__PURE__ */ React__default.createElement(Popover$1, {
|
35209
35277
|
trigger: "click",
|
35210
35278
|
content: /* @__PURE__ */ React__default.createElement(MergeTags$1, {
|
35211
35279
|
value: input.value,
|
@@ -35220,7 +35288,7 @@ function Button() {
|
|
35220
35288
|
name: `${focusIdx2}.data.value.content`
|
35221
35289
|
}), /* @__PURE__ */ React__default.createElement(Link, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35222
35290
|
name: "0",
|
35223
|
-
header: "Dimension"
|
35291
|
+
header: t("Dimension")
|
35224
35292
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35225
35293
|
direction: "vertical"
|
35226
35294
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -35229,33 +35297,33 @@ function Button() {
|
|
35229
35297
|
offset: 1,
|
35230
35298
|
span: 11
|
35231
35299
|
}, /* @__PURE__ */ React__default.createElement(FontWeight, null))), /* @__PURE__ */ React__default.createElement(Padding, {
|
35232
|
-
title: "Padding",
|
35300
|
+
title: t("Padding"),
|
35233
35301
|
attributeName: "padding",
|
35234
35302
|
showResetAll: true
|
35235
35303
|
}), /* @__PURE__ */ React__default.createElement(Padding, {
|
35236
|
-
title: "Inner padding",
|
35304
|
+
title: t("Inner padding"),
|
35237
35305
|
attributeName: "inner-padding"
|
35238
35306
|
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35239
35307
|
name: "1",
|
35240
|
-
header: "Color"
|
35308
|
+
header: t("Color")
|
35241
35309
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35242
35310
|
direction: "vertical"
|
35243
35311
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35244
35312
|
span: 11
|
35245
35313
|
}, /* @__PURE__ */ React__default.createElement(Color, {
|
35246
|
-
title: "Text color"
|
35314
|
+
title: t("Text color")
|
35247
35315
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35248
35316
|
offset: 1,
|
35249
35317
|
span: 11
|
35250
35318
|
}, /* @__PURE__ */ React__default.createElement(BackgroundColor, {
|
35251
|
-
title: "Button color"
|
35319
|
+
title: t("Button color")
|
35252
35320
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35253
35321
|
span: 11
|
35254
35322
|
}, /* @__PURE__ */ React__default.createElement(ContainerBackgroundColor, {
|
35255
|
-
title: "Background color"
|
35323
|
+
title: t("Background color")
|
35256
35324
|
}))))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35257
35325
|
name: "2",
|
35258
|
-
header: "Typography"
|
35326
|
+
header: t("Typography")
|
35259
35327
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35260
35328
|
direction: "vertical"
|
35261
35329
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -35275,10 +35343,10 @@ function Button() {
|
|
35275
35343
|
span: 11
|
35276
35344
|
}, /* @__PURE__ */ React__default.createElement(LetterSpacing, null))), /* @__PURE__ */ React__default.createElement(Align, null), /* @__PURE__ */ React__default.createElement(FontStyle, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35277
35345
|
name: "3",
|
35278
|
-
header: "Border"
|
35346
|
+
header: t("Border")
|
35279
35347
|
}, /* @__PURE__ */ React__default.createElement(Border, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35280
35348
|
name: "4",
|
35281
|
-
header: "Extra"
|
35349
|
+
header: t("Extra")
|
35282
35350
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35283
35351
|
span: 24
|
35284
35352
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -35288,7 +35356,7 @@ function Divider() {
|
|
35288
35356
|
defaultActiveKey: ["-1", "0", "1", "2", "3"]
|
35289
35357
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35290
35358
|
name: "1",
|
35291
|
-
header: "Dimension"
|
35359
|
+
header: t("Dimension")
|
35292
35360
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35293
35361
|
direction: "vertical"
|
35294
35362
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -35300,7 +35368,7 @@ function Divider() {
|
|
35300
35368
|
span: 11
|
35301
35369
|
})), /* @__PURE__ */ React__default.createElement(Align, null), /* @__PURE__ */ React__default.createElement(Padding, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35302
35370
|
name: "2",
|
35303
|
-
header: "Border"
|
35371
|
+
header: t("Border")
|
35304
35372
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
35305
35373
|
wrap: false,
|
35306
35374
|
spacing: "tight"
|
@@ -35312,17 +35380,17 @@ function Divider() {
|
|
35312
35380
|
style: { width: 100 }
|
35313
35381
|
}, /* @__PURE__ */ React__default.createElement(BorderColor, null)))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35314
35382
|
name: "3",
|
35315
|
-
header: "Background"
|
35383
|
+
header: t("Background")
|
35316
35384
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35317
35385
|
span: 11
|
35318
35386
|
}, /* @__PURE__ */ React__default.createElement(ContainerBackgroundColor, {
|
35319
|
-
title: "Background"
|
35387
|
+
title: t("Background")
|
35320
35388
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35321
35389
|
offset: 1,
|
35322
35390
|
span: 11
|
35323
35391
|
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35324
35392
|
name: "4",
|
35325
|
-
header: "Extra"
|
35393
|
+
header: t("Extra")
|
35326
35394
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35327
35395
|
span: 24
|
35328
35396
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -35335,33 +35403,33 @@ function Wrapper() {
|
|
35335
35403
|
defaultActiveKey: ["0", "1", "2"]
|
35336
35404
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35337
35405
|
name: "0",
|
35338
|
-
header: "Dimension"
|
35406
|
+
header: t("Dimension")
|
35339
35407
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
35340
35408
|
vertical: true,
|
35341
35409
|
spacing: "tight"
|
35342
35410
|
}, /* @__PURE__ */ React__default.createElement(Padding, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35343
35411
|
name: "1",
|
35344
|
-
header: "Background"
|
35412
|
+
header: t("Background")
|
35345
35413
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
35346
35414
|
vertical: true,
|
35347
35415
|
spacing: "tight"
|
35348
35416
|
}, /* @__PURE__ */ React__default.createElement(Background, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35349
35417
|
name: "2",
|
35350
|
-
header: "Border"
|
35418
|
+
header: t("Border")
|
35351
35419
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
35352
35420
|
vertical: true,
|
35353
35421
|
spacing: "tight"
|
35354
35422
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35355
|
-
label: "Border",
|
35423
|
+
label: t("Border"),
|
35356
35424
|
name: `${focusIdx2}.attributes.border`,
|
35357
35425
|
inline: true
|
35358
35426
|
}), /* @__PURE__ */ React__default.createElement(TextField, {
|
35359
|
-
label: "Background border radius",
|
35427
|
+
label: t("Background border radius"),
|
35360
35428
|
name: `${focusIdx2}.attributes.border-radius`,
|
35361
35429
|
inline: true
|
35362
35430
|
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35363
35431
|
name: "4",
|
35364
|
-
header: "Extra"
|
35432
|
+
header: t("Extra")
|
35365
35433
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35366
35434
|
span: 24
|
35367
35435
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -35371,17 +35439,17 @@ function Spacer() {
|
|
35371
35439
|
defaultActiveKey: ["-1", "0", "1", "2", "3"]
|
35372
35440
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35373
35441
|
name: "1",
|
35374
|
-
header: "Dimension"
|
35442
|
+
header: t("Dimension")
|
35375
35443
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35376
35444
|
direction: "vertical"
|
35377
35445
|
}, /* @__PURE__ */ React__default.createElement(Height, null), /* @__PURE__ */ React__default.createElement(Padding, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35378
35446
|
name: "2",
|
35379
|
-
header: "Background"
|
35447
|
+
header: t("Background")
|
35380
35448
|
}, /* @__PURE__ */ React__default.createElement(ContainerBackgroundColor, {
|
35381
|
-
title: "Background color"
|
35449
|
+
title: t("Background color")
|
35382
35450
|
})), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35383
35451
|
name: "4",
|
35384
|
-
header: "Extra"
|
35452
|
+
header: t("Extra")
|
35385
35453
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35386
35454
|
span: 24
|
35387
35455
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -35392,7 +35460,7 @@ function Raw() {
|
|
35392
35460
|
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, {
|
35393
35461
|
style: { padding: 20 },
|
35394
35462
|
extra: /* @__PURE__ */ React__default.createElement(Tooltip$1, {
|
35395
|
-
content: "Html mode"
|
35463
|
+
content: t("Html mode")
|
35396
35464
|
}, /* @__PURE__ */ React__default.createElement(Button$4, {
|
35397
35465
|
onClick: () => setVisible(true),
|
35398
35466
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
@@ -35411,25 +35479,35 @@ function Raw() {
|
|
35411
35479
|
const positionOptions = [
|
35412
35480
|
{
|
35413
35481
|
value: "left",
|
35414
|
-
label
|
35482
|
+
get label() {
|
35483
|
+
return t("Left");
|
35484
|
+
}
|
35415
35485
|
},
|
35416
35486
|
{
|
35417
35487
|
value: "right",
|
35418
|
-
label
|
35488
|
+
get label() {
|
35489
|
+
return t("Right");
|
35490
|
+
}
|
35419
35491
|
}
|
35420
35492
|
];
|
35421
35493
|
const alignOptions = [
|
35422
35494
|
{
|
35423
35495
|
value: "top",
|
35424
|
-
label
|
35496
|
+
get label() {
|
35497
|
+
return t("top");
|
35498
|
+
}
|
35425
35499
|
},
|
35426
35500
|
{
|
35427
35501
|
value: "middle",
|
35428
|
-
label
|
35502
|
+
get label() {
|
35503
|
+
return t("middle");
|
35504
|
+
}
|
35429
35505
|
},
|
35430
35506
|
{
|
35431
35507
|
value: "bottom",
|
35432
|
-
label
|
35508
|
+
get label() {
|
35509
|
+
return t("bottom");
|
35510
|
+
}
|
35433
35511
|
}
|
35434
35512
|
];
|
35435
35513
|
function Accordion() {
|
@@ -35439,7 +35517,7 @@ function Accordion() {
|
|
35439
35517
|
defaultActiveKey: ["0", "1", "2"]
|
35440
35518
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35441
35519
|
name: "0",
|
35442
|
-
header: "Setting"
|
35520
|
+
header: t("Setting")
|
35443
35521
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35444
35522
|
direction: "vertical"
|
35445
35523
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -35450,31 +35528,31 @@ function Accordion() {
|
|
35450
35528
|
}, /* @__PURE__ */ React__default.createElement(FontFamily, null))), /* @__PURE__ */ React__default.createElement(Padding, null), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35451
35529
|
span: 11
|
35452
35530
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
35453
|
-
label: "Icon width",
|
35531
|
+
label: t("Icon width"),
|
35454
35532
|
name: `${focusIdx2}.attributes.icon-width`
|
35455
35533
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35456
35534
|
offset: 1,
|
35457
35535
|
span: 11
|
35458
35536
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
35459
|
-
label: "Icon height",
|
35537
|
+
label: t("Icon height"),
|
35460
35538
|
name: `${focusIdx2}.attributes.icon-height`
|
35461
35539
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35462
35540
|
span: 11
|
35463
35541
|
}, /* @__PURE__ */ React__default.createElement(ImageUploaderField, {
|
35464
|
-
label: "Unwrapped icon",
|
35542
|
+
label: t("Unwrapped icon"),
|
35465
35543
|
name: `${focusIdx2}.attributes.icon-unwrapped-url`,
|
35466
35544
|
uploadHandler: onUploadImage
|
35467
35545
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35468
35546
|
offset: 1,
|
35469
35547
|
span: 11
|
35470
35548
|
}, /* @__PURE__ */ React__default.createElement(ImageUploaderField, {
|
35471
|
-
label: "Wrapped icon",
|
35549
|
+
label: t("Wrapped icon"),
|
35472
35550
|
name: `${focusIdx2}.attributes.icon-wrapped-url`,
|
35473
35551
|
uploadHandler: onUploadImage
|
35474
35552
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35475
35553
|
span: 11
|
35476
35554
|
}, /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
35477
|
-
label: "Icon position",
|
35555
|
+
label: t("Icon position"),
|
35478
35556
|
name: `${focusIdx2}.attributes.icon-position`,
|
35479
35557
|
options: positionOptions
|
35480
35558
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -35482,15 +35560,15 @@ function Accordion() {
|
|
35482
35560
|
span: 11
|
35483
35561
|
}, /* @__PURE__ */ React__default.createElement(SelectField, {
|
35484
35562
|
style: { width: 120 },
|
35485
|
-
label: "Icon align",
|
35563
|
+
label: t("Icon align"),
|
35486
35564
|
name: `${focusIdx2}.attributes.icon-align`,
|
35487
35565
|
options: alignOptions
|
35488
35566
|
}))), /* @__PURE__ */ React__default.createElement(TextField, {
|
35489
|
-
label: "
|
35567
|
+
label: t("Border"),
|
35490
35568
|
name: `${focusIdx2}.attributes.border`
|
35491
35569
|
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35492
35570
|
name: "4",
|
35493
|
-
header: "Extra"
|
35571
|
+
header: t("Extra")
|
35494
35572
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35495
35573
|
span: 24
|
35496
35574
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -35501,7 +35579,7 @@ function AccordionElement() {
|
|
35501
35579
|
defaultActiveKey: ["0", "1", "2"]
|
35502
35580
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35503
35581
|
name: "0",
|
35504
|
-
header: "Setting"
|
35582
|
+
header: t("Setting")
|
35505
35583
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35506
35584
|
direction: "vertical"
|
35507
35585
|
}, /* @__PURE__ */ React__default.createElement(Border, null), /* @__PURE__ */ React__default.createElement(BackgroundColor, null), /* @__PURE__ */ React__default.createElement(FontFamily, null)))));
|
@@ -35512,11 +35590,11 @@ function AccordionTitle() {
|
|
35512
35590
|
defaultActiveKey: ["0", "1", "2"]
|
35513
35591
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35514
35592
|
name: "0",
|
35515
|
-
header: "Setting"
|
35593
|
+
header: t("Setting")
|
35516
35594
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35517
35595
|
direction: "vertical"
|
35518
35596
|
}, /* @__PURE__ */ React__default.createElement(TextAreaField, {
|
35519
|
-
label: "Content",
|
35597
|
+
label: t("Content"),
|
35520
35598
|
name: `${focusIdx2}.data.value.content`
|
35521
35599
|
}), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35522
35600
|
span: 11
|
@@ -35534,7 +35612,7 @@ function AccordionTitle() {
|
|
35534
35612
|
offset: 1,
|
35535
35613
|
span: 11
|
35536
35614
|
})), /* @__PURE__ */ React__default.createElement(Padding, {
|
35537
|
-
title: "Padding",
|
35615
|
+
title: t("Padding"),
|
35538
35616
|
attributeName: "padding"
|
35539
35617
|
})))));
|
35540
35618
|
}
|
@@ -35544,11 +35622,11 @@ function AccordionText() {
|
|
35544
35622
|
defaultActiveKey: ["0", "1", "2"]
|
35545
35623
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35546
35624
|
name: "0",
|
35547
|
-
header: "Setting"
|
35625
|
+
header: t("Setting")
|
35548
35626
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35549
35627
|
direction: "vertical"
|
35550
35628
|
}, /* @__PURE__ */ React__default.createElement(TextAreaField, {
|
35551
|
-
label: "Content",
|
35629
|
+
label: t("Content"),
|
35552
35630
|
name: `${focusIdx2}.data.value.content`,
|
35553
35631
|
autoSize: { minRows: 5 }
|
35554
35632
|
}), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -35567,18 +35645,22 @@ function AccordionText() {
|
|
35567
35645
|
offset: 1,
|
35568
35646
|
span: 11
|
35569
35647
|
}, /* @__PURE__ */ React__default.createElement(BackgroundColor, null))), /* @__PURE__ */ React__default.createElement(Padding, {
|
35570
|
-
title: "Padding",
|
35648
|
+
title: t("Padding"),
|
35571
35649
|
attributeName: "padding"
|
35572
35650
|
})))));
|
35573
35651
|
}
|
35574
35652
|
const options$2 = [
|
35575
35653
|
{
|
35576
35654
|
value: "hidden",
|
35577
|
-
label
|
35655
|
+
get label() {
|
35656
|
+
return t("hidden");
|
35657
|
+
}
|
35578
35658
|
},
|
35579
35659
|
{
|
35580
35660
|
value: "visible",
|
35581
|
-
label
|
35661
|
+
get label() {
|
35662
|
+
return t("visible");
|
35663
|
+
}
|
35582
35664
|
}
|
35583
35665
|
];
|
35584
35666
|
function Carousel() {
|
@@ -35589,16 +35671,16 @@ function Carousel() {
|
|
35589
35671
|
defaultActiveKey: ["0", "1", "2", "3", "4"]
|
35590
35672
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35591
35673
|
name: "0",
|
35592
|
-
header: "Dimension"
|
35674
|
+
header: t("Dimension")
|
35593
35675
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35594
35676
|
direction: "vertical"
|
35595
35677
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
35596
|
-
label: "Thumbnail width",
|
35678
|
+
label: t("Thumbnail width"),
|
35597
35679
|
name: `${focusIdx2}.attributes.tb-width`,
|
35598
35680
|
quickchange: true,
|
35599
35681
|
inline: true
|
35600
35682
|
}), /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
35601
|
-
label: "Thumbnails",
|
35683
|
+
label: t("Thumbnails"),
|
35602
35684
|
name: `${focusIdx2}.attributes.thumbnails`,
|
35603
35685
|
options: options$2,
|
35604
35686
|
inline: true
|
@@ -35607,7 +35689,7 @@ function Carousel() {
|
|
35607
35689
|
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35608
35690
|
name: "4",
|
35609
35691
|
contentStyle: { padding: 0 },
|
35610
|
-
header: "Images"
|
35692
|
+
header: t("Images")
|
35611
35693
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
35612
35694
|
vertical: true,
|
35613
35695
|
spacing: "tight"
|
@@ -35626,54 +35708,54 @@ function Carousel() {
|
|
35626
35708
|
}
|
35627
35709
|
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35628
35710
|
name: "3",
|
35629
|
-
header: "Icon"
|
35711
|
+
header: t("Icon")
|
35630
35712
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35631
35713
|
span: 11
|
35632
35714
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35633
|
-
label: "Left icon",
|
35715
|
+
label: t("Left icon"),
|
35634
35716
|
name: `${focusIdx2}.attributes.left-icon`
|
35635
35717
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35636
35718
|
offset: 1,
|
35637
35719
|
span: 11
|
35638
35720
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35639
|
-
label: "Right icon",
|
35721
|
+
label: t("Right icon"),
|
35640
35722
|
name: `${focusIdx2}.attributes.right-icon`
|
35641
35723
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35642
35724
|
span: 11
|
35643
35725
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
35644
|
-
label: "Icon width",
|
35726
|
+
label: t("Icon width"),
|
35645
35727
|
name: `${focusIdx2}.attributes.icon-width`
|
35646
35728
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35647
35729
|
offset: 1,
|
35648
35730
|
span: 11
|
35649
35731
|
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35650
35732
|
name: "1",
|
35651
|
-
header: "Border"
|
35733
|
+
header: t("Border")
|
35652
35734
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35653
35735
|
span: 11
|
35654
35736
|
}, /* @__PURE__ */ React__default.createElement(ColorPickerField, {
|
35655
|
-
label: "Hovered border",
|
35737
|
+
label: t("Hovered border"),
|
35656
35738
|
name: `${focusIdx2}.attributes.tb-hover-border-color`
|
35657
35739
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35658
35740
|
offset: 1,
|
35659
35741
|
span: 11
|
35660
35742
|
}, /* @__PURE__ */ React__default.createElement(ColorPickerField, {
|
35661
|
-
label: "Selected Border",
|
35743
|
+
label: t("Selected Border"),
|
35662
35744
|
name: `${focusIdx2}.attributes.tb-selected-border-color`
|
35663
35745
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35664
35746
|
span: 11
|
35665
35747
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35666
|
-
label: "Border of the thumbnails",
|
35748
|
+
label: t("Border of the thumbnails"),
|
35667
35749
|
name: `${focusIdx2}.attributes.tb-border`
|
35668
35750
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35669
35751
|
offset: 1,
|
35670
35752
|
span: 11
|
35671
35753
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35672
|
-
label: "Border radius of the thumbnails",
|
35754
|
+
label: t("Border radius of the thumbnails"),
|
35673
35755
|
name: `${focusIdx2}.attributes.tb-border-radius`
|
35674
35756
|
})))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35675
35757
|
name: "4",
|
35676
|
-
header: "Extra"
|
35758
|
+
header: t("Extra")
|
35677
35759
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35678
35760
|
span: 24
|
35679
35761
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -35687,46 +35769,50 @@ function CarouselImage({
|
|
35687
35769
|
return /* @__PURE__ */ React__default.createElement(Space$1, {
|
35688
35770
|
direction: "vertical"
|
35689
35771
|
}, /* @__PURE__ */ React__default.createElement(ImageUploaderField, {
|
35690
|
-
label: "Image",
|
35772
|
+
label: t("Image"),
|
35691
35773
|
labelHidden: true,
|
35692
35774
|
name: `${focusIdx2}.data.value.images.[${index2}].src`,
|
35693
|
-
helpText: "The image suffix should be .jpg, jpeg, png, gif, etc. Otherwise, the picture may not be displayed normally.",
|
35775
|
+
helpText: t("The image suffix should be .jpg, jpeg, png, gif, etc. Otherwise, the picture may not be displayed normally."),
|
35694
35776
|
uploadHandler: onUploadImage
|
35695
35777
|
}), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35696
35778
|
span: 11
|
35697
35779
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35698
35780
|
prefix: /* @__PURE__ */ React__default.createElement(IconLink$1, null),
|
35699
|
-
label: "Url",
|
35781
|
+
label: t("Url"),
|
35700
35782
|
name: `${focusIdx2}.data.value.images.[${index2}].href`
|
35701
35783
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35702
35784
|
offset: 1,
|
35703
35785
|
span: 11
|
35704
35786
|
}, /* @__PURE__ */ React__default.createElement(SelectField, {
|
35705
|
-
label: "Target",
|
35787
|
+
label: t("Target"),
|
35706
35788
|
name: `${focusIdx2}.data.value.images.[${index2}].target`,
|
35707
35789
|
options: [
|
35708
35790
|
{
|
35709
35791
|
value: "",
|
35710
|
-
label: "_self"
|
35792
|
+
label: t("_self")
|
35711
35793
|
},
|
35712
35794
|
{
|
35713
35795
|
value: "_blank",
|
35714
|
-
label: "_blank"
|
35796
|
+
label: t("_blank")
|
35715
35797
|
}
|
35716
35798
|
]
|
35717
35799
|
}))), /* @__PURE__ */ React__default.createElement(TextField, {
|
35718
|
-
label: "Title",
|
35800
|
+
label: t("Title"),
|
35719
35801
|
name: `${focusIdx2}.data.value.image.[${index2}].title`
|
35720
35802
|
}));
|
35721
35803
|
}
|
35722
35804
|
const options$1 = [
|
35723
35805
|
{
|
35724
35806
|
value: "fluid-height",
|
35725
|
-
label
|
35807
|
+
get label() {
|
35808
|
+
return t("Fluid height");
|
35809
|
+
}
|
35726
35810
|
},
|
35727
35811
|
{
|
35728
35812
|
value: "fixed-height",
|
35729
|
-
label
|
35813
|
+
get label() {
|
35814
|
+
return t("Fixed height");
|
35815
|
+
}
|
35730
35816
|
}
|
35731
35817
|
];
|
35732
35818
|
function Hero() {
|
@@ -35736,11 +35822,11 @@ function Hero() {
|
|
35736
35822
|
defaultActiveKey: ["0", "1", "2"]
|
35737
35823
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35738
35824
|
name: "0",
|
35739
|
-
header: "Dimension"
|
35825
|
+
header: t("Dimension")
|
35740
35826
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35741
35827
|
direction: "vertical"
|
35742
35828
|
}, /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
35743
|
-
label: "Mode",
|
35829
|
+
label: t("Mode"),
|
35744
35830
|
name: `${focusIdx2}.attributes.mode`,
|
35745
35831
|
options: options$1
|
35746
35832
|
}), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -35750,42 +35836,42 @@ function Hero() {
|
|
35750
35836
|
span: 11
|
35751
35837
|
}, /* @__PURE__ */ React__default.createElement(Height, null))), /* @__PURE__ */ React__default.createElement(Padding, null), /* @__PURE__ */ React__default.createElement(VerticalAlign, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35752
35838
|
name: "1",
|
35753
|
-
header: "Background"
|
35839
|
+
header: t("Background")
|
35754
35840
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35755
35841
|
direction: "vertical"
|
35756
35842
|
}, /* @__PURE__ */ React__default.createElement(ImageUploaderField, {
|
35757
|
-
label: "src",
|
35843
|
+
label: t("src"),
|
35758
35844
|
name: `${focusIdx2}.attributes.background-url`,
|
35759
|
-
helpText: "The image suffix should be .jpg, jpeg, png, gif, etc. Otherwise, the picture may not be displayed normally.",
|
35845
|
+
helpText: t("The image suffix should be .jpg, jpeg, png, gif, etc. Otherwise, the picture may not be displayed normally."),
|
35760
35846
|
uploadHandler: onUploadImage
|
35761
35847
|
}), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35762
35848
|
span: 11
|
35763
35849
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
35764
|
-
label: "Background width",
|
35850
|
+
label: t("Background width"),
|
35765
35851
|
name: `${focusIdx2}.attributes.background-width`
|
35766
35852
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35767
35853
|
offset: 1,
|
35768
35854
|
span: 11
|
35769
35855
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
35770
|
-
label: "Background height",
|
35856
|
+
label: t("Background height"),
|
35771
35857
|
name: `${focusIdx2}.attributes.background-height`
|
35772
35858
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35773
35859
|
span: 11
|
35774
35860
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35775
|
-
label: "Background position",
|
35861
|
+
label: t("Background position"),
|
35776
35862
|
name: `${focusIdx2}.attributes.background-position`
|
35777
35863
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35778
35864
|
offset: 1,
|
35779
35865
|
span: 11
|
35780
35866
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
35781
|
-
label: "Border radius",
|
35867
|
+
label: t("Border radius"),
|
35782
35868
|
name: `${focusIdx2}.attributes.border-radius`,
|
35783
35869
|
unitOptions: "percent"
|
35784
35870
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35785
35871
|
span: 11
|
35786
35872
|
}, /* @__PURE__ */ React__default.createElement(BackgroundColor, null))))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35787
35873
|
name: "4",
|
35788
|
-
header: "Extra"
|
35874
|
+
header: t("Extra")
|
35789
35875
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35790
35876
|
span: 24
|
35791
35877
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -35798,21 +35884,21 @@ function Navbar() {
|
|
35798
35884
|
defaultActiveKey: ["0", "1", "2"]
|
35799
35885
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35800
35886
|
name: "0",
|
35801
|
-
header: "Layout"
|
35887
|
+
header: t("Layout")
|
35802
35888
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
35803
35889
|
vertical: true,
|
35804
35890
|
spacing: "tight"
|
35805
35891
|
}, /* @__PURE__ */ React__default.createElement(Align, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35806
35892
|
contentStyle: { padding: 0 },
|
35807
35893
|
name: "1",
|
35808
|
-
header: "Navbar links"
|
35894
|
+
header: t("Navbar links")
|
35809
35895
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35810
35896
|
direction: "vertical",
|
35811
35897
|
style: { width: "100%" }
|
35812
35898
|
}, /* @__PURE__ */ React__default.createElement(EditTabField, {
|
35813
35899
|
tabPosition: "top",
|
35814
35900
|
name: `${focusIdx2}.data.value.links`,
|
35815
|
-
label: "Links",
|
35901
|
+
label: t("Links"),
|
35816
35902
|
labelHidden: true,
|
35817
35903
|
renderItem: (item2, index2) => /* @__PURE__ */ React__default.createElement(NavbarLink, {
|
35818
35904
|
item: item2,
|
@@ -35827,7 +35913,7 @@ function Navbar() {
|
|
35827
35913
|
}
|
35828
35914
|
}), /* @__PURE__ */ React__default.createElement("div", null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35829
35915
|
name: "4",
|
35830
|
-
header: "Extra"
|
35916
|
+
header: t("Extra")
|
35831
35917
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35832
35918
|
span: 24
|
35833
35919
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -35845,13 +35931,13 @@ function NavbarLink({
|
|
35845
35931
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35846
35932
|
span: 11
|
35847
35933
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35848
|
-
label: "Content",
|
35934
|
+
label: t("Content"),
|
35849
35935
|
name: `${focusIdx2}.data.value.links.[${index2}].content`
|
35850
35936
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35851
35937
|
offset: 1,
|
35852
35938
|
span: 11
|
35853
35939
|
}, /* @__PURE__ */ React__default.createElement(ColorPickerField, {
|
35854
|
-
label: "Color",
|
35940
|
+
label: t("Color"),
|
35855
35941
|
name: `${focusIdx2}.data.value.links.[${index2}].color`
|
35856
35942
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35857
35943
|
span: 11
|
@@ -35860,8 +35946,8 @@ function NavbarLink({
|
|
35860
35946
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35861
35947
|
offset: 1,
|
35862
35948
|
span: 11
|
35863
|
-
}, /* @__PURE__ */ React__default.createElement(
|
35864
|
-
label: "Font size (px)",
|
35949
|
+
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35950
|
+
label: t("Font size (px)"),
|
35865
35951
|
name: `${focusIdx2}.data.value.links.[${index2}].font-size`,
|
35866
35952
|
config: pixelAdapter,
|
35867
35953
|
autoComplete: "off"
|
@@ -35896,23 +35982,23 @@ function NavbarLink({
|
|
35896
35982
|
span: 11
|
35897
35983
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
35898
35984
|
prefix: /* @__PURE__ */ React__default.createElement(IconLink$1, null),
|
35899
|
-
label: /* @__PURE__ */ React__default.createElement("span", null, "Url"),
|
35985
|
+
label: /* @__PURE__ */ React__default.createElement("span", null, t("Url")),
|
35900
35986
|
name: `${focusIdx2}.data.value.links.[${index2}].href`
|
35901
35987
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35902
35988
|
offset: 1,
|
35903
35989
|
span: 11
|
35904
35990
|
}, /* @__PURE__ */ React__default.createElement(SelectField, {
|
35905
35991
|
style: { minWidth: 65 },
|
35906
|
-
label: "Target",
|
35992
|
+
label: t("Target"),
|
35907
35993
|
name: `${focusIdx2}.data.value.links.[${index2}].target`,
|
35908
35994
|
options: [
|
35909
35995
|
{
|
35910
35996
|
value: "_blank",
|
35911
|
-
label: "_blank"
|
35997
|
+
label: t("_blank")
|
35912
35998
|
},
|
35913
35999
|
{
|
35914
36000
|
value: "_self",
|
35915
|
-
label: "_self"
|
36001
|
+
label: t("_self")
|
35916
36002
|
}
|
35917
36003
|
]
|
35918
36004
|
}))), /* @__PURE__ */ React__default.createElement(NavbarLinkPadding, {
|
@@ -35923,11 +36009,15 @@ function NavbarLink({
|
|
35923
36009
|
const options = [
|
35924
36010
|
{
|
35925
36011
|
value: "vertical",
|
35926
|
-
label
|
36012
|
+
get label() {
|
36013
|
+
return t("vertical");
|
36014
|
+
}
|
35927
36015
|
},
|
35928
36016
|
{
|
35929
36017
|
value: "horizontal",
|
35930
|
-
label
|
36018
|
+
get label() {
|
36019
|
+
return t("horizontal");
|
36020
|
+
}
|
35931
36021
|
}
|
35932
36022
|
];
|
35933
36023
|
function Social() {
|
@@ -35942,16 +36032,16 @@ function Social() {
|
|
35942
36032
|
defaultActiveKey: ["0", "1", "2", "3"]
|
35943
36033
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35944
36034
|
name: "1",
|
35945
|
-
header: "Setting"
|
36035
|
+
header: t("Setting")
|
35946
36036
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35947
36037
|
direction: "vertical"
|
35948
36038
|
}, /* @__PURE__ */ React__default.createElement(RadioGroupField, {
|
35949
|
-
label: "Mode",
|
36039
|
+
label: t("Mode"),
|
35950
36040
|
name: `${focusIdx2}.attributes.mode`,
|
35951
36041
|
options
|
35952
36042
|
}), /* @__PURE__ */ React__default.createElement(Align, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35953
36043
|
name: "3",
|
35954
|
-
header: "Typography"
|
36044
|
+
header: t("Typography")
|
35955
36045
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35956
36046
|
direction: "vertical"
|
35957
36047
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -35970,7 +36060,7 @@ function Social() {
|
|
35970
36060
|
offset: 1,
|
35971
36061
|
span: 11
|
35972
36062
|
}, /* @__PURE__ */ React__default.createElement(ContainerBackgroundColor, {
|
35973
|
-
title: "Background color"
|
36063
|
+
title: t("Background color")
|
35974
36064
|
}))), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35975
36065
|
span: 11
|
35976
36066
|
}, /* @__PURE__ */ React__default.createElement(TextDecoration, null)), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -35978,7 +36068,7 @@ function Social() {
|
|
35978
36068
|
span: 11
|
35979
36069
|
}, /* @__PURE__ */ React__default.createElement(FontStyle, null))))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35980
36070
|
name: "2",
|
35981
|
-
header: "Social item",
|
36071
|
+
header: t("Social item"),
|
35982
36072
|
contentStyle: { padding: 10 }
|
35983
36073
|
}, /* @__PURE__ */ React__default.createElement(EditGridTabField, {
|
35984
36074
|
tabPosition: "top",
|
@@ -35991,30 +36081,30 @@ function Social() {
|
|
35991
36081
|
})
|
35992
36082
|
})), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
35993
36083
|
name: "0",
|
35994
|
-
header: "Dimension"
|
36084
|
+
header: t("Dimension")
|
35995
36085
|
}, /* @__PURE__ */ React__default.createElement(Space$1, {
|
35996
36086
|
direction: "vertical",
|
35997
36087
|
size: "large"
|
35998
36088
|
}, /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
35999
36089
|
span: 11
|
36000
36090
|
}, /* @__PURE__ */ React__default.createElement(InputWithUnitField, {
|
36001
|
-
label: "Icon width",
|
36091
|
+
label: t("Icon width"),
|
36002
36092
|
name: `${focusIdx2}.attributes.icon-size`
|
36003
36093
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
36004
36094
|
offset: 1,
|
36005
36095
|
span: 11
|
36006
36096
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
36007
|
-
label: "Border radius",
|
36097
|
+
label: t("Border radius"),
|
36008
36098
|
name: `${focusIdx2}.attributes.border-radius`
|
36009
36099
|
}))), /* @__PURE__ */ React__default.createElement(Padding, null), /* @__PURE__ */ React__default.createElement(Padding, {
|
36010
36100
|
attributeName: "inner-padding",
|
36011
|
-
title: "Icon padding"
|
36101
|
+
title: t("Icon padding")
|
36012
36102
|
}), /* @__PURE__ */ React__default.createElement(Padding, {
|
36013
36103
|
attributeName: "text-padding",
|
36014
|
-
title: "Text padding"
|
36104
|
+
title: t("Text padding")
|
36015
36105
|
}))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
36016
36106
|
name: "4",
|
36017
|
-
header: "Extra"
|
36107
|
+
header: t("Extra")
|
36018
36108
|
}, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
36019
36109
|
span: 24
|
36020
36110
|
}, /* @__PURE__ */ React__default.createElement(ClassName, null)))));
|
@@ -36037,7 +36127,7 @@ function SocialElement({
|
|
36037
36127
|
return /* @__PURE__ */ React__default.createElement(Space$1, {
|
36038
36128
|
direction: "vertical"
|
36039
36129
|
}, /* @__PURE__ */ React__default.createElement(ImageUploaderField, {
|
36040
|
-
label: "Image",
|
36130
|
+
label: t("Image"),
|
36041
36131
|
autoCompleteOptions,
|
36042
36132
|
labelHidden: true,
|
36043
36133
|
name: `${focusIdx2}.data.value.elements.[${index2}].src`,
|
@@ -36045,7 +36135,7 @@ function SocialElement({
|
|
36045
36135
|
}), /* @__PURE__ */ React__default.createElement(Grid.Row, null, /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
36046
36136
|
span: 11
|
36047
36137
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
36048
|
-
label: "Content",
|
36138
|
+
label: t("Content"),
|
36049
36139
|
name: `${focusIdx2}.data.value.elements.[${index2}].content`,
|
36050
36140
|
quickchange: true
|
36051
36141
|
})), /* @__PURE__ */ React__default.createElement(Grid.Col, {
|
@@ -36053,7 +36143,7 @@ function SocialElement({
|
|
36053
36143
|
span: 11
|
36054
36144
|
}, /* @__PURE__ */ React__default.createElement(TextField, {
|
36055
36145
|
prefix: /* @__PURE__ */ React__default.createElement(IconLink$1, null),
|
36056
|
-
label: "Link",
|
36146
|
+
label: t("Link"),
|
36057
36147
|
name: `${focusIdx2}.data.value.elements.[${index2}].href`
|
36058
36148
|
}))));
|
36059
36149
|
}
|
@@ -36061,7 +36151,7 @@ function Table() {
|
|
36061
36151
|
const [visible, setVisible] = useState(false);
|
36062
36152
|
return /* @__PURE__ */ React__default.createElement(AttributesPanelWrapper, {
|
36063
36153
|
extra: /* @__PURE__ */ React__default.createElement(Tooltip$1, {
|
36064
|
-
content: "Edit"
|
36154
|
+
content: t("Edit")
|
36065
36155
|
}, /* @__PURE__ */ React__default.createElement(Button$4, {
|
36066
36156
|
onClick: () => setVisible(true),
|
36067
36157
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
@@ -36072,15 +36162,15 @@ function Table() {
|
|
36072
36162
|
defaultActiveKey: ["-1", "0", "1", "2", "3"]
|
36073
36163
|
}, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
36074
36164
|
name: "1",
|
36075
|
-
header: "Dimension"
|
36165
|
+
header: t("Dimension")
|
36076
36166
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(Width, null), /* @__PURE__ */ React__default.createElement(Stack$4.Item, null)), /* @__PURE__ */ React__default.createElement(Stack$4, {
|
36077
36167
|
vertical: true
|
36078
36168
|
}, /* @__PURE__ */ React__default.createElement(Padding, null))), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
36079
36169
|
name: "2",
|
36080
|
-
header: "Decoration"
|
36170
|
+
header: t("Decoration")
|
36081
36171
|
}, /* @__PURE__ */ React__default.createElement(Color, null), /* @__PURE__ */ React__default.createElement(ContainerBackgroundColor, null), /* @__PURE__ */ React__default.createElement(Border, null)), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
36082
36172
|
name: "2",
|
36083
|
-
header: "Typography"
|
36173
|
+
header: t("Typography")
|
36084
36174
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, null, /* @__PURE__ */ React__default.createElement(FontFamily, null), /* @__PURE__ */ React__default.createElement(FontSize$1, null)), /* @__PURE__ */ React__default.createElement(FontStyle, null), /* @__PURE__ */ React__default.createElement(TextAlign, null))), /* @__PURE__ */ React__default.createElement(HtmlEditor, {
|
36085
36175
|
visible,
|
36086
36176
|
setVisible
|
@@ -36217,13 +36307,18 @@ function MergeTags(props) {
|
|
36217
36307
|
popupVisible: visible,
|
36218
36308
|
onVisibleChange,
|
36219
36309
|
style: { zIndex: 10 },
|
36310
|
+
triggerProps: {
|
36311
|
+
popupStyle: {
|
36312
|
+
backgroundColor: "var(--color-bg-5);"
|
36313
|
+
}
|
36314
|
+
},
|
36220
36315
|
content: /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(MergeTags$1, {
|
36221
36316
|
value: "",
|
36222
36317
|
onChange
|
36223
36318
|
})),
|
36224
36319
|
getPopupContainer: props.getPopupContainer
|
36225
36320
|
}, /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36226
|
-
title: "Merge tag",
|
36321
|
+
title: t("Merge tag"),
|
36227
36322
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36228
36323
|
iconName: "icon-merge-tags"
|
36229
36324
|
})
|
@@ -36283,7 +36378,7 @@ function IconBgColor({ selectionRange, execCommand, getPopoverMountNode }) {
|
|
36283
36378
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
36284
36379
|
style: { borderBottom: `2px solid ${color2}`, position: "absolute", width: "130%", left: "-15%", top: 16 }
|
36285
36380
|
})),
|
36286
|
-
title: "Background color"
|
36381
|
+
title: t("Background color")
|
36287
36382
|
}));
|
36288
36383
|
}
|
36289
36384
|
function IconFontColor({ selectionRange, execCommand, getPopoverMountNode }) {
|
@@ -36315,7 +36410,7 @@ function IconFontColor({ selectionRange, execCommand, getPopoverMountNode }) {
|
|
36315
36410
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
36316
36411
|
style: { borderBottom: `2px solid ${color2}`, position: "absolute", width: "130%", left: "-15%", top: 16 }
|
36317
36412
|
})),
|
36318
|
-
title: "Text color"
|
36413
|
+
title: t("Text color")
|
36319
36414
|
}));
|
36320
36415
|
}
|
36321
36416
|
function BasicTools() {
|
@@ -36353,25 +36448,25 @@ function BasicTools() {
|
|
36353
36448
|
style: { position: "relative", marginRight: 10, color: "#fff", fontFamily: "-apple-system, BlinkMacSystemFont, San Francisco, Segoe UI" }
|
36354
36449
|
}, "Text"), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36355
36450
|
onClick: handleSelectParent,
|
36356
|
-
title: "Select parent block",
|
36451
|
+
title: t("Select parent block"),
|
36357
36452
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36358
36453
|
iconName: "icon-back-parent"
|
36359
36454
|
})
|
36360
36455
|
}), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36361
36456
|
onClick: handleCopy,
|
36362
|
-
title: "Copy",
|
36457
|
+
title: t("Copy"),
|
36363
36458
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36364
36459
|
iconName: "icon-copy"
|
36365
36460
|
})
|
36366
36461
|
}), onAddCollection && /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36367
36462
|
onClick: handleAddToCollection,
|
36368
|
-
title: "Add to collection",
|
36463
|
+
title: t("Add to collection"),
|
36369
36464
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36370
36465
|
iconName: "icon-collection"
|
36371
36466
|
})
|
36372
36467
|
}), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36373
36468
|
onClick: handleDelete,
|
36374
|
-
title: "Delete",
|
36469
|
+
title: t("Delete"),
|
36375
36470
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36376
36471
|
iconName: "icon-delete"
|
36377
36472
|
})
|
@@ -36408,9 +36503,9 @@ function Unlink(props) {
|
|
36408
36503
|
return /* @__PURE__ */ React__default.createElement(Tooltip$1, {
|
36409
36504
|
color: "#fff",
|
36410
36505
|
position: "tl",
|
36411
|
-
content: "Unlink"
|
36506
|
+
content: t("Unlink")
|
36412
36507
|
}, /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36413
|
-
title: "Unlink",
|
36508
|
+
title: t("Unlink"),
|
36414
36509
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36415
36510
|
iconName: "icon-unlink"
|
36416
36511
|
}),
|
@@ -36442,9 +36537,9 @@ function StrikeThrough(props) {
|
|
36442
36537
|
return /* @__PURE__ */ React__default.createElement(Tooltip$1, {
|
36443
36538
|
color: "#fff",
|
36444
36539
|
position: "tl",
|
36445
|
-
content: "Strikethrough"
|
36540
|
+
content: t("Strikethrough")
|
36446
36541
|
}, /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36447
|
-
title: "Strikethrough",
|
36542
|
+
title: t("Strikethrough"),
|
36448
36543
|
isActive: Boolean(node),
|
36449
36544
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36450
36545
|
iconName: "icon-strikethrough"
|
@@ -36477,9 +36572,9 @@ function Underline(props) {
|
|
36477
36572
|
return /* @__PURE__ */ React__default.createElement(Tooltip$1, {
|
36478
36573
|
color: "#fff",
|
36479
36574
|
position: "tl",
|
36480
|
-
content: "Underline"
|
36575
|
+
content: t("Underline")
|
36481
36576
|
}, /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36482
|
-
title: "Underline",
|
36577
|
+
title: t("Underline"),
|
36483
36578
|
isActive: Boolean(node),
|
36484
36579
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36485
36580
|
iconName: "icon-underline"
|
@@ -36512,9 +36607,9 @@ function Italic(props) {
|
|
36512
36607
|
return /* @__PURE__ */ React__default.createElement(Tooltip$1, {
|
36513
36608
|
color: "#fff",
|
36514
36609
|
position: "tl",
|
36515
|
-
content: "Italic"
|
36610
|
+
content: t("Italic")
|
36516
36611
|
}, /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36517
|
-
title: "Italic",
|
36612
|
+
title: t("Italic"),
|
36518
36613
|
isActive: Boolean(node),
|
36519
36614
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36520
36615
|
iconName: "icon-italic"
|
@@ -36547,9 +36642,9 @@ function Bold(props) {
|
|
36547
36642
|
return /* @__PURE__ */ React__default.createElement(Tooltip$1, {
|
36548
36643
|
color: "#fff",
|
36549
36644
|
position: "tl",
|
36550
|
-
content: "Bold"
|
36645
|
+
content: t("Bold")
|
36551
36646
|
}, /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36552
|
-
title: "Bold",
|
36647
|
+
title: t("Bold"),
|
36553
36648
|
isActive: Boolean(node),
|
36554
36649
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36555
36650
|
iconName: "icon-bold"
|
@@ -36634,11 +36729,11 @@ function Tools(props) {
|
|
36634
36729
|
const execCommand = useCallback((cmd, val) => {
|
36635
36730
|
var _a;
|
36636
36731
|
if (!selectionRange) {
|
36637
|
-
console.error("No selectionRange");
|
36732
|
+
console.error(t("No selectionRange"));
|
36638
36733
|
return;
|
36639
36734
|
}
|
36640
36735
|
if (!(focusBlockNode == null ? void 0 : focusBlockNode.contains(selectionRange == null ? void 0 : selectionRange.commonAncestorContainer))) {
|
36641
|
-
console.error("Not commonAncestorContainer");
|
36736
|
+
console.error(t("Not commonAncestorContainer"));
|
36642
36737
|
return;
|
36643
36738
|
}
|
36644
36739
|
restoreRange(selectionRange);
|
@@ -36769,19 +36864,19 @@ function Tools(props) {
|
|
36769
36864
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36770
36865
|
iconName: "icon-align-left"
|
36771
36866
|
}),
|
36772
|
-
title: "Align left"
|
36867
|
+
title: t("Align left")
|
36773
36868
|
}), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36774
36869
|
onClick: () => execCommand("justifyCenter"),
|
36775
36870
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36776
36871
|
iconName: "icon-align-center"
|
36777
36872
|
}),
|
36778
|
-
title: "Align center"
|
36873
|
+
title: t("Align center")
|
36779
36874
|
}), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36780
36875
|
onClick: () => execCommand("justifyRight"),
|
36781
36876
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36782
36877
|
iconName: "icon-align-right"
|
36783
36878
|
}),
|
36784
|
-
title: "Align right"
|
36879
|
+
title: t("Align right")
|
36785
36880
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
36786
36881
|
className: "easy-email-extensions-divider"
|
36787
36882
|
}), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
@@ -36789,13 +36884,13 @@ function Tools(props) {
|
|
36789
36884
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36790
36885
|
iconName: "icon-list-ol"
|
36791
36886
|
}),
|
36792
|
-
title: "Orderlist"
|
36887
|
+
title: t("Orderlist")
|
36793
36888
|
}), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
36794
36889
|
onClick: () => execCommand("insertUnorderedList"),
|
36795
36890
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36796
36891
|
iconName: "icon-list-ul"
|
36797
36892
|
}),
|
36798
|
-
title: "Unorderlist"
|
36893
|
+
title: t("Unorderlist")
|
36799
36894
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
36800
36895
|
className: "easy-email-extensions-divider"
|
36801
36896
|
}), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
@@ -36803,7 +36898,7 @@ function Tools(props) {
|
|
36803
36898
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36804
36899
|
iconName: "icon-line"
|
36805
36900
|
}),
|
36806
|
-
title: "Line"
|
36901
|
+
title: t("Line")
|
36807
36902
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
36808
36903
|
className: "easy-email-extensions-divider"
|
36809
36904
|
}), /* @__PURE__ */ React__default.createElement(ToolItem$1, {
|
@@ -36811,7 +36906,7 @@ function Tools(props) {
|
|
36811
36906
|
icon: /* @__PURE__ */ React__default.createElement(IconFont, {
|
36812
36907
|
iconName: "icon-close"
|
36813
36908
|
}),
|
36814
|
-
title: "Remove format"
|
36909
|
+
title: t("Remove format")
|
36815
36910
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
36816
36911
|
className: "easy-email-extensions-divider"
|
36817
36912
|
})));
|
@@ -36966,29 +37061,29 @@ const AddToCollection = ({ visible, setVisible }) => {
|
|
36966
37061
|
maskClosable: false,
|
36967
37062
|
style: { zIndex: 2e3 },
|
36968
37063
|
visible,
|
36969
|
-
title: "Add to collection",
|
37064
|
+
title: t("Add to collection"),
|
36970
37065
|
onOk: () => handleSubmit(),
|
36971
37066
|
onCancel: () => setVisible(false)
|
36972
37067
|
}, /* @__PURE__ */ React__default.createElement(Stack$4, {
|
36973
37068
|
vertical: true
|
36974
37069
|
}, /* @__PURE__ */ React__default.createElement(Stack$4.Item, null), /* @__PURE__ */ React__default.createElement(TextField, {
|
36975
|
-
label: "Title",
|
37070
|
+
label: t("Title"),
|
36976
37071
|
name: "label",
|
36977
37072
|
validate: (val) => {
|
36978
37073
|
if (!val)
|
36979
|
-
return "Title required!";
|
37074
|
+
return t("Title required!");
|
36980
37075
|
return void 0;
|
36981
37076
|
}
|
36982
37077
|
}), /* @__PURE__ */ React__default.createElement(TextAreaField, {
|
36983
|
-
label: "Description",
|
37078
|
+
label: t("Description"),
|
36984
37079
|
name: "helpText"
|
36985
37080
|
}), /* @__PURE__ */ React__default.createElement(ImageUploaderField, {
|
36986
|
-
label: "Thumbnail",
|
37081
|
+
label: t("Thumbnail"),
|
36987
37082
|
name: "thumbnail",
|
36988
37083
|
uploadHandler: onUploadImage,
|
36989
37084
|
validate: (val) => {
|
36990
37085
|
if (!val)
|
36991
|
-
return "Thumbnail required!";
|
37086
|
+
return t("Thumbnail required!");
|
36992
37087
|
return void 0;
|
36993
37088
|
}
|
36994
37089
|
}))));
|
@@ -37062,19 +37157,19 @@ function ContextMenu({
|
|
37062
37157
|
}, /* @__PURE__ */ React__default.createElement(IconFont, {
|
37063
37158
|
iconName: "icon-top",
|
37064
37159
|
style: { marginRight: 10 }
|
37065
|
-
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Move up")), /* @__PURE__ */ React__default.createElement("div", {
|
37160
|
+
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, t("Move up"))), /* @__PURE__ */ React__default.createElement("div", {
|
37066
37161
|
className: styles$9.listItem,
|
37067
37162
|
onClick: handleMoveDown
|
37068
37163
|
}, /* @__PURE__ */ React__default.createElement(IconFont, {
|
37069
37164
|
iconName: "icon-bottom",
|
37070
37165
|
style: { marginRight: 10 }
|
37071
|
-
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Move down")), /* @__PURE__ */ React__default.createElement("div", {
|
37166
|
+
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, t("Move down"))), /* @__PURE__ */ React__default.createElement("div", {
|
37072
37167
|
className: styles$9.listItem,
|
37073
37168
|
onClick: handleCopy
|
37074
37169
|
}, /* @__PURE__ */ React__default.createElement(IconFont, {
|
37075
37170
|
iconName: "icon-copy",
|
37076
37171
|
style: { marginRight: 10 }
|
37077
|
-
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Copy")), props.onAddCollection && /* @__PURE__ */ React__default.createElement("div", {
|
37172
|
+
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, t("Copy"))), props.onAddCollection && /* @__PURE__ */ React__default.createElement("div", {
|
37078
37173
|
className: styles$9.listItem,
|
37079
37174
|
onClick: handleAddToCollection
|
37080
37175
|
}, /* @__PURE__ */ React__default.createElement(IconFont, {
|
@@ -37086,7 +37181,7 @@ function ContextMenu({
|
|
37086
37181
|
}, /* @__PURE__ */ React__default.createElement(IconFont, {
|
37087
37182
|
iconName: "icon-delete",
|
37088
37183
|
style: { marginRight: 10 }
|
37089
|
-
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, "Delete"))), /* @__PURE__ */ React__default.createElement("div", {
|
37184
|
+
}), " ", /* @__PURE__ */ React__default.createElement(TextStyle, null, t("Delete")))), /* @__PURE__ */ React__default.createElement("div", {
|
37090
37185
|
className: styles$9.contextmenuMark,
|
37091
37186
|
onClick: onClose,
|
37092
37187
|
onContextMenu: (e) => {
|
@@ -39477,119 +39572,171 @@ const list = [
|
|
39477
39572
|
];
|
39478
39573
|
const defaultCategories$1 = [
|
39479
39574
|
{
|
39480
|
-
title
|
39575
|
+
get title() {
|
39576
|
+
return t("Content");
|
39577
|
+
},
|
39481
39578
|
name: "CONTENT",
|
39482
39579
|
blocks: [
|
39483
39580
|
{
|
39484
39581
|
type: AdvancedType.TEXT,
|
39485
|
-
title
|
39486
|
-
|
39582
|
+
get title() {
|
39583
|
+
return t("Text");
|
39584
|
+
},
|
39585
|
+
get description() {
|
39586
|
+
return t("This block allows you to display text in your email");
|
39587
|
+
},
|
39487
39588
|
component: TextBlockItem
|
39488
39589
|
},
|
39489
39590
|
{
|
39490
39591
|
type: AdvancedType.IMAGE,
|
39491
|
-
title
|
39492
|
-
|
39493
|
-
|
39494
|
-
|
39495
|
-
|
39592
|
+
get title() {
|
39593
|
+
return t("Image");
|
39594
|
+
},
|
39595
|
+
get description() {
|
39596
|
+
return /* @__PURE__ */ React__default.createElement(Stack$4, {
|
39597
|
+
vertical: true,
|
39598
|
+
spacing: "none"
|
39599
|
+
}, /* @__PURE__ */ React__default.createElement(TextStyle, null, t("Displays a responsive image in your email. It is similar to the HTML '<img/>' tag. Note that if no width is provided, the image will use the parent column width.")));
|
39600
|
+
},
|
39496
39601
|
component: ImageBlockItem
|
39497
39602
|
},
|
39498
39603
|
{
|
39499
39604
|
type: AdvancedType.BUTTON,
|
39500
|
-
title
|
39501
|
-
|
39605
|
+
get title() {
|
39606
|
+
return t("Button");
|
39607
|
+
},
|
39608
|
+
get description() {
|
39609
|
+
return t("Displays a customizable button.");
|
39610
|
+
},
|
39502
39611
|
component: ButtonBlockItem
|
39503
39612
|
},
|
39504
39613
|
{
|
39505
39614
|
type: AdvancedType.HERO,
|
39506
|
-
title
|
39507
|
-
|
39508
|
-
|
39615
|
+
get title() {
|
39616
|
+
return t("Hero");
|
39617
|
+
},
|
39618
|
+
get description() {
|
39619
|
+
return t("This block displays a hero image. It behaves like an 'section' with a single 'column'.");
|
39620
|
+
},
|
39509
39621
|
component: HeroBlockItem
|
39510
39622
|
},
|
39511
39623
|
{
|
39512
39624
|
type: AdvancedType.NAVBAR,
|
39513
|
-
title
|
39514
|
-
|
39515
|
-
|
39625
|
+
get title() {
|
39626
|
+
return t("Navbar");
|
39627
|
+
},
|
39628
|
+
get description() {
|
39629
|
+
return t("Displays a menu for navigation with an optional hamburger mode for mobile devices.");
|
39630
|
+
},
|
39516
39631
|
component: NavbarBlockItem
|
39517
39632
|
},
|
39518
39633
|
{
|
39519
39634
|
type: AdvancedType.SPACER,
|
39520
|
-
title
|
39521
|
-
|
39635
|
+
get title() {
|
39636
|
+
return t("Spacer");
|
39637
|
+
},
|
39638
|
+
get description() {
|
39639
|
+
return t("Displays a blank space.");
|
39640
|
+
},
|
39522
39641
|
component: SpacerBlockItem
|
39523
39642
|
},
|
39524
39643
|
{
|
39525
39644
|
type: AdvancedType.DIVIDER,
|
39526
|
-
title
|
39527
|
-
|
39528
|
-
|
39645
|
+
get title() {
|
39646
|
+
return t("Divider");
|
39647
|
+
},
|
39648
|
+
get description() {
|
39649
|
+
return t("Displays a horizontal divider that can be customized like a HTML border.");
|
39650
|
+
},
|
39529
39651
|
component: DividerBlockItem
|
39530
39652
|
},
|
39531
39653
|
{
|
39532
39654
|
type: AdvancedType.ACCORDION,
|
39533
|
-
title
|
39534
|
-
|
39535
|
-
|
39536
|
-
|
39537
|
-
|
39538
|
-
|
39655
|
+
get title() {
|
39656
|
+
return t("Accordion");
|
39657
|
+
},
|
39658
|
+
get description() {
|
39659
|
+
return t("Accordion is an interactive component to stack content in tabs, so the information is collapsed and only the titles are visible. Readers can interact by clicking on the tabs to reveal the content, providing a great experience on mobile devices where space is scarce.");
|
39660
|
+
},
|
39539
39661
|
component: AccordionBlockItem
|
39540
39662
|
},
|
39541
39663
|
{
|
39542
39664
|
type: AdvancedType.CAROUSEL,
|
39543
|
-
title
|
39544
|
-
|
39545
|
-
|
39546
|
-
|
39665
|
+
get title() {
|
39666
|
+
return t("Carousel");
|
39667
|
+
},
|
39668
|
+
get description() {
|
39669
|
+
return t("This block displays a gallery of images or 'carousel'. Readers can interact by hovering and clicking on thumbnails depending on the email client they use.");
|
39670
|
+
},
|
39547
39671
|
component: CarouselBlockItem
|
39548
39672
|
},
|
39549
39673
|
{
|
39550
39674
|
type: AdvancedType.SOCIAL,
|
39551
|
-
title
|
39552
|
-
|
39553
|
-
|
39675
|
+
get title() {
|
39676
|
+
return t("Social");
|
39677
|
+
},
|
39678
|
+
get description() {
|
39679
|
+
return t("Displays calls-to-action for various social networks with their associated logo.");
|
39680
|
+
},
|
39554
39681
|
component: SocialBlockItem
|
39555
39682
|
}
|
39556
39683
|
]
|
39557
39684
|
},
|
39558
39685
|
{
|
39559
|
-
title
|
39686
|
+
get title() {
|
39687
|
+
return t("Layout");
|
39688
|
+
},
|
39560
39689
|
name: "LAYOUT",
|
39561
39690
|
blocks: [
|
39562
39691
|
{
|
39563
39692
|
type: AdvancedType.WRAPPER,
|
39564
|
-
title
|
39565
|
-
|
39566
|
-
|
39693
|
+
get title() {
|
39694
|
+
return t("Wrapper");
|
39695
|
+
},
|
39696
|
+
get description() {
|
39697
|
+
return t('Wrapper enables to wrap multiple sections together. It"s especially useful to achieve nested layouts with shared border or background images across sections.');
|
39698
|
+
},
|
39567
39699
|
component: WrapperBlockItem
|
39568
39700
|
},
|
39569
39701
|
{
|
39570
39702
|
type: AdvancedType.SECTION,
|
39571
|
-
title
|
39572
|
-
|
39573
|
-
|
39574
|
-
|
39575
|
-
|
39703
|
+
get title() {
|
39704
|
+
return t("Section");
|
39705
|
+
},
|
39706
|
+
get description() {
|
39707
|
+
return /* @__PURE__ */ React__default.createElement(Stack$4, {
|
39708
|
+
vertical: true,
|
39709
|
+
spacing: "none"
|
39710
|
+
}, /* @__PURE__ */ React__default.createElement(TextStyle, null, t("Sections are intended to be used as rows within your email. They will be used to structure the layout.")), /* @__PURE__ */ React__default.createElement(TextStyle, null, t("Sections cannot nest in sections. Columns can nest in sections; all content must be in a column.")));
|
39711
|
+
},
|
39576
39712
|
component: SectionBlockItem
|
39577
39713
|
},
|
39578
39714
|
{
|
39579
39715
|
type: AdvancedType.GROUP,
|
39580
|
-
title
|
39581
|
-
|
39582
|
-
|
39583
|
-
|
39716
|
+
get title() {
|
39717
|
+
return t("Group");
|
39718
|
+
},
|
39719
|
+
get description() {
|
39720
|
+
return t('Group allows you to prevent columns from stacking on mobile. To do so, wrap the columns inside a group block, so they"ll stay side by side on mobile.');
|
39721
|
+
},
|
39584
39722
|
component: GroupBlockItem
|
39585
39723
|
},
|
39586
39724
|
{
|
39587
39725
|
type: AdvancedType.COLUMN,
|
39588
|
-
title
|
39589
|
-
|
39590
|
-
|
39591
|
-
|
39592
|
-
|
39726
|
+
get title() {
|
39727
|
+
return t("Column");
|
39728
|
+
},
|
39729
|
+
get description() {
|
39730
|
+
return /* @__PURE__ */ React__default.createElement(Stack$4, {
|
39731
|
+
vertical: true,
|
39732
|
+
spacing: "none"
|
39733
|
+
}, /* @__PURE__ */ React__default.createElement(TextStyle, null, t(`Columns enable you to horizontally organize the content within
|
39734
|
+
your sections. They must be located under "Section" block in order
|
39735
|
+
to be considered by the engine. To be responsive, columns are
|
39736
|
+
expressed in terms of percentage.`)), /* @__PURE__ */ React__default.createElement(TextStyle, null, t(`Every single column has to contain something because they are
|
39737
|
+
responsive containers, and will be vertically stacked on a mobile
|
39738
|
+
view.`)));
|
39739
|
+
},
|
39593
39740
|
component: ColumnBlockItem
|
39594
39741
|
}
|
39595
39742
|
]
|
@@ -39811,10 +39958,10 @@ function SourceCodePanel() {
|
|
39811
39958
|
const parseValue = JSON.parse(JSON.stringify(eval("(" + event.target.value + ")")));
|
39812
39959
|
const block = BlockManager.getBlockByType(parseValue.type);
|
39813
39960
|
if (!block) {
|
39814
|
-
throw new Error("Invalid content");
|
39961
|
+
throw new Error(t("Invalid content"));
|
39815
39962
|
}
|
39816
39963
|
if (!parseValue.data || !parseValue.data.value || !parseValue.attributes || !Array.isArray(parseValue.children)) {
|
39817
|
-
throw new Error("Invalid content");
|
39964
|
+
throw new Error(t("Invalid content"));
|
39818
39965
|
}
|
39819
39966
|
setValueByIdx(focusIdx, parseValue);
|
39820
39967
|
} catch (error2) {
|
@@ -39828,14 +39975,14 @@ function SourceCodePanel() {
|
|
39828
39975
|
const parentBlock = getParentByIdx(values, focusIdx);
|
39829
39976
|
const parseBlock = BlockManager.getBlockByType(parseValue2.type);
|
39830
39977
|
if (!(parseBlock == null ? void 0 : parseBlock.validParentType.includes(parentBlock == null ? void 0 : parentBlock.type))) {
|
39831
|
-
throw new Error("Invalid content");
|
39978
|
+
throw new Error(t("Invalid content"));
|
39832
39979
|
}
|
39833
39980
|
} else if (focusIdx !== getPageIdx()) {
|
39834
|
-
throw new Error("Invalid content");
|
39981
|
+
throw new Error(t("Invalid content"));
|
39835
39982
|
}
|
39836
39983
|
setValueByIdx(focusIdx, parseValue2);
|
39837
39984
|
} catch (error2) {
|
39838
|
-
Message$1.error("Invalid content");
|
39985
|
+
Message$1.error(t("Invalid content"));
|
39839
39986
|
}
|
39840
39987
|
}, [focusIdx, setValueByIdx, values]);
|
39841
39988
|
const onChangeMjmlText = useCallback((value) => {
|
@@ -39854,7 +40001,7 @@ function SourceCodePanel() {
|
|
39854
40001
|
return null;
|
39855
40002
|
return /* @__PURE__ */ React__default.createElement(Collapse$1, null, /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
39856
40003
|
name: "json",
|
39857
|
-
header: "Json source",
|
40004
|
+
header: t("Json source"),
|
39858
40005
|
contentStyle: { padding: "8px 13px" }
|
39859
40006
|
}, /* @__PURE__ */ React__default.createElement(Input$4.TextArea, {
|
39860
40007
|
key: code,
|
@@ -39863,7 +40010,7 @@ function SourceCodePanel() {
|
|
39863
40010
|
onBlur: onChangeCode
|
39864
40011
|
})), /* @__PURE__ */ React__default.createElement(Collapse$1.Item, {
|
39865
40012
|
name: "mjml",
|
39866
|
-
header: "MJML source",
|
40013
|
+
header: t("MJML source"),
|
39867
40014
|
contentStyle: { padding: "8px 13px" }
|
39868
40015
|
}, /* @__PURE__ */ React__default.createElement(Input$4.TextArea, {
|
39869
40016
|
key: code,
|
@@ -40145,13 +40292,13 @@ function TipNode(props) {
|
|
40145
40292
|
const { direction, title: title2, lineWidth, type } = props;
|
40146
40293
|
const dragTitle = useMemo(() => {
|
40147
40294
|
if (direction === "top" || direction === "noEnoughTop") {
|
40148
|
-
return t(
|
40295
|
+
return `${t("Insert before")} ${title2}`;
|
40149
40296
|
} else if (direction === "bottom") {
|
40150
|
-
return t(
|
40297
|
+
return `${t("Insert after")} ${title2}`;
|
40151
40298
|
} else if (direction === "right" || direction === "left") {
|
40152
40299
|
return t("Drag here");
|
40153
40300
|
}
|
40154
|
-
return
|
40301
|
+
return `${t("Drag to")} ${title2}`;
|
40155
40302
|
}, [direction, title2]);
|
40156
40303
|
const color2 = useMemo(() => {
|
40157
40304
|
if (type === "drag") {
|
@@ -40585,13 +40732,13 @@ function MergeTagBadgePrompt() {
|
|
40585
40732
|
className: classnames("easy-email-merge-tag-popover")
|
40586
40733
|
}, /* @__PURE__ */ React__default.createElement("div", {
|
40587
40734
|
className: "easy-email-merge-tag-popover-container"
|
40588
|
-
}, /* @__PURE__ */ React__default.createElement("h3", null, /* @__PURE__ */ React__default.createElement("span", null, "Default value"), /* @__PURE__ */ React__default.createElement(IconFont, {
|
40735
|
+
}, /* @__PURE__ */ React__default.createElement("h3", null, /* @__PURE__ */ React__default.createElement("span", null, t("Default value")), /* @__PURE__ */ React__default.createElement(IconFont, {
|
40589
40736
|
style: { color: "rgb(92, 95, 98)" },
|
40590
40737
|
iconName: "icon-close",
|
40591
40738
|
onClick: onClose
|
40592
40739
|
})), /* @__PURE__ */ React__default.createElement("div", {
|
40593
40740
|
className: "easy-email-merge-tag-popover-desc"
|
40594
|
-
}, /* @__PURE__ */ React__default.createElement("p", null,
|
40741
|
+
}, /* @__PURE__ */ React__default.createElement("p", null, t('If a personalized text value isn"t available, then a default value is shown.')), /* @__PURE__ */ React__default.createElement("div", {
|
40595
40742
|
className: "easy-email-merge-tag-popover-desc-label"
|
40596
40743
|
}, /* @__PURE__ */ React__default.createElement("input", {
|
40597
40744
|
autoFocus: true,
|
@@ -40606,7 +40753,7 @@ function MergeTagBadgePrompt() {
|
|
40606
40753
|
className: "easy-email-merge-tag-popover-desc-label-button"
|
40607
40754
|
}, /* @__PURE__ */ React__default.createElement("button", {
|
40608
40755
|
onClick: onSave
|
40609
|
-
}, "Save"))))), textContainer));
|
40756
|
+
}, t("Save")))))), textContainer));
|
40610
40757
|
}
|
40611
40758
|
const SimpleLayout = (props) => {
|
40612
40759
|
const { height: containerHeight } = useEditorProps();
|
@@ -40655,7 +40802,7 @@ const SimpleLayout = (props) => {
|
|
40655
40802
|
overflowX: "hidden"
|
40656
40803
|
}
|
40657
40804
|
}, /* @__PURE__ */ React__default.createElement(Card$1, {
|
40658
|
-
title: "Layout",
|
40805
|
+
title: t("Layout"),
|
40659
40806
|
style: { border: "none" },
|
40660
40807
|
headerStyle: { height: 50 }
|
40661
40808
|
}, !collapsed && /* @__PURE__ */ React__default.createElement(BlockLayer, {
|
@@ -40685,13 +40832,13 @@ const SimpleLayout = (props) => {
|
|
40685
40832
|
}, /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {
|
40686
40833
|
title: /* @__PURE__ */ React__default.createElement("div", {
|
40687
40834
|
style: { height: 31, lineHeight: "31px" }
|
40688
|
-
}, "Configuration")
|
40835
|
+
}, t("Configuration"))
|
40689
40836
|
}, /* @__PURE__ */ React__default.createElement(AttributePanel, null)), showSourceCode && /* @__PURE__ */ React__default.createElement(Tabs$1.TabPane, {
|
40690
40837
|
destroyOnHide: true,
|
40691
40838
|
key: "Source code",
|
40692
40839
|
title: /* @__PURE__ */ React__default.createElement("div", {
|
40693
40840
|
style: { height: 31, lineHeight: "31px" }
|
40694
|
-
}, "Source code")
|
40841
|
+
}, t("Source code"))
|
40695
40842
|
}, /* @__PURE__ */ React__default.createElement(SourceCodePanel, null))))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)));
|
40696
40843
|
};
|
40697
40844
|
const StandardLayout$1 = "_StandardLayout_xv0bc_1";
|
@@ -45876,7 +46023,9 @@ function EditPanel({ showSourceCode }) {
|
|
45876
46023
|
}
|
45877
46024
|
const defaultCategories = [
|
45878
46025
|
{
|
45879
|
-
label
|
46026
|
+
get label() {
|
46027
|
+
return t("Content");
|
46028
|
+
},
|
45880
46029
|
active: true,
|
45881
46030
|
blocks: [
|
45882
46031
|
{
|
@@ -45907,12 +46056,16 @@ const defaultCategories = [
|
|
45907
46056
|
]
|
45908
46057
|
},
|
45909
46058
|
{
|
45910
|
-
label
|
46059
|
+
get label() {
|
46060
|
+
return t("Layout");
|
46061
|
+
},
|
45911
46062
|
active: true,
|
45912
46063
|
displayType: "column",
|
45913
46064
|
blocks: [
|
45914
46065
|
{
|
45915
|
-
title
|
46066
|
+
get title() {
|
46067
|
+
return t("2 columns");
|
46068
|
+
},
|
45916
46069
|
payload: [
|
45917
46070
|
["50%", "50%"],
|
45918
46071
|
["33%", "67%"],
|
@@ -45922,7 +46075,9 @@ const defaultCategories = [
|
|
45922
46075
|
]
|
45923
46076
|
},
|
45924
46077
|
{
|
45925
|
-
title
|
46078
|
+
get title() {
|
46079
|
+
return t("3 columns");
|
46080
|
+
},
|
45926
46081
|
payload: [
|
45927
46082
|
["33.33%", "33.33%", "33.33%"],
|
45928
46083
|
["25%", "25%", "50%"],
|
@@ -45930,7 +46085,9 @@ const defaultCategories = [
|
|
45930
46085
|
]
|
45931
46086
|
},
|
45932
46087
|
{
|
45933
|
-
title
|
46088
|
+
get title() {
|
46089
|
+
return t("4 columns");
|
46090
|
+
},
|
45934
46091
|
payload: [[["25%", "25%", "25%", "25%"]]]
|
45935
46092
|
}
|
45936
46093
|
]
|
@@ -45984,5 +46141,5 @@ const StandardLayout = (props) => {
|
|
45984
46141
|
style: { width: 0, overflow: "hidden" }
|
45985
46142
|
}))), /* @__PURE__ */ React__default.createElement(InteractivePrompt, null), /* @__PURE__ */ React__default.createElement(MergeTagBadgePrompt, null)));
|
45986
46143
|
};
|
45987
|
-
export {
|
46144
|
+
export { SearchField as $, AttributePanel as A, BlockLayer as B, Color as C, Decoration as D, BlockMarketManager as E, FontFamily as F, BlockMaskWrapper as G, Height as H, SourceCodePanel as I, InteractivePrompt as J, SimpleLayout as K, LetterSpacing as L, Margin as M, NavbarLinkPadding as N, StandardLayout as O, Page as P, MergeTagBadgePrompt as Q, ExtensionContext as R, ShortcutToolbar as S, TextAlign as T, ExtensionProvider as U, VerticalAlign as V, Width as W, useExtensionProps as X, RICH_TEXT_TOOL_BAR as Y, TextField as Z, InputWithUnitField as _, getIconNameByBlockType as a, TextAreaField as a0, NumberField as a1, SliderField as a2, UploadField as a3, ImageUploaderField as a4, SelectField as a5, TreeSelectField as a6, AutoCompleteField as a7, RadioGroupField as a8, SwitchField as a9, CheckboxField as aa, EditTabField as ab, EditGridTabField as ac, InlineTextField as ad, ColorPickerField as ae, enhancer as af, RichTextField as ag, getBlockTitle as b, commonjsGlobal as c, BlockAttributeConfigurationManager as d, Align as e, AttributesPanelWrapper as f, getContextMergeTags as g, CollapseWrapper as h, ContainerBackgroundColor as i, TextDecoration as j, Background as k, LineHeight as l, TextTransform as m, BackgroundColor as n, Direction as o, Link as p, Border as q, BorderColor as r, FontSize$1 as s, MergeTags$1 as t, BorderStyle as u, FontStyle as v, BorderWidth as w, FontWeight as x, Padding as y, ClassName as z };
|
45988
46145
|
//# sourceMappingURL=index2.js.map
|