@gem-sdk/components 2.0.0-dev.289 → 2.0.0-dev.294
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/accordion/components/common/styles.js +1 -2
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/cjs/carousel/components/Carousel.js +2 -3
- package/dist/cjs/carousel/components/CarouselItem.js +6 -2
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +1 -1
- package/dist/cjs/grid/row/commons/getAttr.js +3 -2
- package/dist/cjs/image/components/AdaptiveImage.js +1 -1
- package/dist/cjs/image/components/AdaptiveImage.liquid.js +4 -4
- package/dist/cjs/image/components/Image.js +1 -5
- package/dist/cjs/image/components/common/styles.js +2 -2
- package/dist/cjs/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
- package/dist/cjs/image/components/helpers/getNextImageReactAttrs.js +3 -3
- package/dist/cjs/post-purchase/button/setting/configs/settings.js +10 -8
- package/dist/cjs/post-purchase/callout-banner/components/CalloutText.js +1 -2
- package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +8 -0
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +3 -3
- package/dist/cjs/post-purchase/countdown-timer/settings/config/setting.js +2 -1
- package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/cjs/product/components/Product.js +3 -3
- package/dist/cjs/product/components/ProductImagesV2/jsx/ProductImages.js +1 -5
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductFeatureVideo.js +36 -0
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductFeaturedImageOnly.js +83 -51
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +3 -1
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +3 -2
- package/dist/cjs/product/components/ProductImagesV2/jsx/components/ProductImagesLightBox.js +29 -11
- package/dist/cjs/product/setting/product/configs/uiV2.js +2 -2
- package/dist/cjs/product/setting/product-image-v2/ProductFeatureImage.js +0 -363
- package/dist/cjs/product/setting/product-image-v2/ProductGalleryImage.js +0 -493
- package/dist/cjs/product/setting/product-image-v2/ProductImages.js +1 -3
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -5
- package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +4 -7
- package/dist/cjs/setting.js +2 -2
- package/dist/cjs/third-party/components/RechargeSubscriptions.liquid.js +1 -1
- package/dist/cjs/third-party/setting/RechargeSubscriptions.js +5 -2
- package/dist/cjs/video/components/Video.js +1 -1
- package/dist/esm/accordion/components/common/styles.js +1 -2
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/esm/carousel/components/Carousel.js +2 -3
- package/dist/esm/carousel/components/CarouselItem.js +6 -2
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +1 -1
- package/dist/esm/grid/row/commons/getAttr.js +3 -2
- package/dist/esm/image/components/AdaptiveImage.js +2 -2
- package/dist/esm/image/components/AdaptiveImage.liquid.js +4 -4
- package/dist/esm/image/components/Image.js +2 -6
- package/dist/esm/image/components/common/styles.js +2 -2
- package/dist/esm/image/components/helpers/getNextImageLiquidAttrs.js +6 -24
- package/dist/esm/image/components/helpers/getNextImageReactAttrs.js +3 -3
- package/dist/esm/post-purchase/button/setting/configs/settings.js +10 -8
- package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +2 -3
- package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +8 -1
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +3 -3
- package/dist/esm/post-purchase/countdown-timer/settings/config/setting.js +2 -1
- package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/esm/product/components/Product.js +3 -3
- package/dist/esm/product/components/ProductImagesV2/jsx/ProductImages.js +1 -5
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductFeatureVideo.js +32 -0
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductFeaturedImageOnly.js +84 -52
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryCarousel.js +3 -1
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductGalleryGrid.js +3 -2
- package/dist/esm/product/components/ProductImagesV2/jsx/components/ProductImagesLightBox.js +31 -13
- package/dist/esm/product/setting/product/configs/uiV2.js +2 -2
- package/dist/esm/product/setting/product-image-v2/ProductFeatureImage.js +1 -361
- package/dist/esm/product/setting/product-image-v2/ProductGalleryImage.js +1 -492
- package/dist/esm/product/setting/product-image-v2/ProductImages.js +1 -3
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +2 -5
- package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +4 -7
- package/dist/esm/setting.js +2 -2
- package/dist/esm/third-party/components/RechargeSubscriptions.liquid.js +1 -1
- package/dist/esm/third-party/setting/RechargeSubscriptions.js +5 -2
- package/dist/esm/video/components/Video.js +2 -2
- package/dist/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/cjs/product/setting/product-image-v2/configs/settings.js +0 -327
- package/dist/esm/product/setting/product-image-v2/configs/settings.js +0 -325
|
@@ -123,6 +123,7 @@ const ProductGalleryGrid = ({ builderPropUID, productImages, onHandleClick, acti
|
|
|
123
123
|
children: [
|
|
124
124
|
filteredProductImages?.map((image, index)=>{
|
|
125
125
|
const canActive = index === imageActiveIndex;
|
|
126
|
+
const imageSrc = productFeaturedImage.isFeatureMedia(image.contentType) ? image.previewImage : image.src;
|
|
126
127
|
return(// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
127
128
|
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
128
129
|
"aria-hidden": true,
|
|
@@ -139,7 +140,7 @@ const ProductGalleryGrid = ({ builderPropUID, productImages, onHandleClick, acti
|
|
|
139
140
|
"data-border": canActive && !!setting?.borderActive && setting?.activeEffectEnable ? 'active' : 'deactive',
|
|
140
141
|
children: [
|
|
141
142
|
/*#__PURE__*/ jsxRuntime.jsx(NextImage.default, {
|
|
142
|
-
src:
|
|
143
|
+
src: imageSrc,
|
|
143
144
|
width: image?.width,
|
|
144
145
|
height: image?.height,
|
|
145
146
|
alt: image?.alt,
|
|
@@ -156,7 +157,7 @@ const ProductGalleryGrid = ({ builderPropUID, productImages, onHandleClick, acti
|
|
|
156
157
|
contentType: image?.contentType || ''
|
|
157
158
|
}),
|
|
158
159
|
setting?.galleryHoverEffect !== 'none' && !productFeaturedImage.isFeatureMedia(image?.contentType) && /*#__PURE__*/ jsxRuntime.jsx(NextImage.default, {
|
|
159
|
-
src:
|
|
160
|
+
src: imageSrc,
|
|
160
161
|
width: image?.width,
|
|
161
162
|
height: image?.height,
|
|
162
163
|
alt: image?.alt,
|
|
@@ -12,6 +12,8 @@ require('../../../../../modal/components/confirm.js');
|
|
|
12
12
|
var Modal = require('../../../../../modal/components/Modal.js');
|
|
13
13
|
var React = require('react');
|
|
14
14
|
var productFeaturedImage = require('../../common/productFeaturedImage.js');
|
|
15
|
+
var ProductFeatureVideo = require('./ProductFeatureVideo.js');
|
|
16
|
+
var MediaIcon = require('./MediaIcon.js');
|
|
15
17
|
|
|
16
18
|
const ProductImagesLightBox = ({ builderPropUID, productImages, open, imageRatio, onHandleClose })=>{
|
|
17
19
|
const featuredImageGlobal = core.useFeaturedImageGlobal();
|
|
@@ -32,6 +34,11 @@ const ProductImagesLightBox = ({ builderPropUID, productImages, open, imageRatio
|
|
|
32
34
|
mobile: false,
|
|
33
35
|
tablet: false
|
|
34
36
|
};
|
|
37
|
+
const mode = core.useEditorMode();
|
|
38
|
+
const isRenderVideo = (image)=>mode !== 'edit' && [
|
|
39
|
+
'VIDEO',
|
|
40
|
+
'EXTERNAL_VIDEO'
|
|
41
|
+
].includes(image?.contentType || '');
|
|
35
42
|
return /*#__PURE__*/ jsxRuntime.jsx(Modal.default, {
|
|
36
43
|
setting: {
|
|
37
44
|
open: open
|
|
@@ -107,17 +114,28 @@ const ProductImagesLightBox = ({ builderPropUID, productImages, open, imageRatio
|
|
|
107
114
|
fullHeight: true,
|
|
108
115
|
children: productImages?.map((image)=>/*#__PURE__*/ jsxRuntime.jsx(CarouselItem.default, {
|
|
109
116
|
className: `gem-slider-item gem-slider-item-${builderPropUID} gp-flex gp-items-center gp-justify-center gp-px-4`,
|
|
110
|
-
children: /*#__PURE__*/ jsxRuntime.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
children: !isRenderVideo(image) ? /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
118
|
+
children: [
|
|
119
|
+
/*#__PURE__*/ jsxRuntime.jsx(NextImage.default, {
|
|
120
|
+
src: productFeaturedImage.isFeatureMedia(image?.contentType) ? image?.previewImage : image?.src,
|
|
121
|
+
width: image?.width,
|
|
122
|
+
height: image?.height,
|
|
123
|
+
alt: image?.alt,
|
|
124
|
+
"content-type": image?.contentType,
|
|
125
|
+
setting: {
|
|
126
|
+
aspectRatio: imageRatio
|
|
127
|
+
},
|
|
128
|
+
className: core.cls('gp-h-full gp-w-full gp-object-contain')
|
|
129
|
+
}, image?.id),
|
|
130
|
+
/*#__PURE__*/ jsxRuntime.jsx(MediaIcon.default, {
|
|
131
|
+
contentType: image?.contentType ?? ''
|
|
132
|
+
})
|
|
133
|
+
]
|
|
134
|
+
}) : /*#__PURE__*/ jsxRuntime.jsx(ProductFeatureVideo.default, {
|
|
135
|
+
type: image?.contentType,
|
|
136
|
+
url: image.src ?? '',
|
|
137
|
+
aspectRatio: imageRatio
|
|
138
|
+
})
|
|
121
139
|
}, image?.id))
|
|
122
140
|
})
|
|
123
141
|
});
|
|
@@ -184,11 +184,11 @@ const SettingUIV2 = [
|
|
|
184
184
|
type: 'select',
|
|
185
185
|
options: [
|
|
186
186
|
{
|
|
187
|
-
label: 'Link variants, quantity between same products',
|
|
187
|
+
label: 'Link variants, quantity <br> between same products',
|
|
188
188
|
value: true
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
|
-
label: 'Unlink variants, quantity between same products',
|
|
191
|
+
label: 'Unlink variants, quantity <br> between same products',
|
|
192
192
|
value: false
|
|
193
193
|
}
|
|
194
194
|
],
|
|
@@ -1,365 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var AnimationPlugin = require('../../../carousel/components/plugins/AnimationPlugin.js');
|
|
4
|
-
|
|
5
|
-
const getDefaultResponsive = (defaultValue)=>{
|
|
6
|
-
return {
|
|
7
|
-
desktop: {
|
|
8
|
-
default: defaultValue
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
const productFeatureImageSetting = [
|
|
13
|
-
{
|
|
14
|
-
id: 'hoverEffect',
|
|
15
|
-
label: 'Hover Effect',
|
|
16
|
-
type: 'select',
|
|
17
|
-
hide: true,
|
|
18
|
-
hideOnMode: {
|
|
19
|
-
mobileOnly: true
|
|
20
|
-
},
|
|
21
|
-
options: [
|
|
22
|
-
{
|
|
23
|
-
title: 'None',
|
|
24
|
-
value: 'none'
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
title: 'Zoom',
|
|
28
|
-
value: 'zoom'
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
title: 'Show other image',
|
|
32
|
-
value: 'other'
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
default: 'none'
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
id: 'zoomType',
|
|
39
|
-
type: 'select',
|
|
40
|
-
label: 'Zoom Type',
|
|
41
|
-
hide: true,
|
|
42
|
-
default: 'default',
|
|
43
|
-
hideOnMode: {
|
|
44
|
-
mobileOnly: true
|
|
45
|
-
},
|
|
46
|
-
options: [
|
|
47
|
-
{
|
|
48
|
-
title: 'Default',
|
|
49
|
-
value: 'default'
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
title: 'Glasses',
|
|
53
|
-
value: 'glasses'
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
id: 'zoom',
|
|
59
|
-
type: 'range',
|
|
60
|
-
label: 'Zoom Value',
|
|
61
|
-
min: 100,
|
|
62
|
-
max: 200,
|
|
63
|
-
step: 10,
|
|
64
|
-
default: 150,
|
|
65
|
-
units: [
|
|
66
|
-
'%'
|
|
67
|
-
],
|
|
68
|
-
useOnlyUnitInit: true
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
id: 'otherImage',
|
|
72
|
-
label: 'Other image',
|
|
73
|
-
type: 'select',
|
|
74
|
-
options: [
|
|
75
|
-
{
|
|
76
|
-
title: 'Image 1',
|
|
77
|
-
value: 0
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
title: 'Image 2',
|
|
81
|
-
value: 1
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
title: 'Image 3',
|
|
85
|
-
value: 2
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
title: 'Image 4',
|
|
89
|
-
value: 3
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
title: 'Last image',
|
|
93
|
-
value: -1
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
default: 0
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
id: 'ftClickOpenLightBox',
|
|
100
|
-
label: 'Click Effect',
|
|
101
|
-
type: 'select',
|
|
102
|
-
options: [
|
|
103
|
-
{
|
|
104
|
-
title: 'None',
|
|
105
|
-
value: 'none'
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
title: 'Open view image',
|
|
109
|
-
value: 'popup'
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
title: 'Open product page',
|
|
113
|
-
value: 'product-link'
|
|
114
|
-
}
|
|
115
|
-
],
|
|
116
|
-
devices: getDefaultResponsive('none')
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
id: 'ftClickOpenNewTab',
|
|
120
|
-
type: 'segment',
|
|
121
|
-
options: [
|
|
122
|
-
{
|
|
123
|
-
title: 'Current',
|
|
124
|
-
value: false
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
title: 'New tab',
|
|
128
|
-
value: true
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
default: false
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: 'ftNavigationPosition',
|
|
135
|
-
label: 'Navigation',
|
|
136
|
-
type: 'layout-segment',
|
|
137
|
-
iconViewBox: '0 0 78 48',
|
|
138
|
-
enableItemBackground: true,
|
|
139
|
-
enableTooltip: true,
|
|
140
|
-
options: [
|
|
141
|
-
{
|
|
142
|
-
title: 'No navigation',
|
|
143
|
-
value: 'none',
|
|
144
|
-
type: 'slide-control',
|
|
145
|
-
isTextIcon: true
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
title: 'Display inside navigation',
|
|
149
|
-
value: 'inside',
|
|
150
|
-
type: 'slide-control'
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
title: 'Display outside navigation',
|
|
154
|
-
value: 'outside',
|
|
155
|
-
type: 'slide-control'
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
devices: getDefaultResponsive('none')
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
id: 'ftLoop',
|
|
162
|
-
type: 'toggle',
|
|
163
|
-
devices: getDefaultResponsive(false)
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
id: 'ftPauseOnHover',
|
|
167
|
-
label: 'Pause On Hover',
|
|
168
|
-
type: 'toggle',
|
|
169
|
-
hide: true,
|
|
170
|
-
default: true
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
id: 'ftAnimationSpeed',
|
|
174
|
-
label: 'Slide speed',
|
|
175
|
-
type: 'input:unit',
|
|
176
|
-
useOnlyUnitInit: true,
|
|
177
|
-
min: 1,
|
|
178
|
-
units: [
|
|
179
|
-
'ms'
|
|
180
|
-
],
|
|
181
|
-
default: 500
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
id: 'ftAnimationMode',
|
|
185
|
-
label: 'Animation',
|
|
186
|
-
type: 'select',
|
|
187
|
-
default: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value,
|
|
188
|
-
options: [
|
|
189
|
-
{
|
|
190
|
-
title: 'Ease in',
|
|
191
|
-
value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
title: 'Ease out',
|
|
195
|
-
value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
title: 'Ease in out',
|
|
199
|
-
value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN_OUT.value
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
id: 'ftArrowIcon',
|
|
205
|
-
type: 'icon',
|
|
206
|
-
hide: true,
|
|
207
|
-
label: 'Custom Arrow',
|
|
208
|
-
info: 'Choose from list or paste any SVG icon',
|
|
209
|
-
default: `<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
210
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0ZM10.6828 8.13017C10.5266 7.95661 10.2734 7.95661 10.1172 8.13017C9.96095 8.30374 9.96095 8.58515 10.1172 8.75871L13.0343 12L10.1172 15.2413C9.96095 15.4149 9.96095 15.6963 10.1172 15.8698C10.2734 16.0434 10.5266 16.0434 10.6828 15.8698L13.8828 12.3143C14.0391 12.1407 14.0391 11.8593 13.8828 11.6857L10.6828 8.13017Z" fill="currentColor"/>
|
|
211
|
-
</svg>`
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
id: 'ftArrowIconColor',
|
|
215
|
-
label: 'Icon color',
|
|
216
|
-
type: 'colorpicker',
|
|
217
|
-
default: '#000000'
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
id: 'ftDragToScroll',
|
|
221
|
-
label: 'Drag to scroll',
|
|
222
|
-
type: 'toggle',
|
|
223
|
-
hide: true,
|
|
224
|
-
default: false
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
id: 'ftArrowNavColor',
|
|
228
|
-
label: 'Nav. color',
|
|
229
|
-
type: 'colorpicker'
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
id: 'ftArrowNavBorder',
|
|
233
|
-
label: 'Nav. border',
|
|
234
|
-
type: 'border',
|
|
235
|
-
default: {
|
|
236
|
-
borderType: 'none',
|
|
237
|
-
border: 'none',
|
|
238
|
-
borderWidth: '1px',
|
|
239
|
-
width: '1px 1px 1px 1px',
|
|
240
|
-
isCustom: false
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
id: 'ftArrowNavRadius',
|
|
245
|
-
label: 'Nav. corner',
|
|
246
|
-
type: 'radius-preset',
|
|
247
|
-
default: {
|
|
248
|
-
btrr: '0px',
|
|
249
|
-
bblr: '0px',
|
|
250
|
-
bbrr: '0px',
|
|
251
|
-
btlr: '0px',
|
|
252
|
-
radiusType: 'none'
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
];
|
|
256
|
-
const productSelectDisplaySetting = [
|
|
257
|
-
{
|
|
258
|
-
id: 'typeDisplay',
|
|
259
|
-
type: 'select',
|
|
260
|
-
options: [
|
|
261
|
-
{
|
|
262
|
-
title: 'All images',
|
|
263
|
-
value: 'all-images'
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
title: 'Select manually',
|
|
267
|
-
value: 'select-manual'
|
|
268
|
-
}
|
|
269
|
-
],
|
|
270
|
-
default: 'all-images'
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
id: 'preDisplay',
|
|
274
|
-
type: 'select',
|
|
275
|
-
label: 'Pre-display',
|
|
276
|
-
default: '1st-available-variant',
|
|
277
|
-
options: [
|
|
278
|
-
{
|
|
279
|
-
title: '1st available variant',
|
|
280
|
-
value: '1st-available-variant'
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
title: '1st image',
|
|
284
|
-
value: '1st-images'
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
title: '1st video',
|
|
288
|
-
value: '1st-video'
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
title: '1st 3D model',
|
|
292
|
-
value: '1st-3d-mode'
|
|
293
|
-
}
|
|
294
|
-
]
|
|
295
|
-
}
|
|
296
|
-
];
|
|
297
|
-
const productFeatureImageStyle = [
|
|
298
|
-
{
|
|
299
|
-
id: 'ftShape',
|
|
300
|
-
type: 'size-setting',
|
|
301
|
-
label: '',
|
|
302
|
-
devices: {
|
|
303
|
-
desktop: {
|
|
304
|
-
default: {
|
|
305
|
-
shape: 'square',
|
|
306
|
-
shapeValue: '1/1',
|
|
307
|
-
width: '100%',
|
|
308
|
-
height: undefined,
|
|
309
|
-
shapeLinked: true
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
settingConfig: {
|
|
314
|
-
width: {
|
|
315
|
-
displayOptions: [
|
|
316
|
-
'full'
|
|
317
|
-
]
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
hiddenSettings: [
|
|
321
|
-
'padding',
|
|
322
|
-
'gap'
|
|
323
|
-
]
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
id: 'ftLayout',
|
|
327
|
-
type: 'layout-segment',
|
|
328
|
-
iconViewBox: '0 0 66 48',
|
|
329
|
-
enableItemBackground: true,
|
|
330
|
-
enableTooltip: true,
|
|
331
|
-
label: 'Image scale',
|
|
332
|
-
options: [
|
|
333
|
-
{
|
|
334
|
-
label: 'Fill image',
|
|
335
|
-
value: 'cover',
|
|
336
|
-
type: 'image'
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
label: 'Fit image',
|
|
340
|
-
value: 'contain',
|
|
341
|
-
type: 'image'
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
devices: getDefaultResponsive('cover')
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
id: 'ftCorner',
|
|
348
|
-
type: 'radius-preset',
|
|
349
|
-
label: 'Corner',
|
|
350
|
-
default: {
|
|
351
|
-
btrr: '0px',
|
|
352
|
-
bblr: '0px',
|
|
353
|
-
bbrr: '0px',
|
|
354
|
-
btlr: '0px',
|
|
355
|
-
radiusType: 'none'
|
|
356
|
-
},
|
|
357
|
-
state: {
|
|
358
|
-
hover: true,
|
|
359
|
-
normal: true
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
];
|
|
363
3
|
const productFeatureImageUI = [
|
|
364
4
|
{
|
|
365
5
|
type: 'control',
|
|
@@ -608,8 +248,5 @@ const productFeatureImageNavigationUI = [
|
|
|
608
248
|
];
|
|
609
249
|
|
|
610
250
|
exports.productFeatureImageNavigationUI = productFeatureImageNavigationUI;
|
|
611
|
-
exports.productFeatureImageSetting = productFeatureImageSetting;
|
|
612
|
-
exports.productFeatureImageStyle = productFeatureImageStyle;
|
|
613
251
|
exports.productFeatureImageUI = productFeatureImageUI;
|
|
614
|
-
exports.productSelectDisplaySetting = productSelectDisplaySetting;
|
|
615
252
|
exports.productSelectImage = productSelectImage;
|