@gem-sdk/components 2.0.0-dev.554 → 2.0.0-dev.556

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.
Files changed (52) hide show
  1. package/dist/cjs/article/components/ArticleList.js +1 -0
  2. package/dist/cjs/article/components/ArticleList.liquid.js +1 -0
  3. package/dist/cjs/article/setting/configs/ArticleList/uiV2.js +16 -0
  4. package/dist/cjs/carousel/carousel-item/CarouselItem.js +4 -2
  5. package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +10 -2
  6. package/dist/cjs/carousel/setting/configs/settingV2.js +6 -4
  7. package/dist/cjs/carousel/setting/configs/uiV2.js +4 -1
  8. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -23
  9. package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +29 -7
  10. package/dist/cjs/product/components/ProductImagesV2/common/getStyle.js +3 -3
  11. package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  12. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
  13. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
  14. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
  15. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  16. package/dist/cjs/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
  17. package/dist/cjs/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
  18. package/dist/cjs/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
  19. package/dist/cjs/product/components/ProductImagesV2/index.js +2 -4
  20. package/dist/cjs/product/components/ProductImagesV2/index.liquid.js +1 -1
  21. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
  22. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
  23. package/dist/cjs/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +118 -0
  24. package/dist/cjs/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +119 -0
  25. package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +193 -415
  26. package/dist/esm/article/components/ArticleList.js +2 -1
  27. package/dist/esm/article/components/ArticleList.liquid.js +2 -1
  28. package/dist/esm/article/setting/configs/ArticleList/uiV2.js +16 -0
  29. package/dist/esm/carousel/carousel-item/CarouselItem.js +4 -2
  30. package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +10 -2
  31. package/dist/esm/carousel/setting/configs/settingV2.js +6 -4
  32. package/dist/esm/carousel/setting/configs/uiV2.js +4 -1
  33. package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -23
  34. package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +29 -7
  35. package/dist/esm/product/components/ProductImagesV2/common/getStyle.js +3 -3
  36. package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  37. package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
  38. package/dist/esm/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
  39. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
  40. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  41. package/dist/esm/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
  42. package/dist/esm/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
  43. package/dist/esm/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
  44. package/dist/esm/product/components/ProductImagesV2/index.js +2 -4
  45. package/dist/esm/product/components/ProductImagesV2/index.liquid.js +1 -1
  46. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
  47. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
  48. package/dist/esm/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +116 -0
  49. package/dist/esm/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +117 -0
  50. package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +193 -415
  51. package/dist/types/index.d.ts +4 -8
  52. package/package.json +2 -2
@@ -115,6 +115,7 @@ const ArticleList = ({ styles, setting, className, children, builderProps })=>{
115
115
  ...core.makeStyleResponsive('rg', styles?.horizontalGutter),
116
116
  ...core.makeStyleResponsive('cg', styles?.verticalGutter),
117
117
  ...core.getStyleBackgroundByDevice(setting?.background),
118
+ ...core.getGradientBgrStyleByDevice(setting?.background),
118
119
  ...core.makeStyleResponsive('gtc', {
119
120
  desktop: `repeat(${core.getResponsiveValueByScreen(setting?.slideToShow, 'desktop')}, minmax(0, 1fr))`,
120
121
  tablet: setting?.slideToShow?.tablet && `repeat(${core.getResponsiveValueByScreen(setting?.slideToShow, 'tablet')}, minmax(0, 1fr))`,
@@ -35,6 +35,7 @@ const ArticleList = ({ setting, styles, className, children, advanced, builderPr
35
35
  ...core.makeStyleResponsive('rg', styles?.horizontalGutter),
36
36
  ...core.makeStyleResponsive('cg', styles?.verticalGutter),
37
37
  ...core.getStyleBackgroundByDevice(setting?.background),
38
+ ...core.getGradientBgrStyleByDevice(setting?.background),
38
39
  ...core.makeStyleResponsive('gtc', {
39
40
  desktop: `repeat(${core.getResponsiveValueByScreen(setting?.slideToShow, 'desktop')}, minmax(0, 1fr))`,
40
41
  tablet: setting?.slideToShow?.tablet && `repeat(${core.getResponsiveValueByScreen(setting?.slideToShow, 'tablet')}, minmax(0, 1fr))`,
@@ -29,6 +29,22 @@ const uiV2 = [
29
29
  }
30
30
  ]
31
31
  },
32
+ {
33
+ label: {
34
+ en: 'Number of article'
35
+ },
36
+ controls: [
37
+ {
38
+ label: {
39
+ en: 'Number'
40
+ },
41
+ conditionDisplay: 'articleSetting && articleSetting.articlePickType !== "manually"',
42
+ setting: {
43
+ id: 'numberOfArticle'
44
+ }
45
+ }
46
+ ]
47
+ },
32
48
  {
33
49
  label: {
34
50
  en: 'Grid'
@@ -12,15 +12,17 @@ var useCarouseItem = require('./hook/useCarouseItem.js');
12
12
 
13
13
  const CarouselItem = (props)=>{
14
14
  const { children, builderAttrs } = props;
15
- const { handleClick } = useCarouseItem.useCarouselItem(props);
15
+ const { handleClick, handleMouseMove, handleMouseOut } = useCarouseItem.useCarouselItem(props);
16
16
  const { carouselItemStyle, carouselItemInnerStyle } = getStyle.getStyle(props);
17
17
  const { carouselItemClass, carouselItemInnerClass } = getClass.getClass(props);
18
18
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
19
19
  ...builderAttrs,
20
+ "aria-hidden": true,
20
21
  className: carouselItemClass,
21
22
  style: carouselItemStyle,
22
23
  onClick: handleClick,
23
- "aria-hidden": true,
24
+ onMouseMove: handleMouseMove,
25
+ onMouseLeave: handleMouseOut,
24
26
  children: /*#__PURE__*/ jsxRuntime.jsx("div", {
25
27
  className: carouselItemInnerClass,
26
28
  style: carouselItemInnerStyle,
@@ -1,13 +1,21 @@
1
1
  'use strict';
2
2
 
3
3
  const useCarouselItem = (props)=>{
4
- const { onClickItem, dispatchEventSelectSlide, index = 0 } = props;
4
+ const { onClickItem, onMouseMove, onMouseOut, dispatchEventSelectSlide, index = 0 } = props;
5
5
  const handleClick = (e)=>{
6
6
  onClickItem && onClickItem(e);
7
7
  dispatchEventSelectSlide && dispatchEventSelectSlide(index);
8
8
  };
9
+ const handleMouseMove = (e)=>{
10
+ onMouseMove && onMouseMove(e);
11
+ };
12
+ const handleMouseOut = (e)=>{
13
+ onMouseOut && onMouseOut(e);
14
+ };
9
15
  return {
10
- handleClick
16
+ handleClick,
17
+ handleMouseMove,
18
+ handleMouseOut
11
19
  };
12
20
  };
13
21
 
@@ -475,12 +475,14 @@ const CarouselSettingsV2Setting = [
475
475
  label: 'Time out',
476
476
  type: 'input:slider',
477
477
  min: 1,
478
- max: 10,
478
+ max: 4,
479
479
  step: 0.1,
480
480
  default: 2,
481
- hide: true,
482
- hideUnit: true,
483
- useOnlyUnitInit: true,
481
+ units: [
482
+ 's'
483
+ ],
484
+ isNumber: true,
485
+ showDefaultUnit: true,
484
486
  ignoreMax: true
485
487
  },
486
488
  {
@@ -310,7 +310,10 @@ const SettingUIV2 = [
310
310
  setting: {
311
311
  id: 'itemNumber'
312
312
  },
313
- layout: 'vertical'
313
+ layout: 'vertical',
314
+ popoverLabel: {
315
+ en: 'Items per slide'
316
+ }
314
317
  }
315
318
  ]
316
319
  },
@@ -294,29 +294,7 @@ const setDefaultWhenUndefineSetting = (props)=>{
294
294
  return {
295
295
  ...props,
296
296
  setting: {
297
- ...props.setting,
298
- ftSlidesEnable: props.setting?.ftSlidesEnable === undefined ? {
299
- desktop: true
300
- } : props.setting?.ftSlidesEnable,
301
- ftSlidesActionEnable: props.setting?.ftSlidesActionEnable === undefined ? {
302
- desktop: true
303
- } : props.setting?.ftSlidesActionEnable,
304
- ftSlidesNavigationEnable: props.setting?.ftSlidesNavigationEnable === undefined ? {
305
- desktop: true
306
- } : props.setting?.ftSlidesNavigationEnable,
307
- ftActionEnable: props.setting?.ftActionEnable === undefined ? {
308
- desktop: true
309
- } : props.setting?.ftActionEnable,
310
- slidesActionEnable: props.setting?.slidesActionEnable === undefined ? {
311
- desktop: true
312
- } : props.setting?.slidesActionEnable,
313
- slidesNavigationEnable: props.setting?.slidesNavigationEnable === undefined ? {
314
- desktop: true
315
- } : props.setting?.slidesNavigationEnable,
316
- activeEffectEnable: props.setting?.activeEffectEnable === undefined || props.setting?.activeEffectEnable,
317
- actionEnable: props.setting?.actionEnable === undefined ? {
318
- desktop: true
319
- } : props.setting?.actionEnable
297
+ ...props.setting
320
298
  }
321
299
  };
322
300
  };
@@ -50,6 +50,11 @@ const getGalleryCarouselSettingAttr = (setting)=>{
50
50
  ...setting?.arrowIcon && {
51
51
  arrowCustom: setting.arrowIcon
52
52
  },
53
+ ...{
54
+ arrowIconSize: setting.arrowIconSize || {
55
+ desktop: 24
56
+ }
57
+ },
53
58
  ...setting?.arrowIconColor && {
54
59
  arrowCustomColor: setting.arrowIconColor
55
60
  },
@@ -66,6 +71,11 @@ const getGalleryCarouselSettingAttr = (setting)=>{
66
71
  desktop: setting.arrowNavRadius
67
72
  }
68
73
  },
74
+ ...setting?.arrowNavShadow && {
75
+ arrowShadow: {
76
+ desktop: setting.arrowNavShadow
77
+ }
78
+ },
69
79
  sneakPeakType: {
70
80
  desktop: 'center'
71
81
  },
@@ -74,13 +84,13 @@ const getGalleryCarouselSettingAttr = (setting)=>{
74
84
  navigationEnable: mappingNavigationEnable,
75
85
  arrowButtonSize: {
76
86
  desktop: {
77
- width: '24px',
78
- height: '24px'
87
+ width: undefined,
88
+ height: undefined
79
89
  }
80
90
  },
81
91
  animationMode: setting?.ftAnimationMode,
82
- ...setting?.slidesActionEnable && {
83
- enableAction: setting.slidesActionEnable
92
+ enableAction: {
93
+ desktop: true
84
94
  }
85
95
  };
86
96
  };
@@ -131,6 +141,11 @@ const getFeaturedCarouselSettingAttr = (setting)=>{
131
141
  ...setting?.ftArrowIcon && {
132
142
  arrowCustom: setting.ftArrowIcon
133
143
  },
144
+ ...{
145
+ arrowIconSize: setting.ftArrowIconSize || {
146
+ desktop: 24
147
+ }
148
+ },
134
149
  ...setting?.ftArrowIconColor && {
135
150
  arrowCustomColor: setting.ftArrowIconColor
136
151
  },
@@ -147,6 +162,11 @@ const getFeaturedCarouselSettingAttr = (setting)=>{
147
162
  desktop: setting.ftArrowNavRadius
148
163
  }
149
164
  },
165
+ ...setting?.ftArrowNavShadow && {
166
+ arrowShadow: {
167
+ desktop: setting.ftArrowNavShadow
168
+ }
169
+ },
150
170
  sneakPeakType: {
151
171
  desktop: 'center'
152
172
  },
@@ -158,11 +178,13 @@ const getFeaturedCarouselSettingAttr = (setting)=>{
158
178
  navigationEnable: mappingNavigationEnable,
159
179
  arrowButtonSize: {
160
180
  desktop: {
161
- width: '24px',
162
- height: '24px'
181
+ width: undefined,
182
+ height: undefined
163
183
  }
164
184
  },
165
- enableAction: setting.ftSlidesActionEnable
185
+ enableAction: {
186
+ desktop: true
187
+ }
166
188
  };
167
189
  };
168
190
 
@@ -199,15 +199,15 @@ const getGalleryCarouselStyle = (setting)=>{
199
199
  sizeSetting: {
200
200
  desktop: {
201
201
  width: getWidthByLayoutForCarouselByDevice('desktop'),
202
- height: 'auto'
202
+ height: '100%'
203
203
  },
204
204
  tablet: {
205
205
  width: getWidthByLayoutForCarouselByDevice('tablet'),
206
- height: 'auto'
206
+ height: '100%'
207
207
  },
208
208
  mobile: {
209
209
  width: getWidthByLayoutForCarouselByDevice('mobile'),
210
- height: 'auto'
210
+ height: '100%'
211
211
  }
212
212
  }
213
213
  };
@@ -49,7 +49,7 @@ const checkRenderFeaturedCarousel = (setting)=>{
49
49
  return isShow;
50
50
  };
51
51
  const checkShowCarousel = (setting, device)=>{
52
- return (core.getResponsiveValueByScreen(setting.position, device) !== 'only-feature' || core.getResponsiveValueByScreen(setting.ftNavigationPosition, device) !== 'none' || core.getResponsiveValueByScreen(setting.ftDotStyle, device) !== 'none' || core.getResponsiveValueByScreen(setting.ftLoop, device) === true || setting.ftDragToScroll === true) && core.getResponsiveValueByScreen(setting.ftSlidesEnable) === true;
52
+ return core.getResponsiveValueByScreen(setting.position, device) !== 'only-feature' || core.getResponsiveValueByScreen(setting.ftNavigationPosition, device) !== 'none' || core.getResponsiveValueByScreen(setting.ftDotStyle, device) !== 'none' || core.getResponsiveValueByScreen(setting.ftLoop, device) === true || setting.ftDragToScroll === true;
53
53
  };
54
54
 
55
55
  exports.checkRenderFeaturedCarousel = checkRenderFeaturedCarousel;
@@ -66,19 +66,11 @@ const ProductFeaturedImageOnly = ({ image, imageShowWhenHover, setting, aspectRa
66
66
  });
67
67
  return children;
68
68
  };
69
- const enableHoverAction = React.useMemo(()=>{
70
- return core.getResponsiveValueByScreen(setting.ftActionEnable, currentDevice);
71
- }, [
72
- currentDevice,
73
- setting.ftActionEnable
74
- ]);
75
- const isRenderHoverImage = React.useMemo(()=>enableHoverAction && setting?.hoverEffect !== 'none' && !productFeaturedImage.isFeatureMedia(renderImage?.contentType), [
76
- enableHoverAction,
69
+ const isRenderHoverImage = React.useMemo(()=>setting?.hoverEffect !== 'none' && !productFeaturedImage.isFeatureMedia(renderImage?.contentType), [
77
70
  renderImage?.contentType,
78
71
  setting?.hoverEffect
79
72
  ]);
80
- const isZoomImage = React.useMemo(()=>enableHoverAction && setting?.hoverEffect == 'zoom' && setting?.zoomType == 'glasses' && !productFeaturedImage.isFeatureMedia(renderImage?.contentType), [
81
- enableHoverAction,
73
+ const isZoomImage = React.useMemo(()=>setting?.hoverEffect == 'zoom' && setting?.zoomType == 'glasses' && !productFeaturedImage.isFeatureMedia(renderImage?.contentType), [
82
74
  renderImage?.contentType,
83
75
  setting?.hoverEffect,
84
76
  setting?.zoomType
@@ -45,7 +45,7 @@ const ProductGalleryGrid = (props)=>{
45
45
  zoomType: setting.galleryZoomType
46
46
  }),
47
47
  onMouseOut: (e)=>hoverAction.handleMouseOut(e),
48
- "data-border": canActive && !!setting?.borderActive && setting?.activeEffectEnable ? 'active' : 'deactive',
48
+ "data-border": canActive && !!setting?.borderActive ? 'active' : 'deactive',
49
49
  children: [
50
50
  /*#__PURE__*/ jsxRuntime.jsx(NextImage.default, {
51
51
  src: imageSrc,
@@ -48,7 +48,7 @@ const ProductGalleryCarousel = (props)=>{
48
48
  onClickItem: ()=>handleClickCarouselItem(image?.id),
49
49
  style: galleryCarouselItemStyle,
50
50
  "data-id": image?.id,
51
- "data-border": canActive && !!setting?.borderActive && setting?.activeEffectEnable ? 'active' : 'deactive',
51
+ "data-border": canActive && !!setting?.borderActive ? 'active' : 'deactive',
52
52
  children: [
53
53
  /*#__PURE__*/ jsxRuntime.jsx(NextImage.default, {
54
54
  draggable: "false",
@@ -140,7 +140,7 @@ const ProductGalleryCarousel = ({ builderPropUID, children, enableLazyLoadImage,
140
140
  return ` ${isNotVerticalClass.join(' ')}`;
141
141
  };
142
142
  const carouselChildren = system.LiquidIf(`product.media.size > 1`, system.LiquidFor(`media in product.media`, `${system.LiquidIf(`media.media_type == 'image'`, system.LiquidFor(`image in product.images`, system.LiquidIf(`image.src == media.src`, `{% assign imageID = image.id %}{% break %}`)), `{% assign imageID = '' %}`)}
143
- ${system.LiquidIf(`media.id == product.featured_media.id `, renderCarouselGalleryItem(setting?.activeEffectEnable && setting?.borderActive?.border !== 'none' ? 'active' : ''), renderCarouselGalleryItem())}`));
143
+ ${system.LiquidIf(`media.id == product.featured_media.id `, renderCarouselGalleryItem(setting?.borderActive?.border !== 'none' ? 'active' : ''), renderCarouselGalleryItem())}`));
144
144
  return core.template`
145
145
  ${Carousel_liquid.default({
146
146
  builderProps: {
@@ -230,7 +230,7 @@ const ProductGalleryGrid = ({ builderPropUID, wrapperStyle, children, enableLazy
230
230
  style="${_function.getStyleOfObject(galleryGridStyles)}}"
231
231
  >
232
232
  ${system.LiquidFor(`media in product.media`, `${system.LiquidIf(`media.media_type == 'image'`, system.LiquidFor(`image in product.images`, system.LiquidIf(`image.src == media.src`, `{% assign imageID = image.id %}{% break %}`)), `{% assign imageID = '' %}`)}
233
- ${system.LiquidIf(`media.id == product.featured_media.id `, renderGridGalleryItem(setting?.activeEffectEnable && setting?.borderActive?.border !== 'none' ? 'active' : ''), renderGridGalleryItem())}`)}
233
+ ${system.LiquidIf(`media.id == product.featured_media.id `, renderGridGalleryItem(setting?.borderActive?.border !== 'none' ? 'active' : ''), renderGridGalleryItem())}`)}
234
234
  ${system.LiquidIf(`product.media.size > 0`, children)}
235
235
  ${system.LiquidIf(`product.media.size < 1`, renderGridGalleryItem())}
236
236
  </div>`);
@@ -112,10 +112,9 @@ const useGalleryCarousel = (props)=>{
112
112
  currentDevice
113
113
  ]);
114
114
  const isEnableBorderActive = React.useMemo(()=>{
115
- return setting?.borderActive?.border !== 'none' && setting?.activeEffectEnable;
115
+ return setting?.borderActive?.border !== 'none';
116
116
  }, [
117
- setting?.borderActive?.border,
118
- setting?.activeEffectEnable
117
+ setting?.borderActive?.border
119
118
  ]);
120
119
  const isShowButtonLightbox = core.getResponsiveValueByScreen(setting?.clickOpenLightBox, currentDevice);
121
120
  const handleClickCarouselItem = (imageId)=>{
@@ -31,7 +31,7 @@ const useProductGalleryGrid = (props)=>{
31
31
  shapeByLayout
32
32
  });
33
33
  const isDisplay = core.getResponsiveValueByScreen(isDisplayByWidth, currentDevice);
34
- const isEnableBorderActive = setting?.borderActive?.border !== 'none' && setting?.activeEffectEnable;
34
+ const isEnableBorderActive = setting?.borderActive?.border !== 'none';
35
35
  const handleSetSrc = React.useCallback(()=>{
36
36
  getSrcSet.handleSetSrcForProductImageList({
37
37
  builderPropUID,
@@ -124,7 +124,7 @@ const ProductImagesV2 = (props)=>{
124
124
  ]);
125
125
  const handleGalleryClick = (imageID, enableOpenLightBox)=>{
126
126
  handleClickSwitchImage(imageID);
127
- enableOpenLightBox && core.getResponsiveValueByScreen(setting?.ftActionEnable, currentDevice) && handleOpenLightBox();
127
+ enableOpenLightBox && handleOpenLightBox();
128
128
  };
129
129
  const handleOpenLightBox = ()=>{
130
130
  setOpenLightBox(true);
@@ -158,7 +158,7 @@ const ProductImagesV2 = (props)=>{
158
158
  hasVariantAvailable
159
159
  ]);
160
160
  const isRenderLightBox = React.useMemo(()=>{
161
- const isRender = core.getResponsiveValueByScreen(setting?.ftActionEnable, currentDevice) && core.getResponsiveValueByScreen(setting?.ftClickOpenLightBox, currentDevice) === 'popup' || core.getResponsiveValueByScreen(setting?.actionEnable, currentDevice) && core.getResponsiveValueByScreen(setting?.clickOpenLightBox, currentDevice);
161
+ const isRender = core.getResponsiveValueByScreen(setting?.ftClickOpenLightBox, currentDevice) === 'popup' || core.getResponsiveValueByScreen(setting?.clickOpenLightBox, currentDevice);
162
162
  if (!isRender && mode === 'edit') {
163
163
  window?.parent?.postMessage?.(JSON.stringify({
164
164
  type: 'active-modal',
@@ -167,9 +167,7 @@ const ProductImagesV2 = (props)=>{
167
167
  }
168
168
  return isRender;
169
169
  }, [
170
- setting?.ftActionEnable,
171
170
  setting?.ftClickOpenLightBox,
172
- setting?.actionEnable,
173
171
  setting?.clickOpenLightBox,
174
172
  currentDevice,
175
173
  mode
@@ -111,7 +111,7 @@ const ProductImages = (props)=>{
111
111
  `;
112
112
  };
113
113
  const isEnableBorderActive = ()=>{
114
- return setting?.borderActive?.border !== 'none' && setting?.activeEffectEnable;
114
+ return setting?.borderActive?.border !== 'none';
115
115
  };
116
116
  return core.template`
117
117
  ${system.If(isEnableBorderActive(), `<style>${getBorderActiveCss.getBorderActiveCss({
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ var AnimationPlugin = require('../../../../../carousel/components/plugins/AnimationPlugin.js');
4
+
3
5
  const getDefaultResponsive = (defaultValue)=>{
4
6
  return {
5
7
  desktop: {
@@ -17,10 +19,6 @@ const productFeatureImageSetting = [
17
19
  mobileOnly: true
18
20
  },
19
21
  options: [
20
- {
21
- title: 'Do nothing',
22
- value: 'none'
23
- },
24
22
  {
25
23
  title: 'Zoom',
26
24
  value: 'zoom'
@@ -34,7 +32,7 @@ const productFeatureImageSetting = [
34
32
  },
35
33
  {
36
34
  id: 'zoomType',
37
- type: 'select',
35
+ type: 'option:value',
38
36
  label: 'Zoom Type',
39
37
  hide: true,
40
38
  default: 'default',
@@ -43,11 +41,11 @@ const productFeatureImageSetting = [
43
41
  },
44
42
  options: [
45
43
  {
46
- title: 'Default',
44
+ label: 'Default',
47
45
  value: 'default'
48
46
  },
49
47
  {
50
- title: 'Glasses',
48
+ label: 'Glasses',
51
49
  value: 'glasses'
52
50
  }
53
51
  ]
@@ -63,6 +61,7 @@ const productFeatureImageSetting = [
63
61
  units: [
64
62
  '%'
65
63
  ],
64
+ showDefaultUnit: true,
66
65
  useOnlyUnitInit: true,
67
66
  isNumber: true
68
67
  },
@@ -100,15 +99,11 @@ const productFeatureImageSetting = [
100
99
  type: 'select',
101
100
  options: [
102
101
  {
103
- title: 'Do nothing',
104
- value: 'none'
105
- },
106
- {
107
- title: 'Open view image',
102
+ title: 'Open gallery',
108
103
  value: 'popup'
109
104
  },
110
105
  {
111
- title: 'Open product page',
106
+ title: 'Open product',
112
107
  value: 'product-link'
113
108
  }
114
109
  ],
@@ -116,15 +111,15 @@ const productFeatureImageSetting = [
116
111
  },
117
112
  {
118
113
  id: 'ftClickOpenNewTab',
119
- type: 'segment',
114
+ type: 'option:value',
120
115
  options: [
121
116
  {
122
- label: 'Current',
123
- value: false
117
+ label: 'Yes',
118
+ value: true
124
119
  },
125
120
  {
126
- label: 'New tab',
127
- value: true
121
+ label: 'No',
122
+ value: false
128
123
  }
129
124
  ],
130
125
  default: false
@@ -170,15 +165,38 @@ const productFeatureImageSetting = [
170
165
  },
171
166
  {
172
167
  id: 'ftAnimationSpeed',
168
+ label: 'Slide speed',
173
169
  type: 'input:slider',
174
- label: 'Speed (s)',
175
- hide: true,
176
- min: 0,
177
- max: 60,
178
- step: 1,
179
- default: 1,
180
170
  useOnlyUnitInit: true,
181
- isNumber: true
171
+ min: 100,
172
+ max: 5000,
173
+ step: 50,
174
+ units: [
175
+ 'ms'
176
+ ],
177
+ showDefaultUnit: true,
178
+ isNumber: true,
179
+ default: 500
180
+ },
181
+ {
182
+ id: 'ftAnimationMode',
183
+ label: 'Animation',
184
+ type: 'select',
185
+ default: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value,
186
+ options: [
187
+ {
188
+ label: 'Ease in',
189
+ value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value
190
+ },
191
+ {
192
+ label: 'Ease out',
193
+ value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value
194
+ },
195
+ {
196
+ label: 'Ease in out',
197
+ value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN_OUT.value
198
+ }
199
+ ]
182
200
  },
183
201
  {
184
202
  id: 'ftArrowIcon',
@@ -196,6 +214,17 @@ const productFeatureImageSetting = [
196
214
  type: 'color-picker-v2',
197
215
  default: '#000000'
198
216
  },
217
+ {
218
+ id: 'ftArrowIconSize',
219
+ label: 'Number per show',
220
+ type: 'input:stepper',
221
+ min: 1,
222
+ devices: {
223
+ desktop: {
224
+ default: 24
225
+ }
226
+ }
227
+ },
199
228
  {
200
229
  id: 'ftDragToScroll',
201
230
  label: 'Drag to scroll',
@@ -233,39 +262,16 @@ const productFeatureImageSetting = [
233
262
  }
234
263
  },
235
264
  {
236
- id: 'ftSlidesEnable',
237
- type: 'toggle',
238
- devices: {
239
- desktop: {
240
- default: true
241
- }
242
- }
243
- },
244
- {
245
- id: 'ftSlidesActionEnable',
246
- type: 'combo',
247
- devices: {
248
- desktop: {
249
- default: true
250
- }
251
- }
252
- },
253
- {
254
- id: 'ftSlidesNavigationEnable',
255
- type: 'combo',
256
- devices: {
257
- desktop: {
258
- default: true
259
- }
260
- }
261
- },
262
- {
263
- id: 'ftActionEnable',
264
- type: 'combo',
265
- devices: {
266
- desktop: {
267
- default: true
268
- }
265
+ id: 'ftArrowNavShadow',
266
+ type: 'shadow-v2',
267
+ default: {
268
+ type: 'shadow-1',
269
+ distance: '4px',
270
+ blur: '12px',
271
+ spread: '0px',
272
+ color: 'rgba(0, 0, 0, 0.20)',
273
+ angle: 90,
274
+ enable: false
269
275
  }
270
276
  }
271
277
  ];
@@ -340,21 +346,21 @@ const productFeatureImageStyle = [
340
346
  },
341
347
  {
342
348
  id: 'ftLayout',
343
- type: 'layout-segment',
344
- iconViewBox: '0 0 66 48',
345
- enableItemBackground: true,
349
+ type: 'option:illustration',
346
350
  enableTooltip: true,
347
351
  label: 'Image scale',
348
352
  options: [
349
353
  {
350
354
  label: 'Fill image',
351
355
  value: 'cover',
352
- type: 'image'
356
+ type: 'image',
357
+ svgName: 'gp-image-cover'
353
358
  },
354
359
  {
355
360
  label: 'Fit image',
356
361
  value: 'contain',
357
- type: 'image'
362
+ type: 'image',
363
+ svgName: 'gp-image-contain'
358
364
  }
359
365
  ],
360
366
  devices: getDefaultResponsive('cover')