@flozy/editor 5.1.5 → 5.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/ChatEditor.js +25 -34
- package/dist/Editor/CommonEditor.js +15 -9
- package/dist/Editor/Editor.css +56 -12
- package/dist/Editor/Elements/AI/AIInput.js +0 -1
- package/dist/Editor/Elements/AI/CustomSelect.js +17 -10
- package/dist/Editor/Elements/AI/Styles.js +7 -1
- package/dist/Editor/Elements/Button/EditorButton.js +1 -1
- package/dist/Editor/Elements/Carousel/CarouselItem.js +1 -1
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +7 -5
- package/dist/Editor/Elements/Color Picker/Styles.js +7 -3
- package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
- package/dist/Editor/Elements/DataView/DataView.js +101 -0
- package/dist/Editor/Elements/DataView/DataViewButton.js +23 -0
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +59 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +140 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +40 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +59 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +26 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +38 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +35 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +36 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +17 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +29 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +38 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +74 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +64 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +106 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +174 -0
- package/dist/Editor/Elements/DataView/Layouts/Formula.js +29 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +113 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +37 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +111 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +62 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +36 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +101 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +160 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +190 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +42 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +110 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +179 -0
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +100 -0
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +227 -0
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +70 -0
- package/dist/Editor/Elements/DataView/Layouts/index.js +25 -0
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +288 -0
- package/dist/Editor/Elements/DataView/Utils/globalSearch.js +15 -0
- package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +72 -0
- package/dist/Editor/Elements/DataView/styles.js +143 -0
- package/dist/Editor/Elements/Divider/Divider.js +15 -14
- package/dist/Editor/Elements/Form/Form.js +38 -2
- package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormDate.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormEmail.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormText.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +6 -1
- package/dist/Editor/Elements/Form/FormPopup.js +12 -9
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +20 -1
- package/dist/Editor/Elements/Grid/GridButton.js +2 -1
- package/dist/Editor/Elements/Grid/GridItem.js +12 -0
- package/dist/Editor/Elements/Link/LinkButton.js +1 -1
- package/dist/Editor/Elements/Signature/Signature.css +1 -1
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
- package/dist/Editor/Elements/Signature/SignaturePopup.js +13 -48
- package/dist/Editor/Elements/SimpleText/index.js +8 -1
- package/dist/Editor/Elements/SimpleText/style.js +8 -1
- package/dist/Editor/Elements/Table/AddRowCol.js +77 -0
- package/dist/Editor/Elements/Table/DragButton.js +141 -0
- package/dist/Editor/Elements/Table/DragStyles.js +70 -0
- package/dist/Editor/Elements/Table/Draggable.js +25 -0
- package/dist/Editor/Elements/Table/Droppable.js +53 -0
- package/dist/Editor/Elements/Table/Styles.js +25 -43
- package/dist/Editor/Elements/Table/Table.js +205 -138
- package/dist/Editor/Elements/Table/TableCell.js +355 -102
- package/dist/Editor/Elements/Table/TablePopup.js +9 -3
- package/dist/Editor/Elements/Table/TableRow.js +10 -2
- package/dist/Editor/Elements/Table/TableTool.js +101 -0
- package/dist/Editor/Elements/Table/tableHelper.js +71 -0
- package/dist/Editor/Styles/EditorStyles.js +3 -1
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +10 -0
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +7 -11
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +10 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +3 -0
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +0 -2
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -6
- package/dist/Editor/Toolbar/Mini/Styles.js +4 -1
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +16 -11
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +416 -49
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +62 -8
- package/dist/Editor/Toolbar/PopupTool/index.js +5 -6
- package/dist/Editor/Toolbar/Toolbar.js +6 -0
- package/dist/Editor/Toolbar/toolbarGroups.js +4 -0
- package/dist/Editor/assets/svg/BrainIcon.js +2 -2
- package/dist/Editor/assets/svg/TableIcons.js +220 -0
- package/dist/Editor/common/ColorPickerButton.js +3 -2
- package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
- package/dist/Editor/common/Icon.js +24 -23
- package/dist/Editor/common/LinkSettings/NavComponents.js +2 -1
- package/dist/Editor/common/LinkSettings/index.js +2 -1
- package/dist/Editor/common/MentionsPopup/Styles.js +152 -7
- package/dist/Editor/common/MentionsPopup/index.js +1 -1
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +108 -12
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +14 -2
- package/dist/Editor/common/Select/index.js +20 -0
- package/dist/Editor/common/Select/styles.js +17 -0
- package/dist/Editor/common/Shorthands/elements.js +13 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +5 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +8 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +10 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +3 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +79 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +7 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +5 -2
- package/dist/Editor/common/StyleBuilder/formStyle.js +268 -149
- package/dist/Editor/common/StyleBuilder/index.js +84 -11
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +4 -0
- package/dist/Editor/common/StyleBuilder/tableStyle.js +69 -25
- package/dist/Editor/common/SwipeableDrawer/style.js +15 -4
- package/dist/Editor/common/Uploader.js +8 -0
- package/dist/Editor/common/iconListV2.js +378 -40
- package/dist/Editor/common/iconslist.js +23 -17
- package/dist/Editor/commonStyle.js +126 -9
- package/dist/Editor/helper/deserialize/index.js +4 -1
- package/dist/Editor/helper/index.js +2 -2
- package/dist/Editor/helper/theme.js +24 -1
- package/dist/Editor/hooks/useMouseMove.js +5 -2
- package/dist/Editor/hooks/useTable.js +195 -0
- package/dist/Editor/plugins/withCustomDeleteBackward.js +3 -2
- package/dist/Editor/plugins/withHTML.js +17 -1
- package/dist/Editor/plugins/withLayout.js +48 -1
- package/dist/Editor/utils/SlateUtilityFunctions.js +18 -0
- package/dist/Editor/utils/button.js +4 -4
- package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +21 -0
- package/dist/Editor/utils/dataView.js +43 -0
- package/dist/Editor/utils/embed.js +2 -1
- package/dist/Editor/utils/events.js +0 -1
- package/dist/Editor/utils/font.js +11 -4
- package/dist/Editor/utils/formfield.js +8 -4
- package/dist/Editor/utils/helper.js +67 -2
- package/dist/Editor/utils/insertNewLine.js +19 -1
- package/dist/Editor/utils/pageSettings.js +14 -2
- package/dist/Editor/utils/serializeToText.js +2 -0
- package/dist/Editor/utils/table.js +228 -24
- package/package.json +1 -1
@@ -0,0 +1,79 @@
|
|
1
|
+
import React, { useState } from "react";
|
2
|
+
import { Grid, Slider, Typography, Box } from "@mui/material";
|
3
|
+
import { getBreakPointsValue } from "../../../helper/theme";
|
4
|
+
import useWindowResize from "../../../hooks/useWindowResize";
|
5
|
+
import { useEditorContext } from "../../../hooks/useMouseMove";
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
7
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
|
+
const LineSpacing = props => {
|
9
|
+
const {
|
10
|
+
value: val,
|
11
|
+
data,
|
12
|
+
onChange
|
13
|
+
} = props;
|
14
|
+
const {
|
15
|
+
theme
|
16
|
+
} = useEditorContext();
|
17
|
+
const {
|
18
|
+
key
|
19
|
+
} = data;
|
20
|
+
const [size] = useWindowResize();
|
21
|
+
const pro_value = getBreakPointsValue(val, size?.device);
|
22
|
+
const [value, setValue] = useState(pro_value);
|
23
|
+
let breakpointValue = getBreakPointsValue(val, null);
|
24
|
+
breakpointValue = typeof breakpointValue['lg'] === 'object' ? breakpointValue['lg'] : breakpointValue;
|
25
|
+
useState(() => {
|
26
|
+
setValue(pro_value);
|
27
|
+
}, [pro_value]);
|
28
|
+
const handleChange = e => {
|
29
|
+
onChange({
|
30
|
+
[key]: {
|
31
|
+
...breakpointValue,
|
32
|
+
[size?.device]: e.target.value
|
33
|
+
}
|
34
|
+
});
|
35
|
+
};
|
36
|
+
return /*#__PURE__*/_jsxs(Grid, {
|
37
|
+
item: true,
|
38
|
+
xs: 12,
|
39
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
40
|
+
variant: "body1",
|
41
|
+
color: "primary",
|
42
|
+
style: {
|
43
|
+
fontSize: "14px",
|
44
|
+
fontWeight: 500
|
45
|
+
},
|
46
|
+
children: data?.label
|
47
|
+
}), /*#__PURE__*/_jsxs(Grid, {
|
48
|
+
container: true,
|
49
|
+
wrap: "nowrap",
|
50
|
+
className: "sld-wrpr",
|
51
|
+
children: [/*#__PURE__*/_jsx(Slider, {
|
52
|
+
className: "spacingSlider",
|
53
|
+
defaultValue: value || 1.43,
|
54
|
+
"aria-label": "Default",
|
55
|
+
valueLabelDisplay: "auto",
|
56
|
+
min: 0.5,
|
57
|
+
max: 3.0,
|
58
|
+
step: 0.1,
|
59
|
+
name: "lineHeight",
|
60
|
+
onChange: handleChange
|
61
|
+
}), /*#__PURE__*/_jsx(Box, {
|
62
|
+
component: "input",
|
63
|
+
sx: {
|
64
|
+
background: theme?.palette?.editor?.background,
|
65
|
+
color: theme?.palette?.editor?.textColor
|
66
|
+
},
|
67
|
+
name: "lineHeight",
|
68
|
+
value: pro_value,
|
69
|
+
className: "sliderInput",
|
70
|
+
onChange: handleChange,
|
71
|
+
type: "number",
|
72
|
+
placeholder: "0",
|
73
|
+
disabled: true,
|
74
|
+
defaultValue: pro_value || 1.43
|
75
|
+
})]
|
76
|
+
})]
|
77
|
+
});
|
78
|
+
};
|
79
|
+
export default LineSpacing;
|
@@ -61,7 +61,7 @@ export const squreStyle = {
|
|
61
61
|
margin: "auto",
|
62
62
|
// borderTop: `2px solid #2563eb`,
|
63
63
|
// borderLeft: `2px solid #2563eb`,
|
64
|
-
border: `
|
64
|
+
// border: `1px solid transparent`,
|
65
65
|
// borderBottom: `none`,
|
66
66
|
fontSize: "14px",
|
67
67
|
textAlign: "center"
|
@@ -76,8 +76,8 @@ export const squreStyle = {
|
|
76
76
|
height: "30px",
|
77
77
|
// borderTop: `2px solid #2563eb`,
|
78
78
|
// borderRight: `2px solid #2563eb`,
|
79
|
-
border: `none`,
|
80
|
-
borderLeft: `none`,
|
79
|
+
// border: `none`,
|
80
|
+
// borderLeft: `none`,
|
81
81
|
fontSize: "14px"
|
82
82
|
},
|
83
83
|
bottomLeft: {
|
@@ -90,8 +90,8 @@ export const squreStyle = {
|
|
90
90
|
height: "30px",
|
91
91
|
// borderBottom: `2px solid #2563eb`,
|
92
92
|
// borderLeft: `2px solid #2563eb`,
|
93
|
-
border: `none`,
|
94
|
-
borderTop: `none`,
|
93
|
+
// border: `none`,
|
94
|
+
// borderTop: `none`,
|
95
95
|
fontSize: "14px"
|
96
96
|
},
|
97
97
|
bottomRight: {
|
@@ -104,8 +104,8 @@ export const squreStyle = {
|
|
104
104
|
height: "30px",
|
105
105
|
// borderBottom: `2px solid #2563eb`,
|
106
106
|
// borderRight: `2px solid #2563eb`,
|
107
|
-
border: "none",
|
108
|
-
borderLeft: "none",
|
107
|
+
// border: "none",
|
108
|
+
// borderLeft: "none",
|
109
109
|
fontSize: "14px"
|
110
110
|
}
|
111
111
|
};
|
@@ -5,6 +5,8 @@ import useWindowResize from "../../../hooks/useWindowResize";
|
|
5
5
|
import { useEditorContext } from "../../../hooks/useMouseMove";
|
6
6
|
import FontFamilyAutocomplete from "../../../Toolbar/FormatTools/FontFamilyAutocomplete";
|
7
7
|
import { useSlate } from "slate-react";
|
8
|
+
|
9
|
+
// hideMetaDataOptions -- pass true to hide metadata option in select field
|
8
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
12
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
@@ -26,7 +28,8 @@ const TextOptions = props => {
|
|
26
28
|
options,
|
27
29
|
renderOption,
|
28
30
|
width,
|
29
|
-
webFont = false
|
31
|
+
webFont = false,
|
32
|
+
hideMetaDataOptions = false
|
30
33
|
} = data;
|
31
34
|
const {
|
32
35
|
fontFamilies
|
@@ -35,7 +38,7 @@ const TextOptions = props => {
|
|
35
38
|
const [size] = useWindowResize();
|
36
39
|
const value = isBreakpoint ? getBreakPointsValue(val, size?.device) : val;
|
37
40
|
const metaDataMappingOptions = metaMappings?.boards || [];
|
38
|
-
const updatedOption = elementProps?.metadatamapping ? [...options, ...metaDataMappingOptions] : webFont ? fontFamilies?.options : options;
|
41
|
+
const updatedOption = !hideMetaDataOptions && elementProps?.metadatamapping ? [...options, ...metaDataMappingOptions] : webFont ? fontFamilies?.options : options;
|
39
42
|
const handleChange = (e, d) => {
|
40
43
|
if (isBreakpoint) {
|
41
44
|
onChange({
|
@@ -1,168 +1,287 @@
|
|
1
|
-
import { fontOptions } from "../../utils/font";
|
1
|
+
import { fontOptions, fontWeightOptions } from "../../utils/font";
|
2
2
|
import Icon from "../Icon";
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
4
|
-
const formStyle = [{
|
5
|
-
tab: "
|
6
|
-
value: "
|
4
|
+
export const formStyle = [{
|
5
|
+
tab: "Form Settings",
|
6
|
+
value: "FormSetting",
|
7
|
+
hasChildrenTabs: true,
|
7
8
|
fields: [{
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
tab: "General",
|
10
|
+
value: "general",
|
11
|
+
fields: [{
|
12
|
+
label: "Form Name",
|
13
|
+
key: "formName",
|
14
|
+
type: "text"
|
15
|
+
}, {
|
16
|
+
label: "Send Form to Email",
|
17
|
+
key: "email",
|
18
|
+
type: "text",
|
19
|
+
placeholder: "Enter Email to send the response..."
|
20
|
+
}, {
|
21
|
+
label: "Save Response",
|
22
|
+
key: "saveResponse",
|
23
|
+
type: "selectBox",
|
24
|
+
placeholder: "Save Response"
|
25
|
+
}]
|
16
26
|
}, {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
27
|
+
tab: "Form Title",
|
28
|
+
value: "formTitle",
|
29
|
+
fields: [{
|
30
|
+
label: "Title",
|
31
|
+
key: "formTitle",
|
32
|
+
type: "text"
|
33
|
+
}, {
|
34
|
+
label: "Font Family",
|
35
|
+
key: "fontFamily",
|
36
|
+
type: "textOptions",
|
37
|
+
hideMetaDataOptions: true,
|
38
|
+
options: fontOptions,
|
39
|
+
webFont: true,
|
40
|
+
width: 7,
|
41
|
+
renderOption: option => {
|
42
|
+
return /*#__PURE__*/_jsx("span", {
|
43
|
+
style: {
|
44
|
+
fontFamily: option.value
|
45
|
+
},
|
46
|
+
children: option.text
|
47
|
+
});
|
48
|
+
}
|
49
|
+
}, {
|
50
|
+
label: "Font Size",
|
51
|
+
key: "textSize",
|
52
|
+
type: "fontSize",
|
53
|
+
width: 5,
|
54
|
+
placeholder: "16px"
|
55
|
+
}, {
|
56
|
+
label: "Text Align",
|
57
|
+
key: "textAlign",
|
58
|
+
type: "textAlign",
|
59
|
+
placeholder: "16px or 1em"
|
60
|
+
}]
|
29
61
|
}, {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
return /*#__PURE__*/_jsx("span", {
|
38
|
-
style: {
|
39
|
-
fontFamily: option.value
|
40
|
-
},
|
41
|
-
children: option.text
|
42
|
-
});
|
43
|
-
}
|
62
|
+
tab: "Banner Spacing",
|
63
|
+
value: "bannerSpacing",
|
64
|
+
fields: [{
|
65
|
+
label: "Banner Spacing",
|
66
|
+
key: "bannerSpacing",
|
67
|
+
type: "bannerSpacing"
|
68
|
+
}]
|
44
69
|
}, {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
70
|
+
tab: "Border",
|
71
|
+
value: "border",
|
72
|
+
fields: [{
|
73
|
+
label: "Border Radius",
|
74
|
+
key: "borderRadius",
|
75
|
+
type: "borderRadius"
|
76
|
+
}, {
|
77
|
+
label: "Border Width",
|
78
|
+
key: "borderWidth",
|
79
|
+
type: "text",
|
80
|
+
placeholder: "1px"
|
81
|
+
}, {
|
82
|
+
label: "Border Style",
|
83
|
+
key: "borderStyle",
|
84
|
+
type: "textOptions",
|
85
|
+
hideMetaDataOptions: true,
|
86
|
+
options: [{
|
87
|
+
text: "Solid",
|
88
|
+
value: "solid"
|
89
|
+
}, {
|
90
|
+
text: "Dotted",
|
91
|
+
value: "dotted"
|
92
|
+
}, {
|
93
|
+
text: "Dashed",
|
94
|
+
value: "dashed"
|
95
|
+
}],
|
96
|
+
renderOption: option => {
|
97
|
+
return /*#__PURE__*/_jsx("span", {
|
98
|
+
children: option.text
|
99
|
+
});
|
100
|
+
}
|
101
|
+
}]
|
50
102
|
}, {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
fields: [{
|
68
|
-
label: "Border Radius",
|
69
|
-
key: "borderRadius",
|
70
|
-
type: "borderRadius"
|
103
|
+
tab: "Colors",
|
104
|
+
value: "colors",
|
105
|
+
fields: [{
|
106
|
+
label: "Text Color",
|
107
|
+
key: "textColor",
|
108
|
+
type: "color",
|
109
|
+
needPreview: true
|
110
|
+
}, {
|
111
|
+
label: "Background Color",
|
112
|
+
key: "bgColor",
|
113
|
+
type: "color"
|
114
|
+
}, {
|
115
|
+
label: "Border Color",
|
116
|
+
key: "borderColor",
|
117
|
+
type: "color"
|
118
|
+
}]
|
71
119
|
}, {
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
120
|
+
tab: "Position",
|
121
|
+
value: "position",
|
122
|
+
fields: [{
|
123
|
+
label: "Set Postion (Vertical & Horizantal)",
|
124
|
+
key: "alignment",
|
125
|
+
type: "alignment"
|
126
|
+
}]
|
76
127
|
}, {
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
128
|
+
tab: "Background",
|
129
|
+
value: "backgroundImage",
|
130
|
+
fields: [{
|
131
|
+
label: "URL",
|
132
|
+
key: "backgroundImage",
|
133
|
+
type: "text"
|
83
134
|
}, {
|
84
|
-
|
85
|
-
|
135
|
+
label: "Background Image",
|
136
|
+
key: "backgroundImage",
|
137
|
+
type: "backgroundImage"
|
138
|
+
}]
|
139
|
+
}, {
|
140
|
+
tab: "Add to Boards",
|
141
|
+
value: "metadatamapping",
|
142
|
+
fields: [{
|
143
|
+
label: "Add response to contacts board",
|
144
|
+
key: "metadatamapping",
|
145
|
+
type: "metadatamapping",
|
146
|
+
compType: "card",
|
147
|
+
content: "By default, form responses are added as separate cards on the default contact board.",
|
148
|
+
value: "mappingToContactBoard",
|
149
|
+
infoIcon: /*#__PURE__*/_jsx(Icon, {
|
150
|
+
icon: "info"
|
151
|
+
})
|
86
152
|
}, {
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
153
|
+
label: "Create a separate board",
|
154
|
+
key: "metadatamapping",
|
155
|
+
type: "metadatamapping",
|
156
|
+
compType: "card",
|
157
|
+
content: "By default, form responses are added as separate cards on a new board (Contact Us).",
|
158
|
+
value: "mappingToSeparateBoard",
|
159
|
+
infoIcon: /*#__PURE__*/_jsx(Icon, {
|
160
|
+
icon: "info"
|
161
|
+
})
|
162
|
+
}]
|
163
|
+
}, {
|
164
|
+
tab: "Save As Template",
|
165
|
+
value: "saveAsTemplate",
|
166
|
+
needActions: false,
|
167
|
+
hideOnFGS: true,
|
168
|
+
fields: [{
|
169
|
+
label: "Template Image",
|
170
|
+
key: "saveAsTemplate",
|
171
|
+
type: "saveAsTemplate"
|
172
|
+
}]
|
95
173
|
}]
|
96
174
|
}, {
|
97
|
-
tab: "
|
98
|
-
value: "
|
175
|
+
tab: "Field Settings",
|
176
|
+
value: "FieldSetting",
|
177
|
+
hasChildrenTabs: true,
|
99
178
|
fields: [{
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
179
|
+
tab: "Font Family",
|
180
|
+
value: "FontFamily",
|
181
|
+
fields: [{
|
182
|
+
label: "Font Family",
|
183
|
+
key: "fieldFontFamily",
|
184
|
+
type: "textOptions",
|
185
|
+
hideMetaDataOptions: true,
|
186
|
+
options: fontOptions,
|
187
|
+
webFont: true,
|
188
|
+
renderOption: option => {
|
189
|
+
return /*#__PURE__*/_jsx("span", {
|
190
|
+
style: {
|
191
|
+
fontFamily: option.value
|
192
|
+
},
|
193
|
+
children: option.text
|
194
|
+
});
|
195
|
+
}
|
196
|
+
}]
|
104
197
|
}, {
|
105
|
-
|
106
|
-
|
107
|
-
|
198
|
+
tab: "Font Weight",
|
199
|
+
value: "FontWeight",
|
200
|
+
fields: [{
|
201
|
+
label: "Font Weight",
|
202
|
+
key: "fieldFontWeight",
|
203
|
+
type: "textOptions",
|
204
|
+
width: 5,
|
205
|
+
options: fontWeightOptions,
|
206
|
+
hideMetaDataOptions: true,
|
207
|
+
renderOption: option => {
|
208
|
+
return /*#__PURE__*/_jsx("span", {
|
209
|
+
style: {
|
210
|
+
fontWeight: option.value
|
211
|
+
},
|
212
|
+
children: option.text
|
213
|
+
});
|
214
|
+
}
|
215
|
+
}]
|
108
216
|
}, {
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
key: "alignment",
|
119
|
-
type: "alignment"
|
120
|
-
}]
|
121
|
-
}, {
|
122
|
-
tab: "Background",
|
123
|
-
value: "backgroundImage",
|
124
|
-
fields: [{
|
125
|
-
label: "URL",
|
126
|
-
key: "backgroundImage",
|
127
|
-
type: "text"
|
217
|
+
tab: "Font Size",
|
218
|
+
value: "FontSize",
|
219
|
+
fields: [{
|
220
|
+
label: "Font Size",
|
221
|
+
key: "fieldTextSize",
|
222
|
+
type: "fontSize",
|
223
|
+
width: 5,
|
224
|
+
placeholder: "16px"
|
225
|
+
}]
|
128
226
|
}, {
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
label: "Add response to contacts board",
|
138
|
-
key: "metadatamapping",
|
139
|
-
type: "metadatamapping",
|
140
|
-
compType: "card",
|
141
|
-
content: "By default, form responses are added as separate cards on the default contact board.",
|
142
|
-
value: "mappingToContactBoard",
|
143
|
-
infoIcon: /*#__PURE__*/_jsx(Icon, {
|
144
|
-
icon: "info"
|
145
|
-
})
|
227
|
+
tab: "Text Color",
|
228
|
+
value: "TextColor",
|
229
|
+
fields: [{
|
230
|
+
label: "Text Color",
|
231
|
+
key: "fieldTextColor",
|
232
|
+
type: "color",
|
233
|
+
needPreview: true
|
234
|
+
}]
|
146
235
|
}, {
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
236
|
+
tab: "Background Color",
|
237
|
+
value: "BackgroundColor",
|
238
|
+
fields: [{
|
239
|
+
label: "Background Color",
|
240
|
+
key: "fieldBgColor",
|
241
|
+
type: "color"
|
242
|
+
}]
|
243
|
+
}, {
|
244
|
+
tab: "Border Color",
|
245
|
+
value: "BorderColor",
|
246
|
+
fields: [{
|
247
|
+
label: "Border Color",
|
248
|
+
key: "fieldBorderColor",
|
249
|
+
type: "color"
|
250
|
+
}]
|
251
|
+
}, {
|
252
|
+
tab: "Border Width",
|
253
|
+
value: "BorderWidth",
|
254
|
+
fields: [{
|
255
|
+
label: "Border Width",
|
256
|
+
key: "fieldBorderWidth",
|
257
|
+
type: "text",
|
258
|
+
width: 5,
|
259
|
+
placeholder: "1px"
|
260
|
+
}]
|
261
|
+
}, {
|
262
|
+
tab: "Border Style",
|
263
|
+
value: "BorderStyle",
|
264
|
+
fields: [{
|
265
|
+
label: "Border Style",
|
266
|
+
key: "fieldBorderStyle",
|
267
|
+
type: "textOptions",
|
268
|
+
hideMetaDataOptions: true,
|
269
|
+
width: 5,
|
270
|
+
options: [{
|
271
|
+
text: "Solid",
|
272
|
+
value: "solid"
|
273
|
+
}, {
|
274
|
+
text: "Dotted",
|
275
|
+
value: "dotted"
|
276
|
+
}, {
|
277
|
+
text: "Dashed",
|
278
|
+
value: "dashed"
|
279
|
+
}],
|
280
|
+
renderOption: option => {
|
281
|
+
return /*#__PURE__*/_jsx("span", {
|
282
|
+
children: option.text
|
283
|
+
});
|
284
|
+
}
|
285
|
+
}]
|
166
286
|
}]
|
167
|
-
}];
|
168
|
-
export default formStyle;
|
287
|
+
}];
|