@flozy/editor 9.3.0 → 9.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor/ChatEditor.js +10 -45
- package/dist/Editor/CommonEditor.js +20 -126
- package/dist/Editor/DialogWrapper.js +25 -31
- package/dist/Editor/Editor.css +7 -11
- package/dist/Editor/Elements/AI/AIInput.js +3 -5
- package/dist/Editor/Elements/AI/CustomSelect.js +5 -9
- package/dist/Editor/Elements/AI/PopoverAIInput.js +2 -4
- package/dist/Editor/Elements/Accordion/Accordion.js +3 -4
- package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +1 -4
- package/dist/Editor/Elements/Accordion/AccordionButton.js +2 -6
- package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +1 -4
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +2 -6
- package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +1 -4
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +1 -4
- package/dist/Editor/Elements/Button/ButtonPopup.js +1 -4
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +2 -6
- package/dist/Editor/Elements/Button/EditorButton.js +14 -31
- package/dist/Editor/Elements/Carousel/Carousel.js +4 -5
- package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -6
- package/dist/Editor/Elements/Carousel/CarouselItem.js +2 -3
- package/dist/Editor/Elements/ChipText/ChipTextPopup.js +1 -4
- package/dist/Editor/Elements/CodeToText/CodeToText.js +4 -5
- package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +2 -6
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +12 -57
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +4 -5
- package/dist/Editor/Elements/Color Picker/Styles.js +1 -1
- package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
- package/dist/Editor/Elements/DataView/DataView.js +2 -5
- package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +12 -13
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +6 -7
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +12 -15
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -12
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
- package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
- package/dist/Editor/Elements/Divider/Divider.js +3 -5
- package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
- package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
- package/dist/Editor/Elements/Embed/Embed.js +1 -4
- package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
- package/dist/Editor/Elements/Embed/Image.js +11 -16
- package/dist/Editor/Elements/Embed/Video.js +7 -10
- package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
- package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
- package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
- package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
- package/dist/Editor/Elements/Form/Form.js +9 -12
- package/dist/Editor/Elements/Form/FormButton.js +2 -6
- package/dist/Editor/Elements/Form/FormPopup.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
- package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
- package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
- package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +18 -21
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +2 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +3 -8
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
- package/dist/Editor/Elements/FreeGrid/Options/More.js +3 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
- package/dist/Editor/Elements/Grid/Grid.js +10 -13
- package/dist/Editor/Elements/Grid/GridButton.js +5 -9
- package/dist/Editor/Elements/Grid/GridItem.js +8 -14
- package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
- package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
- package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
- package/dist/Editor/Elements/Link/Link.js +7 -14
- package/dist/Editor/Elements/Link/LinkButton.js +1 -4
- package/dist/Editor/Elements/List/CheckList.js +9 -14
- package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +5 -16
- package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
- package/dist/Editor/Elements/Search/SearchButton.js +3 -6
- package/dist/Editor/Elements/Search/SearchList.js +3 -7
- package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
- package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
- package/dist/Editor/Elements/SimpleText/index.js +4 -5
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/DragButton.js +2 -4
- package/dist/Editor/Elements/Table/Table.js +25 -48
- package/dist/Editor/Elements/Table/TableCell.js +27 -6
- package/dist/Editor/Elements/Table/TablePopup.js +1 -4
- package/dist/Editor/Elements/Table/TableSelector.js +6 -10
- package/dist/Editor/Elements/Table/TableTool.js +4 -8
- package/dist/Editor/Elements/Title/title.js +0 -10
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
- package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
- package/dist/Editor/MiniEditor.js +3 -9
- package/dist/Editor/Styles/EditorStyles.js +5 -5
- package/dist/Editor/Toolbar/Basic/index.js +1 -2
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -7
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +15 -20
- package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
- package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +2 -6
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +7 -15
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +4 -8
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +9 -16
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +41 -120
- package/dist/Editor/Toolbar/PopupTool/index.js +8 -3
- package/dist/Editor/Toolbar/Toolbar.js +10 -20
- package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
- package/dist/Editor/assets/svg/CalenderIconTick.js +0 -1
- package/dist/Editor/common/ColorPickerButton.js +9 -35
- package/dist/Editor/common/CustomDialog/index.js +10 -8
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
- package/dist/Editor/common/Icon.js +0 -28
- package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
- package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
- package/dist/Editor/common/ImageSelector/Styles.js +9 -3
- package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
- package/dist/Editor/common/LinkSettings/index.js +14 -20
- package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
- package/dist/Editor/common/MentionsPopup/Styles.js +68 -106
- package/dist/Editor/common/MentionsPopup/index.js +4 -8
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
- package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
- package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -4
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
- package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +8 -20
- package/dist/Editor/common/RnD/Utils/index.js +0 -45
- package/dist/Editor/common/RnD/VirtualElement/index.js +2 -1
- package/dist/Editor/common/RnD/index.js +7 -34
- package/dist/Editor/common/Section/index.js +4 -7
- package/dist/Editor/common/Shorthands/elements.js +10 -93
- package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
- package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
- package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
- package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -41
- package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
- package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
- package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
- package/dist/Editor/common/StyleBuilder/index.js +5 -8
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
- package/dist/Editor/common/Uploader.js +5 -16
- package/dist/Editor/commonStyle.js +65 -55
- package/dist/Editor/helper/index.js +12 -8
- package/dist/Editor/helper/theme.js +2 -200
- package/dist/Editor/hooks/useDrag.js +10 -16
- package/dist/Editor/hooks/useEditorScroll.js +5 -10
- package/dist/Editor/hooks/useMouseMove.js +13 -25
- package/dist/Editor/hooks/useTable.js +1 -1
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +13 -18
- package/dist/Editor/plugins/withLayout.js +2 -3
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +173 -50
- package/dist/Editor/utils/SlateUtilityFunctions.js +45 -162
- package/dist/Editor/utils/button.js +14 -0
- package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +0 -23
- package/dist/Editor/utils/divider.js +0 -8
- package/dist/Editor/utils/draftToSlate.js +2 -3
- package/dist/Editor/utils/embed.js +4 -9
- package/dist/Editor/utils/font.js +37 -40
- package/dist/Editor/utils/helper.js +19 -65
- package/dist/Editor/utils/table.js +0 -8
- package/package.json +1 -1
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -438
- package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
- package/dist/Editor/common/CustomColorPicker/index.js +0 -106
- package/dist/Editor/common/CustomColorPicker/style.js +0 -53
- package/dist/Editor/common/CustomDialog2/index.js +0 -94
- package/dist/Editor/common/CustomDialog2/style.js +0 -67
- package/dist/Editor/common/CustomSelect.js +0 -33
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
- package/dist/Editor/helper/textIndeces.js +0 -58
- package/dist/Editor/hooks/useEditorTheme.js +0 -153
- package/dist/Editor/theme/index.js +0 -144
- package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
- package/dist/Editor/themeSettings/buttons/index.js +0 -283
- package/dist/Editor/themeSettings/buttons/style.js +0 -21
- package/dist/Editor/themeSettings/colorTheme/index.js +0 -292
- package/dist/Editor/themeSettings/colorTheme/style.js +0 -77
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
- package/dist/Editor/themeSettings/fonts/index.js +0 -220
- package/dist/Editor/themeSettings/fonts/style.js +0 -44
- package/dist/Editor/themeSettings/icons.js +0 -60
- package/dist/Editor/themeSettings/index.js +0 -320
- package/dist/Editor/themeSettings/style.js +0 -152
- package/dist/Editor/themeSettingsAI/icons.js +0 -96
- package/dist/Editor/themeSettingsAI/index.js +0 -356
- package/dist/Editor/themeSettingsAI/saveTheme.js +0 -197
- package/dist/Editor/themeSettingsAI/style.js +0 -250
@@ -8,12 +8,8 @@ const Alignment = props => {
|
|
8
8
|
const {
|
9
9
|
value,
|
10
10
|
data,
|
11
|
-
onChange
|
12
|
-
customProps
|
11
|
+
onChange
|
13
12
|
} = props;
|
14
|
-
const {
|
15
|
-
translation
|
16
|
-
} = customProps;
|
17
13
|
const {
|
18
14
|
key
|
19
15
|
} = data;
|
@@ -40,7 +36,7 @@ const Alignment = props => {
|
|
40
36
|
fontSize: "14px",
|
41
37
|
fontWeight: 500
|
42
38
|
},
|
43
|
-
children:
|
39
|
+
children: "Alignment"
|
44
40
|
})
|
45
41
|
}), /*#__PURE__*/_jsxs("div", {
|
46
42
|
style: {
|
@@ -57,21 +53,21 @@ const Alignment = props => {
|
|
57
53
|
display: "flex"
|
58
54
|
},
|
59
55
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
60
|
-
title:
|
56
|
+
title: "Align Left",
|
61
57
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
62
58
|
value: "start",
|
63
59
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
64
60
|
label: /*#__PURE__*/_jsx(JustifyStartIcon, {})
|
65
61
|
})
|
66
62
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
67
|
-
title:
|
63
|
+
title: "Align Center",
|
68
64
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
69
65
|
value: "center",
|
70
66
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
71
67
|
label: /*#__PURE__*/_jsx(JustifyCenterIcon, {})
|
72
68
|
})
|
73
69
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
74
|
-
title:
|
70
|
+
title: "Align Right",
|
75
71
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
76
72
|
value: "end",
|
77
73
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
@@ -89,21 +85,21 @@ const Alignment = props => {
|
|
89
85
|
display: "flex"
|
90
86
|
},
|
91
87
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
92
|
-
title:
|
88
|
+
title: "Align Top",
|
93
89
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
94
90
|
value: "start",
|
95
91
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
96
92
|
label: /*#__PURE__*/_jsx(AlignStartIcon, {})
|
97
93
|
})
|
98
94
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
99
|
-
title:
|
95
|
+
title: "Align Middle",
|
100
96
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
101
97
|
value: "center",
|
102
98
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
103
99
|
label: /*#__PURE__*/_jsx(AlignCenterIcon, {})
|
104
100
|
})
|
105
101
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
106
|
-
title:
|
102
|
+
title: "Align Bottom",
|
107
103
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
108
104
|
value: "end",
|
109
105
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
@@ -126,7 +122,7 @@ const Alignment = props => {
|
|
126
122
|
fontSize: "14px",
|
127
123
|
fontWeight: 500
|
128
124
|
},
|
129
|
-
children:
|
125
|
+
children: "Direction"
|
130
126
|
})
|
131
127
|
}), /*#__PURE__*/_jsxs(RadioGroup, {
|
132
128
|
row: true,
|
@@ -13,9 +13,6 @@ const BackgroundImage = props => {
|
|
13
13
|
customProps,
|
14
14
|
onChange
|
15
15
|
} = props;
|
16
|
-
const {
|
17
|
-
translation
|
18
|
-
} = customProps;
|
19
16
|
const {
|
20
17
|
key
|
21
18
|
} = data;
|
@@ -55,7 +52,7 @@ const BackgroundImage = props => {
|
|
55
52
|
fontWeight: "500",
|
56
53
|
marginBottom: "8px"
|
57
54
|
},
|
58
|
-
children:
|
55
|
+
children: "Upload Image"
|
59
56
|
}), /*#__PURE__*/_jsx(Grid, {
|
60
57
|
container: true,
|
61
58
|
sx: classes.uploadContainer,
|
@@ -73,14 +70,9 @@ const BackgroundImage = props => {
|
|
73
70
|
children: base64 ? /*#__PURE__*/_jsx(Grid, {
|
74
71
|
className: "removeImageText",
|
75
72
|
onClick: onRemoveBG,
|
76
|
-
children:
|
73
|
+
children: "REMOVE"
|
77
74
|
}) : /*#__PURE__*/_jsx(Grid, {
|
78
75
|
className: "uploadImageText",
|
79
|
-
sx: {
|
80
|
-
padding: 0,
|
81
|
-
background: `${theme?.palette?.editor?.inputFieldBgColor}`,
|
82
|
-
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
|
83
|
-
},
|
84
76
|
children: /*#__PURE__*/_jsxs(Button, {
|
85
77
|
component: "label",
|
86
78
|
variant: "text",
|
@@ -95,7 +87,7 @@ const BackgroundImage = props => {
|
|
95
87
|
style: {
|
96
88
|
paddingLeft: "8px"
|
97
89
|
},
|
98
|
-
children:
|
90
|
+
children: "Upload a image"
|
99
91
|
})]
|
100
92
|
})
|
101
93
|
})
|
@@ -3,37 +3,23 @@ import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box, IconButton }
|
|
3
3
|
import { squreStyle } from "./radiusStyle";
|
4
4
|
import { getBreakPointsValue } from "../../../helper/theme";
|
5
5
|
import useWindowResize from "../../../hooks/useWindowResize";
|
6
|
-
import { useEditorTheme } from "../../../hooks/useEditorTheme";
|
7
6
|
import { CheckedBoxCheckIcon } from "../../iconListV2";
|
8
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
8
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
9
|
const BANNER_SPACING_KEYS = ["top", "left", "right", "bottom"];
|
11
10
|
const BannerSpacing = props => {
|
12
11
|
const {
|
12
|
+
value: val,
|
13
13
|
data,
|
14
14
|
onChange,
|
15
15
|
elementProps,
|
16
|
-
classes
|
17
|
-
customProps
|
16
|
+
classes
|
18
17
|
} = props;
|
19
|
-
const {
|
20
|
-
translation
|
21
|
-
} = customProps;
|
22
18
|
const {
|
23
19
|
key
|
24
20
|
} = data;
|
25
21
|
const lockKeyVal = `lock${key}`;
|
26
|
-
|
27
|
-
selectedTheme
|
28
|
-
} = useEditorTheme();
|
29
|
-
const {
|
30
|
-
bannerSpacing,
|
31
|
-
lockbannerSpacing
|
32
|
-
} = selectedTheme?.elementProps?.button || {};
|
33
|
-
const isUserValue = Object.keys(props?.value || {})?.length;
|
34
|
-
const isUserLockedSpacing = typeof elementProps[lockKeyVal] === "boolean";
|
35
|
-
const val = isUserValue ? props?.value : bannerSpacing;
|
36
|
-
let lockSpacing = isUserLockedSpacing ? elementProps[lockKeyVal] : lockbannerSpacing;
|
22
|
+
let lockSpacing = elementProps[lockKeyVal];
|
37
23
|
if (lockSpacing === undefined) {
|
38
24
|
lockSpacing = true;
|
39
25
|
}
|
@@ -77,7 +63,7 @@ const BannerSpacing = props => {
|
|
77
63
|
fontSize: "14px",
|
78
64
|
fontWeight: 500
|
79
65
|
},
|
80
|
-
children:
|
66
|
+
children: data?.label
|
81
67
|
}), /*#__PURE__*/_jsxs(Grid, {
|
82
68
|
container: true,
|
83
69
|
wrap: "nowrap",
|
@@ -140,7 +126,7 @@ const BannerSpacing = props => {
|
|
140
126
|
sx: {
|
141
127
|
fontSize: "14px"
|
142
128
|
},
|
143
|
-
children:
|
129
|
+
children: "Customize"
|
144
130
|
})
|
145
131
|
}), !lockSpacing ? /*#__PURE__*/_jsx(Grid, {
|
146
132
|
container: true,
|
@@ -3,40 +3,28 @@ import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box, IconButton }
|
|
3
3
|
import { radiusStyle } from "./radiusStyle";
|
4
4
|
import useWindowResize from "../../../hooks/useWindowResize";
|
5
5
|
import { getBreakPointsValue, getCustomizationValue } from "../../../helper/theme";
|
6
|
-
import { useEditorTheme } from "../../../hooks/useEditorTheme";
|
7
6
|
import { CheckedBoxCheckIcon } from "../../iconListV2";
|
8
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
8
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
9
|
const BORDER_RADIUS_KEYS = ["topLeft", "topRight", "bottomLeft", "bottomRight"];
|
11
10
|
const BorderRadius = props => {
|
12
11
|
const {
|
12
|
+
value: val,
|
13
13
|
data,
|
14
14
|
onChange,
|
15
15
|
elementProps,
|
16
|
-
classes
|
17
|
-
customProps
|
16
|
+
classes
|
18
17
|
} = props;
|
19
|
-
|
20
|
-
|
21
|
-
} =
|
18
|
+
let {
|
19
|
+
lockRadius
|
20
|
+
} = elementProps;
|
21
|
+
if (lockRadius === undefined) {
|
22
|
+
lockRadius = true;
|
23
|
+
}
|
22
24
|
const {
|
23
25
|
key
|
24
26
|
} = data;
|
25
27
|
const [size] = useWindowResize();
|
26
|
-
const {
|
27
|
-
selectedTheme
|
28
|
-
} = useEditorTheme();
|
29
|
-
const {
|
30
|
-
borderRadius,
|
31
|
-
lockRadius: themeLockRadius
|
32
|
-
} = selectedTheme?.elementProps?.button || {};
|
33
|
-
const isUserValue = Object.keys(props?.value || {})?.length;
|
34
|
-
const isUserLockedRadius = typeof elementProps?.lockRadius === "boolean";
|
35
|
-
const val = isUserValue ? props?.value : borderRadius;
|
36
|
-
let lockRadius = isUserLockedRadius ? elementProps?.lockRadius : themeLockRadius;
|
37
|
-
if (lockRadius === undefined) {
|
38
|
-
lockRadius = true;
|
39
|
-
}
|
40
28
|
const value = getBreakPointsValue(val, size?.device);
|
41
29
|
const handleChange = e => {
|
42
30
|
let changeAll = {};
|
@@ -72,7 +60,7 @@ const BorderRadius = props => {
|
|
72
60
|
fontSize: "14px",
|
73
61
|
fontWeight: 500
|
74
62
|
},
|
75
|
-
children:
|
63
|
+
children: data?.label
|
76
64
|
}), /*#__PURE__*/_jsxs(Grid, {
|
77
65
|
container: true,
|
78
66
|
wrap: "nowrap",
|
@@ -125,7 +113,7 @@ const BorderRadius = props => {
|
|
125
113
|
sx: {
|
126
114
|
fontSize: "14px"
|
127
115
|
},
|
128
|
-
children:
|
116
|
+
children: "Customize"
|
129
117
|
})
|
130
118
|
}), !lockRadius ? /*#__PURE__*/_jsx(Grid, {
|
131
119
|
container: true,
|
@@ -14,9 +14,6 @@ const ButtonLink = props => {
|
|
14
14
|
const {
|
15
15
|
key
|
16
16
|
} = data;
|
17
|
-
const {
|
18
|
-
translation
|
19
|
-
} = customProps;
|
20
17
|
const {
|
21
18
|
metadata
|
22
19
|
} = customProps || {
|
@@ -79,7 +76,7 @@ const ButtonLink = props => {
|
|
79
76
|
fontWeight: 500
|
80
77
|
},
|
81
78
|
id: "demo-radio-buttons-group-label",
|
82
|
-
children:
|
79
|
+
children: "Where do you want to Link?"
|
83
80
|
}), /*#__PURE__*/_jsxs(RadioGroup, {
|
84
81
|
row: true,
|
85
82
|
"aria-labelledby": "demo-radio-buttons-group-label",
|
@@ -96,7 +93,7 @@ const ButtonLink = props => {
|
|
96
93
|
style: {
|
97
94
|
fontSize: "14px"
|
98
95
|
},
|
99
|
-
children:
|
96
|
+
children: "Next Step"
|
100
97
|
})
|
101
98
|
}), /*#__PURE__*/_jsx(FormControlLabel, {
|
102
99
|
value: "webAddress",
|
@@ -107,7 +104,7 @@ const ButtonLink = props => {
|
|
107
104
|
style: {
|
108
105
|
fontSize: "14px"
|
109
106
|
},
|
110
|
-
children:
|
107
|
+
children: "Web Address"
|
111
108
|
})
|
112
109
|
})]
|
113
110
|
})]
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { Box, Card, Checkbox, FormControlLabel, Grid, Tooltip, Typography } from "@mui/material";
|
2
2
|
import React from "react";
|
3
3
|
import Icon from "../../Icon";
|
4
|
-
import { useEditorContext } from "../../../hooks/useMouseMove";
|
5
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
5
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
7
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -11,22 +10,18 @@ const RenderCard = ({
|
|
11
10
|
title,
|
12
11
|
content,
|
13
12
|
infoIcon,
|
14
|
-
classes
|
15
|
-
translation
|
13
|
+
classes
|
16
14
|
}) => {
|
17
15
|
return /*#__PURE__*/_jsx(Card, {
|
18
16
|
sx: {
|
19
|
-
position:
|
20
|
-
padding: "10px"
|
21
|
-
"& .MuiCheckbox-root svg": {
|
22
|
-
fill: "unset !important"
|
23
|
-
}
|
17
|
+
position: 'relative',
|
18
|
+
padding: "10px"
|
24
19
|
},
|
25
20
|
children: /*#__PURE__*/_jsx(FormControlLabel, {
|
26
21
|
control: /*#__PURE__*/_jsx(Checkbox, {
|
27
22
|
sx: {
|
28
23
|
padding: 0,
|
29
|
-
marginTop:
|
24
|
+
marginTop: '3px'
|
30
25
|
},
|
31
26
|
onChange: handleChange,
|
32
27
|
checked: value,
|
@@ -52,9 +47,9 @@ const RenderCard = ({
|
|
52
47
|
style: {
|
53
48
|
fontWeight: `500 !important`
|
54
49
|
},
|
55
|
-
children:
|
50
|
+
children: title
|
56
51
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
57
|
-
title:
|
52
|
+
title: content,
|
58
53
|
children: infoIcon && content && /*#__PURE__*/_jsx("span", {
|
59
54
|
children: infoIcon
|
60
55
|
})
|
@@ -62,10 +57,10 @@ const RenderCard = ({
|
|
62
57
|
})
|
63
58
|
}),
|
64
59
|
sx: {
|
65
|
-
width:
|
66
|
-
display:
|
67
|
-
justifyContent:
|
68
|
-
alignItems:
|
60
|
+
width: '100%',
|
61
|
+
display: 'flex',
|
62
|
+
justifyContent: 'space-between',
|
63
|
+
alignItems: 'flex-start',
|
69
64
|
margin: 0
|
70
65
|
},
|
71
66
|
labelPlacement: "start"
|
@@ -77,8 +72,7 @@ const CardsMapping = props => {
|
|
77
72
|
value,
|
78
73
|
data,
|
79
74
|
onChange,
|
80
|
-
classes
|
81
|
-
customProps
|
75
|
+
classes
|
82
76
|
} = props;
|
83
77
|
const {
|
84
78
|
key,
|
@@ -87,12 +81,6 @@ const CardsMapping = props => {
|
|
87
81
|
selectedCard,
|
88
82
|
infoIcon
|
89
83
|
} = data;
|
90
|
-
const {
|
91
|
-
theme
|
92
|
-
} = useEditorContext();
|
93
|
-
const {
|
94
|
-
translation
|
95
|
-
} = customProps;
|
96
84
|
const activeCard = value === selectedCard;
|
97
85
|
const handleChange = e => {
|
98
86
|
if (selectedCard === data?.value) {
|
@@ -111,8 +99,7 @@ const CardsMapping = props => {
|
|
111
99
|
sx: {
|
112
100
|
marginBottom: "12px",
|
113
101
|
"& .MuiPaper-root": {
|
114
|
-
|
115
|
-
border: activeCard ? "1px solid #2563EB" : `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
102
|
+
border: activeCard ? "1px solid #2563EB" : "1px solid #C8D8FA",
|
116
103
|
borderRadius: "8px",
|
117
104
|
boxShadow: activeCard ? "0px 4px 16px 0px #2563EB40" : "unset"
|
118
105
|
}
|
@@ -123,8 +110,7 @@ const CardsMapping = props => {
|
|
123
110
|
title: label,
|
124
111
|
content: content,
|
125
112
|
infoIcon: infoIcon,
|
126
|
-
classes: classes
|
127
|
-
translation: translation
|
113
|
+
classes: classes
|
128
114
|
})
|
129
115
|
});
|
130
116
|
};
|
@@ -1,47 +1,22 @@
|
|
1
|
-
import React, { useEffect,
|
1
|
+
import React, { useEffect, useState } from "react";
|
2
2
|
import { Grid, TextField, InputAdornment, Typography, Tooltip } from "@mui/material";
|
3
3
|
import ColorPickerButton from "../../ColorPickerButton";
|
4
|
-
import { useSlateStatic } from "slate-react";
|
5
|
-
import { getElementStyle, getVariableValue } from "../../../helper/theme";
|
6
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
5
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
|
-
const MAP_STYLE_PROPS = {
|
9
|
-
bgColor: "background-color",
|
10
|
-
textColor: "color"
|
11
|
-
};
|
12
6
|
const Color = props => {
|
13
7
|
const {
|
14
|
-
value
|
8
|
+
value,
|
15
9
|
data,
|
16
10
|
onChange,
|
17
|
-
classes
|
18
|
-
elementProps,
|
19
|
-
handleClose,
|
20
|
-
customProps
|
11
|
+
classes
|
21
12
|
} = props;
|
22
13
|
const {
|
23
14
|
key,
|
24
15
|
label,
|
25
16
|
hideGradient
|
26
17
|
} = data;
|
27
|
-
const {
|
28
|
-
translation
|
29
|
-
} = customProps;
|
30
18
|
const [recentColors, setRecentColors] = useState({});
|
31
|
-
const
|
32
|
-
const {
|
33
|
-
value,
|
34
|
-
inputValue
|
35
|
-
} = useMemo(() => {
|
36
|
-
const isVariable = val && val.startsWith("var");
|
37
|
-
const value = isVariable ? val : getElementStyle(editor, elementProps, MAP_STYLE_PROPS[key]);
|
38
|
-
const inputValue = isVariable ? getVariableValue(val) : getElementStyle(editor, elementProps, MAP_STYLE_PROPS[key]);
|
39
|
-
return {
|
40
|
-
value: value || val,
|
41
|
-
inputValue: inputValue || val
|
42
|
-
};
|
43
|
-
}, [editor, val]);
|
44
|
-
const getLable = label === "Text" ? translation("selectTextColor") : label === "Background" ? translation("selectBgColor") : translation(label);
|
19
|
+
const getLable = label === 'Text' ? 'Select text color' : label === 'Background' ? 'Select background color' : label;
|
45
20
|
useEffect(() => {
|
46
21
|
const storedColors = JSON.parse(localStorage.getItem("recentColors"));
|
47
22
|
if (storedColors) {
|
@@ -79,27 +54,27 @@ const Color = props => {
|
|
79
54
|
fontSize: "14px",
|
80
55
|
fontWeight: 500,
|
81
56
|
marginBottom: "5px",
|
82
|
-
display:
|
83
|
-
alignItems:
|
84
|
-
|
85
|
-
width:
|
86
|
-
height:
|
57
|
+
display: 'flex',
|
58
|
+
alignItems: 'center',
|
59
|
+
'& svg': {
|
60
|
+
width: '20px',
|
61
|
+
height: '20px'
|
87
62
|
}
|
88
63
|
},
|
89
|
-
children: [
|
64
|
+
children: [label, data?.infoIcon ? /*#__PURE__*/_jsx(Tooltip, {
|
90
65
|
arrow: true,
|
91
|
-
title:
|
66
|
+
title: "Note: If color gradient is used, divider styles will not apply",
|
92
67
|
children: /*#__PURE__*/_jsx("span", {
|
93
68
|
style: {
|
94
|
-
display:
|
69
|
+
display: 'inline-block'
|
95
70
|
},
|
96
71
|
children: data?.infoIcon
|
97
72
|
})
|
98
73
|
}) : null]
|
99
74
|
}), /*#__PURE__*/_jsx(TextField, {
|
100
75
|
fullWidth: true,
|
101
|
-
value:
|
102
|
-
placeholder: getLable || `${label}
|
76
|
+
value: value,
|
77
|
+
placeholder: getLable || `${label} color code`,
|
103
78
|
InputLabelProps: {
|
104
79
|
shrink: true
|
105
80
|
},
|
@@ -111,8 +86,6 @@ const Color = props => {
|
|
111
86
|
value: value,
|
112
87
|
onSave: onSave,
|
113
88
|
recentColors: recentColors[key],
|
114
|
-
handleClose: handleClose,
|
115
|
-
disableEditTheme: customProps?.disableEditTheme,
|
116
89
|
hideGradient: hideGradient
|
117
90
|
})
|
118
91
|
})
|
@@ -7,12 +7,8 @@ const ElementSize = props => {
|
|
7
7
|
const {
|
8
8
|
value,
|
9
9
|
data,
|
10
|
-
onChange
|
11
|
-
customProps
|
10
|
+
onChange
|
12
11
|
} = props;
|
13
|
-
const {
|
14
|
-
translation
|
15
|
-
} = customProps;
|
16
12
|
const {
|
17
13
|
key
|
18
14
|
} = data;
|
@@ -49,13 +45,13 @@ const ElementSize = props => {
|
|
49
45
|
fontWeight: "500",
|
50
46
|
marginBottom: "5px"
|
51
47
|
},
|
52
|
-
children:
|
48
|
+
children: "Width"
|
53
49
|
}), /*#__PURE__*/_jsx(TextField, {
|
54
50
|
fullWidth: true,
|
55
51
|
name: wkey,
|
56
52
|
size: "small",
|
57
53
|
value: value ? value[wkey] : "100",
|
58
|
-
placeholder:
|
54
|
+
placeholder: "Width",
|
59
55
|
onChange: handleChange,
|
60
56
|
InputProps: {
|
61
57
|
endAdornment: /*#__PURE__*/_jsxs(InputAdornment, {
|
@@ -101,14 +97,14 @@ const ElementSize = props => {
|
|
101
97
|
fontWeight: "500",
|
102
98
|
marginBottom: "5px"
|
103
99
|
},
|
104
|
-
children:
|
100
|
+
children: "Height"
|
105
101
|
}), /*#__PURE__*/_jsx(TextField, {
|
106
102
|
fullWidth: true,
|
107
103
|
name: "height",
|
108
104
|
size: "small",
|
109
105
|
value: value?.height,
|
110
|
-
placeholder:
|
111
|
-
helperText:
|
106
|
+
placeholder: "Height",
|
107
|
+
helperText: "Leave it to auto if width is in % ",
|
112
108
|
onChange: handleChange,
|
113
109
|
InputProps: {
|
114
110
|
endAdornment: /*#__PURE__*/_jsxs(InputAdornment, {
|
@@ -1,30 +1,19 @@
|
|
1
|
-
import React
|
1
|
+
import React from "react";
|
2
2
|
import { TextField, IconButton, Grid, Typography } from "@mui/material";
|
3
3
|
import { sizeMap } from "../../../utils/font.js";
|
4
4
|
import { TextMinusIcon, TextPlusIcon } from "../../../common/iconslist.js";
|
5
|
-
import { getElementStyle } from "../../../helper/theme.js";
|
6
|
-
import { useSlateStatic } from "slate-react";
|
7
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
8
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
7
|
const FontSize = props => {
|
10
8
|
const {
|
11
|
-
value
|
9
|
+
value,
|
12
10
|
data,
|
13
|
-
onChange
|
14
|
-
elementProps,
|
15
|
-
customProps
|
11
|
+
onChange
|
16
12
|
} = props;
|
17
13
|
const {
|
18
14
|
key,
|
19
15
|
width
|
20
16
|
} = data;
|
21
|
-
const editor = useSlateStatic();
|
22
|
-
const value = useMemo(() => {
|
23
|
-
return getElementStyle(editor, elementProps, "font-size") || val;
|
24
|
-
}, [editor, val]);
|
25
|
-
const {
|
26
|
-
translation
|
27
|
-
} = customProps;
|
28
17
|
const handleChange = e => {
|
29
18
|
let inc = parseInt(e.target.value) || 16;
|
30
19
|
inc = inc > 200 ? 200 : inc;
|
@@ -35,9 +24,7 @@ const FontSize = props => {
|
|
35
24
|
const getSizeVal = () => {
|
36
25
|
try {
|
37
26
|
const size = `${value}`?.indexOf("px") >= 0 ? value : sizeMap[value] || value;
|
38
|
-
|
39
|
-
const val = parseInt(size || defaultSize);
|
40
|
-
return isNaN(val) ? defaultSize : val;
|
27
|
+
return parseInt(size || 16);
|
41
28
|
} catch (err) {
|
42
29
|
return "";
|
43
30
|
}
|
@@ -71,7 +58,7 @@ const FontSize = props => {
|
|
71
58
|
fontSize: "14px",
|
72
59
|
fontWeight: "500"
|
73
60
|
},
|
74
|
-
children:
|
61
|
+
children: data?.label
|
75
62
|
})
|
76
63
|
}), /*#__PURE__*/_jsx(Grid, {
|
77
64
|
item: true,
|
@@ -86,7 +73,7 @@ const FontSize = props => {
|
|
86
73
|
size: "small",
|
87
74
|
inputProps: {
|
88
75
|
style: {
|
89
|
-
// textAlign: "center",
|
76
|
+
// textAlign: "center",
|
90
77
|
padding: "11px"
|
91
78
|
}
|
92
79
|
},
|
@@ -8,12 +8,8 @@ const GridSize = props => {
|
|
8
8
|
const {
|
9
9
|
value: val,
|
10
10
|
data,
|
11
|
-
onChange
|
12
|
-
customProps
|
11
|
+
onChange
|
13
12
|
} = props;
|
14
|
-
const {
|
15
|
-
translation
|
16
|
-
} = customProps;
|
17
13
|
const {
|
18
14
|
key
|
19
15
|
} = data;
|
@@ -38,7 +34,7 @@ const GridSize = props => {
|
|
38
34
|
fontWeight: 500,
|
39
35
|
marginBottom: "5px"
|
40
36
|
},
|
41
|
-
children: [
|
37
|
+
children: [data?.label || "Grid Size", ": ", value || 12]
|
42
38
|
}), /*#__PURE__*/_jsx("div", {
|
43
39
|
className: "sld-wrpr",
|
44
40
|
children: /*#__PURE__*/_jsx(Slider, {
|
@@ -12,9 +12,6 @@ const Icons = props => {
|
|
12
12
|
onChange,
|
13
13
|
customProps
|
14
14
|
} = props;
|
15
|
-
const {
|
16
|
-
translation
|
17
|
-
} = customProps;
|
18
15
|
const {
|
19
16
|
key
|
20
17
|
} = data;
|
@@ -61,7 +58,7 @@ const Icons = props => {
|
|
61
58
|
children: /*#__PURE__*/_jsx(TextField, {
|
62
59
|
fullWidth: true,
|
63
60
|
size: "small",
|
64
|
-
placeholder:
|
61
|
+
placeholder: "Search Icons...",
|
65
62
|
value: val,
|
66
63
|
onChange: handleChange
|
67
64
|
})
|
@@ -73,7 +70,7 @@ const Icons = props => {
|
|
73
70
|
padding: "4px"
|
74
71
|
},
|
75
72
|
children: SelectedIcon ? /*#__PURE__*/_jsx(Tooltip, {
|
76
|
-
title:
|
73
|
+
title: "Click to Remove",
|
77
74
|
arrow: true,
|
78
75
|
children: /*#__PURE__*/_jsx(IconButton, {
|
79
76
|
onClick: onRemoveIcon,
|