@gem-sdk/components 2.0.0-dev.370 → 2.0.0-dev.371
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 +2 -2
- package/dist/cjs/button/setting/configs/settings.js +0 -14
- package/dist/cjs/carousel/arrow/Arrow.js +52 -0
- package/dist/cjs/carousel/arrow/Arrow.liquid.js +46 -0
- package/dist/cjs/carousel/{components/common/arrow.js → arrow/common/common.js} +13 -11
- package/dist/cjs/carousel/arrow/common/getClass.js +50 -0
- package/dist/cjs/carousel/arrow/common/getStyle.js +84 -0
- package/dist/cjs/carousel/carousel-item/CarouselItem.js +32 -0
- package/dist/cjs/carousel/carousel-item/CarouselItem.liquid.js +38 -0
- package/dist/cjs/carousel/carousel-item/common/getClass.js +29 -0
- package/dist/cjs/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +30 -47
- package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +14 -0
- package/dist/cjs/carousel/components/const/index.js +5 -0
- package/dist/cjs/carousel/dots/Dots.js +51 -0
- package/dist/cjs/carousel/dots/Dots.liquid.js +26 -0
- package/dist/cjs/carousel/dots/common/common.js +46 -0
- package/dist/cjs/carousel/dots/common/getClass.js +40 -0
- package/dist/cjs/carousel/dots/common/getStyle.js +33 -0
- package/dist/cjs/carousel/dots/hook/useDotsSetting.js +21 -0
- package/dist/cjs/carousel/index.js +1 -2
- package/dist/cjs/carousel/next.js +2 -2
- package/dist/cjs/carousel/root/Carousel.js +129 -0
- package/dist/cjs/carousel/root/Carousel.liquid.js +104 -0
- package/dist/cjs/carousel/root/common/getAttr.js +25 -0
- package/dist/cjs/carousel/root/common/getClass.js +135 -0
- package/dist/cjs/carousel/root/common/getData.js +56 -0
- package/dist/cjs/carousel/root/common/getStyle.js +64 -0
- package/dist/cjs/carousel/{components/Carousel.js → root/hook/useCarousel.js} +153 -321
- package/dist/cjs/carousel/setting/Carousel.js +8 -1555
- package/dist/cjs/carousel/setting/configs/presets.js +380 -0
- package/dist/cjs/carousel/setting/configs/settingV2.js +771 -0
- package/dist/cjs/carousel/setting/configs/uiV1.js +434 -0
- package/dist/cjs/carousel/setting/configs/uiV2.js +627 -0
- package/dist/cjs/common/components/NoDataState.js +5 -5
- package/dist/cjs/grid/row/commons/common.js +3 -3
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.liquid.js +2 -2
- package/dist/cjs/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
- package/dist/cjs/product/components/ProductImages/ProductImagesLightBox.js +2 -2
- package/dist/cjs/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
- package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +1 -0
- package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/common/productGallery.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
- package/dist/cjs/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
- package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
- package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
- package/dist/cjs/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
- package/dist/cjs/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
- package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.js +2 -2
- package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
- package/dist/cjs/product/components/ProductList/common/index.js +5 -5
- package/dist/cjs/product/components/ProductVariants/common/main/getAttr.js +1 -1
- package/dist/cjs/text/components/Text.js +3 -3
- package/dist/esm/builder.js +2 -2
- package/dist/esm/button/setting/configs/settings.js +0 -14
- package/dist/esm/carousel/arrow/Arrow.js +48 -0
- package/dist/esm/carousel/arrow/Arrow.liquid.js +42 -0
- package/dist/esm/carousel/{components/common/arrow.js → arrow/common/common.js} +12 -10
- package/dist/esm/carousel/arrow/common/getClass.js +48 -0
- package/dist/esm/carousel/arrow/common/getStyle.js +82 -0
- package/dist/esm/carousel/carousel-item/CarouselItem.js +28 -0
- package/dist/esm/carousel/carousel-item/CarouselItem.liquid.js +34 -0
- package/dist/esm/carousel/carousel-item/common/getClass.js +27 -0
- package/dist/esm/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +31 -46
- package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +12 -0
- package/dist/esm/carousel/components/const/index.js +3 -0
- package/dist/esm/carousel/dots/Dots.js +47 -0
- package/dist/esm/carousel/dots/Dots.liquid.js +22 -0
- package/dist/esm/carousel/dots/common/common.js +43 -0
- package/dist/esm/carousel/dots/common/getClass.js +38 -0
- package/dist/esm/carousel/dots/common/getStyle.js +31 -0
- package/dist/esm/carousel/dots/hook/useDotsSetting.js +19 -0
- package/dist/esm/carousel/index.js +1 -2
- package/dist/esm/carousel/next.js +2 -2
- package/dist/esm/carousel/root/Carousel.js +125 -0
- package/dist/esm/carousel/root/Carousel.liquid.js +100 -0
- package/dist/esm/carousel/root/common/getAttr.js +23 -0
- package/dist/esm/carousel/root/common/getClass.js +133 -0
- package/dist/esm/carousel/root/common/getData.js +54 -0
- package/dist/esm/carousel/root/common/getStyle.js +62 -0
- package/dist/esm/carousel/{components/Carousel.js → root/hook/useCarousel.js} +150 -316
- package/dist/esm/carousel/setting/Carousel.js +8 -1555
- package/dist/esm/carousel/setting/configs/presets.js +378 -0
- package/dist/esm/carousel/setting/configs/settingV2.js +769 -0
- package/dist/esm/carousel/setting/configs/uiV1.js +432 -0
- package/dist/esm/carousel/setting/configs/uiV2.js +625 -0
- package/dist/esm/common/components/NoDataState.js +6 -6
- package/dist/esm/grid/row/commons/common.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.liquid.js +2 -2
- package/dist/esm/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
- package/dist/esm/product/components/ProductImages/ProductImagesLightBox.js +2 -2
- package/dist/esm/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
- package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +1 -0
- package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/common/productGallery.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
- package/dist/esm/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
- package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
- package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
- package/dist/esm/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
- package/dist/esm/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
- package/dist/esm/product/components/ProductList/ProductListCarouselLayout.js +2 -2
- package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
- package/dist/esm/product/components/ProductList/common/index.js +3 -3
- package/dist/esm/product/components/ProductVariants/common/main/getAttr.js +1 -1
- package/dist/esm/text/components/Text.js +4 -4
- package/dist/types/index.d.ts +164 -67
- package/package.json +3 -3
- package/dist/cjs/carousel/components/Arrow.js +0 -110
- package/dist/cjs/carousel/components/Arrow.liquid.js +0 -103
- package/dist/cjs/carousel/components/Carousel.liquid.js +0 -256
- package/dist/cjs/carousel/components/CarouselItem.js +0 -88
- package/dist/cjs/carousel/components/Dots.js +0 -69
- package/dist/cjs/carousel/components/Dots.liquid.js +0 -23
- package/dist/cjs/carousel/components/common/dots.js +0 -57
- package/dist/esm/carousel/components/Arrow.js +0 -106
- package/dist/esm/carousel/components/Arrow.liquid.js +0 -99
- package/dist/esm/carousel/components/Carousel.liquid.js +0 -252
- package/dist/esm/carousel/components/CarouselItem.js +0 -84
- package/dist/esm/carousel/components/Dots.js +0 -65
- package/dist/esm/carousel/components/Dots.liquid.js +0 -19
- package/dist/esm/carousel/components/common/dots.js +0 -53
|
@@ -0,0 +1,771 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var AnimationPlugin = require('../../components/plugins/AnimationPlugin.js');
|
|
4
|
+
|
|
5
|
+
const CarouselSettingsV2 = [
|
|
6
|
+
{
|
|
7
|
+
id: 'setting',
|
|
8
|
+
controls: [
|
|
9
|
+
{
|
|
10
|
+
id: 'itemNumber',
|
|
11
|
+
label: '',
|
|
12
|
+
type: 'carousel-layout-selector',
|
|
13
|
+
devices: {
|
|
14
|
+
desktop: {
|
|
15
|
+
default: 4
|
|
16
|
+
},
|
|
17
|
+
tablet: {
|
|
18
|
+
default: 2
|
|
19
|
+
},
|
|
20
|
+
mobile: {
|
|
21
|
+
default: 2
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'sneakPeak',
|
|
27
|
+
label: 'Sneak peak',
|
|
28
|
+
type: 'sneak-peak',
|
|
29
|
+
devices: {
|
|
30
|
+
desktop: {
|
|
31
|
+
default: false
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: 'sneakPeakType',
|
|
37
|
+
label: '',
|
|
38
|
+
type: 'sneak-peak-type',
|
|
39
|
+
itemPerRow: 2,
|
|
40
|
+
iconViewBox: '0 0 118 52',
|
|
41
|
+
enableItemBackground: true,
|
|
42
|
+
enableTooltip: true,
|
|
43
|
+
options: [
|
|
44
|
+
{
|
|
45
|
+
value: 'forward',
|
|
46
|
+
type: 'sneak-peak-offset'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
value: 'center',
|
|
50
|
+
type: 'sneak-peak-offset'
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
devices: {
|
|
54
|
+
desktop: {
|
|
55
|
+
default: 'forward'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: 'sneakPeakOffsetForward',
|
|
61
|
+
label: 'Ratio',
|
|
62
|
+
type: 'input:slider',
|
|
63
|
+
min: 1,
|
|
64
|
+
max: 100,
|
|
65
|
+
devices: {
|
|
66
|
+
desktop: {
|
|
67
|
+
default: 50
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: 'sneakPeakOffsetCenter',
|
|
73
|
+
label: 'Ratio',
|
|
74
|
+
type: 'input:slider',
|
|
75
|
+
min: 1,
|
|
76
|
+
max: 100,
|
|
77
|
+
devices: {
|
|
78
|
+
desktop: {
|
|
79
|
+
default: 50
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 'childItem',
|
|
85
|
+
label: 'Item management',
|
|
86
|
+
type: 'child-item',
|
|
87
|
+
default: [
|
|
88
|
+
'Slide 1',
|
|
89
|
+
'Slide 2',
|
|
90
|
+
'Slide 3',
|
|
91
|
+
'Slide 4',
|
|
92
|
+
'Slide 5',
|
|
93
|
+
'Slide 6'
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'vertical',
|
|
98
|
+
label: 'Vertical layout',
|
|
99
|
+
type: 'toggle',
|
|
100
|
+
devices: {
|
|
101
|
+
desktop: {
|
|
102
|
+
default: false
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
id: 'controlOverContent',
|
|
108
|
+
label: 'Next & previous position',
|
|
109
|
+
type: 'segment',
|
|
110
|
+
options: [
|
|
111
|
+
{
|
|
112
|
+
label: 'Inside',
|
|
113
|
+
value: true
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
label: 'Outside',
|
|
117
|
+
value: false
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
devices: {
|
|
121
|
+
desktop: {
|
|
122
|
+
default: true
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 'dot',
|
|
128
|
+
label: 'Dots',
|
|
129
|
+
type: 'toggle',
|
|
130
|
+
devices: {
|
|
131
|
+
desktop: {
|
|
132
|
+
default: true
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
id: 'dotStyle',
|
|
138
|
+
label: 'Dot style',
|
|
139
|
+
type: 'option:value',
|
|
140
|
+
options: [
|
|
141
|
+
{
|
|
142
|
+
label: 'Inside',
|
|
143
|
+
value: 'inside'
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
label: 'Outside',
|
|
147
|
+
value: 'outside'
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
devices: {
|
|
151
|
+
desktop: {
|
|
152
|
+
default: 'inside'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
id: 'dotSize',
|
|
158
|
+
label: 'Dots size',
|
|
159
|
+
type: 'input:stepper',
|
|
160
|
+
min: 1,
|
|
161
|
+
devices: {
|
|
162
|
+
desktop: {
|
|
163
|
+
default: 12
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: 'dotGapToCarousel',
|
|
169
|
+
label: 'Gap to carousel',
|
|
170
|
+
type: 'input:number',
|
|
171
|
+
min: 0,
|
|
172
|
+
devices: {
|
|
173
|
+
desktop: {
|
|
174
|
+
default: 16
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: 'dotColor',
|
|
180
|
+
label: 'Dot color',
|
|
181
|
+
type: 'color-picker-v2',
|
|
182
|
+
devices: {
|
|
183
|
+
desktop: {
|
|
184
|
+
default: 'bg-1'
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
id: 'dotActiveColor',
|
|
190
|
+
label: 'Dot color active',
|
|
191
|
+
type: 'color-picker-v2',
|
|
192
|
+
devices: {
|
|
193
|
+
desktop: {
|
|
194
|
+
default: 'line-3'
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: 'navigationEnable',
|
|
200
|
+
type: 'toggle',
|
|
201
|
+
devices: {
|
|
202
|
+
desktop: {
|
|
203
|
+
default: true
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: 'navigationStyle',
|
|
209
|
+
type: 'option:illustration',
|
|
210
|
+
iconViewBox: '0 0 77 48',
|
|
211
|
+
enableItemBackground: true,
|
|
212
|
+
label: 'Navigation style',
|
|
213
|
+
enableTooltip: true,
|
|
214
|
+
options: [
|
|
215
|
+
{
|
|
216
|
+
label: 'Display outside navigation',
|
|
217
|
+
value: 'outside',
|
|
218
|
+
type: 'slide-control',
|
|
219
|
+
svgName: 'gp-slide-control-outside'
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
label: 'Display inside navigation',
|
|
223
|
+
value: 'inside',
|
|
224
|
+
type: 'slide-control',
|
|
225
|
+
svgName: 'gp-slide-control-inside'
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
devices: {
|
|
229
|
+
desktop: {
|
|
230
|
+
default: 'inside'
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: 'arrowCustom',
|
|
236
|
+
type: 'icon',
|
|
237
|
+
hideInput: true,
|
|
238
|
+
hideLabel: true,
|
|
239
|
+
default: `<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
240
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.62204 5.13313C7.78476 4.95562 8.04858 4.95562 8.21129 5.13313L12.378 9.67859C12.5407 9.8561 12.5407 10.1439 12.378 10.3214L8.21129 14.8669C8.04858 15.0444 7.78476 15.0444 7.62204 14.8669C7.45932 14.6894 7.45932 14.4016 7.62204 14.224L11.4941 10L7.62204 5.77596C7.45932 5.59845 7.45932 5.31064 7.62204 5.13313Z"/>
|
|
241
|
+
</svg>
|
|
242
|
+
`
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
id: 'arrowCustomColor',
|
|
246
|
+
label: 'Icon color',
|
|
247
|
+
type: 'color-picker-v2',
|
|
248
|
+
default: '#000000'
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: 'arrowIconSize',
|
|
252
|
+
label: 'Number per show',
|
|
253
|
+
type: 'input:stepper',
|
|
254
|
+
min: 1,
|
|
255
|
+
devices: {
|
|
256
|
+
desktop: {
|
|
257
|
+
default: 24
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
id: 'arrowButtonSize',
|
|
263
|
+
type: 'size-setting',
|
|
264
|
+
label: '',
|
|
265
|
+
devices: {
|
|
266
|
+
desktop: {
|
|
267
|
+
default: {
|
|
268
|
+
shapeValue: '1/1',
|
|
269
|
+
shapeLinked: true,
|
|
270
|
+
width: '32px',
|
|
271
|
+
height: '32px',
|
|
272
|
+
padding: {
|
|
273
|
+
linked: true
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
lockShapeValue: true,
|
|
279
|
+
hiddenShowMore: true,
|
|
280
|
+
hiddenSettings: [
|
|
281
|
+
'gap',
|
|
282
|
+
'proportion',
|
|
283
|
+
'padding'
|
|
284
|
+
],
|
|
285
|
+
settingConfig: {
|
|
286
|
+
width: {
|
|
287
|
+
name: 'Width',
|
|
288
|
+
units: [
|
|
289
|
+
'px'
|
|
290
|
+
],
|
|
291
|
+
displayOptions: [
|
|
292
|
+
'small',
|
|
293
|
+
'medium',
|
|
294
|
+
'large'
|
|
295
|
+
],
|
|
296
|
+
sizeConfig: {
|
|
297
|
+
small: '24px',
|
|
298
|
+
medium: '32px',
|
|
299
|
+
large: '40px'
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
height: {
|
|
303
|
+
name: 'Height',
|
|
304
|
+
units: [
|
|
305
|
+
'px'
|
|
306
|
+
],
|
|
307
|
+
displayOptions: [
|
|
308
|
+
'small',
|
|
309
|
+
'medium',
|
|
310
|
+
'large',
|
|
311
|
+
'full-height'
|
|
312
|
+
],
|
|
313
|
+
sizeConfig: {
|
|
314
|
+
small: '24px',
|
|
315
|
+
medium: '32px',
|
|
316
|
+
large: '40px',
|
|
317
|
+
full: '100%'
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
padding: {
|
|
321
|
+
paddingConfig: {
|
|
322
|
+
small: {
|
|
323
|
+
vertical: '2px',
|
|
324
|
+
horizontal: '2px'
|
|
325
|
+
},
|
|
326
|
+
medium: {
|
|
327
|
+
vertical: '4px',
|
|
328
|
+
horizontal: '4px'
|
|
329
|
+
},
|
|
330
|
+
large: {
|
|
331
|
+
vertical: '8px',
|
|
332
|
+
horizontal: '8px'
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
sizePaddingInput: 'small'
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
id: 'arrowBackgroundColor',
|
|
341
|
+
label: 'Background Color',
|
|
342
|
+
type: 'color-picker-v2',
|
|
343
|
+
default: 'transparent'
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
id: 'arrowBorder',
|
|
347
|
+
type: 'border-v2',
|
|
348
|
+
label: 'Border',
|
|
349
|
+
devices: {
|
|
350
|
+
desktop: {
|
|
351
|
+
default: {
|
|
352
|
+
borderType: 'none',
|
|
353
|
+
border: 'none',
|
|
354
|
+
borderWidth: '1px',
|
|
355
|
+
width: '1px 1px 1px 1px',
|
|
356
|
+
isCustom: true
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
id: 'arrowShadow',
|
|
363
|
+
type: 'shadow-v2',
|
|
364
|
+
devices: {
|
|
365
|
+
desktop: {
|
|
366
|
+
default: {
|
|
367
|
+
type: 'none',
|
|
368
|
+
distance: '4px',
|
|
369
|
+
blur: '12px',
|
|
370
|
+
spread: '0px',
|
|
371
|
+
color: 'rgba(0, 0, 0, 0.20)',
|
|
372
|
+
angle: 90
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
id: 'roundedArrow',
|
|
379
|
+
type: 'corner-v2',
|
|
380
|
+
label: 'Border Radius',
|
|
381
|
+
devices: {
|
|
382
|
+
desktop: {
|
|
383
|
+
default: {
|
|
384
|
+
btrr: '0px',
|
|
385
|
+
bblr: '0px',
|
|
386
|
+
bbrr: '0px',
|
|
387
|
+
btlr: '0px',
|
|
388
|
+
radiusType: 'none'
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
compoDefaultValue: {
|
|
393
|
+
desktop: {
|
|
394
|
+
default: {
|
|
395
|
+
btrr: '8px',
|
|
396
|
+
bblr: '8px',
|
|
397
|
+
bbrr: '8px',
|
|
398
|
+
btlr: '8px',
|
|
399
|
+
radiusType: 'rounded'
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
id: 'arrowGapToEachSide',
|
|
406
|
+
label: 'Gap to each side',
|
|
407
|
+
type: 'input:number',
|
|
408
|
+
default: '16'
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
id: 'showWhenHover',
|
|
412
|
+
label: 'Only show when hover',
|
|
413
|
+
type: 'toggle',
|
|
414
|
+
default: false
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
id: 'rtl',
|
|
418
|
+
label: 'Direction',
|
|
419
|
+
type: 'option:value',
|
|
420
|
+
options: [
|
|
421
|
+
{
|
|
422
|
+
value: true,
|
|
423
|
+
label: 'Left to right',
|
|
424
|
+
iconName: 'polaris-arrow-right'
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
value: false,
|
|
428
|
+
iconName: 'polaris-arrow-left',
|
|
429
|
+
label: 'Right to left'
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
default: false
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
id: 'autoplay',
|
|
436
|
+
label: 'Autoplay',
|
|
437
|
+
type: 'toggle',
|
|
438
|
+
default: false
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
id: 'autoplayTimeout',
|
|
442
|
+
label: 'Time out',
|
|
443
|
+
type: 'range',
|
|
444
|
+
min: 1,
|
|
445
|
+
max: 10,
|
|
446
|
+
step: 0.1,
|
|
447
|
+
default: 2,
|
|
448
|
+
hide: true,
|
|
449
|
+
hideUnit: true,
|
|
450
|
+
useOnlyUnitInit: true,
|
|
451
|
+
ignoreMax: true
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
id: 'pauseOnHover',
|
|
455
|
+
label: 'Pause On Hover',
|
|
456
|
+
type: 'toggle',
|
|
457
|
+
default: true,
|
|
458
|
+
hide: true
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
id: 'runPreview',
|
|
462
|
+
type: 'play-pause',
|
|
463
|
+
hideLabel: true,
|
|
464
|
+
default: false
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
id: 'enableDrag',
|
|
468
|
+
label: 'Drag to scroll',
|
|
469
|
+
type: 'toggle',
|
|
470
|
+
devices: {
|
|
471
|
+
desktop: {
|
|
472
|
+
default: false
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
id: 'loop',
|
|
478
|
+
label: 'Infinity loop',
|
|
479
|
+
type: 'toggle',
|
|
480
|
+
devices: {
|
|
481
|
+
desktop: {
|
|
482
|
+
default: false
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
id: 'animationMode',
|
|
488
|
+
label: 'Animation',
|
|
489
|
+
type: 'select',
|
|
490
|
+
default: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value,
|
|
491
|
+
options: [
|
|
492
|
+
{
|
|
493
|
+
label: 'Ease in',
|
|
494
|
+
value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
label: 'Ease out',
|
|
498
|
+
value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
label: 'Ease in out',
|
|
502
|
+
value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN_OUT.value
|
|
503
|
+
}
|
|
504
|
+
]
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
id: 'background',
|
|
508
|
+
type: 'background-media-combo',
|
|
509
|
+
devices: {
|
|
510
|
+
desktop: {
|
|
511
|
+
default: {
|
|
512
|
+
type: 'color',
|
|
513
|
+
color: undefined,
|
|
514
|
+
image: {
|
|
515
|
+
src: '',
|
|
516
|
+
width: 0,
|
|
517
|
+
height: 0
|
|
518
|
+
},
|
|
519
|
+
size: 'cover',
|
|
520
|
+
position: {
|
|
521
|
+
x: 50,
|
|
522
|
+
y: 50
|
|
523
|
+
},
|
|
524
|
+
repeat: 'no-repeat',
|
|
525
|
+
attachment: 'scroll'
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
compoDefaultValue: {
|
|
530
|
+
desktop: {
|
|
531
|
+
default: {
|
|
532
|
+
type: 'color',
|
|
533
|
+
color: '#0D0D0D',
|
|
534
|
+
image: {
|
|
535
|
+
src: '',
|
|
536
|
+
width: 0,
|
|
537
|
+
height: 0
|
|
538
|
+
},
|
|
539
|
+
size: 'cover',
|
|
540
|
+
position: {
|
|
541
|
+
x: 50,
|
|
542
|
+
y: 50
|
|
543
|
+
},
|
|
544
|
+
repeat: 'no-repeat',
|
|
545
|
+
attachment: 'scroll'
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
id: 'label',
|
|
552
|
+
label: 'Option Label',
|
|
553
|
+
type: 'toggle',
|
|
554
|
+
default: true
|
|
555
|
+
}
|
|
556
|
+
]
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
id: 'style',
|
|
560
|
+
controls: [
|
|
561
|
+
{
|
|
562
|
+
id: 'backgroundColor',
|
|
563
|
+
type: 'color-picker-v2',
|
|
564
|
+
devices: {
|
|
565
|
+
desktop: {
|
|
566
|
+
default: undefined
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
compoDefaultValue: {
|
|
570
|
+
desktop: {
|
|
571
|
+
default: '#0D0D0D'
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
enableGradient: true
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
id: 'backgroundImage',
|
|
578
|
+
type: 'background-image',
|
|
579
|
+
devices: {
|
|
580
|
+
desktop: {
|
|
581
|
+
default: {}
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
compoDefaultValue: {
|
|
585
|
+
desktop: {
|
|
586
|
+
default: {
|
|
587
|
+
image: {
|
|
588
|
+
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
589
|
+
width: 1200,
|
|
590
|
+
height: 480
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
id: 'playSpeed',
|
|
598
|
+
label: 'Slide speed',
|
|
599
|
+
type: 'input:unit',
|
|
600
|
+
useOnlyUnitInit: true,
|
|
601
|
+
min: 1,
|
|
602
|
+
units: [
|
|
603
|
+
'ms'
|
|
604
|
+
],
|
|
605
|
+
default: 500
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
id: 'sizeSetting',
|
|
609
|
+
type: 'size-setting',
|
|
610
|
+
label: '',
|
|
611
|
+
devices: {
|
|
612
|
+
desktop: {
|
|
613
|
+
default: {
|
|
614
|
+
shapeLinked: false,
|
|
615
|
+
width: 'default',
|
|
616
|
+
height: 'auto'
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
settingConfig: {
|
|
621
|
+
width: {
|
|
622
|
+
displayOptions: [
|
|
623
|
+
'full',
|
|
624
|
+
'default'
|
|
625
|
+
],
|
|
626
|
+
name: 'Width'
|
|
627
|
+
},
|
|
628
|
+
height: {
|
|
629
|
+
displayOptions: [
|
|
630
|
+
'auto',
|
|
631
|
+
'small',
|
|
632
|
+
'medium',
|
|
633
|
+
'large'
|
|
634
|
+
],
|
|
635
|
+
name: 'Height',
|
|
636
|
+
sizeConfig: {
|
|
637
|
+
small: '300px',
|
|
638
|
+
medium: '500px',
|
|
639
|
+
large: '700px'
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
hiddenSettings: [
|
|
644
|
+
'padding',
|
|
645
|
+
'gap',
|
|
646
|
+
'shape'
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
id: 'align',
|
|
651
|
+
label: 'Align',
|
|
652
|
+
type: 'option:value',
|
|
653
|
+
options: [
|
|
654
|
+
{
|
|
655
|
+
label: 'Left',
|
|
656
|
+
value: 'left',
|
|
657
|
+
type: 'align',
|
|
658
|
+
tooltip: 'Align left',
|
|
659
|
+
iconName: 'gp-align-left'
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
label: 'Center',
|
|
663
|
+
value: 'center',
|
|
664
|
+
type: 'align',
|
|
665
|
+
tooltip: 'Align center',
|
|
666
|
+
iconName: 'gp-align-center'
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
label: 'Right',
|
|
670
|
+
value: 'right',
|
|
671
|
+
type: 'align',
|
|
672
|
+
tooltip: 'Align right',
|
|
673
|
+
iconName: 'gp-align-right'
|
|
674
|
+
}
|
|
675
|
+
],
|
|
676
|
+
devices: {
|
|
677
|
+
desktop: {
|
|
678
|
+
default: 'center'
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
id: 'borderContent',
|
|
684
|
+
type: 'border-v2',
|
|
685
|
+
label: 'Border',
|
|
686
|
+
default: {
|
|
687
|
+
borderType: 'none',
|
|
688
|
+
border: 'none',
|
|
689
|
+
width: '1px 1px 1px 1px',
|
|
690
|
+
position: 'all',
|
|
691
|
+
borderWidth: '1px',
|
|
692
|
+
color: '#121212',
|
|
693
|
+
isCustom: true
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
id: 'roundedContent',
|
|
698
|
+
type: 'corner-v2',
|
|
699
|
+
label: 'Corner',
|
|
700
|
+
default: {
|
|
701
|
+
radiusType: 'none'
|
|
702
|
+
}
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
id: 'hasActiveShadow',
|
|
706
|
+
type: 'toggle',
|
|
707
|
+
label: 'Enable Button Shadow',
|
|
708
|
+
default: false
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
id: 'carouselShadow',
|
|
712
|
+
type: 'shadow-v2',
|
|
713
|
+
label: 'Button Shadow',
|
|
714
|
+
default: {
|
|
715
|
+
type: 'shadow-1',
|
|
716
|
+
distance: '4px',
|
|
717
|
+
blur: '12px',
|
|
718
|
+
spread: '0px',
|
|
719
|
+
color: '#121212',
|
|
720
|
+
angle: 90,
|
|
721
|
+
enable: false
|
|
722
|
+
},
|
|
723
|
+
compoDefaultValue: {
|
|
724
|
+
type: 'shadow-1',
|
|
725
|
+
distance: '4px',
|
|
726
|
+
blur: '4px',
|
|
727
|
+
spread: '0px',
|
|
728
|
+
color: '#121212',
|
|
729
|
+
angle: 45,
|
|
730
|
+
enable: true
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
id: 'spacing',
|
|
735
|
+
label: 'Items spacing',
|
|
736
|
+
type: 'input:number',
|
|
737
|
+
devices: {
|
|
738
|
+
desktop: {
|
|
739
|
+
default: 16
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
id: 'itemPadding',
|
|
745
|
+
type: 'size-setting',
|
|
746
|
+
devices: {
|
|
747
|
+
desktop: {
|
|
748
|
+
default: {
|
|
749
|
+
padding: {
|
|
750
|
+
type: 'custom',
|
|
751
|
+
top: '0px',
|
|
752
|
+
left: '0px',
|
|
753
|
+
bottom: '0px',
|
|
754
|
+
right: '0px'
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
hiddenSettings: [
|
|
760
|
+
'shape',
|
|
761
|
+
'gap',
|
|
762
|
+
'width',
|
|
763
|
+
'height'
|
|
764
|
+
],
|
|
765
|
+
hiddenShowMore: true
|
|
766
|
+
}
|
|
767
|
+
]
|
|
768
|
+
}
|
|
769
|
+
];
|
|
770
|
+
|
|
771
|
+
exports.CarouselSettingsV2 = CarouselSettingsV2;
|