@gem-sdk/components 2.0.0-dev.261 → 2.0.0-dev.265
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.liquid.js +3 -2
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +3 -2
- package/dist/cjs/grid/row/setting/configs/settings.js +9 -83
- package/dist/cjs/grid/section/setting/configs/settings.js +13 -75
- package/dist/cjs/icon-list-hoz/setting/configs/settings.js +4 -17
- package/dist/cjs/post-purchase/advanced-list/setting/configs/uiV2.js +3 -15
- package/dist/cjs/post-purchase/line/setting/configs/settings.js +3 -1
- package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +2 -1
- package/dist/cjs/post-purchase/link/components/PostPurchaseLink.js +23 -14
- package/dist/cjs/post-purchase/link/components/common/getClasses.js +7 -1
- package/dist/cjs/post-purchase/link/setting/configs/settings.js +21 -14
- package/dist/cjs/post-purchase/product/common/getClasses.js +45 -0
- package/dist/cjs/post-purchase/product/common/getStyles.js +43 -0
- package/dist/cjs/post-purchase/product/components/product-image/FeatureImage.js +32 -42
- package/dist/cjs/post-purchase/product/components/product-image/ImageListCarousel.js +6 -65
- package/dist/cjs/post-purchase/product/components/product-image/ImageListGrid.js +24 -68
- package/dist/cjs/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +42 -0
- package/dist/cjs/post-purchase/product/components/product-image/ItemGridPostPurchase.js +42 -0
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/Arrow.js +29 -0
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +35 -0
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchaseContext.js +22 -0
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +75 -0
- package/dist/cjs/post-purchase/product/components/product-image/index.js +41 -43
- package/dist/cjs/post-purchase/product/components/product-image/layouts/FeatureImageWithGalleryImage.js +22 -58
- package/dist/cjs/post-purchase/product/components/product-image/layouts/OnlyGalleryImage.js +19 -12
- package/dist/cjs/post-purchase/product/constants/index.js +36 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useCarousel.js +14 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useFeatureImagePostPurchase.js +32 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +43 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useNavigationCarouselPostPurchase.js +32 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +60 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useSlideCarousel.js +35 -0
- package/dist/cjs/post-purchase/product/settings/product-description/settingV2.js +6 -9
- package/dist/cjs/post-purchase/product/settings/product-image/ProductFeatureImage.js +41 -0
- package/dist/cjs/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -118
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +8 -79
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v1.js +163 -0
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +375 -0
- package/dist/cjs/post-purchase/product/settings/product-image/uiV1.js +42 -0
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +235 -0
- package/dist/cjs/post-purchase/product/settings/product-price/uiV2.js +0 -3
- package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +10 -6
- package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +2 -2
- package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +3 -1
- package/dist/cjs/post-purchase/product/settings/product-title/settingV2.js +6 -9
- package/dist/cjs/post-purchase/text/settings/text/settingV2.js +0 -7
- package/dist/cjs/product/components/FileUpload/components/common/index.js +3 -2
- package/dist/cjs/product/setting/product/configs/presets.js +1 -1
- package/dist/cjs/product/setting/product/configs/settings.js +4 -20
- package/dist/cjs/setting.js +2 -1
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -2
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +3 -2
- package/dist/esm/grid/row/setting/configs/settings.js +9 -83
- package/dist/esm/grid/section/setting/configs/settings.js +13 -75
- package/dist/esm/icon-list-hoz/setting/configs/settings.js +4 -17
- package/dist/esm/post-purchase/advanced-list/setting/configs/uiV2.js +3 -15
- package/dist/esm/post-purchase/line/setting/configs/settings.js +3 -1
- package/dist/esm/post-purchase/line/setting/configs/uiV2.js +2 -1
- package/dist/esm/post-purchase/link/components/PostPurchaseLink.js +25 -16
- package/dist/esm/post-purchase/link/components/common/getClasses.js +7 -2
- package/dist/esm/post-purchase/link/setting/configs/settings.js +21 -14
- package/dist/esm/post-purchase/product/common/getClasses.js +37 -1
- package/dist/esm/post-purchase/product/common/getStyles.js +39 -1
- package/dist/esm/post-purchase/product/components/product-image/FeatureImage.js +32 -42
- package/dist/esm/post-purchase/product/components/product-image/ImageListCarousel.js +7 -66
- package/dist/esm/post-purchase/product/components/product-image/ImageListGrid.js +24 -68
- package/dist/esm/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +40 -0
- package/dist/esm/post-purchase/product/components/product-image/ItemGridPostPurchase.js +40 -0
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/Arrow.js +27 -0
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +33 -0
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchaseContext.js +19 -0
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +73 -0
- package/dist/esm/post-purchase/product/components/product-image/index.js +42 -44
- package/dist/esm/post-purchase/product/components/product-image/layouts/FeatureImageWithGalleryImage.js +22 -58
- package/dist/esm/post-purchase/product/components/product-image/layouts/OnlyGalleryImage.js +19 -12
- package/dist/esm/post-purchase/product/constants/index.js +34 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useCarousel.js +12 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useFeatureImagePostPurchase.js +30 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +41 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useNavigationCarouselPostPurchase.js +30 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +58 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useSlideCarousel.js +33 -0
- package/dist/esm/post-purchase/product/settings/product-description/settingV2.js +6 -9
- package/dist/esm/post-purchase/product/settings/product-image/ProductFeatureImage.js +41 -0
- package/dist/esm/post-purchase/product/settings/product-image/ProductGalleryImage.js +1 -118
- package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +8 -79
- package/dist/esm/post-purchase/product/settings/product-image/setting-v1.js +161 -0
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +373 -0
- package/dist/esm/post-purchase/product/settings/product-image/uiV1.js +40 -0
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +233 -0
- package/dist/esm/post-purchase/product/settings/product-price/uiV2.js +0 -3
- package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +10 -6
- package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +2 -2
- package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +3 -1
- package/dist/esm/post-purchase/product/settings/product-title/settingV2.js +6 -9
- package/dist/esm/post-purchase/text/settings/text/settingV2.js +0 -7
- package/dist/esm/product/components/FileUpload/components/common/index.js +3 -2
- package/dist/esm/product/setting/product/configs/presets.js +1 -1
- package/dist/esm/product/setting/product/configs/settings.js +4 -20
- package/dist/esm/setting.js +2 -1
- package/dist/types/index.d.ts +12 -5
- package/package.json +4 -4
- package/dist/cjs/post-purchase/product/components/product-image/Arrow.js +0 -60
- package/dist/cjs/post-purchase/product/components/product-image/CarouselPostPurchase.js +0 -78
- package/dist/esm/post-purchase/product/components/product-image/Arrow.js +0 -58
- package/dist/esm/post-purchase/product/components/product-image/CarouselPostPurchase.js +0 -76
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var constants = require('../../../utils/constants.js');
|
|
4
|
+
|
|
5
|
+
const SettingV2 = [
|
|
6
|
+
{
|
|
7
|
+
id: 'setting',
|
|
8
|
+
controls: [
|
|
9
|
+
{
|
|
10
|
+
id: 'ratioLayoutLeft',
|
|
11
|
+
label: 'Ratio',
|
|
12
|
+
type: 'grid-arrange',
|
|
13
|
+
default: [
|
|
14
|
+
2,
|
|
15
|
+
10
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'ratioLayoutRight',
|
|
20
|
+
label: 'Ratio',
|
|
21
|
+
type: 'grid-arrange',
|
|
22
|
+
default: [
|
|
23
|
+
10,
|
|
24
|
+
2
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'layoutType',
|
|
29
|
+
label: 'Layout',
|
|
30
|
+
type: 'layout-selector',
|
|
31
|
+
iconViewBox: '0 0 72 72',
|
|
32
|
+
enableItemBackground: true,
|
|
33
|
+
itemPerRow: 3,
|
|
34
|
+
itemSpacing: 'large',
|
|
35
|
+
options: [
|
|
36
|
+
{
|
|
37
|
+
label: 'Image list bottom',
|
|
38
|
+
value: 'bottom-center',
|
|
39
|
+
type: 'p-image-layout',
|
|
40
|
+
iconName: 'gp-product-image-layout-bottom'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: 'Image list left',
|
|
44
|
+
value: 'left',
|
|
45
|
+
type: 'p-image-layout',
|
|
46
|
+
iconName: 'gp-product-image-layout-left'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: 'Image list right',
|
|
50
|
+
value: 'right',
|
|
51
|
+
type: 'p-image-layout',
|
|
52
|
+
iconName: 'gp-product-image-layout-right'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: 'Featured Only',
|
|
56
|
+
value: 'only-feature',
|
|
57
|
+
type: 'p-image-layout',
|
|
58
|
+
iconName: 'gp-product-image-layout-featured-only'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: 'Image list 2 col',
|
|
62
|
+
value: 'two-col',
|
|
63
|
+
type: 'p-image-layout',
|
|
64
|
+
iconName: 'gp-product-image-layout-two-col'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: 'Image list 1 col',
|
|
68
|
+
value: 'one-col',
|
|
69
|
+
type: 'p-image-layout',
|
|
70
|
+
iconName: 'gp-product-image-layout-one-col'
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
default: 'bottom-center'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 'spacingHoz',
|
|
77
|
+
type: 'range',
|
|
78
|
+
min: 0,
|
|
79
|
+
max: 100,
|
|
80
|
+
step: 1,
|
|
81
|
+
units: [
|
|
82
|
+
'%'
|
|
83
|
+
],
|
|
84
|
+
default: '1%'
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 'spacingVertical',
|
|
88
|
+
label: 'Spacing',
|
|
89
|
+
type: 'select',
|
|
90
|
+
options: constants.postPurchaseSpacing,
|
|
91
|
+
default: 'tight'
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: 'displayType',
|
|
95
|
+
label: 'Gallery Type',
|
|
96
|
+
type: 'segment',
|
|
97
|
+
hide: true,
|
|
98
|
+
options: [
|
|
99
|
+
{
|
|
100
|
+
label: 'Slide',
|
|
101
|
+
value: 'slider'
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: 'All',
|
|
105
|
+
value: 'grid'
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
default: 'slider'
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'ftDisplayType',
|
|
112
|
+
label: 'Slider',
|
|
113
|
+
type: 'segment',
|
|
114
|
+
options: [
|
|
115
|
+
{
|
|
116
|
+
label: 'Yes',
|
|
117
|
+
value: 'slider'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: 'No',
|
|
121
|
+
value: 'grid'
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
default: 'grid'
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 'ftItemPerSlide',
|
|
128
|
+
type: 'input:number',
|
|
129
|
+
min: 1,
|
|
130
|
+
hide: true,
|
|
131
|
+
default: 1
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: 'style',
|
|
137
|
+
controls: [
|
|
138
|
+
{
|
|
139
|
+
type: 'select',
|
|
140
|
+
label: 'Spacing',
|
|
141
|
+
id: 'ftSpacing',
|
|
142
|
+
options: constants.postPurchaseSpacing,
|
|
143
|
+
default: 'xtight'
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: 'ftNavigation',
|
|
147
|
+
label: 'Border',
|
|
148
|
+
type: 'segment',
|
|
149
|
+
options: [
|
|
150
|
+
{
|
|
151
|
+
label: 'Yes',
|
|
152
|
+
value: 'display'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: 'No',
|
|
156
|
+
value: 'none'
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
default: 'none'
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: 'ftBorder',
|
|
163
|
+
label: 'Border',
|
|
164
|
+
type: 'segment',
|
|
165
|
+
options: [
|
|
166
|
+
{
|
|
167
|
+
label: 'Yes',
|
|
168
|
+
value: 'display'
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
label: 'No',
|
|
172
|
+
value: 'none'
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
default: 'none'
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: 'ftAspectRatio',
|
|
179
|
+
type: 'select',
|
|
180
|
+
default: '1',
|
|
181
|
+
options: [
|
|
182
|
+
{
|
|
183
|
+
label: 'Square',
|
|
184
|
+
value: '1',
|
|
185
|
+
icon: 'gp-image-shape-square'
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
label: 'Vertical',
|
|
189
|
+
value: '3/4',
|
|
190
|
+
icon: 'gp-image-shape-vertical'
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
label: 'Horizontal',
|
|
194
|
+
value: '4/3',
|
|
195
|
+
icon: 'gp-image-shape-horizontal'
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
label: 'Original',
|
|
199
|
+
value: 'auto'
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: 'ftWidth',
|
|
205
|
+
type: 'input:unit',
|
|
206
|
+
label: 'Width',
|
|
207
|
+
min: 0,
|
|
208
|
+
units: [
|
|
209
|
+
'px',
|
|
210
|
+
'%'
|
|
211
|
+
],
|
|
212
|
+
devices: {
|
|
213
|
+
desktop: {
|
|
214
|
+
default: '100%'
|
|
215
|
+
},
|
|
216
|
+
tablet: {
|
|
217
|
+
default: '100%'
|
|
218
|
+
},
|
|
219
|
+
mobile: {
|
|
220
|
+
default: '100%'
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: 'ftObjectFit',
|
|
226
|
+
type: 'layout-segment',
|
|
227
|
+
iconViewBox: '0 0 66 48',
|
|
228
|
+
enableItemBackground: true,
|
|
229
|
+
enableTooltip: true,
|
|
230
|
+
label: 'Image scale',
|
|
231
|
+
options: [
|
|
232
|
+
{
|
|
233
|
+
label: 'Fill image',
|
|
234
|
+
value: 'cover',
|
|
235
|
+
type: 'image'
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
label: 'Fit image',
|
|
239
|
+
value: 'contain',
|
|
240
|
+
type: 'image'
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
default: 'cover'
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
id: 'ilAspectRatio',
|
|
247
|
+
type: 'select',
|
|
248
|
+
default: '1',
|
|
249
|
+
options: [
|
|
250
|
+
{
|
|
251
|
+
label: 'Square',
|
|
252
|
+
value: '1',
|
|
253
|
+
icon: 'gp-image-shape-square'
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
label: 'Vertical',
|
|
257
|
+
value: '3/4',
|
|
258
|
+
icon: 'gp-image-shape-vertical'
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: 'Horizontal',
|
|
262
|
+
value: '4/3',
|
|
263
|
+
icon: 'gp-image-shape-horizontal'
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
label: 'Original',
|
|
267
|
+
value: 'auto'
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
id: 'ilObjectFit',
|
|
273
|
+
type: 'layout-segment',
|
|
274
|
+
iconViewBox: '0 0 66 48',
|
|
275
|
+
enableItemBackground: true,
|
|
276
|
+
enableTooltip: true,
|
|
277
|
+
label: 'Image scale',
|
|
278
|
+
options: [
|
|
279
|
+
{
|
|
280
|
+
label: 'Fill image',
|
|
281
|
+
value: 'cover',
|
|
282
|
+
type: 'image'
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
label: 'Fit image',
|
|
286
|
+
value: 'contain',
|
|
287
|
+
type: 'image'
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
default: 'cover'
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
id: 'ilBorder',
|
|
294
|
+
label: 'Active border',
|
|
295
|
+
type: 'segment',
|
|
296
|
+
default: 'display',
|
|
297
|
+
options: [
|
|
298
|
+
{
|
|
299
|
+
label: 'Yes',
|
|
300
|
+
value: 'display'
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
label: 'No',
|
|
304
|
+
value: 'none'
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
id: 'ilNavigation',
|
|
310
|
+
label: 'Navigation',
|
|
311
|
+
type: 'segment',
|
|
312
|
+
default: 'display',
|
|
313
|
+
options: [
|
|
314
|
+
{
|
|
315
|
+
label: 'Yes',
|
|
316
|
+
value: 'display'
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
label: 'No',
|
|
320
|
+
value: 'none'
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
type: 'select',
|
|
326
|
+
label: 'Spacing',
|
|
327
|
+
id: 'ilSpacing',
|
|
328
|
+
options: constants.postPurchaseSpacing,
|
|
329
|
+
default: 'xtight'
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
id: 'ilItemPerSlide',
|
|
333
|
+
type: 'input:number',
|
|
334
|
+
min: 1,
|
|
335
|
+
hide: true,
|
|
336
|
+
default: 5
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
id: 'ilNumberPerRow',
|
|
340
|
+
type: 'input:number',
|
|
341
|
+
label: 'Item per row',
|
|
342
|
+
hide: true,
|
|
343
|
+
default: 5
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
id: 'align',
|
|
347
|
+
label: 'Alignment',
|
|
348
|
+
type: 'segment',
|
|
349
|
+
options: [
|
|
350
|
+
{
|
|
351
|
+
label: 'Left',
|
|
352
|
+
value: 'left',
|
|
353
|
+
type: 'align',
|
|
354
|
+
tooltip: 'Align left'
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
label: 'Center',
|
|
358
|
+
value: 'center',
|
|
359
|
+
type: 'align',
|
|
360
|
+
tooltip: 'Align center'
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
label: 'Right',
|
|
364
|
+
value: 'right',
|
|
365
|
+
type: 'align',
|
|
366
|
+
tooltip: 'Align right'
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
default: 'left'
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
];
|
|
374
|
+
|
|
375
|
+
exports.SettingV2 = SettingV2;
|
|
@@ -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;
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const SettingUIV2 = [
|
|
4
|
+
{
|
|
5
|
+
label: {
|
|
6
|
+
en: 'Layout'
|
|
7
|
+
},
|
|
8
|
+
controls: [
|
|
9
|
+
{
|
|
10
|
+
label: {
|
|
11
|
+
en: ''
|
|
12
|
+
},
|
|
13
|
+
setting: {
|
|
14
|
+
id: 'layoutType'
|
|
15
|
+
},
|
|
16
|
+
layout: 'vertical'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: {
|
|
20
|
+
en: ''
|
|
21
|
+
},
|
|
22
|
+
setting: {
|
|
23
|
+
id: 'ratioLayoutLeft'
|
|
24
|
+
},
|
|
25
|
+
layout: 'vertical',
|
|
26
|
+
conditionDisplay: "layoutType === 'left'"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: {
|
|
30
|
+
en: ''
|
|
31
|
+
},
|
|
32
|
+
setting: {
|
|
33
|
+
id: 'ratioLayoutRight'
|
|
34
|
+
},
|
|
35
|
+
layout: 'vertical',
|
|
36
|
+
conditionDisplay: "layoutType === 'right'"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: {
|
|
42
|
+
en: 'Featured image'
|
|
43
|
+
},
|
|
44
|
+
conditionDisplay: "layoutType !== 'one-col' && layoutType !== 'two-col'",
|
|
45
|
+
controls: [
|
|
46
|
+
{
|
|
47
|
+
setting: {
|
|
48
|
+
id: 'ftDisplayType'
|
|
49
|
+
},
|
|
50
|
+
label: {
|
|
51
|
+
en: 'Slider'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
setting: {
|
|
56
|
+
id: 'ftAspectRatio'
|
|
57
|
+
},
|
|
58
|
+
label: {
|
|
59
|
+
en: 'Frame'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
setting: {
|
|
64
|
+
id: 'ftWidth'
|
|
65
|
+
},
|
|
66
|
+
label: {
|
|
67
|
+
en: 'Width'
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
moreSettings: {
|
|
72
|
+
type: 'collapse',
|
|
73
|
+
controls: [
|
|
74
|
+
{
|
|
75
|
+
label: {
|
|
76
|
+
en: 'Image scale'
|
|
77
|
+
},
|
|
78
|
+
setting: {
|
|
79
|
+
id: 'ftObjectFit'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: {
|
|
84
|
+
en: 'Border'
|
|
85
|
+
},
|
|
86
|
+
setting: {
|
|
87
|
+
id: 'ftBorder'
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
label: {
|
|
95
|
+
en: 'Image list'
|
|
96
|
+
},
|
|
97
|
+
conditionDisplay: "layoutType !== 'only-feature'",
|
|
98
|
+
controls: [
|
|
99
|
+
{
|
|
100
|
+
label: {
|
|
101
|
+
en: 'Display'
|
|
102
|
+
},
|
|
103
|
+
conditionDisplay: 'layoutType === "bottom-center"',
|
|
104
|
+
setting: {
|
|
105
|
+
id: 'displayType'
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: {
|
|
110
|
+
en: 'Number image'
|
|
111
|
+
},
|
|
112
|
+
conditionDisplay: '(displayType === "slider" && layoutType === "bottom-center") || layoutType === "left" || layoutType === "right"',
|
|
113
|
+
setting: {
|
|
114
|
+
id: 'ilItemPerSlide'
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: {
|
|
119
|
+
en: 'Number image'
|
|
120
|
+
},
|
|
121
|
+
conditionDisplay: 'displayType === "grid" && layoutType === "bottom-center"',
|
|
122
|
+
setting: {
|
|
123
|
+
id: 'ilNumberPerRow'
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
label: {
|
|
128
|
+
en: 'Frame'
|
|
129
|
+
},
|
|
130
|
+
setting: {
|
|
131
|
+
id: 'ilAspectRatio'
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
label: {
|
|
136
|
+
en: 'Spacing'
|
|
137
|
+
},
|
|
138
|
+
setting: {
|
|
139
|
+
id: 'ilSpacing'
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
moreSettings: {
|
|
144
|
+
type: 'collapse',
|
|
145
|
+
controls: [
|
|
146
|
+
{
|
|
147
|
+
label: {
|
|
148
|
+
en: 'Image scale'
|
|
149
|
+
},
|
|
150
|
+
setting: {
|
|
151
|
+
id: 'ilObjectFit'
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: {
|
|
156
|
+
en: 'Active border'
|
|
157
|
+
},
|
|
158
|
+
setting: {
|
|
159
|
+
id: 'ilBorder'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
label: {
|
|
167
|
+
en: 'Spacing'
|
|
168
|
+
},
|
|
169
|
+
controls: [
|
|
170
|
+
{
|
|
171
|
+
type: 'control',
|
|
172
|
+
label: {
|
|
173
|
+
en: 'Gap'
|
|
174
|
+
},
|
|
175
|
+
setting: {
|
|
176
|
+
id: 'spacingHoz'
|
|
177
|
+
},
|
|
178
|
+
conditionDisplay: "layoutType === 'left' || layoutType === 'right'"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
type: 'control',
|
|
182
|
+
label: {
|
|
183
|
+
en: 'Gap'
|
|
184
|
+
},
|
|
185
|
+
setting: {
|
|
186
|
+
id: 'spacingVertical'
|
|
187
|
+
},
|
|
188
|
+
conditionDisplay: "layoutType === 'bottom-center'"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
label: {
|
|
194
|
+
en: 'Navigation'
|
|
195
|
+
},
|
|
196
|
+
controls: [
|
|
197
|
+
{
|
|
198
|
+
label: {
|
|
199
|
+
en: 'Featured'
|
|
200
|
+
},
|
|
201
|
+
setting: {
|
|
202
|
+
id: 'ftNavigation'
|
|
203
|
+
},
|
|
204
|
+
conditionDisplay: "ftDisplayType == 'slider' && !['one-col', 'two-col'].includes(layoutType)"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: {
|
|
208
|
+
en: 'Image list'
|
|
209
|
+
},
|
|
210
|
+
setting: {
|
|
211
|
+
id: 'ilNavigation'
|
|
212
|
+
},
|
|
213
|
+
conditionDisplay: "displayType == 'slider' && !['one-col', 'two-col', 'only-feature'].includes(layoutType)"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
controls: [
|
|
219
|
+
{
|
|
220
|
+
label: {
|
|
221
|
+
en: 'Align'
|
|
222
|
+
},
|
|
223
|
+
setting: {
|
|
224
|
+
id: 'align'
|
|
225
|
+
},
|
|
226
|
+
options: {
|
|
227
|
+
labelVariant: 'primary'
|
|
228
|
+
},
|
|
229
|
+
conditionEnable: '!(parseInt(ftWidth) >= 100 && ftWidth?.includes("%"))'
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
];
|
|
234
|
+
|
|
235
|
+
exports.SettingUIV2 = SettingUIV2;
|
|
@@ -44,12 +44,16 @@ const ProductPriceBreakdownSettings = [
|
|
|
44
44
|
{
|
|
45
45
|
id: 'contentShow',
|
|
46
46
|
type: 'input',
|
|
47
|
-
default: 'Show price breakdown'
|
|
47
|
+
default: 'Show price breakdown',
|
|
48
|
+
defaultValue: 'Show price breakdown',
|
|
49
|
+
clearButton: false
|
|
48
50
|
},
|
|
49
51
|
{
|
|
50
52
|
id: 'contentHide',
|
|
51
53
|
type: 'input',
|
|
52
|
-
default: 'Hide price breakdown'
|
|
54
|
+
default: 'Hide price breakdown',
|
|
55
|
+
defaultValue: 'Hide price breakdown',
|
|
56
|
+
clearButton: false
|
|
53
57
|
}
|
|
54
58
|
]
|
|
55
59
|
},
|
|
@@ -61,9 +65,9 @@ const ProductPriceBreakdownSettings = [
|
|
|
61
65
|
label: 'Label',
|
|
62
66
|
type: 'typography-post-purchase',
|
|
63
67
|
default: {
|
|
64
|
-
fontSize: '
|
|
68
|
+
fontSize: 'default',
|
|
65
69
|
textColor: 'default',
|
|
66
|
-
fontWeight: '
|
|
70
|
+
fontWeight: 'bold',
|
|
67
71
|
textTransform: 'none'
|
|
68
72
|
}
|
|
69
73
|
},
|
|
@@ -72,7 +76,7 @@ const ProductPriceBreakdownSettings = [
|
|
|
72
76
|
label: 'Money value',
|
|
73
77
|
type: 'typography-post-purchase',
|
|
74
78
|
default: {
|
|
75
|
-
fontSize: '
|
|
79
|
+
fontSize: 'default',
|
|
76
80
|
textColor: 'default',
|
|
77
81
|
fontWeight: 'bold',
|
|
78
82
|
textTransform: 'none'
|
|
@@ -203,7 +207,7 @@ const ProductPriceBreakdownSettings = [
|
|
|
203
207
|
label: 'Spacing',
|
|
204
208
|
id: 'spacing',
|
|
205
209
|
options: constants.postPurchaseSpacing,
|
|
206
|
-
default:
|
|
210
|
+
default: 'none'
|
|
207
211
|
}
|
|
208
212
|
]
|
|
209
213
|
}
|