@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,334 @@
|
|
|
1
|
+
import { productSelectDisplaySetting, productFeatureImageSetting, productFeatureImageStyle } from './ProductFeatureImage.js';
|
|
2
|
+
import { productGalleryImageSetting, productGalleryImageStyle } from './ProductGalleryImage.js';
|
|
3
|
+
|
|
4
|
+
const getDefaultResponsive = (defaultValue)=>{
|
|
5
|
+
return {
|
|
6
|
+
desktop: {
|
|
7
|
+
default: defaultValue
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
const ProductImageSettingsV2 = [
|
|
12
|
+
{
|
|
13
|
+
id: 'setting',
|
|
14
|
+
controls: [
|
|
15
|
+
{
|
|
16
|
+
id: 'displayByVariant',
|
|
17
|
+
label: 'Option Label',
|
|
18
|
+
type: 'toggle',
|
|
19
|
+
default: false
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: 'variantSelect',
|
|
23
|
+
type: 'variant:listing'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'select-display',
|
|
27
|
+
type: 'group',
|
|
28
|
+
label: 'Select images to display',
|
|
29
|
+
controls: productSelectDisplaySetting
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 'featured-image',
|
|
33
|
+
type: 'group',
|
|
34
|
+
label: 'Featured Image',
|
|
35
|
+
controls: productFeatureImageSetting
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'gallery-images',
|
|
39
|
+
type: 'group',
|
|
40
|
+
label: 'Gallery Images',
|
|
41
|
+
controls: productGalleryImageSetting
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'qualityType',
|
|
45
|
+
type: 'select',
|
|
46
|
+
label: 'Quality',
|
|
47
|
+
devices: {
|
|
48
|
+
desktop: {
|
|
49
|
+
default: 'high'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
options: [
|
|
53
|
+
{
|
|
54
|
+
title: 'Finest',
|
|
55
|
+
value: 'finest'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
title: 'High',
|
|
59
|
+
value: 'high'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title: 'Medium',
|
|
63
|
+
value: 'medium'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: 'Custom',
|
|
67
|
+
value: 'custom',
|
|
68
|
+
tooltip: 'You can choose it for advanced page loading optimization.'
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'preload',
|
|
74
|
+
type: 'toggle',
|
|
75
|
+
label: 'Preload',
|
|
76
|
+
default: false
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: 'qualityPercent',
|
|
80
|
+
type: 'input:slider',
|
|
81
|
+
label: '',
|
|
82
|
+
units: [
|
|
83
|
+
'%'
|
|
84
|
+
],
|
|
85
|
+
min: 100,
|
|
86
|
+
max: 400,
|
|
87
|
+
step: 50,
|
|
88
|
+
useOnlyUnitInit: true,
|
|
89
|
+
devices: {
|
|
90
|
+
desktop: {
|
|
91
|
+
default: 100
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: 'ftDotStyle',
|
|
97
|
+
label: 'Dot style',
|
|
98
|
+
type: 'option:illustration',
|
|
99
|
+
iconViewBox: '0 0 77 48',
|
|
100
|
+
enableItemBackground: true,
|
|
101
|
+
enableTooltip: true,
|
|
102
|
+
options: [
|
|
103
|
+
{
|
|
104
|
+
label: 'None',
|
|
105
|
+
value: 'none',
|
|
106
|
+
type: 'carousel-dot'
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: 'Inside',
|
|
110
|
+
value: 'inside',
|
|
111
|
+
type: 'carousel-dot',
|
|
112
|
+
svgName: 'gp-carousel-dot-inside'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
label: 'Outside',
|
|
116
|
+
value: 'outside',
|
|
117
|
+
type: 'carousel-dot',
|
|
118
|
+
svgName: 'gp-carousel-dot-outside'
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
devices: {
|
|
122
|
+
desktop: {
|
|
123
|
+
default: 'none'
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: 'ftDotSize',
|
|
129
|
+
label: 'Dots size',
|
|
130
|
+
type: 'input:stepper',
|
|
131
|
+
min: 1,
|
|
132
|
+
devices: {
|
|
133
|
+
desktop: {
|
|
134
|
+
default: 12
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 'ftDotGapToCarousel',
|
|
140
|
+
label: 'Gap to carousel',
|
|
141
|
+
type: 'input:unit',
|
|
142
|
+
useOnlyUnitInit: true,
|
|
143
|
+
units: [
|
|
144
|
+
'px'
|
|
145
|
+
],
|
|
146
|
+
min: 0,
|
|
147
|
+
devices: {
|
|
148
|
+
desktop: {
|
|
149
|
+
default: 16
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: 'ftDotColor',
|
|
155
|
+
label: 'Dot color',
|
|
156
|
+
type: 'colorpicker',
|
|
157
|
+
devices: {
|
|
158
|
+
desktop: {
|
|
159
|
+
default: 'bg-1'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: 'ftDotActiveColor',
|
|
165
|
+
label: 'Dot color active',
|
|
166
|
+
type: 'colorpicker',
|
|
167
|
+
devices: {
|
|
168
|
+
desktop: {
|
|
169
|
+
default: 'line-3'
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: 'style',
|
|
177
|
+
controls: [
|
|
178
|
+
{
|
|
179
|
+
id: 'position',
|
|
180
|
+
label: 'Layout',
|
|
181
|
+
type: 'layout-selector',
|
|
182
|
+
iconViewBox: '0 0 50 50',
|
|
183
|
+
enableItemBackground: true,
|
|
184
|
+
itemPerRow: 3,
|
|
185
|
+
itemSpacing: 'large',
|
|
186
|
+
enableItemOpacity: true,
|
|
187
|
+
options: [
|
|
188
|
+
{
|
|
189
|
+
label: 'Featured top',
|
|
190
|
+
value: 'bottom-center',
|
|
191
|
+
type: 'p-image-layout',
|
|
192
|
+
iconName: 'gp-product-image-layout-bottom'
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
label: 'Featured right',
|
|
196
|
+
value: 'left',
|
|
197
|
+
type: 'p-image-layout',
|
|
198
|
+
iconName: 'gp-product-image-layout-left'
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
label: 'Featured left',
|
|
202
|
+
value: 'right',
|
|
203
|
+
type: 'p-image-layout',
|
|
204
|
+
iconName: 'gp-product-image-layout-right'
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
label: 'Image list inside bottom',
|
|
208
|
+
value: 'inside-bottom',
|
|
209
|
+
type: 'p-image-layout',
|
|
210
|
+
iconName: 'gp-product-image-layout-bottom-inside'
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
label: 'Image list inside left',
|
|
214
|
+
value: 'inside-left',
|
|
215
|
+
type: 'p-image-layout',
|
|
216
|
+
iconName: 'gp-product-image-layout-left-inside'
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
label: 'Image list inside right',
|
|
220
|
+
value: 'inside-right',
|
|
221
|
+
type: 'p-image-layout',
|
|
222
|
+
iconName: 'gp-product-image-layout-right-inside'
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
label: 'Featured only',
|
|
226
|
+
value: 'only-feature',
|
|
227
|
+
type: 'p-image-layout',
|
|
228
|
+
iconName: 'gp-product-image-layout-featured-only'
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: 'Image list 1 col',
|
|
232
|
+
value: 'one-col',
|
|
233
|
+
type: 'p-image-layout',
|
|
234
|
+
iconName: 'gp-product-image-layout-one-col',
|
|
235
|
+
noPadding: 'y'
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
label: 'Image list 2 col',
|
|
239
|
+
value: 'two-col',
|
|
240
|
+
type: 'p-image-layout',
|
|
241
|
+
iconName: 'gp-product-image-layout-two-col'
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
devices: {
|
|
245
|
+
desktop: {
|
|
246
|
+
default: 'bottom-center'
|
|
247
|
+
},
|
|
248
|
+
mobile: {
|
|
249
|
+
default: 'bottom-center'
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: 'spacing',
|
|
255
|
+
label: 'Spacing Item',
|
|
256
|
+
type: 'input:slider',
|
|
257
|
+
units: [
|
|
258
|
+
'px'
|
|
259
|
+
],
|
|
260
|
+
devices: {
|
|
261
|
+
desktop: {
|
|
262
|
+
default: '8px'
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
id: 'ratioLayout',
|
|
268
|
+
label: 'Ratio',
|
|
269
|
+
type: 'grid-arrange',
|
|
270
|
+
devices: {
|
|
271
|
+
desktop: {
|
|
272
|
+
default: [
|
|
273
|
+
2,
|
|
274
|
+
10
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
id: 'ratioLayoutRight',
|
|
281
|
+
label: 'Ratio',
|
|
282
|
+
type: 'grid-arrange',
|
|
283
|
+
devices: {
|
|
284
|
+
desktop: {
|
|
285
|
+
default: [
|
|
286
|
+
10,
|
|
287
|
+
2
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
id: 'dimensions',
|
|
294
|
+
type: 'group',
|
|
295
|
+
label: 'Featured Image',
|
|
296
|
+
controls: productFeatureImageStyle
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
id: 'galleryStyles',
|
|
300
|
+
type: 'group',
|
|
301
|
+
label: 'Gallery',
|
|
302
|
+
controls: productGalleryImageStyle
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
id: 'align',
|
|
306
|
+
label: 'Alignment',
|
|
307
|
+
type: 'segment',
|
|
308
|
+
options: [
|
|
309
|
+
{
|
|
310
|
+
label: 'Start',
|
|
311
|
+
value: 'flex-start',
|
|
312
|
+
type: 'align-flex',
|
|
313
|
+
tooltip: 'Align left'
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
label: 'Center',
|
|
317
|
+
value: 'center',
|
|
318
|
+
type: 'align-flex',
|
|
319
|
+
tooltip: 'Align center'
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
label: 'End',
|
|
323
|
+
value: 'flex-end',
|
|
324
|
+
type: 'align-flex',
|
|
325
|
+
tooltip: 'Align right'
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
devices: getDefaultResponsive('flex-start')
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
];
|
|
333
|
+
|
|
334
|
+
export { ProductImageSettingsV2 };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
const FeatureNavigation = {
|
|
2
|
+
type: 'combo',
|
|
3
|
+
getValueFromSettingID: 'ftNavigationPosition',
|
|
4
|
+
getIconFromSettingID: 'ftArrowIcon',
|
|
5
|
+
defaultValueWhenClear: 'none',
|
|
6
|
+
compoDefaultValue: 'outside',
|
|
7
|
+
label: {
|
|
8
|
+
en: 'Navigation'
|
|
9
|
+
},
|
|
10
|
+
controls: [
|
|
11
|
+
{
|
|
12
|
+
type: 'group',
|
|
13
|
+
label: {
|
|
14
|
+
en: 'Layout'
|
|
15
|
+
},
|
|
16
|
+
controls: [
|
|
17
|
+
{
|
|
18
|
+
label: {
|
|
19
|
+
en: 'Choose'
|
|
20
|
+
},
|
|
21
|
+
setting: {
|
|
22
|
+
id: 'ftNavigationPosition'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: 'group',
|
|
29
|
+
label: {
|
|
30
|
+
en: 'Icon'
|
|
31
|
+
},
|
|
32
|
+
conditionDisplay: 'ftNavigationPosition !== "none"',
|
|
33
|
+
controls: [
|
|
34
|
+
{
|
|
35
|
+
label: {
|
|
36
|
+
en: 'Choose'
|
|
37
|
+
},
|
|
38
|
+
setting: {
|
|
39
|
+
id: 'ftArrowIcon'
|
|
40
|
+
},
|
|
41
|
+
options: {
|
|
42
|
+
clearButton: false
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: {
|
|
47
|
+
en: 'Size'
|
|
48
|
+
},
|
|
49
|
+
setting: {
|
|
50
|
+
id: 'ftArrowIconSize'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: {
|
|
55
|
+
en: 'Color'
|
|
56
|
+
},
|
|
57
|
+
setting: {
|
|
58
|
+
id: 'ftArrowIconColor'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: 'group',
|
|
65
|
+
label: {
|
|
66
|
+
en: 'Button'
|
|
67
|
+
},
|
|
68
|
+
conditionDisplay: 'ftNavigationPosition !== "none"',
|
|
69
|
+
controls: [
|
|
70
|
+
{
|
|
71
|
+
label: {
|
|
72
|
+
en: 'Background'
|
|
73
|
+
},
|
|
74
|
+
setting: {
|
|
75
|
+
id: 'ftArrowNavColor'
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
type: 'group',
|
|
82
|
+
label: {
|
|
83
|
+
en: 'Shape'
|
|
84
|
+
},
|
|
85
|
+
conditionDisplay: 'ftNavigationPosition !== "none"',
|
|
86
|
+
controls: [
|
|
87
|
+
{
|
|
88
|
+
label: {
|
|
89
|
+
en: 'Border'
|
|
90
|
+
},
|
|
91
|
+
setting: {
|
|
92
|
+
id: 'ftArrowNavBorder'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: {
|
|
97
|
+
en: 'Corner'
|
|
98
|
+
},
|
|
99
|
+
setting: {
|
|
100
|
+
id: 'ftArrowNavRadius'
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: {
|
|
105
|
+
en: 'Shadow'
|
|
106
|
+
},
|
|
107
|
+
setting: {
|
|
108
|
+
id: 'ftArrowNavShadow'
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export { FeatureNavigation };
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
const ImageListNavigation = {
|
|
2
|
+
type: 'combo',
|
|
3
|
+
iconName: 'polaris-edit',
|
|
4
|
+
getValueFromSettingID: 'navigationPosition',
|
|
5
|
+
getIconFromSettingID: 'arrowIcon',
|
|
6
|
+
defaultValueWhenClear: 'none',
|
|
7
|
+
compoDefaultValue: 'outside',
|
|
8
|
+
label: {
|
|
9
|
+
en: 'Navigation'
|
|
10
|
+
},
|
|
11
|
+
popoverLabel: {
|
|
12
|
+
en: 'Navigation'
|
|
13
|
+
},
|
|
14
|
+
controls: [
|
|
15
|
+
{
|
|
16
|
+
type: 'group',
|
|
17
|
+
label: {
|
|
18
|
+
en: 'Layout'
|
|
19
|
+
},
|
|
20
|
+
controls: [
|
|
21
|
+
{
|
|
22
|
+
label: {
|
|
23
|
+
en: 'Choose'
|
|
24
|
+
},
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'navigationPosition'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'group',
|
|
33
|
+
label: {
|
|
34
|
+
en: 'Icon'
|
|
35
|
+
},
|
|
36
|
+
conditionDisplay: `navigationPosition !== "none"`,
|
|
37
|
+
controls: [
|
|
38
|
+
{
|
|
39
|
+
label: {
|
|
40
|
+
en: 'Choose'
|
|
41
|
+
},
|
|
42
|
+
setting: {
|
|
43
|
+
id: 'arrowIcon'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: {
|
|
48
|
+
en: 'Size'
|
|
49
|
+
},
|
|
50
|
+
setting: {
|
|
51
|
+
id: 'arrowIconSize'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: {
|
|
56
|
+
en: 'Color'
|
|
57
|
+
},
|
|
58
|
+
setting: {
|
|
59
|
+
id: 'arrowIconColor'
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
type: 'group',
|
|
66
|
+
label: {
|
|
67
|
+
en: 'Button'
|
|
68
|
+
},
|
|
69
|
+
conditionDisplay: `navigationPosition !== "none"`,
|
|
70
|
+
controls: [
|
|
71
|
+
{
|
|
72
|
+
label: {
|
|
73
|
+
en: 'Background'
|
|
74
|
+
},
|
|
75
|
+
setting: {
|
|
76
|
+
id: 'arrowNavColor'
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
type: 'group',
|
|
83
|
+
label: {
|
|
84
|
+
en: 'Shape'
|
|
85
|
+
},
|
|
86
|
+
conditionDisplay: `navigationPosition !== "none"`,
|
|
87
|
+
controls: [
|
|
88
|
+
{
|
|
89
|
+
label: {
|
|
90
|
+
en: 'Border'
|
|
91
|
+
},
|
|
92
|
+
setting: {
|
|
93
|
+
id: 'arrowNavBorder'
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: {
|
|
98
|
+
en: 'Corner'
|
|
99
|
+
},
|
|
100
|
+
setting: {
|
|
101
|
+
id: 'arrowNavRadius'
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
label: {
|
|
106
|
+
en: 'Shadow'
|
|
107
|
+
},
|
|
108
|
+
setting: {
|
|
109
|
+
id: 'arrowNavShadow'
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export { ImageListNavigation };
|