@gem-sdk/components 2.0.0-dev.373 → 2.0.0-dev.375
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/cjs/builder.js +0 -1
- package/dist/cjs/form/components/contact/Contact.liquid.js +9 -3
- package/dist/cjs/form/components/contact/common/composeStyles.js +2 -1
- package/dist/cjs/form/components/form-email/FormEmail.js +16 -22
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +39 -34
- package/dist/cjs/form/components/newsletter/common/composeStyles.js +2 -2
- package/dist/cjs/form/setting/contact/Contact.js +6 -15
- package/dist/cjs/form/setting/contact/ContactInitConfig.js +1 -1
- package/dist/cjs/form/setting/contact/configs/settings.js +206 -0
- package/dist/cjs/form/setting/contact/configs/uiV1.js +76 -0
- package/dist/cjs/form/setting/contact/configs/uiV2.js +241 -0
- package/dist/cjs/form/setting/newsletter/Newsletter.js +1 -1
- package/dist/cjs/form/setting/newsletter/NewsletterInitConfig.js +2 -4
- package/dist/cjs/form/setting/newsletter/configs/settings.js +13 -0
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +35 -13
- package/dist/cjs/form/setting/submit-button/configs/settings.js +17 -9
- package/dist/cjs/form/setting/submit-button/configs/uiV2.js +2 -2
- package/dist/cjs/sticky/components/common/styles.js +16 -5
- package/dist/esm/builder.js +0 -1
- package/dist/esm/form/components/contact/Contact.liquid.js +9 -3
- package/dist/esm/form/components/contact/common/composeStyles.js +3 -2
- package/dist/esm/form/components/form-email/FormEmail.js +17 -23
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +40 -35
- package/dist/esm/form/components/newsletter/common/composeStyles.js +2 -2
- package/dist/esm/form/setting/contact/Contact.js +6 -15
- package/dist/esm/form/setting/contact/ContactInitConfig.js +1 -1
- package/dist/esm/form/setting/contact/configs/settings.js +202 -0
- package/dist/esm/form/setting/contact/configs/uiV1.js +74 -0
- package/dist/esm/form/setting/contact/configs/uiV2.js +239 -0
- package/dist/esm/form/setting/newsletter/Newsletter.js +1 -1
- package/dist/esm/form/setting/newsletter/NewsletterInitConfig.js +2 -4
- package/dist/esm/form/setting/newsletter/configs/settings.js +13 -0
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +35 -13
- package/dist/esm/form/setting/submit-button/configs/settings.js +17 -9
- package/dist/esm/form/setting/submit-button/configs/uiV2.js +2 -2
- package/dist/esm/sticky/components/common/styles.js +16 -5
- package/dist/types/index.d.ts +5 -2
- package/package.json +2 -2
package/dist/cjs/builder.js
CHANGED
|
@@ -62,7 +62,6 @@ var TextField = require('./form/components/textfield/TextField.js');
|
|
|
62
62
|
var TextArea = require('./form/components/textarea/TextArea.js');
|
|
63
63
|
var FormCheckbox = require('./form/components/form-checkbox/FormCheckbox.js');
|
|
64
64
|
var TextInput = require('./form/components/textinput/TextInput.js');
|
|
65
|
-
require('./form/setting/contact/Contact.js');
|
|
66
65
|
var Header = require('./header/components/Header.js');
|
|
67
66
|
var index = require('./header/components/kind/basic/index.js');
|
|
68
67
|
var index$1 = require('./header/components/kind/modern/index.js');
|
|
@@ -4,18 +4,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var core = require('@gem-sdk/core');
|
|
6
6
|
var Newsletter_liquid = require('../newsletter/Newsletter.liquid.js');
|
|
7
|
+
var composeStyles = require('./common/composeStyles.js');
|
|
8
|
+
var system = require('@gem-sdk/system');
|
|
7
9
|
|
|
8
|
-
const ContactForm = ({ builderProps, setting, children, style, advanced, pageContext })=>{
|
|
10
|
+
const ContactForm = ({ builderProps, setting, children, style, advanced, pageContext, styles })=>{
|
|
11
|
+
const containerStyle = system.createStyle(composeStyles.composeContainerStyles(setting, styles));
|
|
9
12
|
return core.template`
|
|
10
|
-
${
|
|
13
|
+
<div style="${containerStyle}">
|
|
14
|
+
${Newsletter_liquid.default({
|
|
11
15
|
builderProps: builderProps,
|
|
12
16
|
setting: setting,
|
|
13
17
|
style: style,
|
|
14
18
|
children: children,
|
|
15
19
|
formType: 'contact',
|
|
16
20
|
advanced,
|
|
17
|
-
pageContext
|
|
21
|
+
pageContext,
|
|
22
|
+
styles
|
|
18
23
|
})}
|
|
24
|
+
</div>
|
|
19
25
|
`;
|
|
20
26
|
};
|
|
21
27
|
|
|
@@ -14,7 +14,8 @@ const composeContainerStyles = (setting, styles)=>{
|
|
|
14
14
|
'--w': '100%'
|
|
15
15
|
},
|
|
16
16
|
...composeGlobalSize.padding,
|
|
17
|
-
...core.getStyleBackgroundByDevice(background)
|
|
17
|
+
...core.getStyleBackgroundByDevice(background),
|
|
18
|
+
...core.getGradientBgrStyleByDevice(background)
|
|
18
19
|
});
|
|
19
20
|
};
|
|
20
21
|
|
|
@@ -15,32 +15,26 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, children })=
|
|
|
15
15
|
const innerStyles = system.createStyle(composeStyles.composeInnerStyles(setting, advanced));
|
|
16
16
|
const containerClasses = system.createClass(composeClasses.composeContainerClasses(setting, advanced, builderProps));
|
|
17
17
|
const innerClasses = system.createClass(composeClasses.composeInnerClasses(setting));
|
|
18
|
-
return /*#__PURE__*/ jsxRuntime.
|
|
18
|
+
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
19
19
|
...builderAttrs,
|
|
20
20
|
"data-id": builderProps?.uid,
|
|
21
21
|
className: containerClasses,
|
|
22
22
|
style: containerStyles,
|
|
23
|
-
children:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
value: hideOnClient ? defaultEmail : ''
|
|
39
|
-
}),
|
|
40
|
-
children
|
|
41
|
-
]
|
|
42
|
-
})
|
|
43
|
-
]
|
|
23
|
+
children: /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
24
|
+
children: [
|
|
25
|
+
/*#__PURE__*/ jsxRuntime.jsx("input", {
|
|
26
|
+
type: "email",
|
|
27
|
+
className: innerClasses,
|
|
28
|
+
style: innerStyles,
|
|
29
|
+
placeholder: placeholder,
|
|
30
|
+
name: name,
|
|
31
|
+
required: required,
|
|
32
|
+
autoComplete: "email",
|
|
33
|
+
value: hideOnClient ? defaultEmail : ''
|
|
34
|
+
}),
|
|
35
|
+
children
|
|
36
|
+
]
|
|
37
|
+
})
|
|
44
38
|
});
|
|
45
39
|
};
|
|
46
40
|
|
|
@@ -8,8 +8,9 @@ var composeAttrs = require('./common/composeAttrs.js');
|
|
|
8
8
|
var system = require('@gem-sdk/system');
|
|
9
9
|
var composeStyles = require('./common/composeStyles.js');
|
|
10
10
|
var composeClasses = require('./common/composeClasses.js');
|
|
11
|
+
var composeStyles$1 = require('../contact/common/composeStyles.js');
|
|
11
12
|
|
|
12
|
-
const Newsletter = ({ builderProps, setting, children, style, formType, advanced, pageContext })=>{
|
|
13
|
+
const Newsletter = ({ builderProps, setting, children, style, formType, advanced, pageContext, styles })=>{
|
|
13
14
|
const errorMessage = helpers.getDynamicSourceLocales({
|
|
14
15
|
val: setting?.errorMessage,
|
|
15
16
|
uid: builderProps?.uid,
|
|
@@ -27,56 +28,60 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
|
|
|
27
28
|
translate: setting?.translate
|
|
28
29
|
});
|
|
29
30
|
const containerAttrs = composeAttrs.composeContainerAttrs(builderProps, setting);
|
|
30
|
-
const composedContainerStyles = system.createStyle(composeStyles.
|
|
31
|
+
const composedContainerStyles = system.createStyle(composeStyles.composeContainerStylesForm(style));
|
|
31
32
|
const anchorAttrs = composeAttrs.composeAnchorAttrs(builderProps, setting);
|
|
32
33
|
const composedFormClasses = system.createClass(composeClasses.composeFormClasses());
|
|
33
34
|
const composedFormStyles = system.createStyle(composeStyles.composeFormStyles(setting));
|
|
34
35
|
const formAttrs = composeAttrs.composeFormAttrs(builderProps);
|
|
35
36
|
const popoverAttrs = composeAttrs.composePopoverAttrs(builderProps);
|
|
36
37
|
const generatedPopoverStyles = composeStyles.popoverStyles(builderProps);
|
|
38
|
+
const containerStyle = system.createStyle(composeStyles$1.composeContainerStyles(setting, styles));
|
|
37
39
|
return core.template`
|
|
38
|
-
<
|
|
39
|
-
|
|
40
|
+
<div style="${containerStyle}">
|
|
41
|
+
<gp-form
|
|
42
|
+
${{
|
|
40
43
|
...containerAttrs
|
|
41
44
|
}}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
style="${composedContainerStyles}"
|
|
46
|
+
>
|
|
47
|
+
<a
|
|
48
|
+
${{
|
|
46
49
|
...anchorAttrs
|
|
47
50
|
}}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
>
|
|
52
|
+
</a>
|
|
53
|
+
{% form '${formType ? formType : 'customer'}', class: 'gp-form-${builderProps?.uid} ${advanced?.cssClass}', id: 'contact_form_${builderProps?.uid}' %}
|
|
54
|
+
{% if form.errors %}
|
|
55
|
+
<div
|
|
56
|
+
${{
|
|
54
57
|
...formAttrs
|
|
55
58
|
}}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
class="${composedFormClasses}"
|
|
60
|
+
style="${composedFormStyles}"
|
|
61
|
+
>
|
|
62
|
+
${errorMessage}
|
|
63
|
+
</div>
|
|
64
|
+
{% endif %}
|
|
65
|
+
<div popover ${{
|
|
63
66
|
...popoverAttrs
|
|
64
67
|
}}>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
<style>
|
|
69
|
+
${generatedPopoverStyles}
|
|
70
|
+
</style>
|
|
71
|
+
<div
|
|
72
|
+
${{
|
|
70
73
|
...formAttrs
|
|
71
74
|
}}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
class="${composedFormClasses}"
|
|
76
|
+
style="${composedFormStyles}"
|
|
77
|
+
>
|
|
78
|
+
${successMessage}
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
${children}
|
|
82
|
+
{% endform %}
|
|
83
|
+
</gp-form>
|
|
84
|
+
</div>
|
|
80
85
|
${core.RenderIf(core.isLocalEnv, `<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-form.js' | asset_url }}" defer="defer"></script>`, `<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="${core.baseAssetURL}/assets-v2/gp-form.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
81
86
|
`;
|
|
82
87
|
};
|
|
@@ -4,7 +4,7 @@ var common = require('../../../helpers/common.js');
|
|
|
4
4
|
var core = require('@gem-sdk/core');
|
|
5
5
|
|
|
6
6
|
const composeStyles = (styles)=>common.filterTruthy(styles);
|
|
7
|
-
const
|
|
7
|
+
const composeContainerStylesForm = (style)=>{
|
|
8
8
|
return composeStyles({
|
|
9
9
|
...style
|
|
10
10
|
});
|
|
@@ -25,6 +25,6 @@ const popoverStyles = (builderProps)=>`
|
|
|
25
25
|
}
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
|
-
exports.
|
|
28
|
+
exports.composeContainerStylesForm = composeContainerStylesForm;
|
|
29
29
|
exports.composeFormStyles = composeFormStyles;
|
|
30
30
|
exports.popoverStyles = popoverStyles;
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ContactInitConfig = require('./ContactInitConfig.js');
|
|
6
|
-
var
|
|
6
|
+
var uiV2 = require('./configs/uiV2.js');
|
|
7
|
+
var uiV1 = require('./configs/uiV1.js');
|
|
8
|
+
var settings = require('./configs/settings.js');
|
|
7
9
|
|
|
8
10
|
// TODO VICTOR
|
|
9
|
-
// @ts-nocheck
|
|
10
11
|
const config = {
|
|
11
12
|
tag: 'ContactForm',
|
|
12
13
|
label: 'Contact Form',
|
|
@@ -20,19 +21,9 @@ const config = {
|
|
|
20
21
|
<path d="M2.28223 19.5C1.86801 19.5 1.53223 19.8358 1.53223 20.25C1.53223 20.6642 1.86801 21 2.28223 21H21.7498C22.164 21 22.4998 20.6642 22.4998 20.25C22.4998 19.8358 22.164 19.5 21.7498 19.5H2.28223Z" fill="white"/>
|
|
21
22
|
</svg>
|
|
22
23
|
`,
|
|
23
|
-
settings:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
note: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`,
|
|
27
|
-
controls: Newsletter.default.settings?.find((item)=>item.id === 'setting')?.controls || []
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 'style',
|
|
31
|
-
controls: Newsletter.default.settings?.find((item)=>item.id === 'style')?.controls || []
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
ui: Newsletter.default.ui,
|
|
35
|
-
uiV2: Newsletter.default.uiV2,
|
|
24
|
+
settings: settings.default,
|
|
25
|
+
ui: uiV1.SettingUIV1,
|
|
26
|
+
uiV2: uiV2.SettingUIV2,
|
|
36
27
|
presets: [
|
|
37
28
|
{
|
|
38
29
|
id: 'contact',
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const ContactSettings = [
|
|
6
|
+
{
|
|
7
|
+
id: 'setting',
|
|
8
|
+
note: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`,
|
|
9
|
+
controls: [
|
|
10
|
+
{
|
|
11
|
+
id: 'callbackURL',
|
|
12
|
+
type: 'pick-link',
|
|
13
|
+
label: 'Pick Link',
|
|
14
|
+
customLabel: {
|
|
15
|
+
en: 'Action'
|
|
16
|
+
},
|
|
17
|
+
default: {
|
|
18
|
+
type: 'stay-on-page',
|
|
19
|
+
link: '',
|
|
20
|
+
target: '_self'
|
|
21
|
+
},
|
|
22
|
+
hiddenOptions: {
|
|
23
|
+
'scroll-to': true,
|
|
24
|
+
'open-popup': true,
|
|
25
|
+
'send-email': true,
|
|
26
|
+
'call-phone': true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: 'successMessage',
|
|
31
|
+
type: 'textarea',
|
|
32
|
+
label: 'Success Message',
|
|
33
|
+
default: "Thanks for contacting us. We'll get back to you as soon as possible.",
|
|
34
|
+
autoHeight: true,
|
|
35
|
+
minHeight: 58
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'successColor',
|
|
39
|
+
type: 'color-picker-v2',
|
|
40
|
+
label: 'Color',
|
|
41
|
+
default: '#00A042'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'errorMessage',
|
|
45
|
+
type: 'textarea',
|
|
46
|
+
label: 'Error Message',
|
|
47
|
+
default: 'Can’t send email. Please try again later.',
|
|
48
|
+
autoHeight: true,
|
|
49
|
+
minHeight: 58
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'errorColor',
|
|
53
|
+
type: 'color-picker-v2',
|
|
54
|
+
label: 'Color',
|
|
55
|
+
default: '#F44336'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 'translate',
|
|
59
|
+
type: 'input',
|
|
60
|
+
default: 'successMessage,errorMessage'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 'background',
|
|
64
|
+
type: 'background-media',
|
|
65
|
+
ignoreReRender: true,
|
|
66
|
+
hideImage: true,
|
|
67
|
+
devices: {
|
|
68
|
+
desktop: {
|
|
69
|
+
default: {
|
|
70
|
+
type: 'color',
|
|
71
|
+
color: 'transparent'
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
compoDefaultValue: {
|
|
76
|
+
desktop: {
|
|
77
|
+
default: {
|
|
78
|
+
type: 'color',
|
|
79
|
+
color: '#E2E2E2'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: 'width',
|
|
86
|
+
type: 'input:unit',
|
|
87
|
+
label: 'Width',
|
|
88
|
+
placeholder: 'Auto Width',
|
|
89
|
+
min: 0,
|
|
90
|
+
units: [
|
|
91
|
+
'px',
|
|
92
|
+
'%'
|
|
93
|
+
],
|
|
94
|
+
hide: true,
|
|
95
|
+
devices: {
|
|
96
|
+
desktop: {
|
|
97
|
+
default: '480px'
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: 'size',
|
|
103
|
+
label: 'Field size',
|
|
104
|
+
type: 'size',
|
|
105
|
+
default: {
|
|
106
|
+
type: 'medium'
|
|
107
|
+
},
|
|
108
|
+
ignoreReRender: true
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'afterSubmitActionToggle',
|
|
112
|
+
type: 'toggle',
|
|
113
|
+
label: 'Action after submit',
|
|
114
|
+
devices: {
|
|
115
|
+
desktop: {
|
|
116
|
+
default: false
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
// {
|
|
121
|
+
// id: 'fullWidth',
|
|
122
|
+
// label: 'Full Width',
|
|
123
|
+
// type: 'toggle',
|
|
124
|
+
// devices: {
|
|
125
|
+
// desktop: {
|
|
126
|
+
// default: true,
|
|
127
|
+
// },
|
|
128
|
+
// },
|
|
129
|
+
// },
|
|
130
|
+
{
|
|
131
|
+
id: 'afterSubmitAction',
|
|
132
|
+
type: 'select',
|
|
133
|
+
options: [
|
|
134
|
+
{
|
|
135
|
+
label: 'Stay on page',
|
|
136
|
+
value: 'stay-on-page'
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
label: 'Open URL',
|
|
140
|
+
value: 'open-url'
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
default: 'stay-on-page'
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: 'style',
|
|
149
|
+
controls: [
|
|
150
|
+
{
|
|
151
|
+
id: 'globalSize',
|
|
152
|
+
type: 'size-setting',
|
|
153
|
+
devices: {
|
|
154
|
+
desktop: {
|
|
155
|
+
default: {
|
|
156
|
+
width: 'Auto',
|
|
157
|
+
height: 'Auto',
|
|
158
|
+
padding: {
|
|
159
|
+
type: 'medium',
|
|
160
|
+
top: '12px',
|
|
161
|
+
bottom: '12px',
|
|
162
|
+
left: '24px',
|
|
163
|
+
right: '24px'
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
settingConfig: {
|
|
169
|
+
width: {
|
|
170
|
+
displayOptions: [
|
|
171
|
+
'full',
|
|
172
|
+
'auto',
|
|
173
|
+
'small',
|
|
174
|
+
'large',
|
|
175
|
+
'medium'
|
|
176
|
+
],
|
|
177
|
+
sizeConfig: {
|
|
178
|
+
small: '100px',
|
|
179
|
+
medium: '116px',
|
|
180
|
+
large: '132px'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
height: {
|
|
184
|
+
displayOptions: [
|
|
185
|
+
'auto',
|
|
186
|
+
'small',
|
|
187
|
+
'large',
|
|
188
|
+
'medium'
|
|
189
|
+
],
|
|
190
|
+
sizeConfig: {
|
|
191
|
+
small: '28px',
|
|
192
|
+
medium: '36px',
|
|
193
|
+
large: '44px'
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
hiddenSettings: [
|
|
198
|
+
'shape',
|
|
199
|
+
'gap'
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
];
|
|
205
|
+
|
|
206
|
+
exports.default = ContactSettings;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const SettingUIV1 = [
|
|
4
|
+
{
|
|
5
|
+
type: 'group',
|
|
6
|
+
label: {
|
|
7
|
+
en: 'After submit'
|
|
8
|
+
},
|
|
9
|
+
controls: [
|
|
10
|
+
{
|
|
11
|
+
type: 'control',
|
|
12
|
+
label: {
|
|
13
|
+
en: 'Action'
|
|
14
|
+
},
|
|
15
|
+
setting: {
|
|
16
|
+
id: 'afterSubmitAction'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
type: 'control',
|
|
21
|
+
label: {
|
|
22
|
+
en: ''
|
|
23
|
+
},
|
|
24
|
+
layout: 'vertical',
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'callbackURL'
|
|
27
|
+
},
|
|
28
|
+
condition: `afterSubmitAction == 'open-url'`
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: 'group',
|
|
34
|
+
label: {
|
|
35
|
+
en: 'Success message'
|
|
36
|
+
},
|
|
37
|
+
controls: [
|
|
38
|
+
{
|
|
39
|
+
type: 'control',
|
|
40
|
+
label: {
|
|
41
|
+
en: 'Message'
|
|
42
|
+
},
|
|
43
|
+
options: {
|
|
44
|
+
labelPosition: 'start'
|
|
45
|
+
},
|
|
46
|
+
layout: 'vertical',
|
|
47
|
+
setting: {
|
|
48
|
+
id: 'successMessage'
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: 'group',
|
|
55
|
+
label: {
|
|
56
|
+
en: 'Error message'
|
|
57
|
+
},
|
|
58
|
+
controls: [
|
|
59
|
+
{
|
|
60
|
+
type: 'control',
|
|
61
|
+
label: {
|
|
62
|
+
en: 'Message'
|
|
63
|
+
},
|
|
64
|
+
options: {
|
|
65
|
+
labelPosition: 'start'
|
|
66
|
+
},
|
|
67
|
+
layout: 'vertical',
|
|
68
|
+
setting: {
|
|
69
|
+
id: 'errorMessage'
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
exports.SettingUIV1 = SettingUIV1;
|