@gem-sdk/components 2.0.0-dev.261 → 2.0.0-dev.266
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/banner/components/HeroBannerItem.liquid.js +3 -2
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +3 -2
- package/dist/cjs/grid/row/setting/configs/settings.js +9 -83
- package/dist/cjs/grid/section/setting/configs/settings.js +13 -75
- package/dist/cjs/icon-list-hoz/setting/configs/settings.js +4 -17
- package/dist/cjs/post-purchase/advanced-list/setting/configs/uiV2.js +3 -15
- package/dist/cjs/post-purchase/line/setting/configs/settings.js +3 -1
- package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +2 -1
- package/dist/cjs/post-purchase/link/components/PostPurchaseLink.js +23 -14
- package/dist/cjs/post-purchase/link/components/common/getClasses.js +7 -1
- package/dist/cjs/post-purchase/link/setting/configs/settings.js +21 -14
- package/dist/cjs/post-purchase/product/common/getClasses.js +45 -0
- package/dist/cjs/post-purchase/product/common/getStyles.js +43 -0
- package/dist/cjs/post-purchase/product/components/product-image/FeatureImage.js +32 -42
- package/dist/cjs/post-purchase/product/components/product-image/ImageListCarousel.js +6 -65
- package/dist/cjs/post-purchase/product/components/product-image/ImageListGrid.js +24 -68
- package/dist/cjs/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +42 -0
- package/dist/cjs/post-purchase/product/components/product-image/ItemGridPostPurchase.js +42 -0
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/Arrow.js +29 -0
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +35 -0
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchaseContext.js +22 -0
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +75 -0
- package/dist/cjs/post-purchase/product/components/product-image/index.js +41 -43
- package/dist/cjs/post-purchase/product/components/product-image/layouts/FeatureImageWithGalleryImage.js +22 -58
- package/dist/cjs/post-purchase/product/components/product-image/layouts/OnlyGalleryImage.js +19 -12
- package/dist/cjs/post-purchase/product/constants/index.js +36 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useCarousel.js +14 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useFeatureImagePostPurchase.js +32 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +43 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useNavigationCarouselPostPurchase.js +32 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +60 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useSlideCarousel.js +35 -0
- package/dist/cjs/post-purchase/product/settings/product-description/settingV2.js +6 -9
- package/dist/cjs/post-purchase/product/settings/product-image/ProductFeatureImage.js +41 -0
- package/dist/cjs/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -118
- package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +8 -79
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v1.js +163 -0
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +375 -0
- package/dist/cjs/post-purchase/product/settings/product-image/uiV1.js +42 -0
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +235 -0
- package/dist/cjs/post-purchase/product/settings/product-price/uiV2.js +0 -3
- package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +10 -6
- package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +2 -2
- package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +3 -1
- package/dist/cjs/post-purchase/product/settings/product-title/settingV2.js +6 -9
- package/dist/cjs/post-purchase/text/settings/text/settingV2.js +0 -7
- package/dist/cjs/post-purchase/text/settings/text/uiV2.js +2 -2
- package/dist/cjs/product/components/FileUpload/components/common/index.js +3 -2
- package/dist/cjs/product/setting/product/configs/presets.js +1 -1
- package/dist/cjs/product/setting/product/configs/settings.js +4 -20
- package/dist/cjs/setting.js +2 -1
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -2
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +3 -2
- package/dist/esm/grid/row/setting/configs/settings.js +9 -83
- package/dist/esm/grid/section/setting/configs/settings.js +13 -75
- package/dist/esm/icon-list-hoz/setting/configs/settings.js +4 -17
- package/dist/esm/post-purchase/advanced-list/setting/configs/uiV2.js +3 -15
- package/dist/esm/post-purchase/line/setting/configs/settings.js +3 -1
- package/dist/esm/post-purchase/line/setting/configs/uiV2.js +2 -1
- package/dist/esm/post-purchase/link/components/PostPurchaseLink.js +25 -16
- package/dist/esm/post-purchase/link/components/common/getClasses.js +7 -2
- package/dist/esm/post-purchase/link/setting/configs/settings.js +21 -14
- package/dist/esm/post-purchase/product/common/getClasses.js +37 -1
- package/dist/esm/post-purchase/product/common/getStyles.js +39 -1
- package/dist/esm/post-purchase/product/components/product-image/FeatureImage.js +32 -42
- package/dist/esm/post-purchase/product/components/product-image/ImageListCarousel.js +7 -66
- package/dist/esm/post-purchase/product/components/product-image/ImageListGrid.js +24 -68
- package/dist/esm/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +40 -0
- package/dist/esm/post-purchase/product/components/product-image/ItemGridPostPurchase.js +40 -0
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/Arrow.js +27 -0
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +33 -0
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchaseContext.js +19 -0
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +73 -0
- package/dist/esm/post-purchase/product/components/product-image/index.js +42 -44
- package/dist/esm/post-purchase/product/components/product-image/layouts/FeatureImageWithGalleryImage.js +22 -58
- package/dist/esm/post-purchase/product/components/product-image/layouts/OnlyGalleryImage.js +19 -12
- package/dist/esm/post-purchase/product/constants/index.js +34 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useCarousel.js +12 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useFeatureImagePostPurchase.js +30 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +41 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useNavigationCarouselPostPurchase.js +30 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +58 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useSlideCarousel.js +33 -0
- package/dist/esm/post-purchase/product/settings/product-description/settingV2.js +6 -9
- package/dist/esm/post-purchase/product/settings/product-image/ProductFeatureImage.js +41 -0
- package/dist/esm/post-purchase/product/settings/product-image/ProductGalleryImage.js +1 -118
- package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +8 -79
- package/dist/esm/post-purchase/product/settings/product-image/setting-v1.js +161 -0
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +373 -0
- package/dist/esm/post-purchase/product/settings/product-image/uiV1.js +40 -0
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +233 -0
- package/dist/esm/post-purchase/product/settings/product-price/uiV2.js +0 -3
- package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +10 -6
- package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +2 -2
- package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +3 -1
- package/dist/esm/post-purchase/product/settings/product-title/settingV2.js +6 -9
- package/dist/esm/post-purchase/text/settings/text/settingV2.js +0 -7
- package/dist/esm/post-purchase/text/settings/text/uiV2.js +2 -2
- package/dist/esm/product/components/FileUpload/components/common/index.js +3 -2
- package/dist/esm/product/setting/product/configs/presets.js +1 -1
- package/dist/esm/product/setting/product/configs/settings.js +4 -20
- package/dist/esm/setting.js +2 -1
- package/dist/types/index.d.ts +12 -5
- package/package.json +4 -4
- package/dist/cjs/post-purchase/product/components/product-image/Arrow.js +0 -60
- package/dist/cjs/post-purchase/product/components/product-image/CarouselPostPurchase.js +0 -78
- package/dist/esm/post-purchase/product/components/product-image/Arrow.js +0 -58
- package/dist/esm/post-purchase/product/components/product-image/CarouselPostPurchase.js +0 -76
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var constants = require('../../../utils/constants.js');
|
|
4
|
-
|
|
5
3
|
const productGalleryImageSetting = [
|
|
6
4
|
{
|
|
7
5
|
id: 'displayType',
|
|
@@ -21,121 +19,6 @@ const productGalleryImageSetting = [
|
|
|
21
19
|
default: 'slider'
|
|
22
20
|
}
|
|
23
21
|
];
|
|
24
|
-
const productGalleryImageStyle = [
|
|
25
|
-
{
|
|
26
|
-
id: 'ilAspectRatio',
|
|
27
|
-
type: 'select',
|
|
28
|
-
default: '1',
|
|
29
|
-
options: [
|
|
30
|
-
{
|
|
31
|
-
label: 'Original',
|
|
32
|
-
value: 'auto'
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
label: 'Square',
|
|
36
|
-
value: '1'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: 'Vertical',
|
|
40
|
-
value: '3/4'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: 'Horizontal',
|
|
44
|
-
value: '4/3'
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
id: 'ilObjectFit',
|
|
50
|
-
type: 'layout-segment',
|
|
51
|
-
iconViewBox: '0 0 66 48',
|
|
52
|
-
enableItemBackground: true,
|
|
53
|
-
enableTooltip: true,
|
|
54
|
-
label: 'Image scale',
|
|
55
|
-
options: [
|
|
56
|
-
{
|
|
57
|
-
label: 'Fill image',
|
|
58
|
-
value: 'cover',
|
|
59
|
-
type: 'image'
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: 'Fit image',
|
|
63
|
-
value: 'contain',
|
|
64
|
-
type: 'image'
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
default: 'cover'
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
id: 'ilBorder',
|
|
71
|
-
label: 'Active border',
|
|
72
|
-
type: 'segment',
|
|
73
|
-
default: 'display',
|
|
74
|
-
options: [
|
|
75
|
-
{
|
|
76
|
-
label: 'none',
|
|
77
|
-
value: 'none',
|
|
78
|
-
icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
79
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.34315 4.34315C7.46734 1.21895 12.5327 1.21895 15.6569 4.34315C18.781 7.46734 18.781 12.5327 15.6569 15.6569C12.5327 18.781 7.46734 18.781 4.34315 15.6569C1.21895 12.5327 1.21895 7.46734 4.34315 4.34315ZM14.4281 4.7638C11.7339 2.4803 7.69308 2.60946 5.15127 5.15127C2.60946 7.69308 2.4803 11.7339 4.7638 14.4281L14.4281 4.7638ZM5.57193 15.2362C8.26608 17.5197 12.3069 17.3905 14.8487 14.8487C17.3905 12.3069 17.5197 8.26608 15.2362 5.57193L5.57193 15.2362Z" fill="currentColor"/>
|
|
80
|
-
</svg>
|
|
81
|
-
|
|
82
|
-
`
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
label: 'display',
|
|
86
|
-
value: 'display',
|
|
87
|
-
icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
88
|
-
<path d="M1.10547 9C1.10547 8.72386 1.32933 8.5 1.60547 8.5H18.1064C18.3826 8.5 18.6064 8.72386 18.6064 9V11C18.6064 11.2761 18.3826 11.5 18.1064 11.5H1.60547C1.32933 11.5 1.10547 11.2761 1.10547 11V9Z" fill="currentColor"/>
|
|
89
|
-
</svg>
|
|
90
|
-
|
|
91
|
-
`
|
|
92
|
-
}
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
id: 'ilNavigation',
|
|
97
|
-
label: 'Navigation',
|
|
98
|
-
type: 'layout-segment',
|
|
99
|
-
iconViewBox: '0 0 78 48',
|
|
100
|
-
enableItemBackground: true,
|
|
101
|
-
enableTooltip: true,
|
|
102
|
-
default: 'display',
|
|
103
|
-
options: [
|
|
104
|
-
{
|
|
105
|
-
label: 'No navigation',
|
|
106
|
-
value: 'none',
|
|
107
|
-
type: 'slide-control',
|
|
108
|
-
isTextIcon: true
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: 'Display inside navigation',
|
|
112
|
-
value: 'display',
|
|
113
|
-
type: 'slide-control'
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
type: 'select',
|
|
119
|
-
label: 'Spacing',
|
|
120
|
-
id: 'ilSpacing',
|
|
121
|
-
options: constants.postPurchaseSpacing,
|
|
122
|
-
default: 'xtight'
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: 'ilItemPerSlide',
|
|
126
|
-
type: 'input:number',
|
|
127
|
-
min: 1,
|
|
128
|
-
hide: true,
|
|
129
|
-
default: 5
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
id: 'ilNumberPerRow',
|
|
133
|
-
type: 'input:number',
|
|
134
|
-
label: 'Item per row',
|
|
135
|
-
hide: true,
|
|
136
|
-
default: 5
|
|
137
|
-
}
|
|
138
|
-
];
|
|
139
22
|
const productGalleryImageUI = [
|
|
140
23
|
{
|
|
141
24
|
type: 'control',
|
|
@@ -219,5 +102,4 @@ const productGalleryImageUI = [
|
|
|
219
102
|
];
|
|
220
103
|
|
|
221
104
|
exports.productGalleryImageSetting = productGalleryImageSetting;
|
|
222
|
-
exports.productGalleryImageStyle = productGalleryImageStyle;
|
|
223
105
|
exports.productGalleryImageUI = productGalleryImageUI;
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var uiV2 = require('./uiV2.js');
|
|
6
|
+
var uiV1 = require('./uiV1.js');
|
|
7
|
+
var settingV1 = require('./setting-v1.js');
|
|
8
|
+
var settingV2 = require('./setting-v2.js');
|
|
8
9
|
|
|
9
10
|
const config = {
|
|
10
11
|
tag: 'PostPurchaseProductImages',
|
|
@@ -14,82 +15,10 @@ const config = {
|
|
|
14
15
|
<path d="M13.3337 14.6666C13.3337 16.1333 12.1337 17.3333 10.667 17.3333C9.20033 17.3333 8.00033 16.1333 8.00033 14.6666C8.00033 13.2 9.20033 12 10.667 12C12.1337 12 13.3337 13.2 13.3337 14.6666ZM27.3741 14.8404C26.9836 14.4499 26.3504 14.4499 25.9599 14.8404L16.667 24.1333L14.0346 21.6062C13.6442 21.2314 13.0267 21.2352 12.6409 21.6145L5.33366 28.8V9.33329H34.667V22.1333L27.3741 14.8404ZM34.667 30.6666H23.2003L18.5337 26L26.667 17.8666L34.667 25.8666V30.6666ZM7.33366 30.6666L13.467 24.6666L19.467 30.6666H7.33366ZM3.66699 6.66663C3.11471 6.66663 2.66699 7.11434 2.66699 7.66663V31.4666V32.3333C2.66699 32.8856 3.11471 33.3333 3.66699 33.3333H25.867H36.3337C36.8859 33.3333 37.3337 32.8856 37.3337 32.3333V30.6666V28.5333V24.8V7.66662C37.3337 7.11434 36.8859 6.66663 36.3337 6.66663H3.66699Z" fill="currentColor"/>
|
|
15
16
|
</svg>
|
|
16
17
|
`,
|
|
17
|
-
settings:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
...ProductImageLayoutSetting.productLayoutSettings,
|
|
22
|
-
...ProductGalleryImage.productGalleryImageSetting
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: 'style',
|
|
27
|
-
controls: [
|
|
28
|
-
...ProductFeatureImage.productFeatureImageStyle,
|
|
29
|
-
...ProductGalleryImage.productGalleryImageStyle,
|
|
30
|
-
{
|
|
31
|
-
id: 'align',
|
|
32
|
-
label: 'Alignment',
|
|
33
|
-
type: 'segment',
|
|
34
|
-
options: [
|
|
35
|
-
{
|
|
36
|
-
label: 'Left',
|
|
37
|
-
value: 'left',
|
|
38
|
-
type: 'align',
|
|
39
|
-
tooltip: 'Align left'
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
label: 'Center',
|
|
43
|
-
value: 'center',
|
|
44
|
-
type: 'align',
|
|
45
|
-
tooltip: 'Align center'
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: 'Right',
|
|
49
|
-
value: 'right',
|
|
50
|
-
type: 'align',
|
|
51
|
-
tooltip: 'Align right'
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
default: 'left'
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
ui: [
|
|
60
|
-
{
|
|
61
|
-
type: 'group',
|
|
62
|
-
label: {
|
|
63
|
-
en: 'Layout'
|
|
64
|
-
},
|
|
65
|
-
controls: ProductImageLayoutSetting.productLayoutUI
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: 'group',
|
|
69
|
-
label: {
|
|
70
|
-
en: 'Featured image'
|
|
71
|
-
},
|
|
72
|
-
condition: "layoutType !== 'one-col' && layoutType !== 'two-col'",
|
|
73
|
-
controls: ProductFeatureImage.productFeatureImageUI
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: 'group',
|
|
77
|
-
label: {
|
|
78
|
-
en: 'Image list'
|
|
79
|
-
},
|
|
80
|
-
condition: "layoutType !== 'only-feature'",
|
|
81
|
-
controls: ProductGalleryImage.productGalleryImageUI
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
type: 'control',
|
|
85
|
-
setting: {
|
|
86
|
-
id: 'align'
|
|
87
|
-
},
|
|
88
|
-
label: {
|
|
89
|
-
en: 'Align'
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
],
|
|
18
|
+
settings: settingV1.SettingV1,
|
|
19
|
+
settingsV2: settingV2.SettingV2,
|
|
20
|
+
ui: uiV1.SettingUIV1,
|
|
21
|
+
uiV2: uiV2.SettingUIV2,
|
|
93
22
|
editorConfigs: {
|
|
94
23
|
placeholder: {
|
|
95
24
|
flowTag: [
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ProductFeatureImage = require('./ProductFeatureImage.js');
|
|
4
|
+
var ProductGalleryImage = require('./ProductGalleryImage.js');
|
|
5
|
+
var ProductImageLayoutSetting = require('./ProductImageLayoutSetting.js');
|
|
6
|
+
var constants = require('../../../utils/constants.js');
|
|
7
|
+
|
|
8
|
+
const SettingV1 = [
|
|
9
|
+
{
|
|
10
|
+
id: 'setting',
|
|
11
|
+
controls: [
|
|
12
|
+
...ProductImageLayoutSetting.productLayoutSettings,
|
|
13
|
+
...ProductGalleryImage.productGalleryImageSetting,
|
|
14
|
+
{
|
|
15
|
+
id: 'ftDisplayType',
|
|
16
|
+
label: 'Slider',
|
|
17
|
+
type: 'segment',
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
label: 'Yes',
|
|
21
|
+
value: 'slider'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: 'No',
|
|
25
|
+
value: 'grid'
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
default: 'grid'
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'style',
|
|
34
|
+
controls: [
|
|
35
|
+
...ProductFeatureImage.productFeatureImageStyle,
|
|
36
|
+
{
|
|
37
|
+
id: 'ilAspectRatio',
|
|
38
|
+
type: 'select',
|
|
39
|
+
default: '1',
|
|
40
|
+
options: [
|
|
41
|
+
{
|
|
42
|
+
label: 'Original',
|
|
43
|
+
value: 'auto'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: 'Square',
|
|
47
|
+
value: '1'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: 'Vertical',
|
|
51
|
+
value: '3/4'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: 'Horizontal',
|
|
55
|
+
value: '4/3'
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: 'ilObjectFit',
|
|
61
|
+
type: 'layout-segment',
|
|
62
|
+
iconViewBox: '0 0 66 48',
|
|
63
|
+
enableItemBackground: true,
|
|
64
|
+
enableTooltip: true,
|
|
65
|
+
label: 'Image scale',
|
|
66
|
+
options: [
|
|
67
|
+
{
|
|
68
|
+
label: 'Fill image',
|
|
69
|
+
value: 'cover',
|
|
70
|
+
type: 'image'
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: 'Fit image',
|
|
74
|
+
value: 'contain',
|
|
75
|
+
type: 'image'
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
default: 'cover'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: 'ilBorder',
|
|
82
|
+
label: 'Active border',
|
|
83
|
+
type: 'segment',
|
|
84
|
+
default: 'display',
|
|
85
|
+
options: [
|
|
86
|
+
{
|
|
87
|
+
label: 'Yes',
|
|
88
|
+
value: 'display'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
label: 'No',
|
|
92
|
+
value: 'none'
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'ilNavigation',
|
|
98
|
+
label: 'Navigation',
|
|
99
|
+
type: 'segment',
|
|
100
|
+
default: 'display',
|
|
101
|
+
options: [
|
|
102
|
+
{
|
|
103
|
+
label: 'Yes',
|
|
104
|
+
value: 'display'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
label: 'No',
|
|
108
|
+
value: 'none'
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: 'select',
|
|
114
|
+
label: 'Spacing',
|
|
115
|
+
id: 'ilSpacing',
|
|
116
|
+
options: constants.postPurchaseSpacing,
|
|
117
|
+
default: 'xtight'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
id: 'ilItemPerSlide',
|
|
121
|
+
type: 'input:number',
|
|
122
|
+
min: 1,
|
|
123
|
+
hide: true,
|
|
124
|
+
default: 5
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: 'ilNumberPerRow',
|
|
128
|
+
type: 'input:number',
|
|
129
|
+
label: 'Item per row',
|
|
130
|
+
hide: true,
|
|
131
|
+
default: 5
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: 'align',
|
|
135
|
+
label: 'Alignment',
|
|
136
|
+
type: 'segment',
|
|
137
|
+
options: [
|
|
138
|
+
{
|
|
139
|
+
label: 'Left',
|
|
140
|
+
value: 'left',
|
|
141
|
+
type: 'align',
|
|
142
|
+
tooltip: 'Align left'
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: 'Center',
|
|
146
|
+
value: 'center',
|
|
147
|
+
type: 'align',
|
|
148
|
+
tooltip: 'Align center'
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
label: 'Right',
|
|
152
|
+
value: 'right',
|
|
153
|
+
type: 'align',
|
|
154
|
+
tooltip: 'Align right'
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
default: 'left'
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
];
|
|
162
|
+
|
|
163
|
+
exports.SettingV1 = SettingV1;
|