@gem-sdk/components 2.0.0-dev.474 → 2.0.0-dev.475

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 (22) hide show
  1. package/dist/cjs/carousel/setting/configs/settingV2.js +732 -728
  2. package/dist/cjs/carousel/setting/configs/uiV2.js +304 -298
  3. package/dist/cjs/product/components/ProductList/ProductListGridLayout.js +11 -6
  4. package/dist/cjs/product/components/ProductList/ProductListItem.liquid.js +3 -0
  5. package/dist/cjs/product/components/ProductList/common/getStyle.js +33 -1
  6. package/dist/cjs/product/components/ProductList/common/index.js +2 -25
  7. package/dist/cjs/product/setting/ProductList.js +1 -3
  8. package/dist/cjs/product/setting/product-list/configs/settingsV2.js +17 -203
  9. package/dist/cjs/product/setting/product-list/configs/uiV2.js +100 -137
  10. package/dist/esm/carousel/setting/configs/settingV2.js +731 -729
  11. package/dist/esm/carousel/setting/configs/uiV2.js +302 -299
  12. package/dist/esm/product/components/ProductList/ProductListGridLayout.js +11 -6
  13. package/dist/esm/product/components/ProductList/ProductListItem.liquid.js +3 -0
  14. package/dist/esm/product/components/ProductList/common/getStyle.js +34 -2
  15. package/dist/esm/product/components/ProductList/common/index.js +2 -25
  16. package/dist/esm/product/setting/ProductList.js +1 -3
  17. package/dist/esm/product/setting/product-list/configs/settingsV2.js +17 -203
  18. package/dist/esm/product/setting/product-list/configs/uiV2.js +100 -137
  19. package/dist/types/index.d.ts +2 -5
  20. package/package.json +1 -1
  21. package/dist/cjs/product/setting/product-list/configs/settings.js +0 -496
  22. package/dist/esm/product/setting/product-list/configs/settings.js +0 -494
@@ -1,494 +0,0 @@
1
- const ProductListSettings = [
2
- {
3
- id: 'setting',
4
- controls: [
5
- {
6
- id: 'productSetting',
7
- type: 'product-list',
8
- label: 'Select product list',
9
- default: {
10
- productSrc: 'PickProduct',
11
- productIds: [],
12
- collectionId: 'Latest',
13
- relatedType: 'related-product',
14
- relatedTag: [
15
- 'collection'
16
- ],
17
- hasRelatedExclude: false
18
- }
19
- },
20
- // {
21
- // id: 'randomizeOrder',
22
- // type: 'toggle',
23
- // label: 'Randomize product order',
24
- // default: false,
25
- // },
26
- // {
27
- // id: 'productSrc',
28
- // type: 'select',
29
- // label: 'Product source',
30
- // default: 'PickProduct',
31
- // options: [
32
- // {
33
- // label: 'Pick Collections',
34
- // value: 'Collection',
35
- // hideOnPage: ['GP_COLLECTION'],
36
- // },
37
- // {
38
- // label: 'Pick Products',
39
- // value: 'PickProduct',
40
- // hideOnPage: ['GP_COLLECTION'],
41
- // },
42
- // {
43
- // label: 'Display by assigned collection',
44
- // value: 'DynamicCollection',
45
- // hideOnPage: [
46
- // 'ARTICLE',
47
- // 'BLOG',
48
- // 'COLLECTION',
49
- // 'GP_ARTICLE',
50
- // 'GP_BLOG',
51
- // 'GP_INDEX',
52
- // 'GP_PRODUCT',
53
- // 'GP_STATIC',
54
- // 'PRODUCT',
55
- // 'STATIC',
56
- // ],
57
- // },
58
- // ],
59
- // },
60
- // {
61
- // id: 'orderBy',
62
- // type: 'select',
63
- // label: 'Order By',
64
- // default: 'none',
65
- // hide: true,
66
- // options: [
67
- // {
68
- // label: 'None',
69
- // value: 'none',
70
- // },
71
- // {
72
- // label: 'Name A-Z',
73
- // value: 'TITLE_ASC',
74
- // },
75
- // {
76
- // label: 'Name Z-A',
77
- // value: 'TITLE_DESC',
78
- // },
79
- // {
80
- // label: 'New Arrivals',
81
- // value: 'CREATED_AT_DESC',
82
- // },
83
- // ],
84
- // },
85
- // {
86
- // id: 'collectionId',
87
- // type: 'collection',
88
- // label: 'Collection ID',
89
- // hide: true,
90
- // default: 'Latest',
91
- // },
92
- // {
93
- // id: 'productIds',
94
- // type: 'pick-multi-product',
95
- // label: 'Product List',
96
- // max: 24,
97
- // hide: true,
98
- // default: [],
99
- // },
100
- {
101
- id: 'slidesToShow',
102
- type: 'input:slider',
103
- min: 1,
104
- max: 6,
105
- label: 'Products per rows ',
106
- hideUnit: true,
107
- useOnlyUnitInit: true,
108
- devices: {
109
- desktop: {
110
- default: 4
111
- },
112
- tablet: {
113
- default: 3
114
- },
115
- mobile: {
116
- default: 2
117
- }
118
- }
119
- },
120
- {
121
- id: 'numberOfProducts',
122
- type: 'input:slider',
123
- min: 1,
124
- max: 50,
125
- label: 'Number of products',
126
- default: 4,
127
- hide: true,
128
- hideUnit: true,
129
- useOnlyUnitInit: true,
130
- ignoreMax: true
131
- },
132
- {
133
- id: 'slider-settings',
134
- label: 'Slider Settings',
135
- type: 'group',
136
- hide: true,
137
- controls: [
138
- {
139
- id: 'dot',
140
- label: 'Dot',
141
- type: 'toggle',
142
- devices: {
143
- desktop: {
144
- default: false
145
- }
146
- }
147
- },
148
- {
149
- id: 'dotStyle',
150
- label: 'Dot style',
151
- type: 'layout-segment',
152
- iconViewBox: '0 0 77 48',
153
- enableItemBackground: true,
154
- enableTooltip: true,
155
- options: [
156
- {
157
- label: 'None',
158
- value: 'none',
159
- type: 'carousel-dot',
160
- isTextIcon: true
161
- },
162
- {
163
- label: 'Inside',
164
- value: 'inside',
165
- type: 'carousel-dot'
166
- },
167
- {
168
- label: 'Outside',
169
- value: 'outside',
170
- type: 'carousel-dot'
171
- }
172
- ],
173
- devices: {
174
- desktop: {
175
- default: 'inside'
176
- }
177
- }
178
- },
179
- {
180
- id: 'dotSize',
181
- label: 'Dots size',
182
- type: 'input:stepper',
183
- min: 1,
184
- devices: {
185
- desktop: {
186
- default: 12
187
- }
188
- }
189
- },
190
- {
191
- id: 'dotGapToCarousel',
192
- label: 'Gap to carousel',
193
- type: 'input:unit',
194
- useOnlyUnitInit: true,
195
- units: [
196
- 'px'
197
- ],
198
- min: 0,
199
- devices: {
200
- desktop: {
201
- default: 16
202
- }
203
- }
204
- },
205
- {
206
- id: 'dotColor',
207
- label: 'Dot color',
208
- type: 'colorpicker',
209
- devices: {
210
- desktop: {
211
- default: 'bg-1'
212
- }
213
- }
214
- },
215
- {
216
- id: 'dotActiveColor',
217
- label: 'Dot color active',
218
- type: 'colorpicker',
219
- devices: {
220
- desktop: {
221
- default: 'line-3'
222
- }
223
- }
224
- },
225
- {
226
- id: 'arrow',
227
- label: 'Next/Prev Arrow',
228
- type: 'toggle',
229
- devices: {
230
- desktop: {
231
- default: false
232
- }
233
- }
234
- },
235
- {
236
- id: 'arrowCustom',
237
- label: 'Custom Arrow',
238
- type: 'icon',
239
- default: '<svg height="100%" width="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"></path></svg>'
240
- },
241
- {
242
- id: 'arrowCustomColor',
243
- label: 'Icon color',
244
- type: 'colorpicker',
245
- default: '#000000'
246
- },
247
- {
248
- id: 'controlOverContent',
249
- label: 'Control Over Content',
250
- type: 'toggle',
251
- devices: {
252
- desktop: {
253
- default: false
254
- }
255
- }
256
- },
257
- {
258
- id: 'loop',
259
- label: 'Loop',
260
- type: 'toggle',
261
- devices: {
262
- desktop: {
263
- default: false
264
- }
265
- }
266
- },
267
- {
268
- id: 'speed',
269
- label: 'Speed(s)',
270
- type: 'input:stepper',
271
- min: 0,
272
- max: 60,
273
- default: 2,
274
- hide: true
275
- },
276
- {
277
- id: 'dragToScroll',
278
- label: 'Drag to scroll',
279
- type: 'toggle',
280
- default: false
281
- },
282
- {
283
- id: 'autoplay',
284
- label: 'Autoplay',
285
- type: 'toggle',
286
- default: false
287
- },
288
- {
289
- id: 'pauseOnHover',
290
- label: 'Pause On Hover',
291
- type: 'toggle',
292
- default: true,
293
- hide: true
294
- },
295
- {
296
- id: 'autoplayTimeout',
297
- label: 'Timeout(s)',
298
- type: 'input:slider',
299
- min: 1,
300
- max: 10,
301
- step: 0.1,
302
- default: 2,
303
- hide: true,
304
- hideUnit: true,
305
- useOnlyUnitInit: true
306
- },
307
- {
308
- id: 'sameHeight',
309
- label: 'Enable same height',
310
- type: 'toggle',
311
- default: false
312
- }
313
- ]
314
- }
315
- ]
316
- },
317
- {
318
- id: 'style',
319
- controls: [
320
- {
321
- id: 'layout',
322
- type: 'option:value',
323
- label: 'Layout',
324
- default: 'grid',
325
- options: [
326
- {
327
- label: 'Grid',
328
- value: 'grid'
329
- },
330
- {
331
- label: 'Slider',
332
- value: 'slider'
333
- }
334
- ]
335
- },
336
- {
337
- id: 'dimensions',
338
- label: 'Dimensions',
339
- type: 'group',
340
- controls: [
341
- {
342
- id: 'fullWidth',
343
- label: 'Full Width',
344
- type: 'toggle',
345
- devices: {
346
- desktop: {
347
- default: true
348
- }
349
- }
350
- },
351
- {
352
- id: 'width',
353
- label: 'Width',
354
- type: 'input:unit',
355
- emptyOnClear: true,
356
- units: [
357
- 'px',
358
- '%'
359
- ],
360
- devices: {
361
- desktop: {
362
- default: 'default'
363
- }
364
- },
365
- hide: true
366
- },
367
- {
368
- id: 'adaptiveHeight',
369
- label: 'Fit height to content',
370
- type: 'toggle',
371
- devices: {
372
- desktop: {
373
- default: true
374
- }
375
- },
376
- hide: true
377
- },
378
- {
379
- id: 'height',
380
- label: 'Height',
381
- type: 'input:unit',
382
- units: [
383
- 'px'
384
- ],
385
- devices: {
386
- desktop: {
387
- default: '400px'
388
- }
389
- },
390
- hide: true
391
- }
392
- ]
393
- },
394
- {
395
- id: 'grid',
396
- label: 'Grid',
397
- type: 'group',
398
- controls: [
399
- {
400
- id: 'horizontalGutter',
401
- label: 'Row gap',
402
- type: 'input:unit',
403
- units: [
404
- 'px'
405
- ],
406
- devices: {
407
- desktop: {
408
- default: '16px'
409
- },
410
- mobile: {
411
- default: '16px'
412
- }
413
- }
414
- },
415
- {
416
- id: 'verticalGutter',
417
- label: 'Column gap',
418
- type: 'input:unit-spacing',
419
- units: [
420
- 'px'
421
- ],
422
- devices: {
423
- desktop: {
424
- default: '8px'
425
- },
426
- mobile: {
427
- default: '8px'
428
- }
429
- }
430
- }
431
- ],
432
- hide: true
433
- },
434
- {
435
- id: 'slider',
436
- label: 'Slider',
437
- type: 'group',
438
- controls: [
439
- {
440
- id: 'spacing',
441
- label: 'Item Spacing',
442
- type: 'input:unit',
443
- min: 0,
444
- useOnlyUnitInit: true,
445
- units: [
446
- 'px'
447
- ],
448
- devices: {
449
- desktop: {
450
- default: 44
451
- }
452
- }
453
- }
454
- ],
455
- hide: true
456
- },
457
- {
458
- id: 'align',
459
- label: 'Align',
460
- type: 'option:value',
461
- options: [
462
- {
463
- label: 'Left',
464
- value: 'left',
465
- type: 'align',
466
- tooltip: 'Align left',
467
- iconName: 'gp-align-left'
468
- },
469
- {
470
- label: 'Center',
471
- value: 'center',
472
- type: 'align',
473
- tooltip: 'Align center',
474
- iconName: 'gp-align-center'
475
- },
476
- {
477
- label: 'Right',
478
- value: 'right',
479
- type: 'align',
480
- tooltip: 'Align right',
481
- iconName: 'gp-align-right'
482
- }
483
- ],
484
- devices: {
485
- desktop: {
486
- default: 'center'
487
- }
488
- }
489
- }
490
- ]
491
- }
492
- ];
493
-
494
- export { ProductListSettings };