@gem-sdk/components 2.0.0-dev.331 → 2.0.0-dev.333
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/banner/components/HeroBannerItem.js +1 -1
- package/dist/cjs/banner/components/common/getStyle.js +2 -2
- package/dist/cjs/banner/setting/presets/heroBannerContentLeft.js +1 -1
- package/dist/cjs/banner/setting/presets/heroBannerContentRight.js +1 -1
- package/dist/cjs/banner/setting/setting.js +117 -0
- package/dist/cjs/banner/setting/uiV2.js +11 -14
- package/dist/cjs/post-purchase/product/settings/product-image/ProductFeatureImage.js +33 -0
- package/dist/cjs/post-purchase/product/settings/product-image/ProductGalleryImage.js +85 -0
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +69 -0
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +3 -1
- package/dist/cjs/post-purchase/product/settings/product-image/uiV1.js +42 -0
- package/dist/esm/banner/components/HeroBannerItem.js +1 -1
- package/dist/esm/banner/components/common/getStyle.js +2 -2
- package/dist/esm/banner/setting/presets/heroBannerContentLeft.js +1 -1
- package/dist/esm/banner/setting/presets/heroBannerContentRight.js +1 -1
- package/dist/esm/banner/setting/setting.js +117 -0
- package/dist/esm/banner/setting/uiV2.js +11 -14
- package/dist/esm/post-purchase/product/settings/product-image/ProductFeatureImage.js +31 -0
- package/dist/esm/post-purchase/product/settings/product-image/ProductGalleryImage.js +83 -0
- package/dist/esm/post-purchase/product/settings/product-image/ProductImageLayoutSetting.js +67 -0
- package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +3 -1
- package/dist/esm/post-purchase/product/settings/product-image/uiV1.js +40 -0
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ const HeroBannerItem = (props)=>{
|
|
|
28
28
|
...getStyle.getContainerStyle(styles, setting)
|
|
29
29
|
});
|
|
30
30
|
const containerClasses = system.createClass({
|
|
31
|
-
...getClasses.getContainerClasses(setting)
|
|
31
|
+
...getClasses.getContainerClasses(setting, styles)
|
|
32
32
|
});
|
|
33
33
|
const overlayStyle = system.createStyle({
|
|
34
34
|
...getStyle.getOverlayStyle(styles)
|
|
@@ -53,8 +53,8 @@ const getOverlayStyle = (styles)=>{
|
|
|
53
53
|
const composeStyles = {
|
|
54
54
|
...core.getGlobalColorStateStyle('bgc', overlayColor),
|
|
55
55
|
...core.makeStyleState('op', overlayOpacity),
|
|
56
|
-
'--top': 0,
|
|
57
|
-
'--left': 0
|
|
56
|
+
'--top': '0',
|
|
57
|
+
'--left': '0'
|
|
58
58
|
};
|
|
59
59
|
return filterTruthyStyles(composeStyles);
|
|
60
60
|
};
|
|
@@ -18,6 +18,123 @@ const SettingsV2 = [
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
+
{
|
|
22
|
+
id: 'verticalAlign',
|
|
23
|
+
type: 'segment',
|
|
24
|
+
options: [
|
|
25
|
+
{
|
|
26
|
+
label: 'Start',
|
|
27
|
+
value: 'start',
|
|
28
|
+
icon: `<svg
|
|
29
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
30
|
+
width="20"
|
|
31
|
+
height="20"
|
|
32
|
+
viewBox="0 0 20 20"
|
|
33
|
+
fill="none"
|
|
34
|
+
>
|
|
35
|
+
<path
|
|
36
|
+
d="M18.75 2.8125C18.75 3.15768 18.4702 3.4375 18.125 3.4375L1.875 3.4375C1.52982 3.4375 1.25 3.15768 1.25 2.8125C1.25 2.46732 1.52982 2.1875 1.875 2.1875L18.125 2.1875C18.4702 2.1875 18.75 2.46732 18.75 2.8125Z"
|
|
37
|
+
fill="currentColor"
|
|
38
|
+
/>
|
|
39
|
+
<path
|
|
40
|
+
fill-rule="evenodd"
|
|
41
|
+
clip-rule="evenodd"
|
|
42
|
+
d="M13.75 4.0625C14.7855 4.0625 15.625 4.90197 15.625 5.9375L15.625 12.1875C15.625 13.223 14.7855 14.0625 13.75 14.0625L12.5 14.0625C11.4645 14.0625 10.625 13.223 10.625 12.1875L10.625 5.9375C10.625 4.90197 11.4645 4.0625 12.5 4.0625L13.75 4.0625ZM14.375 5.9375C14.375 5.59232 14.0952 5.3125 13.75 5.3125L12.5 5.3125C12.1548 5.3125 11.875 5.59232 11.875 5.9375L11.875 12.1875C11.875 12.5327 12.1548 12.8125 12.5 12.8125L13.75 12.8125C14.0952 12.8125 14.375 12.5327 14.375 12.1875L14.375 5.9375Z"
|
|
43
|
+
fill="currentColor"
|
|
44
|
+
/>
|
|
45
|
+
<path
|
|
46
|
+
fill-rule="evenodd"
|
|
47
|
+
clip-rule="evenodd"
|
|
48
|
+
d="M9.375 5.9375C9.375 4.90197 8.53553 4.0625 7.5 4.0625L6.25 4.0625C5.21447 4.0625 4.375 4.90197 4.375 5.9375L4.375 15.9375C4.375 16.973 5.21447 17.8125 6.25 17.8125L7.5 17.8125C8.53553 17.8125 9.375 16.973 9.375 15.9375L9.375 5.9375ZM7.5 5.3125C7.84518 5.3125 8.125 5.59232 8.125 5.9375L8.125 15.9375C8.125 16.2827 7.84518 16.5625 7.5 16.5625L6.25 16.5625C5.90482 16.5625 5.625 16.2827 5.625 15.9375L5.625 5.9375C5.625 5.59232 5.90482 5.3125 6.25 5.3125L7.5 5.3125Z"
|
|
49
|
+
fill="currentColor"
|
|
50
|
+
/>
|
|
51
|
+
</svg> `
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: 'Center',
|
|
55
|
+
value: 'center',
|
|
56
|
+
icon: `<svg
|
|
57
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
58
|
+
width="20"
|
|
59
|
+
height="20"
|
|
60
|
+
viewBox="0 0 20 20"
|
|
61
|
+
fill="none"
|
|
62
|
+
>
|
|
63
|
+
<path
|
|
64
|
+
fill-rule="evenodd"
|
|
65
|
+
clip-rule="evenodd"
|
|
66
|
+
d="M18.125 10.625C18.125 10.9702 17.8652 11.25 17.5446 11.25L15.2232 11.25L15.2232 13.75C15.2232 14.7855 14.4437 15.625 13.4821 15.625L12.3214 15.625C11.3599 15.625 10.5804 14.7855 10.5804 13.75L10.5804 11.25L9.41964 11.25L9.41964 15.625C9.41964 16.6605 8.64014 17.5 7.67857 17.5L6.51786 17.5C5.55629 17.5 4.77679 16.6605 4.77679 15.625L4.77679 11.25L2.45536 11.25C2.13484 11.25 1.875 10.9702 1.875 10.625C1.875 10.2798 2.13484 10 2.45536 10L4.77679 10L4.77679 5.625C4.77679 4.58947 5.55629 3.75 6.51786 3.75L7.67857 3.75C8.64014 3.75 9.41964 4.58947 9.41964 5.625L9.41964 10L10.5804 10L10.5804 7.5C10.5804 6.46447 11.3599 5.625 12.3214 5.625L13.4821 5.625C14.4437 5.625 15.2232 6.46447 15.2232 7.5L15.2232 10L17.5446 10C17.8652 10 18.125 10.2798 18.125 10.625ZM5.9375 15.625C5.9375 15.9702 6.19734 16.25 6.51786 16.25L7.67857 16.25C7.99909 16.25 8.25893 15.9702 8.25893 15.625L8.25893 5.625C8.25893 5.27982 7.99909 5 7.67857 5L6.51786 5C6.19734 5 5.9375 5.27982 5.9375 5.625L5.9375 15.625ZM11.7411 13.75L11.7411 7.5C11.7411 7.15482 12.0009 6.875 12.3214 6.875L13.4821 6.875C13.8027 6.875 14.0625 7.15482 14.0625 7.5L14.0625 13.75C14.0625 14.0952 13.8027 14.375 13.4821 14.375L12.3214 14.375C12.0009 14.375 11.7411 14.0952 11.7411 13.75Z"
|
|
67
|
+
fill="currentColor"
|
|
68
|
+
/>
|
|
69
|
+
</svg> `
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'End',
|
|
73
|
+
value: 'end',
|
|
74
|
+
icon: `<svg
|
|
75
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
76
|
+
width="20"
|
|
77
|
+
height="20"
|
|
78
|
+
viewBox="0 0 20 20"
|
|
79
|
+
fill="none"
|
|
80
|
+
>
|
|
81
|
+
<path
|
|
82
|
+
d="M1.25 17.8125C1.25 17.4673 1.52982 17.1875 1.875 17.1875L18.125 17.1875C18.4702 17.1875 18.75 17.4673 18.75 17.8125C18.75 18.1577 18.4702 18.4375 18.125 18.4375L1.875 18.4375C1.52982 18.4375 1.25 18.1577 1.25 17.8125Z"
|
|
83
|
+
fill="currentColor"
|
|
84
|
+
/>
|
|
85
|
+
<path
|
|
86
|
+
fill-rule="evenodd"
|
|
87
|
+
clip-rule="evenodd"
|
|
88
|
+
d="M6.25 16.5625C5.21447 16.5625 4.375 15.723 4.375 14.6875L4.375 8.4375C4.375 7.40196 5.21447 6.5625 6.25 6.5625L7.5 6.5625C8.53553 6.5625 9.375 7.40197 9.375 8.4375L9.375 14.6875C9.375 15.723 8.53553 16.5625 7.5 16.5625L6.25 16.5625ZM5.625 14.6875C5.625 15.0327 5.90482 15.3125 6.25 15.3125L7.5 15.3125C7.84518 15.3125 8.125 15.0327 8.125 14.6875L8.125 8.4375C8.125 8.09232 7.84518 7.8125 7.5 7.8125L6.25 7.8125C5.90482 7.8125 5.625 8.09232 5.625 8.4375L5.625 14.6875Z"
|
|
89
|
+
fill="currentColor"
|
|
90
|
+
/>
|
|
91
|
+
<path
|
|
92
|
+
fill-rule="evenodd"
|
|
93
|
+
clip-rule="evenodd"
|
|
94
|
+
d="M10.625 14.6875C10.625 15.723 11.4645 16.5625 12.5 16.5625L13.75 16.5625C14.7855 16.5625 15.625 15.723 15.625 14.6875L15.625 4.6875C15.625 3.65196 14.7855 2.8125 13.75 2.8125L12.5 2.8125C11.4645 2.8125 10.625 3.65197 10.625 4.6875L10.625 14.6875ZM12.5 15.3125C12.1548 15.3125 11.875 15.0327 11.875 14.6875L11.875 4.6875C11.875 4.34232 12.1548 4.0625 12.5 4.0625L13.75 4.0625C14.0952 4.0625 14.375 4.34232 14.375 4.6875L14.375 14.6875C14.375 15.0327 14.0952 15.3125 13.75 15.3125L12.5 15.3125Z"
|
|
95
|
+
fill="currentColor"
|
|
96
|
+
/>
|
|
97
|
+
</svg> `
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: 'Between',
|
|
101
|
+
value: 'space-between',
|
|
102
|
+
icon: `<svg
|
|
103
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
104
|
+
width="20"
|
|
105
|
+
height="20"
|
|
106
|
+
viewBox="0 0 20 20"
|
|
107
|
+
fill="none"
|
|
108
|
+
>
|
|
109
|
+
<path
|
|
110
|
+
d="M1.87891 1.22485C1.53373 1.22485 1.25391 1.50468 1.25391 1.84985C1.25391 2.19503 1.53373 2.47485 1.87891 2.47485L18.1298 2.47485C18.475 2.47485 18.7548 2.19503 18.7548 1.84985C18.7548 1.50468 18.475 1.22485 18.1298 1.22485H1.87891Z"
|
|
111
|
+
fill="currentColor"
|
|
112
|
+
/>
|
|
113
|
+
<path
|
|
114
|
+
d="M1.93433 17.5249C1.58915 17.5249 1.30933 17.8047 1.30933 18.1499C1.30933 18.4951 1.58915 18.7749 1.93433 18.7749L18.1852 18.7749C18.5304 18.7749 18.8102 18.4951 18.8102 18.1499C18.8102 17.8047 18.5304 17.5249 18.1852 17.5249L1.93433 17.5249Z"
|
|
115
|
+
fill="currentColor"
|
|
116
|
+
/>
|
|
117
|
+
<path
|
|
118
|
+
fill-rule="evenodd"
|
|
119
|
+
clip-rule="evenodd"
|
|
120
|
+
d="M2.875 6.375C2.875 5.33947 3.71447 4.5 4.75 4.5H15.25C16.2855 4.5 17.125 5.33947 17.125 6.375V6.875C17.125 7.91053 16.2855 8.75 15.25 8.75H4.75C3.71447 8.75 2.875 7.91053 2.875 6.875V6.375ZM4.75 5.75C4.40482 5.75 4.125 6.02982 4.125 6.375V6.875C4.125 7.22018 4.40482 7.5 4.75 7.5H15.25C15.5952 7.5 15.875 7.22018 15.875 6.875V6.375C15.875 6.02982 15.5952 5.75 15.25 5.75H4.75Z"
|
|
121
|
+
fill="currentColor"
|
|
122
|
+
/>
|
|
123
|
+
<path
|
|
124
|
+
fill-rule="evenodd"
|
|
125
|
+
clip-rule="evenodd"
|
|
126
|
+
d="M4.75 11.25C3.71447 11.25 2.875 12.0895 2.875 13.125V13.625C2.875 14.6605 3.71447 15.5 4.75 15.5H15.25C16.2855 15.5 17.125 14.6605 17.125 13.625V13.125C17.125 12.0895 16.2855 11.25 15.25 11.25H4.75ZM4.125 13.125C4.125 12.7798 4.40482 12.5 4.75 12.5H15.25C15.5952 12.5 15.875 12.7798 15.875 13.125V13.625C15.875 13.9702 15.5952 14.25 15.25 14.25H4.75C4.40482 14.25 4.125 13.9702 4.125 13.625V13.125Z"
|
|
127
|
+
fill="currentColor"
|
|
128
|
+
/>
|
|
129
|
+
</svg> `
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
devices: {
|
|
133
|
+
desktop: {
|
|
134
|
+
default: 'center'
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
21
138
|
{
|
|
22
139
|
id: 'preload',
|
|
23
140
|
type: 'toggle',
|
|
@@ -31,11 +31,12 @@ const SettingUIV2 = [
|
|
|
31
31
|
en: 'Overlay'
|
|
32
32
|
},
|
|
33
33
|
type: 'combo',
|
|
34
|
-
|
|
34
|
+
comboType: 'color',
|
|
35
|
+
getValueFromSettingID: 'overlayColor.normal',
|
|
35
36
|
controls: [
|
|
36
37
|
{
|
|
37
38
|
setting: {
|
|
38
|
-
id: 'overlayColor
|
|
39
|
+
id: 'overlayColor',
|
|
39
40
|
state: 'normal'
|
|
40
41
|
},
|
|
41
42
|
label: {
|
|
@@ -147,17 +148,9 @@ const SettingUIV2 = [
|
|
|
147
148
|
en: 'Align'
|
|
148
149
|
},
|
|
149
150
|
setting: {
|
|
150
|
-
id: '
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
label: {
|
|
155
|
-
en: 'Align'
|
|
156
|
-
},
|
|
157
|
-
setting: {
|
|
158
|
-
id: 'contentPosition1Col'
|
|
151
|
+
id: 'verticalAlign'
|
|
159
152
|
},
|
|
160
|
-
|
|
153
|
+
conditionEnable: 'layout.cols.length > 1'
|
|
161
154
|
}
|
|
162
155
|
]
|
|
163
156
|
},
|
|
@@ -215,13 +208,16 @@ const SettingUIV2 = [
|
|
|
215
208
|
en: 'Overlay'
|
|
216
209
|
},
|
|
217
210
|
type: 'combo',
|
|
218
|
-
|
|
211
|
+
comboType: 'color',
|
|
212
|
+
getValueFromSettingID: 'overlayColor.hover',
|
|
213
|
+
defaultValueWhenClear: '#121212',
|
|
219
214
|
controls: [
|
|
220
215
|
{
|
|
221
216
|
setting: {
|
|
222
|
-
id: 'overlayColor
|
|
217
|
+
id: 'overlayColor',
|
|
223
218
|
state: 'hover'
|
|
224
219
|
},
|
|
220
|
+
defaultValueWhenClear: '#121212 ',
|
|
225
221
|
label: {
|
|
226
222
|
en: 'Color'
|
|
227
223
|
}
|
|
@@ -264,6 +260,7 @@ const SettingUIV2 = [
|
|
|
264
260
|
},
|
|
265
261
|
iconName: 'polaris-star',
|
|
266
262
|
getValueFromSettingID: 'speedParallax',
|
|
263
|
+
defaultValueWhenClear: 0,
|
|
267
264
|
controls: [
|
|
268
265
|
{
|
|
269
266
|
layout: 'vertical',
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const productFeatureImageUI = [
|
|
4
|
+
{
|
|
5
|
+
type: 'control',
|
|
6
|
+
setting: {
|
|
7
|
+
id: 'ftAspectRatio'
|
|
8
|
+
},
|
|
9
|
+
label: {
|
|
10
|
+
en: 'Shape'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'control',
|
|
15
|
+
setting: {
|
|
16
|
+
id: 'ftWidth'
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
en: 'Width'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'control',
|
|
24
|
+
label: {
|
|
25
|
+
en: 'Image scale'
|
|
26
|
+
},
|
|
27
|
+
setting: {
|
|
28
|
+
id: 'ftObjectFit'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
exports.productFeatureImageUI = productFeatureImageUI;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const productGalleryImageUI = [
|
|
4
|
+
{
|
|
5
|
+
type: 'control',
|
|
6
|
+
label: {
|
|
7
|
+
en: 'Display type'
|
|
8
|
+
},
|
|
9
|
+
condition: 'layoutType === "bottom-center"',
|
|
10
|
+
setting: {
|
|
11
|
+
id: 'displayType'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'control',
|
|
16
|
+
label: {
|
|
17
|
+
en: 'Item per slide'
|
|
18
|
+
},
|
|
19
|
+
condition: '(displayType === "slider" && layoutType === "bottom-center") || layoutType === "left" || layoutType === "right"',
|
|
20
|
+
setting: {
|
|
21
|
+
id: 'ilItemPerSlide'
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
type: 'control',
|
|
26
|
+
label: {
|
|
27
|
+
en: 'Item per line'
|
|
28
|
+
},
|
|
29
|
+
condition: 'displayType === "grid" && layoutType === "bottom-center"',
|
|
30
|
+
setting: {
|
|
31
|
+
id: 'ilNumberPerRow'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'control',
|
|
36
|
+
label: {
|
|
37
|
+
en: 'Shape'
|
|
38
|
+
},
|
|
39
|
+
setting: {
|
|
40
|
+
id: 'ilAspectRatio'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'control',
|
|
45
|
+
label: {
|
|
46
|
+
en: 'Image scale'
|
|
47
|
+
},
|
|
48
|
+
setting: {
|
|
49
|
+
id: 'ilObjectFit'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: 'control',
|
|
54
|
+
label: {
|
|
55
|
+
en: 'Active border'
|
|
56
|
+
},
|
|
57
|
+
setting: {
|
|
58
|
+
id: 'ilBorder'
|
|
59
|
+
},
|
|
60
|
+
isMoreSetting: true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: 'control',
|
|
64
|
+
label: {
|
|
65
|
+
en: 'Spacing'
|
|
66
|
+
},
|
|
67
|
+
setting: {
|
|
68
|
+
id: 'ilSpacing'
|
|
69
|
+
},
|
|
70
|
+
isMoreSetting: true
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: 'control',
|
|
74
|
+
label: {
|
|
75
|
+
en: 'Navigation'
|
|
76
|
+
},
|
|
77
|
+
setting: {
|
|
78
|
+
id: 'ilNavigation'
|
|
79
|
+
},
|
|
80
|
+
layout: 'vertical',
|
|
81
|
+
isMoreSetting: true
|
|
82
|
+
}
|
|
83
|
+
];
|
|
84
|
+
|
|
85
|
+
exports.productGalleryImageUI = productGalleryImageUI;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const productLayoutUI = [
|
|
4
|
+
{
|
|
5
|
+
type: 'control',
|
|
6
|
+
label: {
|
|
7
|
+
en: ''
|
|
8
|
+
},
|
|
9
|
+
setting: {
|
|
10
|
+
id: 'layoutType'
|
|
11
|
+
},
|
|
12
|
+
layout: 'vertical'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'control',
|
|
16
|
+
label: {
|
|
17
|
+
en: 'Ratio'
|
|
18
|
+
},
|
|
19
|
+
setting: {
|
|
20
|
+
id: 'ratioLayoutLeft'
|
|
21
|
+
},
|
|
22
|
+
layout: 'vertical',
|
|
23
|
+
condition: "layoutType === 'left'"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: 'control',
|
|
27
|
+
label: {
|
|
28
|
+
en: 'Ratio'
|
|
29
|
+
},
|
|
30
|
+
setting: {
|
|
31
|
+
id: 'ratioLayoutRight'
|
|
32
|
+
},
|
|
33
|
+
layout: 'vertical',
|
|
34
|
+
condition: "layoutType === 'right'"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: 'control',
|
|
38
|
+
label: {
|
|
39
|
+
en: 'Spacing'
|
|
40
|
+
},
|
|
41
|
+
setting: {
|
|
42
|
+
id: 'spacingHoz'
|
|
43
|
+
},
|
|
44
|
+
condition: "layoutType === 'left' || layoutType === 'right'",
|
|
45
|
+
isMoreSetting: true
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: 'control',
|
|
49
|
+
label: {
|
|
50
|
+
en: 'Spacing'
|
|
51
|
+
},
|
|
52
|
+
setting: {
|
|
53
|
+
id: 'spacingVertical'
|
|
54
|
+
},
|
|
55
|
+
condition: "layoutType === 'bottom-center'"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
type: 'control',
|
|
59
|
+
label: {
|
|
60
|
+
en: 'Spacing'
|
|
61
|
+
},
|
|
62
|
+
setting: {
|
|
63
|
+
id: 'ilSpacing'
|
|
64
|
+
},
|
|
65
|
+
condition: "layoutType === 'two-col' || layoutType === 'one-col'"
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
|
|
69
|
+
exports.productLayoutUI = productLayoutUI;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var uiV2 = require('./uiV2.js');
|
|
6
6
|
var settingV2 = require('./setting-v2.js');
|
|
7
|
+
var uiV1 = require('./uiV1.js');
|
|
7
8
|
|
|
8
9
|
const config = {
|
|
9
10
|
tag: 'PostPurchaseProductImages',
|
|
@@ -14,6 +15,7 @@ const config = {
|
|
|
14
15
|
</svg>
|
|
15
16
|
`,
|
|
16
17
|
settings: settingV2.SettingV2,
|
|
18
|
+
ui: uiV1.SettingUIV1,
|
|
17
19
|
uiV2: uiV2.SettingUIV2,
|
|
18
20
|
editorConfigs: {
|
|
19
21
|
placeholder: {
|
|
@@ -36,7 +38,7 @@ const config = {
|
|
|
36
38
|
<rect x="10" y="24" width="10" height="10" rx="3" transform="rotate(90 10 24)" fill="#494949"/>
|
|
37
39
|
<rect x="14" width="56" height="48" rx="3" fill="#494949"/>
|
|
38
40
|
<path d="M34.5 18.766L39.495 17.0288C39.495 17.0288 40.1024 18.4454 42.005 18.4454C43.9076 18.4454 44.5083 17 44.5083 17L49.5 18.766L48.6692 23.1222H46.1642V31H37.825V23.1196H35.3325L34.5 18.766Z" fill="#D6D6D6"/>
|
|
39
|
-
</svg>
|
|
41
|
+
</svg>
|
|
40
42
|
`
|
|
41
43
|
},
|
|
42
44
|
components: [
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ProductImageLayoutSetting = require('./ProductImageLayoutSetting.js');
|
|
4
|
+
var ProductFeatureImage = require('./ProductFeatureImage.js');
|
|
5
|
+
var ProductGalleryImage = require('./ProductGalleryImage.js');
|
|
6
|
+
|
|
7
|
+
const SettingUIV1 = [
|
|
8
|
+
{
|
|
9
|
+
type: 'group',
|
|
10
|
+
label: {
|
|
11
|
+
en: 'Layout'
|
|
12
|
+
},
|
|
13
|
+
controls: ProductImageLayoutSetting.productLayoutUI
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
type: 'group',
|
|
17
|
+
label: {
|
|
18
|
+
en: 'Featured image'
|
|
19
|
+
},
|
|
20
|
+
condition: "layoutType !== 'one-col' && layoutType !== 'two-col'",
|
|
21
|
+
controls: ProductFeatureImage.productFeatureImageUI
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: 'group',
|
|
25
|
+
label: {
|
|
26
|
+
en: 'Image list'
|
|
27
|
+
},
|
|
28
|
+
condition: "layoutType !== 'only-feature'",
|
|
29
|
+
controls: ProductGalleryImage.productGalleryImageUI
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'control',
|
|
33
|
+
setting: {
|
|
34
|
+
id: 'align'
|
|
35
|
+
},
|
|
36
|
+
label: {
|
|
37
|
+
en: 'Align'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
exports.SettingUIV1 = SettingUIV1;
|
|
@@ -24,7 +24,7 @@ const HeroBannerItem = (props)=>{
|
|
|
24
24
|
...getContainerStyle(styles, setting)
|
|
25
25
|
});
|
|
26
26
|
const containerClasses = createClass({
|
|
27
|
-
...getContainerClasses(setting)
|
|
27
|
+
...getContainerClasses(setting, styles)
|
|
28
28
|
});
|
|
29
29
|
const overlayStyle = createStyle({
|
|
30
30
|
...getOverlayStyle(styles)
|
|
@@ -51,8 +51,8 @@ const getOverlayStyle = (styles)=>{
|
|
|
51
51
|
const composeStyles = {
|
|
52
52
|
...getGlobalColorStateStyle('bgc', overlayColor),
|
|
53
53
|
...makeStyleState('op', overlayOpacity),
|
|
54
|
-
'--top': 0,
|
|
55
|
-
'--left': 0
|
|
54
|
+
'--top': '0',
|
|
55
|
+
'--left': '0'
|
|
56
56
|
};
|
|
57
57
|
return filterTruthyStyles(composeStyles);
|
|
58
58
|
};
|
|
@@ -16,6 +16,123 @@ const SettingsV2 = [
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
id: 'verticalAlign',
|
|
21
|
+
type: 'segment',
|
|
22
|
+
options: [
|
|
23
|
+
{
|
|
24
|
+
label: 'Start',
|
|
25
|
+
value: 'start',
|
|
26
|
+
icon: `<svg
|
|
27
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
28
|
+
width="20"
|
|
29
|
+
height="20"
|
|
30
|
+
viewBox="0 0 20 20"
|
|
31
|
+
fill="none"
|
|
32
|
+
>
|
|
33
|
+
<path
|
|
34
|
+
d="M18.75 2.8125C18.75 3.15768 18.4702 3.4375 18.125 3.4375L1.875 3.4375C1.52982 3.4375 1.25 3.15768 1.25 2.8125C1.25 2.46732 1.52982 2.1875 1.875 2.1875L18.125 2.1875C18.4702 2.1875 18.75 2.46732 18.75 2.8125Z"
|
|
35
|
+
fill="currentColor"
|
|
36
|
+
/>
|
|
37
|
+
<path
|
|
38
|
+
fill-rule="evenodd"
|
|
39
|
+
clip-rule="evenodd"
|
|
40
|
+
d="M13.75 4.0625C14.7855 4.0625 15.625 4.90197 15.625 5.9375L15.625 12.1875C15.625 13.223 14.7855 14.0625 13.75 14.0625L12.5 14.0625C11.4645 14.0625 10.625 13.223 10.625 12.1875L10.625 5.9375C10.625 4.90197 11.4645 4.0625 12.5 4.0625L13.75 4.0625ZM14.375 5.9375C14.375 5.59232 14.0952 5.3125 13.75 5.3125L12.5 5.3125C12.1548 5.3125 11.875 5.59232 11.875 5.9375L11.875 12.1875C11.875 12.5327 12.1548 12.8125 12.5 12.8125L13.75 12.8125C14.0952 12.8125 14.375 12.5327 14.375 12.1875L14.375 5.9375Z"
|
|
41
|
+
fill="currentColor"
|
|
42
|
+
/>
|
|
43
|
+
<path
|
|
44
|
+
fill-rule="evenodd"
|
|
45
|
+
clip-rule="evenodd"
|
|
46
|
+
d="M9.375 5.9375C9.375 4.90197 8.53553 4.0625 7.5 4.0625L6.25 4.0625C5.21447 4.0625 4.375 4.90197 4.375 5.9375L4.375 15.9375C4.375 16.973 5.21447 17.8125 6.25 17.8125L7.5 17.8125C8.53553 17.8125 9.375 16.973 9.375 15.9375L9.375 5.9375ZM7.5 5.3125C7.84518 5.3125 8.125 5.59232 8.125 5.9375L8.125 15.9375C8.125 16.2827 7.84518 16.5625 7.5 16.5625L6.25 16.5625C5.90482 16.5625 5.625 16.2827 5.625 15.9375L5.625 5.9375C5.625 5.59232 5.90482 5.3125 6.25 5.3125L7.5 5.3125Z"
|
|
47
|
+
fill="currentColor"
|
|
48
|
+
/>
|
|
49
|
+
</svg> `
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: 'Center',
|
|
53
|
+
value: 'center',
|
|
54
|
+
icon: `<svg
|
|
55
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
56
|
+
width="20"
|
|
57
|
+
height="20"
|
|
58
|
+
viewBox="0 0 20 20"
|
|
59
|
+
fill="none"
|
|
60
|
+
>
|
|
61
|
+
<path
|
|
62
|
+
fill-rule="evenodd"
|
|
63
|
+
clip-rule="evenodd"
|
|
64
|
+
d="M18.125 10.625C18.125 10.9702 17.8652 11.25 17.5446 11.25L15.2232 11.25L15.2232 13.75C15.2232 14.7855 14.4437 15.625 13.4821 15.625L12.3214 15.625C11.3599 15.625 10.5804 14.7855 10.5804 13.75L10.5804 11.25L9.41964 11.25L9.41964 15.625C9.41964 16.6605 8.64014 17.5 7.67857 17.5L6.51786 17.5C5.55629 17.5 4.77679 16.6605 4.77679 15.625L4.77679 11.25L2.45536 11.25C2.13484 11.25 1.875 10.9702 1.875 10.625C1.875 10.2798 2.13484 10 2.45536 10L4.77679 10L4.77679 5.625C4.77679 4.58947 5.55629 3.75 6.51786 3.75L7.67857 3.75C8.64014 3.75 9.41964 4.58947 9.41964 5.625L9.41964 10L10.5804 10L10.5804 7.5C10.5804 6.46447 11.3599 5.625 12.3214 5.625L13.4821 5.625C14.4437 5.625 15.2232 6.46447 15.2232 7.5L15.2232 10L17.5446 10C17.8652 10 18.125 10.2798 18.125 10.625ZM5.9375 15.625C5.9375 15.9702 6.19734 16.25 6.51786 16.25L7.67857 16.25C7.99909 16.25 8.25893 15.9702 8.25893 15.625L8.25893 5.625C8.25893 5.27982 7.99909 5 7.67857 5L6.51786 5C6.19734 5 5.9375 5.27982 5.9375 5.625L5.9375 15.625ZM11.7411 13.75L11.7411 7.5C11.7411 7.15482 12.0009 6.875 12.3214 6.875L13.4821 6.875C13.8027 6.875 14.0625 7.15482 14.0625 7.5L14.0625 13.75C14.0625 14.0952 13.8027 14.375 13.4821 14.375L12.3214 14.375C12.0009 14.375 11.7411 14.0952 11.7411 13.75Z"
|
|
65
|
+
fill="currentColor"
|
|
66
|
+
/>
|
|
67
|
+
</svg> `
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: 'End',
|
|
71
|
+
value: 'end',
|
|
72
|
+
icon: `<svg
|
|
73
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
74
|
+
width="20"
|
|
75
|
+
height="20"
|
|
76
|
+
viewBox="0 0 20 20"
|
|
77
|
+
fill="none"
|
|
78
|
+
>
|
|
79
|
+
<path
|
|
80
|
+
d="M1.25 17.8125C1.25 17.4673 1.52982 17.1875 1.875 17.1875L18.125 17.1875C18.4702 17.1875 18.75 17.4673 18.75 17.8125C18.75 18.1577 18.4702 18.4375 18.125 18.4375L1.875 18.4375C1.52982 18.4375 1.25 18.1577 1.25 17.8125Z"
|
|
81
|
+
fill="currentColor"
|
|
82
|
+
/>
|
|
83
|
+
<path
|
|
84
|
+
fill-rule="evenodd"
|
|
85
|
+
clip-rule="evenodd"
|
|
86
|
+
d="M6.25 16.5625C5.21447 16.5625 4.375 15.723 4.375 14.6875L4.375 8.4375C4.375 7.40196 5.21447 6.5625 6.25 6.5625L7.5 6.5625C8.53553 6.5625 9.375 7.40197 9.375 8.4375L9.375 14.6875C9.375 15.723 8.53553 16.5625 7.5 16.5625L6.25 16.5625ZM5.625 14.6875C5.625 15.0327 5.90482 15.3125 6.25 15.3125L7.5 15.3125C7.84518 15.3125 8.125 15.0327 8.125 14.6875L8.125 8.4375C8.125 8.09232 7.84518 7.8125 7.5 7.8125L6.25 7.8125C5.90482 7.8125 5.625 8.09232 5.625 8.4375L5.625 14.6875Z"
|
|
87
|
+
fill="currentColor"
|
|
88
|
+
/>
|
|
89
|
+
<path
|
|
90
|
+
fill-rule="evenodd"
|
|
91
|
+
clip-rule="evenodd"
|
|
92
|
+
d="M10.625 14.6875C10.625 15.723 11.4645 16.5625 12.5 16.5625L13.75 16.5625C14.7855 16.5625 15.625 15.723 15.625 14.6875L15.625 4.6875C15.625 3.65196 14.7855 2.8125 13.75 2.8125L12.5 2.8125C11.4645 2.8125 10.625 3.65197 10.625 4.6875L10.625 14.6875ZM12.5 15.3125C12.1548 15.3125 11.875 15.0327 11.875 14.6875L11.875 4.6875C11.875 4.34232 12.1548 4.0625 12.5 4.0625L13.75 4.0625C14.0952 4.0625 14.375 4.34232 14.375 4.6875L14.375 14.6875C14.375 15.0327 14.0952 15.3125 13.75 15.3125L12.5 15.3125Z"
|
|
93
|
+
fill="currentColor"
|
|
94
|
+
/>
|
|
95
|
+
</svg> `
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
label: 'Between',
|
|
99
|
+
value: 'space-between',
|
|
100
|
+
icon: `<svg
|
|
101
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
102
|
+
width="20"
|
|
103
|
+
height="20"
|
|
104
|
+
viewBox="0 0 20 20"
|
|
105
|
+
fill="none"
|
|
106
|
+
>
|
|
107
|
+
<path
|
|
108
|
+
d="M1.87891 1.22485C1.53373 1.22485 1.25391 1.50468 1.25391 1.84985C1.25391 2.19503 1.53373 2.47485 1.87891 2.47485L18.1298 2.47485C18.475 2.47485 18.7548 2.19503 18.7548 1.84985C18.7548 1.50468 18.475 1.22485 18.1298 1.22485H1.87891Z"
|
|
109
|
+
fill="currentColor"
|
|
110
|
+
/>
|
|
111
|
+
<path
|
|
112
|
+
d="M1.93433 17.5249C1.58915 17.5249 1.30933 17.8047 1.30933 18.1499C1.30933 18.4951 1.58915 18.7749 1.93433 18.7749L18.1852 18.7749C18.5304 18.7749 18.8102 18.4951 18.8102 18.1499C18.8102 17.8047 18.5304 17.5249 18.1852 17.5249L1.93433 17.5249Z"
|
|
113
|
+
fill="currentColor"
|
|
114
|
+
/>
|
|
115
|
+
<path
|
|
116
|
+
fill-rule="evenodd"
|
|
117
|
+
clip-rule="evenodd"
|
|
118
|
+
d="M2.875 6.375C2.875 5.33947 3.71447 4.5 4.75 4.5H15.25C16.2855 4.5 17.125 5.33947 17.125 6.375V6.875C17.125 7.91053 16.2855 8.75 15.25 8.75H4.75C3.71447 8.75 2.875 7.91053 2.875 6.875V6.375ZM4.75 5.75C4.40482 5.75 4.125 6.02982 4.125 6.375V6.875C4.125 7.22018 4.40482 7.5 4.75 7.5H15.25C15.5952 7.5 15.875 7.22018 15.875 6.875V6.375C15.875 6.02982 15.5952 5.75 15.25 5.75H4.75Z"
|
|
119
|
+
fill="currentColor"
|
|
120
|
+
/>
|
|
121
|
+
<path
|
|
122
|
+
fill-rule="evenodd"
|
|
123
|
+
clip-rule="evenodd"
|
|
124
|
+
d="M4.75 11.25C3.71447 11.25 2.875 12.0895 2.875 13.125V13.625C2.875 14.6605 3.71447 15.5 4.75 15.5H15.25C16.2855 15.5 17.125 14.6605 17.125 13.625V13.125C17.125 12.0895 16.2855 11.25 15.25 11.25H4.75ZM4.125 13.125C4.125 12.7798 4.40482 12.5 4.75 12.5H15.25C15.5952 12.5 15.875 12.7798 15.875 13.125V13.625C15.875 13.9702 15.5952 14.25 15.25 14.25H4.75C4.40482 14.25 4.125 13.9702 4.125 13.625V13.125Z"
|
|
125
|
+
fill="currentColor"
|
|
126
|
+
/>
|
|
127
|
+
</svg> `
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
devices: {
|
|
131
|
+
desktop: {
|
|
132
|
+
default: 'center'
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
19
136
|
{
|
|
20
137
|
id: 'preload',
|
|
21
138
|
type: 'toggle',
|
|
@@ -29,11 +29,12 @@ const SettingUIV2 = [
|
|
|
29
29
|
en: 'Overlay'
|
|
30
30
|
},
|
|
31
31
|
type: 'combo',
|
|
32
|
-
|
|
32
|
+
comboType: 'color',
|
|
33
|
+
getValueFromSettingID: 'overlayColor.normal',
|
|
33
34
|
controls: [
|
|
34
35
|
{
|
|
35
36
|
setting: {
|
|
36
|
-
id: 'overlayColor
|
|
37
|
+
id: 'overlayColor',
|
|
37
38
|
state: 'normal'
|
|
38
39
|
},
|
|
39
40
|
label: {
|
|
@@ -145,17 +146,9 @@ const SettingUIV2 = [
|
|
|
145
146
|
en: 'Align'
|
|
146
147
|
},
|
|
147
148
|
setting: {
|
|
148
|
-
id: '
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
label: {
|
|
153
|
-
en: 'Align'
|
|
154
|
-
},
|
|
155
|
-
setting: {
|
|
156
|
-
id: 'contentPosition1Col'
|
|
149
|
+
id: 'verticalAlign'
|
|
157
150
|
},
|
|
158
|
-
|
|
151
|
+
conditionEnable: 'layout.cols.length > 1'
|
|
159
152
|
}
|
|
160
153
|
]
|
|
161
154
|
},
|
|
@@ -213,13 +206,16 @@ const SettingUIV2 = [
|
|
|
213
206
|
en: 'Overlay'
|
|
214
207
|
},
|
|
215
208
|
type: 'combo',
|
|
216
|
-
|
|
209
|
+
comboType: 'color',
|
|
210
|
+
getValueFromSettingID: 'overlayColor.hover',
|
|
211
|
+
defaultValueWhenClear: '#121212',
|
|
217
212
|
controls: [
|
|
218
213
|
{
|
|
219
214
|
setting: {
|
|
220
|
-
id: 'overlayColor
|
|
215
|
+
id: 'overlayColor',
|
|
221
216
|
state: 'hover'
|
|
222
217
|
},
|
|
218
|
+
defaultValueWhenClear: '#121212 ',
|
|
223
219
|
label: {
|
|
224
220
|
en: 'Color'
|
|
225
221
|
}
|
|
@@ -262,6 +258,7 @@ const SettingUIV2 = [
|
|
|
262
258
|
},
|
|
263
259
|
iconName: 'polaris-star',
|
|
264
260
|
getValueFromSettingID: 'speedParallax',
|
|
261
|
+
defaultValueWhenClear: 0,
|
|
265
262
|
controls: [
|
|
266
263
|
{
|
|
267
264
|
layout: 'vertical',
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const productFeatureImageUI = [
|
|
2
|
+
{
|
|
3
|
+
type: 'control',
|
|
4
|
+
setting: {
|
|
5
|
+
id: 'ftAspectRatio'
|
|
6
|
+
},
|
|
7
|
+
label: {
|
|
8
|
+
en: 'Shape'
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
type: 'control',
|
|
13
|
+
setting: {
|
|
14
|
+
id: 'ftWidth'
|
|
15
|
+
},
|
|
16
|
+
label: {
|
|
17
|
+
en: 'Width'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
type: 'control',
|
|
22
|
+
label: {
|
|
23
|
+
en: 'Image scale'
|
|
24
|
+
},
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'ftObjectFit'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
export { productFeatureImageUI };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const productGalleryImageUI = [
|
|
2
|
+
{
|
|
3
|
+
type: 'control',
|
|
4
|
+
label: {
|
|
5
|
+
en: 'Display type'
|
|
6
|
+
},
|
|
7
|
+
condition: 'layoutType === "bottom-center"',
|
|
8
|
+
setting: {
|
|
9
|
+
id: 'displayType'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
type: 'control',
|
|
14
|
+
label: {
|
|
15
|
+
en: 'Item per slide'
|
|
16
|
+
},
|
|
17
|
+
condition: '(displayType === "slider" && layoutType === "bottom-center") || layoutType === "left" || layoutType === "right"',
|
|
18
|
+
setting: {
|
|
19
|
+
id: 'ilItemPerSlide'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'control',
|
|
24
|
+
label: {
|
|
25
|
+
en: 'Item per line'
|
|
26
|
+
},
|
|
27
|
+
condition: 'displayType === "grid" && layoutType === "bottom-center"',
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'ilNumberPerRow'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: 'control',
|
|
34
|
+
label: {
|
|
35
|
+
en: 'Shape'
|
|
36
|
+
},
|
|
37
|
+
setting: {
|
|
38
|
+
id: 'ilAspectRatio'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: 'control',
|
|
43
|
+
label: {
|
|
44
|
+
en: 'Image scale'
|
|
45
|
+
},
|
|
46
|
+
setting: {
|
|
47
|
+
id: 'ilObjectFit'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
type: 'control',
|
|
52
|
+
label: {
|
|
53
|
+
en: 'Active border'
|
|
54
|
+
},
|
|
55
|
+
setting: {
|
|
56
|
+
id: 'ilBorder'
|
|
57
|
+
},
|
|
58
|
+
isMoreSetting: true
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: 'control',
|
|
62
|
+
label: {
|
|
63
|
+
en: 'Spacing'
|
|
64
|
+
},
|
|
65
|
+
setting: {
|
|
66
|
+
id: 'ilSpacing'
|
|
67
|
+
},
|
|
68
|
+
isMoreSetting: true
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: 'control',
|
|
72
|
+
label: {
|
|
73
|
+
en: 'Navigation'
|
|
74
|
+
},
|
|
75
|
+
setting: {
|
|
76
|
+
id: 'ilNavigation'
|
|
77
|
+
},
|
|
78
|
+
layout: 'vertical',
|
|
79
|
+
isMoreSetting: true
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
|
|
83
|
+
export { productGalleryImageUI };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
const productLayoutUI = [
|
|
2
|
+
{
|
|
3
|
+
type: 'control',
|
|
4
|
+
label: {
|
|
5
|
+
en: ''
|
|
6
|
+
},
|
|
7
|
+
setting: {
|
|
8
|
+
id: 'layoutType'
|
|
9
|
+
},
|
|
10
|
+
layout: 'vertical'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
type: 'control',
|
|
14
|
+
label: {
|
|
15
|
+
en: 'Ratio'
|
|
16
|
+
},
|
|
17
|
+
setting: {
|
|
18
|
+
id: 'ratioLayoutLeft'
|
|
19
|
+
},
|
|
20
|
+
layout: 'vertical',
|
|
21
|
+
condition: "layoutType === 'left'"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: 'control',
|
|
25
|
+
label: {
|
|
26
|
+
en: 'Ratio'
|
|
27
|
+
},
|
|
28
|
+
setting: {
|
|
29
|
+
id: 'ratioLayoutRight'
|
|
30
|
+
},
|
|
31
|
+
layout: 'vertical',
|
|
32
|
+
condition: "layoutType === 'right'"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'control',
|
|
36
|
+
label: {
|
|
37
|
+
en: 'Spacing'
|
|
38
|
+
},
|
|
39
|
+
setting: {
|
|
40
|
+
id: 'spacingHoz'
|
|
41
|
+
},
|
|
42
|
+
condition: "layoutType === 'left' || layoutType === 'right'",
|
|
43
|
+
isMoreSetting: true
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: 'control',
|
|
47
|
+
label: {
|
|
48
|
+
en: 'Spacing'
|
|
49
|
+
},
|
|
50
|
+
setting: {
|
|
51
|
+
id: 'spacingVertical'
|
|
52
|
+
},
|
|
53
|
+
condition: "layoutType === 'bottom-center'"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: 'control',
|
|
57
|
+
label: {
|
|
58
|
+
en: 'Spacing'
|
|
59
|
+
},
|
|
60
|
+
setting: {
|
|
61
|
+
id: 'ilSpacing'
|
|
62
|
+
},
|
|
63
|
+
condition: "layoutType === 'two-col' || layoutType === 'one-col'"
|
|
64
|
+
}
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
export { productLayoutUI };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SettingUIV2 } from './uiV2.js';
|
|
2
2
|
import { SettingV2 } from './setting-v2.js';
|
|
3
|
+
import { SettingUIV1 } from './uiV1.js';
|
|
3
4
|
|
|
4
5
|
const config = {
|
|
5
6
|
tag: 'PostPurchaseProductImages',
|
|
@@ -10,6 +11,7 @@ const config = {
|
|
|
10
11
|
</svg>
|
|
11
12
|
`,
|
|
12
13
|
settings: SettingV2,
|
|
14
|
+
ui: SettingUIV1,
|
|
13
15
|
uiV2: SettingUIV2,
|
|
14
16
|
editorConfigs: {
|
|
15
17
|
placeholder: {
|
|
@@ -32,7 +34,7 @@ const config = {
|
|
|
32
34
|
<rect x="10" y="24" width="10" height="10" rx="3" transform="rotate(90 10 24)" fill="#494949"/>
|
|
33
35
|
<rect x="14" width="56" height="48" rx="3" fill="#494949"/>
|
|
34
36
|
<path d="M34.5 18.766L39.495 17.0288C39.495 17.0288 40.1024 18.4454 42.005 18.4454C43.9076 18.4454 44.5083 17 44.5083 17L49.5 18.766L48.6692 23.1222H46.1642V31H37.825V23.1196H35.3325L34.5 18.766Z" fill="#D6D6D6"/>
|
|
35
|
-
</svg>
|
|
37
|
+
</svg>
|
|
36
38
|
`
|
|
37
39
|
},
|
|
38
40
|
components: [
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { productLayoutUI } from './ProductImageLayoutSetting.js';
|
|
2
|
+
import { productFeatureImageUI } from './ProductFeatureImage.js';
|
|
3
|
+
import { productGalleryImageUI } from './ProductGalleryImage.js';
|
|
4
|
+
|
|
5
|
+
const SettingUIV1 = [
|
|
6
|
+
{
|
|
7
|
+
type: 'group',
|
|
8
|
+
label: {
|
|
9
|
+
en: 'Layout'
|
|
10
|
+
},
|
|
11
|
+
controls: productLayoutUI
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
type: 'group',
|
|
15
|
+
label: {
|
|
16
|
+
en: 'Featured image'
|
|
17
|
+
},
|
|
18
|
+
condition: "layoutType !== 'one-col' && layoutType !== 'two-col'",
|
|
19
|
+
controls: productFeatureImageUI
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
type: 'group',
|
|
23
|
+
label: {
|
|
24
|
+
en: 'Image list'
|
|
25
|
+
},
|
|
26
|
+
condition: "layoutType !== 'only-feature'",
|
|
27
|
+
controls: productGalleryImageUI
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'control',
|
|
31
|
+
setting: {
|
|
32
|
+
id: 'align'
|
|
33
|
+
},
|
|
34
|
+
label: {
|
|
35
|
+
en: 'Align'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
export { SettingUIV1 };
|