@gem-sdk/components 2.0.0-dev.622 → 2.0.0-dev.623
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/builder.js +12 -6
- package/dist/cjs/index.js +34 -32
- package/dist/cjs/index.liquid.js +16 -10
- package/dist/cjs/next.js +3 -1
- package/dist/cjs/product/components/ProductImagesV3/common/common.js +360 -0
- package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +192 -0
- package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +26 -0
- package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +94 -0
- package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +303 -0
- package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +95 -0
- package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +59 -0
- package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +266 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +63 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +36 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +109 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +139 -0
- package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +100 -0
- package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +77 -0
- package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +300 -0
- package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +44 -0
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +83 -0
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +182 -0
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +30 -0
- package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +239 -0
- package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +28 -0
- package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +144 -0
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +14 -0
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +54 -0
- package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +53 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +55 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +41 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +134 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +203 -0
- package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +87 -0
- package/dist/cjs/product/components/ProductImagesV3/index.js +291 -0
- package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +153 -0
- package/dist/cjs/product/index.js +6 -4
- package/dist/cjs/product/next.js +4 -0
- package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +252 -0
- package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +251 -0
- package/dist/cjs/product/setting/product-image-v3/ProductImages.js +74 -0
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +388 -0
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +518 -0
- package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +336 -0
- package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +118 -0
- package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +119 -0
- package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +237 -0
- package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +491 -0
- package/dist/cjs/setting.js +97 -95
- package/dist/cjs/swiper-carousel/arrow/Arrow.js +52 -0
- package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +46 -0
- package/dist/cjs/swiper-carousel/arrow/common/common.js +119 -0
- package/dist/cjs/swiper-carousel/arrow/common/getClass.js +50 -0
- package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +84 -0
- package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +34 -0
- package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +38 -0
- package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +29 -0
- package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +79 -0
- package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +22 -0
- package/dist/cjs/swiper-carousel/components/common/carousel.js +98 -0
- package/dist/cjs/swiper-carousel/components/const/index.js +5 -0
- package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +34 -0
- package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +42 -0
- package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +105 -0
- package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +15 -0
- package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +45 -0
- package/dist/cjs/swiper-carousel/dots/Dots.js +51 -0
- package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +26 -0
- package/dist/cjs/swiper-carousel/dots/common/common.js +28 -0
- package/dist/cjs/swiper-carousel/dots/common/getClass.js +40 -0
- package/dist/cjs/swiper-carousel/dots/common/getStyle.js +33 -0
- package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +21 -0
- package/dist/cjs/swiper-carousel/index.js +17 -0
- package/dist/cjs/swiper-carousel/next.js +22 -0
- package/dist/cjs/swiper-carousel/root/Swiper.js +128 -0
- package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +104 -0
- package/dist/cjs/swiper-carousel/root/common/getAttr.js +25 -0
- package/dist/cjs/swiper-carousel/root/common/getClass.js +135 -0
- package/dist/cjs/swiper-carousel/root/common/getData.js +56 -0
- package/dist/cjs/swiper-carousel/root/common/getStyle.js +64 -0
- package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +482 -0
- package/dist/cjs/swiper-carousel/setting/Swiper.js +42 -0
- package/dist/cjs/swiper-carousel/setting/SwiperItem.js +40 -0
- package/dist/cjs/swiper-carousel/setting/configs/presets.js +87 -0
- package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +819 -0
- package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +718 -0
- package/dist/esm/builder.js +6 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.liquid.js +3 -0
- package/dist/esm/next.js +3 -1
- package/dist/esm/product/components/ProductImagesV3/common/common.js +344 -0
- package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +189 -0
- package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +24 -0
- package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +83 -0
- package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +292 -0
- package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +92 -0
- package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +53 -0
- package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +251 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +59 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +32 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +105 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +135 -0
- package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +96 -0
- package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +73 -0
- package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +296 -0
- package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +40 -0
- package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +79 -0
- package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +178 -0
- package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +26 -0
- package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +235 -0
- package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +24 -0
- package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +140 -0
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +12 -0
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +52 -0
- package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +51 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +53 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +39 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +132 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +201 -0
- package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +85 -0
- package/dist/esm/product/components/ProductImagesV3/index.js +287 -0
- package/dist/esm/product/components/ProductImagesV3/index.liquid.js +149 -0
- package/dist/esm/product/index.js +26 -24
- package/dist/esm/product/next.js +4 -0
- package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +248 -0
- package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +248 -0
- package/dist/esm/product/setting/product-image-v3/ProductImages.js +70 -0
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +384 -0
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +515 -0
- package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +334 -0
- package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +116 -0
- package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +117 -0
- package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +235 -0
- package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +489 -0
- package/dist/esm/setting.js +2 -0
- package/dist/esm/swiper-carousel/arrow/Arrow.js +48 -0
- package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +42 -0
- package/dist/esm/swiper-carousel/arrow/common/common.js +111 -0
- package/dist/esm/swiper-carousel/arrow/common/getClass.js +48 -0
- package/dist/esm/swiper-carousel/arrow/common/getStyle.js +82 -0
- package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +30 -0
- package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +34 -0
- package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +27 -0
- package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +77 -0
- package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +20 -0
- package/dist/esm/swiper-carousel/components/common/carousel.js +93 -0
- package/dist/esm/swiper-carousel/components/const/index.js +3 -0
- package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +30 -0
- package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +35 -0
- package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +103 -0
- package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +13 -0
- package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +43 -0
- package/dist/esm/swiper-carousel/dots/Dots.js +47 -0
- package/dist/esm/swiper-carousel/dots/Dots.liquid.js +22 -0
- package/dist/esm/swiper-carousel/dots/common/common.js +26 -0
- package/dist/esm/swiper-carousel/dots/common/getClass.js +38 -0
- package/dist/esm/swiper-carousel/dots/common/getStyle.js +31 -0
- package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +19 -0
- package/dist/esm/swiper-carousel/index.js +15 -0
- package/dist/esm/swiper-carousel/next.js +18 -0
- package/dist/esm/swiper-carousel/root/Swiper.js +124 -0
- package/dist/esm/swiper-carousel/root/Swiper.liquid.js +100 -0
- package/dist/esm/swiper-carousel/root/common/getAttr.js +23 -0
- package/dist/esm/swiper-carousel/root/common/getClass.js +133 -0
- package/dist/esm/swiper-carousel/root/common/getData.js +54 -0
- package/dist/esm/swiper-carousel/root/common/getStyle.js +62 -0
- package/dist/esm/swiper-carousel/root/hook/useCarousel.js +480 -0
- package/dist/esm/swiper-carousel/setting/Swiper.js +38 -0
- package/dist/esm/swiper-carousel/setting/SwiperItem.js +36 -0
- package/dist/esm/swiper-carousel/setting/configs/presets.js +85 -0
- package/dist/esm/swiper-carousel/setting/configs/settingV2.js +815 -0
- package/dist/esm/swiper-carousel/setting/configs/uiV2.js +713 -0
- package/dist/types/index.d.ts +551 -116
- package/package.json +2 -2
|
@@ -0,0 +1,518 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const getDefaultResponsive = (defaultValue)=>{
|
|
4
|
+
return {
|
|
5
|
+
desktop: {
|
|
6
|
+
default: defaultValue
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
const productGalleryImageSetting = [
|
|
11
|
+
{
|
|
12
|
+
id: 'type',
|
|
13
|
+
label: 'Gallery Type',
|
|
14
|
+
type: 'segment',
|
|
15
|
+
hide: true,
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
label: 'Slide',
|
|
19
|
+
value: 'slider'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: 'All',
|
|
23
|
+
value: 'images'
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
devices: getDefaultResponsive('slider')
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: 'galleryHoverEffect',
|
|
30
|
+
label: 'Hover Effect',
|
|
31
|
+
type: 'select',
|
|
32
|
+
hide: true,
|
|
33
|
+
hideOnMode: {
|
|
34
|
+
mobileOnly: true
|
|
35
|
+
},
|
|
36
|
+
options: [
|
|
37
|
+
{
|
|
38
|
+
title: 'None',
|
|
39
|
+
value: 'none'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: 'Zoom',
|
|
43
|
+
value: 'zoom'
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
default: 'none'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 'galleryZoomType',
|
|
50
|
+
type: 'select',
|
|
51
|
+
label: 'Zoom Type',
|
|
52
|
+
hide: true,
|
|
53
|
+
default: 'default',
|
|
54
|
+
hideOnMode: {
|
|
55
|
+
mobileOnly: true
|
|
56
|
+
},
|
|
57
|
+
options: [
|
|
58
|
+
{
|
|
59
|
+
title: 'Default',
|
|
60
|
+
value: 'default'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
title: 'Glasses',
|
|
64
|
+
value: 'glasses'
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'galleryZoom',
|
|
70
|
+
type: 'input:slider',
|
|
71
|
+
label: 'Zoom Value',
|
|
72
|
+
min: 100,
|
|
73
|
+
max: 200,
|
|
74
|
+
step: 10,
|
|
75
|
+
default: 150,
|
|
76
|
+
units: [
|
|
77
|
+
'%'
|
|
78
|
+
],
|
|
79
|
+
useOnlyUnitInit: true,
|
|
80
|
+
isNumber: true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'clickOpenLightBox',
|
|
84
|
+
label: 'Large view in pop-up',
|
|
85
|
+
type: 'select',
|
|
86
|
+
options: [
|
|
87
|
+
{
|
|
88
|
+
label: 'View in featured',
|
|
89
|
+
value: false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: 'Open Gallery',
|
|
93
|
+
value: true
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
devices: getDefaultResponsive(false)
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: 'borderActive',
|
|
100
|
+
label: 'Active border',
|
|
101
|
+
type: 'border',
|
|
102
|
+
default: {
|
|
103
|
+
borderType: 'none',
|
|
104
|
+
border: 'solid',
|
|
105
|
+
borderWidth: '1px',
|
|
106
|
+
width: '1px 1px 1px 1px',
|
|
107
|
+
isCustom: false,
|
|
108
|
+
color: '#000000'
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 'navigationPosition',
|
|
113
|
+
label: 'Navigation',
|
|
114
|
+
type: 'option:illustration',
|
|
115
|
+
enableTooltip: true,
|
|
116
|
+
options: [
|
|
117
|
+
{
|
|
118
|
+
label: 'No navigation',
|
|
119
|
+
value: 'none',
|
|
120
|
+
type: 'slide-control',
|
|
121
|
+
hide: true
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: 'Display outside navigation',
|
|
125
|
+
value: 'outside',
|
|
126
|
+
type: 'slide-control',
|
|
127
|
+
svgName: 'gp-slide-control-outside'
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: 'Display inside navigation',
|
|
131
|
+
value: 'inside',
|
|
132
|
+
type: 'slide-control',
|
|
133
|
+
svgName: 'gp-slide-control-inside'
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
devices: getDefaultResponsive('inside')
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 'loop',
|
|
140
|
+
type: 'toggle',
|
|
141
|
+
devices: getDefaultResponsive(true)
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: 'pauseOnHover',
|
|
145
|
+
label: 'Pause On Hover',
|
|
146
|
+
type: 'toggle',
|
|
147
|
+
hide: true,
|
|
148
|
+
default: true
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'speed',
|
|
152
|
+
type: 'input:slider',
|
|
153
|
+
label: 'Speed (s)',
|
|
154
|
+
hide: true,
|
|
155
|
+
min: 0,
|
|
156
|
+
max: 60,
|
|
157
|
+
step: 1,
|
|
158
|
+
default: 1
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
id: 'arrowIcon',
|
|
162
|
+
type: 'icon',
|
|
163
|
+
hide: true,
|
|
164
|
+
label: 'Custom Arrow',
|
|
165
|
+
info: 'Choose from list or paste any SVG icon',
|
|
166
|
+
default: `<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
167
|
+
<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"/>
|
|
168
|
+
</svg>`
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: 'arrowIconSize',
|
|
172
|
+
label: 'Number per show',
|
|
173
|
+
type: 'input:stepper',
|
|
174
|
+
min: 1,
|
|
175
|
+
devices: {
|
|
176
|
+
desktop: {
|
|
177
|
+
default: 24
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: 'arrowIconColor',
|
|
183
|
+
label: 'Icon color',
|
|
184
|
+
type: 'color-picker-v2',
|
|
185
|
+
default: '#000000'
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: 'dragToScroll',
|
|
189
|
+
label: 'Drag to scroll',
|
|
190
|
+
type: 'toggle',
|
|
191
|
+
hide: true,
|
|
192
|
+
default: true
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: 'arrowNavColor',
|
|
196
|
+
label: 'Nav. color',
|
|
197
|
+
type: 'color-picker-v2'
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: 'arrowNavBorder',
|
|
201
|
+
label: 'Nav. border',
|
|
202
|
+
type: 'border',
|
|
203
|
+
default: {
|
|
204
|
+
borderType: 'none',
|
|
205
|
+
border: 'none',
|
|
206
|
+
borderWidth: '1px',
|
|
207
|
+
width: '1px 1px 1px 1px',
|
|
208
|
+
isCustom: false
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: 'arrowNavRadius',
|
|
213
|
+
label: 'Nav. corner',
|
|
214
|
+
type: 'radius-preset',
|
|
215
|
+
default: {
|
|
216
|
+
btrr: '0px',
|
|
217
|
+
bblr: '0px',
|
|
218
|
+
bbrr: '0px',
|
|
219
|
+
btlr: '0px',
|
|
220
|
+
radiusType: 'none'
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
id: 'arrowNavShadow',
|
|
225
|
+
type: 'shadow-v2',
|
|
226
|
+
default: {
|
|
227
|
+
type: 'shadow-1',
|
|
228
|
+
distance: '4px',
|
|
229
|
+
blur: '12px',
|
|
230
|
+
spread: '0px',
|
|
231
|
+
color: 'rgba(0, 0, 0, 0.20)',
|
|
232
|
+
angle: 90,
|
|
233
|
+
enable: false
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
];
|
|
237
|
+
const productGalleryImageStyle = [
|
|
238
|
+
{
|
|
239
|
+
id: 'shape',
|
|
240
|
+
type: 'size-setting',
|
|
241
|
+
label: '',
|
|
242
|
+
devices: {
|
|
243
|
+
desktop: {
|
|
244
|
+
default: {
|
|
245
|
+
shape: 'square',
|
|
246
|
+
shapeValue: '1/1',
|
|
247
|
+
width: '100%',
|
|
248
|
+
height: undefined,
|
|
249
|
+
shapeLinked: true
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
settingConfig: {
|
|
254
|
+
width: {
|
|
255
|
+
displayOptions: [
|
|
256
|
+
'full'
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
hiddenSettings: [
|
|
261
|
+
'padding',
|
|
262
|
+
'gap'
|
|
263
|
+
]
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
id: 'shapeForFtOnly',
|
|
267
|
+
type: 'size-setting',
|
|
268
|
+
label: '',
|
|
269
|
+
devices: {
|
|
270
|
+
desktop: {
|
|
271
|
+
default: {
|
|
272
|
+
shape: 'square',
|
|
273
|
+
shapeValue: '1/1',
|
|
274
|
+
width: '100%',
|
|
275
|
+
height: undefined,
|
|
276
|
+
shapeLinked: true
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
settingConfig: {
|
|
281
|
+
width: {
|
|
282
|
+
displayOptions: [
|
|
283
|
+
'full'
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
hiddenSettings: [
|
|
288
|
+
'padding',
|
|
289
|
+
'gap'
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
id: 'shapeForBottom',
|
|
294
|
+
type: 'size-setting',
|
|
295
|
+
label: '',
|
|
296
|
+
devices: {
|
|
297
|
+
desktop: {
|
|
298
|
+
default: {
|
|
299
|
+
shape: 'square',
|
|
300
|
+
shapeValue: '1/1',
|
|
301
|
+
width: '20%',
|
|
302
|
+
height: undefined,
|
|
303
|
+
shapeLinked: true
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
settingConfig: {
|
|
308
|
+
width: {
|
|
309
|
+
displayOptions: [
|
|
310
|
+
'full',
|
|
311
|
+
'small',
|
|
312
|
+
'medium',
|
|
313
|
+
'large'
|
|
314
|
+
],
|
|
315
|
+
sizeConfig: {
|
|
316
|
+
small: '10%',
|
|
317
|
+
medium: '20%',
|
|
318
|
+
large: '25%'
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
hiddenSettings: [
|
|
323
|
+
'padding',
|
|
324
|
+
'gap'
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
id: 'shapeForInsideBottom',
|
|
329
|
+
type: 'size-setting',
|
|
330
|
+
label: '',
|
|
331
|
+
devices: {
|
|
332
|
+
desktop: {
|
|
333
|
+
default: {
|
|
334
|
+
shape: 'square',
|
|
335
|
+
shapeValue: '1/1',
|
|
336
|
+
width: '20%',
|
|
337
|
+
height: undefined,
|
|
338
|
+
shapeLinked: true
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
settingConfig: {
|
|
343
|
+
width: {
|
|
344
|
+
displayOptions: [
|
|
345
|
+
'small',
|
|
346
|
+
'medium',
|
|
347
|
+
'large'
|
|
348
|
+
],
|
|
349
|
+
sizeConfig: {
|
|
350
|
+
small: '10%',
|
|
351
|
+
medium: '20%',
|
|
352
|
+
large: '25%'
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
hiddenSettings: [
|
|
357
|
+
'padding',
|
|
358
|
+
'gap'
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
id: 'shapeForInside',
|
|
363
|
+
type: 'size-setting',
|
|
364
|
+
label: '',
|
|
365
|
+
devices: {
|
|
366
|
+
desktop: {
|
|
367
|
+
default: {
|
|
368
|
+
shape: 'square',
|
|
369
|
+
shapeValue: '1/1',
|
|
370
|
+
width: '20%',
|
|
371
|
+
height: undefined,
|
|
372
|
+
shapeLinked: true
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
settingConfig: {
|
|
377
|
+
width: {
|
|
378
|
+
displayOptions: [
|
|
379
|
+
'small',
|
|
380
|
+
'medium',
|
|
381
|
+
'large'
|
|
382
|
+
],
|
|
383
|
+
sizeConfig: {
|
|
384
|
+
small: '10%',
|
|
385
|
+
medium: '20%',
|
|
386
|
+
large: '25%'
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
hiddenSettings: [
|
|
391
|
+
'padding',
|
|
392
|
+
'gap'
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
id: 'shapeFor2Col',
|
|
397
|
+
type: 'size-setting',
|
|
398
|
+
label: '',
|
|
399
|
+
devices: {
|
|
400
|
+
desktop: {
|
|
401
|
+
default: {
|
|
402
|
+
shape: 'square',
|
|
403
|
+
shapeValue: '1/1',
|
|
404
|
+
width: '50%',
|
|
405
|
+
height: undefined,
|
|
406
|
+
shapeLinked: true
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
settingConfig: {
|
|
411
|
+
width: {
|
|
412
|
+
displayOptions: [
|
|
413
|
+
'full',
|
|
414
|
+
'small',
|
|
415
|
+
'medium',
|
|
416
|
+
'large'
|
|
417
|
+
],
|
|
418
|
+
sizeConfig: {
|
|
419
|
+
small: '25%',
|
|
420
|
+
medium: '33%',
|
|
421
|
+
large: '50%'
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
hiddenSettings: [
|
|
426
|
+
'padding',
|
|
427
|
+
'gap'
|
|
428
|
+
]
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
id: 'shapeFor1Col',
|
|
432
|
+
type: 'size-setting',
|
|
433
|
+
label: '',
|
|
434
|
+
devices: {
|
|
435
|
+
desktop: {
|
|
436
|
+
default: {
|
|
437
|
+
shape: 'square',
|
|
438
|
+
shapeValue: '1/1',
|
|
439
|
+
width: '100%',
|
|
440
|
+
height: undefined,
|
|
441
|
+
shapeLinked: true
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
settingConfig: {
|
|
446
|
+
width: {
|
|
447
|
+
displayOptions: [
|
|
448
|
+
'full',
|
|
449
|
+
'small',
|
|
450
|
+
'medium',
|
|
451
|
+
'large'
|
|
452
|
+
],
|
|
453
|
+
sizeConfig: {
|
|
454
|
+
small: '25%',
|
|
455
|
+
medium: '33%',
|
|
456
|
+
large: '50%'
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
hiddenSettings: [
|
|
461
|
+
'padding',
|
|
462
|
+
'gap'
|
|
463
|
+
]
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
id: 'layout',
|
|
467
|
+
type: 'option:illustration',
|
|
468
|
+
enableTooltip: true,
|
|
469
|
+
label: 'Image scale',
|
|
470
|
+
options: [
|
|
471
|
+
{
|
|
472
|
+
label: 'Fill image',
|
|
473
|
+
value: 'cover',
|
|
474
|
+
type: 'image',
|
|
475
|
+
svgName: 'gp-image-cover'
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
label: 'Fit image',
|
|
479
|
+
value: 'contain',
|
|
480
|
+
type: 'image',
|
|
481
|
+
svgName: 'gp-image-contain'
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
devices: getDefaultResponsive('cover')
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
id: 'itemSpacing',
|
|
488
|
+
label: 'Gallery Item Spacing',
|
|
489
|
+
type: 'input:slider',
|
|
490
|
+
units: [
|
|
491
|
+
'px'
|
|
492
|
+
],
|
|
493
|
+
devices: {
|
|
494
|
+
desktop: {
|
|
495
|
+
default: '8px'
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
id: 'corner',
|
|
501
|
+
type: 'radius-preset',
|
|
502
|
+
label: 'Corner',
|
|
503
|
+
default: {
|
|
504
|
+
btrr: '0px',
|
|
505
|
+
bblr: '0px',
|
|
506
|
+
bbrr: '0px',
|
|
507
|
+
btlr: '0px',
|
|
508
|
+
radiusType: 'none'
|
|
509
|
+
},
|
|
510
|
+
state: {
|
|
511
|
+
hover: true,
|
|
512
|
+
normal: true
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
];
|
|
516
|
+
|
|
517
|
+
exports.productGalleryImageSetting = productGalleryImageSetting;
|
|
518
|
+
exports.productGalleryImageStyle = productGalleryImageStyle;
|