@gem-sdk/components 2.0.0-dev.412 → 2.0.0-dev.414
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/article/setting/configs/ArticleDate/uiV2.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleExcerpt/settings.js +4 -1
- package/dist/cjs/article/setting/configs/ArticleExcerpt/uiV2.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleTitle/presets.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +2 -2
- package/dist/cjs/dialog/setting/configs/settings.js +25 -15
- package/dist/cjs/dialog/setting/configs/uiV2.js +11 -2
- package/dist/cjs/form/components/contact/common/composeStyles.js +3 -0
- package/dist/cjs/form/components/form-email/FormEmail.js +19 -18
- package/dist/cjs/form/components/form-email/FormEmail.liquid.js +6 -1
- package/dist/cjs/form/components/form-email/common/composeClasses.js +2 -2
- package/dist/cjs/form/components/textarea/TextArea.js +10 -18
- package/dist/cjs/form/components/textarea/TextArea.liquid.js +2 -2
- package/dist/cjs/form/components/textarea/common/composeStyles.js +8 -4
- package/dist/cjs/form/components/textfield/TextField.js +11 -19
- package/dist/cjs/form/components/textfield/TextField.liquid.js +2 -2
- package/dist/cjs/form/components/textfield/common/composeClasses.js +1 -1
- package/dist/cjs/form/components/textfield/common/composeStyles.js +11 -4
- package/dist/cjs/form/components/textinput/common/composeClasses.js +1 -1
- package/dist/cjs/form/setting/contact/ContactInitConfig.js +243 -12
- package/dist/cjs/form/setting/form-checkbox/configs/uiV2.js +56 -56
- package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +115 -121
- package/dist/cjs/form/setting/form-email/configs/settings.js +2 -1
- package/dist/cjs/form/setting/form-email/configs/uiV2.js +200 -205
- package/dist/cjs/form/setting/form-textarea/configs/settings.js +56 -0
- package/dist/cjs/form/setting/form-textarea/configs/uiV2.js +61 -5
- package/dist/cjs/form/setting/newsletter/NewsletterInitConfig.js +15 -0
- package/dist/cjs/form/setting/newsletter/configs/settings.js +77 -1
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +5 -8
- package/dist/cjs/form/setting/text-field/configs/settings.js +57 -0
- package/dist/cjs/form/setting/text-field/configs/uiV2.js +82 -5
- package/dist/esm/article/setting/configs/ArticleDate/uiV2.js +1 -1
- package/dist/esm/article/setting/configs/ArticleExcerpt/settings.js +4 -1
- package/dist/esm/article/setting/configs/ArticleExcerpt/uiV2.js +1 -1
- package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +1 -1
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +1 -1
- package/dist/esm/article/setting/configs/ArticleTitle/presets.js +1 -1
- package/dist/esm/article/setting/configs/ArticleTitle/settings.js +2 -2
- package/dist/esm/dialog/setting/configs/settings.js +25 -15
- package/dist/esm/dialog/setting/configs/uiV2.js +11 -2
- package/dist/esm/form/components/contact/common/composeStyles.js +4 -1
- package/dist/esm/form/components/form-email/FormEmail.js +19 -18
- package/dist/esm/form/components/form-email/FormEmail.liquid.js +6 -1
- package/dist/esm/form/components/form-email/common/composeClasses.js +2 -2
- package/dist/esm/form/components/textarea/TextArea.js +10 -18
- package/dist/esm/form/components/textarea/TextArea.liquid.js +2 -2
- package/dist/esm/form/components/textarea/common/composeStyles.js +9 -5
- package/dist/esm/form/components/textfield/TextField.js +11 -19
- package/dist/esm/form/components/textfield/TextField.liquid.js +2 -2
- package/dist/esm/form/components/textfield/common/composeClasses.js +1 -1
- package/dist/esm/form/components/textfield/common/composeStyles.js +12 -5
- package/dist/esm/form/components/textinput/common/composeClasses.js +1 -1
- package/dist/esm/form/setting/contact/ContactInitConfig.js +243 -12
- package/dist/esm/form/setting/form-checkbox/configs/uiV2.js +56 -56
- package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +115 -121
- package/dist/esm/form/setting/form-email/configs/settings.js +2 -1
- package/dist/esm/form/setting/form-email/configs/uiV2.js +200 -205
- package/dist/esm/form/setting/form-textarea/configs/settings.js +56 -0
- package/dist/esm/form/setting/form-textarea/configs/uiV2.js +61 -5
- package/dist/esm/form/setting/newsletter/NewsletterInitConfig.js +15 -0
- package/dist/esm/form/setting/newsletter/configs/settings.js +77 -1
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +5 -8
- package/dist/esm/form/setting/text-field/configs/settings.js +57 -0
- package/dist/esm/form/setting/text-field/configs/uiV2.js +82 -5
- package/dist/types/index.d.ts +17 -34
- package/package.json +2 -2
|
@@ -49,6 +49,7 @@ const FormEmailSettings = [
|
|
|
49
49
|
type: 'paragraph-1'
|
|
50
50
|
},
|
|
51
51
|
hiddenSetting: {
|
|
52
|
+
color: true,
|
|
52
53
|
textAlign: true,
|
|
53
54
|
textShadow: true,
|
|
54
55
|
fontWeight: true,
|
|
@@ -108,7 +109,7 @@ const FormEmailSettings = [
|
|
|
108
109
|
desktop: {
|
|
109
110
|
default: {
|
|
110
111
|
type: 'color',
|
|
111
|
-
color: '
|
|
112
|
+
color: '#FFFFFF'
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
},
|
|
@@ -22,14 +22,6 @@ const SettingUIV2 = [
|
|
|
22
22
|
setting: {
|
|
23
23
|
id: 'placeholder'
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
setting: {
|
|
28
|
-
id: 'placeholderColor'
|
|
29
|
-
},
|
|
30
|
-
label: {
|
|
31
|
-
en: 'Color'
|
|
32
|
-
}
|
|
33
25
|
}
|
|
34
26
|
]
|
|
35
27
|
},
|
|
@@ -126,224 +118,227 @@ const SettingUIV2 = [
|
|
|
126
118
|
}
|
|
127
119
|
]
|
|
128
120
|
},
|
|
121
|
+
// {
|
|
122
|
+
// label: {
|
|
123
|
+
// en: 'Background',
|
|
124
|
+
// },
|
|
125
|
+
// controls: [
|
|
126
|
+
// {
|
|
127
|
+
// setting: {
|
|
128
|
+
// id: 'background',
|
|
129
|
+
// },
|
|
130
|
+
// layout: 'vertical',
|
|
131
|
+
// },
|
|
132
|
+
// ],
|
|
133
|
+
// },
|
|
134
|
+
// {
|
|
135
|
+
// label: {
|
|
136
|
+
// en: 'Shape',
|
|
137
|
+
// },
|
|
138
|
+
// controls: [
|
|
139
|
+
// {
|
|
140
|
+
// label: {
|
|
141
|
+
// en: 'Border',
|
|
142
|
+
// },
|
|
143
|
+
// controlConfig: {
|
|
144
|
+
// id: 'border',
|
|
145
|
+
// type: 'border-v2',
|
|
146
|
+
// linkWithSetting: {
|
|
147
|
+
// name: 'wrapperBorder',
|
|
148
|
+
// },
|
|
149
|
+
// },
|
|
150
|
+
// },
|
|
151
|
+
// {
|
|
152
|
+
// label: {
|
|
153
|
+
// en: 'Corner',
|
|
154
|
+
// },
|
|
155
|
+
// setting: {
|
|
156
|
+
// id: 'rounded',
|
|
157
|
+
// state: 'normal',
|
|
158
|
+
// },
|
|
159
|
+
// },
|
|
160
|
+
// {
|
|
161
|
+
// label: {
|
|
162
|
+
// en: 'Shadow',
|
|
163
|
+
// },
|
|
164
|
+
// setting: {
|
|
165
|
+
// id: 'boxShadow',
|
|
166
|
+
// state: 'normal',
|
|
167
|
+
// },
|
|
168
|
+
// options: {
|
|
169
|
+
// updateFields: [
|
|
170
|
+
// {
|
|
171
|
+
// field: 'enable',
|
|
172
|
+
// settingId: 'hasBoxShadow',
|
|
173
|
+
// state: 'normal',
|
|
174
|
+
// },
|
|
175
|
+
// ],
|
|
176
|
+
// },
|
|
177
|
+
// controlChangeTrigger: {
|
|
178
|
+
// settings: [
|
|
179
|
+
// {
|
|
180
|
+
// condition: `boxShadow.normal.enable === true`,
|
|
181
|
+
// source: ['boxShadow', 'hasBoxShadow'],
|
|
182
|
+
// action: {
|
|
183
|
+
// controlId: 'hasBoxShadow',
|
|
184
|
+
// groupType: 'advanced',
|
|
185
|
+
// controlType: 'advanced',
|
|
186
|
+
// state: 'normal',
|
|
187
|
+
// newValue: true,
|
|
188
|
+
// },
|
|
189
|
+
// },
|
|
190
|
+
// {
|
|
191
|
+
// condition: `boxShadow.normal.enable === false`,
|
|
192
|
+
// source: ['boxShadow', 'hasBoxShadow'],
|
|
193
|
+
// action: {
|
|
194
|
+
// controlId: 'hasBoxShadow',
|
|
195
|
+
// groupType: 'advanced',
|
|
196
|
+
// controlType: 'advanced',
|
|
197
|
+
// state: 'normal',
|
|
198
|
+
// newValue: false,
|
|
199
|
+
// },
|
|
200
|
+
// },
|
|
201
|
+
// ],
|
|
202
|
+
// options: {
|
|
203
|
+
// noRecordHistory: true,
|
|
204
|
+
// },
|
|
205
|
+
// },
|
|
206
|
+
// },
|
|
207
|
+
// ],
|
|
208
|
+
// },
|
|
209
|
+
// {
|
|
210
|
+
// label: {
|
|
211
|
+
// en: 'Hover effect',
|
|
212
|
+
// },
|
|
213
|
+
// controls: [
|
|
214
|
+
// {
|
|
215
|
+
// label: {
|
|
216
|
+
// en: 'Text color',
|
|
217
|
+
// },
|
|
218
|
+
// setting: {
|
|
219
|
+
// id: 'textColorHover',
|
|
220
|
+
// state: 'hover',
|
|
221
|
+
// },
|
|
222
|
+
// },
|
|
223
|
+
// {
|
|
224
|
+
// label: {
|
|
225
|
+
// en: 'Background',
|
|
226
|
+
// },
|
|
227
|
+
// setting: {
|
|
228
|
+
// id: 'backgroundColorV2Hover',
|
|
229
|
+
// state: 'hover',
|
|
230
|
+
// },
|
|
231
|
+
// },
|
|
232
|
+
// {
|
|
233
|
+
// label: {
|
|
234
|
+
// en: 'Border',
|
|
235
|
+
// },
|
|
236
|
+
// setting: {
|
|
237
|
+
// id: 'borderEmailHover',
|
|
238
|
+
// state: 'hover',
|
|
239
|
+
// },
|
|
240
|
+
// },
|
|
241
|
+
// {
|
|
242
|
+
// label: {
|
|
243
|
+
// en: 'Corner',
|
|
244
|
+
// },
|
|
245
|
+
// setting: {
|
|
246
|
+
// id: 'roundedEmailHover',
|
|
247
|
+
// state: 'hover',
|
|
248
|
+
// },
|
|
249
|
+
// },
|
|
250
|
+
// {
|
|
251
|
+
// label: {
|
|
252
|
+
// en: 'Shadow',
|
|
253
|
+
// },
|
|
254
|
+
// setting: {
|
|
255
|
+
// id: 'boxShadowEmailHover',
|
|
256
|
+
// state: 'hover',
|
|
257
|
+
// },
|
|
258
|
+
// },
|
|
259
|
+
// ],
|
|
260
|
+
// },
|
|
261
|
+
// {
|
|
262
|
+
// label: {
|
|
263
|
+
// en: 'Active state',
|
|
264
|
+
// },
|
|
265
|
+
// controls: [
|
|
266
|
+
// {
|
|
267
|
+
// label: {
|
|
268
|
+
// en: 'Text color',
|
|
269
|
+
// },
|
|
270
|
+
// setting: {
|
|
271
|
+
// id: 'textColorActive',
|
|
272
|
+
// state: 'active',
|
|
273
|
+
// },
|
|
274
|
+
// },
|
|
275
|
+
// {
|
|
276
|
+
// label: {
|
|
277
|
+
// en: 'Background',
|
|
278
|
+
// },
|
|
279
|
+
// setting: {
|
|
280
|
+
// id: 'backgroundColorV2Active',
|
|
281
|
+
// state: 'active',
|
|
282
|
+
// },
|
|
283
|
+
// },
|
|
284
|
+
// {
|
|
285
|
+
// label: {
|
|
286
|
+
// en: 'Border',
|
|
287
|
+
// },
|
|
288
|
+
// setting: {
|
|
289
|
+
// id: 'borderEmailActive',
|
|
290
|
+
// state: 'active',
|
|
291
|
+
// },
|
|
292
|
+
// },
|
|
293
|
+
// {
|
|
294
|
+
// label: {
|
|
295
|
+
// en: 'Corner',
|
|
296
|
+
// },
|
|
297
|
+
// setting: {
|
|
298
|
+
// id: 'roundedEmailActive',
|
|
299
|
+
// state: 'active',
|
|
300
|
+
// },
|
|
301
|
+
// },
|
|
302
|
+
// {
|
|
303
|
+
// label: {
|
|
304
|
+
// en: 'Shadow',
|
|
305
|
+
// },
|
|
306
|
+
// setting: {
|
|
307
|
+
// id: 'boxShadowEmailActive',
|
|
308
|
+
// state: 'active',
|
|
309
|
+
// },
|
|
310
|
+
// },
|
|
311
|
+
// ],
|
|
312
|
+
// },
|
|
129
313
|
{
|
|
130
314
|
label: {
|
|
131
|
-
en: '
|
|
132
|
-
},
|
|
133
|
-
controls: [
|
|
134
|
-
{
|
|
135
|
-
setting: {
|
|
136
|
-
id: 'background'
|
|
137
|
-
},
|
|
138
|
-
layout: 'vertical'
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
label: {
|
|
144
|
-
en: 'Shape'
|
|
145
|
-
},
|
|
146
|
-
controls: [
|
|
147
|
-
{
|
|
148
|
-
label: {
|
|
149
|
-
en: 'Border'
|
|
150
|
-
},
|
|
151
|
-
controlConfig: {
|
|
152
|
-
id: 'border',
|
|
153
|
-
type: 'border-v2',
|
|
154
|
-
linkWithSetting: {
|
|
155
|
-
name: 'wrapperBorder'
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
label: {
|
|
161
|
-
en: 'Corner'
|
|
162
|
-
},
|
|
163
|
-
setting: {
|
|
164
|
-
id: 'rounded',
|
|
165
|
-
state: 'normal'
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
label: {
|
|
170
|
-
en: 'Shadow'
|
|
171
|
-
},
|
|
172
|
-
setting: {
|
|
173
|
-
id: 'boxShadow',
|
|
174
|
-
state: 'normal'
|
|
175
|
-
},
|
|
176
|
-
options: {
|
|
177
|
-
updateFields: [
|
|
178
|
-
{
|
|
179
|
-
field: 'enable',
|
|
180
|
-
settingId: 'hasBoxShadow',
|
|
181
|
-
state: 'normal'
|
|
182
|
-
}
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
controlChangeTrigger: {
|
|
186
|
-
settings: [
|
|
187
|
-
{
|
|
188
|
-
condition: `boxShadow.normal.enable === true`,
|
|
189
|
-
source: [
|
|
190
|
-
'boxShadow',
|
|
191
|
-
'hasBoxShadow'
|
|
192
|
-
],
|
|
193
|
-
action: {
|
|
194
|
-
controlId: 'hasBoxShadow',
|
|
195
|
-
groupType: 'advanced',
|
|
196
|
-
controlType: 'advanced',
|
|
197
|
-
state: 'normal',
|
|
198
|
-
newValue: true
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
condition: `boxShadow.normal.enable === false`,
|
|
203
|
-
source: [
|
|
204
|
-
'boxShadow',
|
|
205
|
-
'hasBoxShadow'
|
|
206
|
-
],
|
|
207
|
-
action: {
|
|
208
|
-
controlId: 'hasBoxShadow',
|
|
209
|
-
groupType: 'advanced',
|
|
210
|
-
controlType: 'advanced',
|
|
211
|
-
state: 'normal',
|
|
212
|
-
newValue: false
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
options: {
|
|
217
|
-
noRecordHistory: true
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
label: {
|
|
225
|
-
en: 'Hover effect'
|
|
226
|
-
},
|
|
227
|
-
controls: [
|
|
228
|
-
{
|
|
229
|
-
label: {
|
|
230
|
-
en: 'Text color'
|
|
231
|
-
},
|
|
232
|
-
setting: {
|
|
233
|
-
id: 'textColorHover',
|
|
234
|
-
state: 'hover'
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
label: {
|
|
239
|
-
en: 'Background'
|
|
240
|
-
},
|
|
241
|
-
setting: {
|
|
242
|
-
id: 'backgroundColorV2Hover',
|
|
243
|
-
state: 'hover'
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
label: {
|
|
248
|
-
en: 'Border'
|
|
249
|
-
},
|
|
250
|
-
setting: {
|
|
251
|
-
id: 'borderEmailHover',
|
|
252
|
-
state: 'hover'
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
label: {
|
|
257
|
-
en: 'Corner'
|
|
258
|
-
},
|
|
259
|
-
setting: {
|
|
260
|
-
id: 'roundedEmailHover',
|
|
261
|
-
state: 'hover'
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
label: {
|
|
266
|
-
en: 'Shadow'
|
|
267
|
-
},
|
|
268
|
-
setting: {
|
|
269
|
-
id: 'boxShadowEmailHover',
|
|
270
|
-
state: 'hover'
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
]
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
label: {
|
|
277
|
-
en: 'Active state'
|
|
315
|
+
en: 'Configuration'
|
|
278
316
|
},
|
|
279
317
|
controls: [
|
|
280
318
|
{
|
|
281
319
|
label: {
|
|
282
|
-
en: '
|
|
283
|
-
},
|
|
284
|
-
setting: {
|
|
285
|
-
id: 'textColorActive',
|
|
286
|
-
state: 'active'
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
label: {
|
|
291
|
-
en: 'Background'
|
|
292
|
-
},
|
|
293
|
-
setting: {
|
|
294
|
-
id: 'backgroundColorV2Active',
|
|
295
|
-
state: 'active'
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
label: {
|
|
300
|
-
en: 'Border'
|
|
320
|
+
en: 'Required'
|
|
301
321
|
},
|
|
302
322
|
setting: {
|
|
303
|
-
id: '
|
|
304
|
-
state: 'active'
|
|
323
|
+
id: 'required'
|
|
305
324
|
}
|
|
306
325
|
},
|
|
307
326
|
{
|
|
308
327
|
label: {
|
|
309
|
-
en: '
|
|
328
|
+
en: 'Hide on client'
|
|
310
329
|
},
|
|
311
330
|
setting: {
|
|
312
|
-
id: '
|
|
313
|
-
state: 'active'
|
|
331
|
+
id: 'hideOnClient'
|
|
314
332
|
}
|
|
315
333
|
},
|
|
316
334
|
{
|
|
317
335
|
label: {
|
|
318
|
-
en: '
|
|
319
|
-
},
|
|
320
|
-
setting: {
|
|
321
|
-
id: 'boxShadowEmailActive',
|
|
322
|
-
state: 'active'
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
]
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
label: {
|
|
329
|
-
en: 'Configuration'
|
|
330
|
-
},
|
|
331
|
-
controls: [
|
|
332
|
-
{
|
|
333
|
-
label: {
|
|
334
|
-
en: 'Required'
|
|
336
|
+
en: 'Default value'
|
|
335
337
|
},
|
|
336
338
|
setting: {
|
|
337
|
-
id: '
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
label: {
|
|
342
|
-
en: 'Hide on client'
|
|
339
|
+
id: 'defaultEmail'
|
|
343
340
|
},
|
|
344
|
-
|
|
345
|
-
id: 'hideOnClient'
|
|
346
|
-
}
|
|
341
|
+
conditionDisplay: 'hideOnClient === true'
|
|
347
342
|
}
|
|
348
343
|
]
|
|
349
344
|
}
|
|
@@ -146,6 +146,62 @@ const TextareaSettings = [
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'style',
|
|
152
|
+
controls: [
|
|
153
|
+
{
|
|
154
|
+
id: 'globalSize',
|
|
155
|
+
type: 'size-setting',
|
|
156
|
+
devices: {
|
|
157
|
+
desktop: {
|
|
158
|
+
default: {
|
|
159
|
+
width: '100%',
|
|
160
|
+
padding: {
|
|
161
|
+
type: 'medium',
|
|
162
|
+
top: '12px',
|
|
163
|
+
bottom: '12px',
|
|
164
|
+
left: '12px',
|
|
165
|
+
right: '12px'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
settingConfig: {
|
|
171
|
+
width: {
|
|
172
|
+
displayOptions: [
|
|
173
|
+
'full',
|
|
174
|
+
'auto',
|
|
175
|
+
'small',
|
|
176
|
+
'large',
|
|
177
|
+
'medium'
|
|
178
|
+
],
|
|
179
|
+
sizeConfig: {
|
|
180
|
+
small: '100px',
|
|
181
|
+
medium: '116px',
|
|
182
|
+
large: '132px'
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
height: {
|
|
186
|
+
displayOptions: [
|
|
187
|
+
'auto',
|
|
188
|
+
'small',
|
|
189
|
+
'large',
|
|
190
|
+
'medium'
|
|
191
|
+
],
|
|
192
|
+
sizeConfig: {
|
|
193
|
+
small: '28px',
|
|
194
|
+
medium: '36px',
|
|
195
|
+
large: '44px'
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
hiddenSettings: [
|
|
200
|
+
'shape',
|
|
201
|
+
'gap'
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
]
|
|
149
205
|
}
|
|
150
206
|
];
|
|
151
207
|
|
|
@@ -40,16 +40,72 @@ const SettingUIV2 = [
|
|
|
40
40
|
label: {
|
|
41
41
|
en: 'Width'
|
|
42
42
|
},
|
|
43
|
-
|
|
44
|
-
id: 'width'
|
|
45
|
-
|
|
43
|
+
controlConfig: {
|
|
44
|
+
id: 'width',
|
|
45
|
+
type: 'dropdown:input',
|
|
46
|
+
label: 'Width',
|
|
47
|
+
inputType: 'number',
|
|
48
|
+
units: [
|
|
49
|
+
'px',
|
|
50
|
+
'%'
|
|
51
|
+
],
|
|
52
|
+
hideUnit: false,
|
|
53
|
+
linkWithSetting: {
|
|
54
|
+
name: 'globalSize',
|
|
55
|
+
field: 'width'
|
|
56
|
+
},
|
|
57
|
+
displayOptions: [
|
|
58
|
+
{
|
|
59
|
+
label: 'Fit content',
|
|
60
|
+
value: 'Auto',
|
|
61
|
+
showValue: true
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'Full',
|
|
65
|
+
value: '100%',
|
|
66
|
+
showValue: true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: 'Small',
|
|
70
|
+
value: '100px',
|
|
71
|
+
showValue: true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: 'Medium',
|
|
75
|
+
value: '116px',
|
|
76
|
+
showValue: true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Large',
|
|
80
|
+
value: '132px',
|
|
81
|
+
showValue: true
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
layout: 'horizontal'
|
|
46
86
|
},
|
|
47
87
|
{
|
|
48
88
|
label: {
|
|
49
89
|
en: 'Padding'
|
|
50
90
|
},
|
|
51
|
-
|
|
52
|
-
id: '
|
|
91
|
+
controlConfig: {
|
|
92
|
+
id: 'padding',
|
|
93
|
+
type: 'padding-v2',
|
|
94
|
+
linkWithSetting: {
|
|
95
|
+
name: 'globalSize',
|
|
96
|
+
field: 'padding'
|
|
97
|
+
},
|
|
98
|
+
compoDefaultValue: {
|
|
99
|
+
desktop: {
|
|
100
|
+
default: {
|
|
101
|
+
type: 'medium',
|
|
102
|
+
top: '12px',
|
|
103
|
+
bottom: '12px',
|
|
104
|
+
left: '12px',
|
|
105
|
+
right: '12px'
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
53
109
|
}
|
|
54
110
|
}
|
|
55
111
|
]
|
|
@@ -66,6 +66,21 @@ const newsletterInitConfig = [
|
|
|
66
66
|
tablet: '313px'
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
|
+
styles: {
|
|
70
|
+
globalSize: {
|
|
71
|
+
desktop: {
|
|
72
|
+
width: '100%',
|
|
73
|
+
height: 'Auto',
|
|
74
|
+
padding: {
|
|
75
|
+
type: 'medium',
|
|
76
|
+
top: '12px',
|
|
77
|
+
bottom: '12px',
|
|
78
|
+
left: '12px',
|
|
79
|
+
right: '12px'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
69
84
|
advanced: {
|
|
70
85
|
border: {
|
|
71
86
|
desktop: {
|