@gem-sdk/components 2.0.0-dev.473 → 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.
- package/dist/cjs/carousel/setting/configs/settingV2.js +732 -728
- package/dist/cjs/carousel/setting/configs/uiV2.js +304 -298
- package/dist/cjs/product/components/ProductDiscountTag/index.liquid.js +1 -10
- package/dist/cjs/product/components/ProductList/ProductListGridLayout.js +11 -6
- package/dist/cjs/product/components/ProductList/ProductListItem.liquid.js +3 -0
- package/dist/cjs/product/components/ProductList/common/getStyle.js +33 -1
- package/dist/cjs/product/components/ProductList/common/index.js +2 -25
- package/dist/cjs/product/components/ProductProperties/ProductProperties.js +16 -0
- package/dist/cjs/product/components/ProductVariants/common/base/classes.js +3 -3
- package/dist/cjs/product/components/ProductVariants/components/base/base.liquid.js +4 -1
- package/dist/cjs/product/components/ProductVariants/components/variants/index.liquid.js +4 -1
- package/dist/cjs/product/components/ProductVariants/index.liquid.js +1 -1
- package/dist/cjs/product/setting/ProductList.js +1 -3
- package/dist/cjs/product/setting/product-list/configs/settingsV2.js +17 -203
- package/dist/cjs/product/setting/product-list/configs/uiV2.js +100 -137
- package/dist/cjs/product/setting/product-variant/configs/uiV2.js +17 -0
- package/dist/cjs/text/components/Text.liquid.js +4 -1
- package/dist/esm/carousel/setting/configs/settingV2.js +731 -729
- package/dist/esm/carousel/setting/configs/uiV2.js +302 -299
- package/dist/esm/product/components/ProductDiscountTag/index.liquid.js +3 -12
- package/dist/esm/product/components/ProductList/ProductListGridLayout.js +11 -6
- package/dist/esm/product/components/ProductList/ProductListItem.liquid.js +3 -0
- package/dist/esm/product/components/ProductList/common/getStyle.js +34 -2
- package/dist/esm/product/components/ProductList/common/index.js +2 -25
- package/dist/esm/product/components/ProductProperties/ProductProperties.js +16 -0
- package/dist/esm/product/components/ProductVariants/common/base/classes.js +3 -3
- package/dist/esm/product/components/ProductVariants/components/base/base.liquid.js +4 -1
- package/dist/esm/product/components/ProductVariants/components/variants/index.liquid.js +4 -1
- package/dist/esm/product/components/ProductVariants/index.liquid.js +1 -1
- package/dist/esm/product/setting/ProductList.js +1 -3
- package/dist/esm/product/setting/product-list/configs/settingsV2.js +17 -203
- package/dist/esm/product/setting/product-list/configs/uiV2.js +100 -137
- package/dist/esm/product/setting/product-variant/configs/uiV2.js +17 -0
- package/dist/esm/text/components/Text.liquid.js +4 -1
- package/dist/types/index.d.ts +3 -6
- package/package.json +2 -2
- package/dist/cjs/product/setting/product-list/configs/settings.js +0 -496
- package/dist/esm/product/setting/product-list/configs/settings.js +0 -494
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var uiV2 = require('../../../../carousel/setting/configs/uiV2.js');
|
|
4
|
+
|
|
3
5
|
const SettingUIV2 = [
|
|
4
6
|
{
|
|
5
7
|
controls: [
|
|
@@ -8,6 +10,7 @@ const SettingUIV2 = [
|
|
|
8
10
|
label: {
|
|
9
11
|
en: 'Layout'
|
|
10
12
|
},
|
|
13
|
+
layout: 'vertical',
|
|
11
14
|
options: {
|
|
12
15
|
labelVariant: 'primary'
|
|
13
16
|
},
|
|
@@ -37,7 +40,7 @@ const SettingUIV2 = [
|
|
|
37
40
|
controls: [
|
|
38
41
|
{
|
|
39
42
|
label: {
|
|
40
|
-
en: '
|
|
43
|
+
en: 'Products'
|
|
41
44
|
},
|
|
42
45
|
conditionDisplay: "productSetting.productSrc === 'RelatedProduct' || !!productSetting && productSetting.productSrc !== 'PickProduct'",
|
|
43
46
|
setting: {
|
|
@@ -94,166 +97,126 @@ const SettingUIV2 = [
|
|
|
94
97
|
},
|
|
95
98
|
controls: [
|
|
96
99
|
{
|
|
100
|
+
conditionDisplay: "layout !== 'slider'",
|
|
97
101
|
label: {
|
|
98
102
|
en: 'Height'
|
|
99
103
|
},
|
|
100
104
|
setting: {
|
|
101
105
|
id: 'sameHeight'
|
|
102
106
|
}
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
conditionDisplay: "layout === 'slider'",
|
|
108
|
-
controls: [
|
|
109
|
-
{
|
|
110
|
-
label: {
|
|
111
|
-
en: 'Navigation'
|
|
112
|
-
},
|
|
113
|
-
setting: {
|
|
114
|
-
id: 'arrow'
|
|
115
|
-
},
|
|
116
|
-
options: {
|
|
117
|
-
labelVariant: 'primary',
|
|
118
|
-
toggleStyle: 'switch'
|
|
119
|
-
}
|
|
120
107
|
},
|
|
121
108
|
{
|
|
122
109
|
label: {
|
|
123
|
-
en: '
|
|
110
|
+
en: 'Padding'
|
|
124
111
|
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
112
|
+
controlConfig: {
|
|
113
|
+
id: 'itemPadding',
|
|
114
|
+
type: 'padding-v2',
|
|
115
|
+
linkWithSetting: {
|
|
116
|
+
name: 'itemPadding',
|
|
117
|
+
field: 'padding'
|
|
118
|
+
},
|
|
119
|
+
compoDefaultValue: {
|
|
120
|
+
desktop: {
|
|
121
|
+
default: {
|
|
122
|
+
type: 'custom',
|
|
123
|
+
top: '16px',
|
|
124
|
+
bottom: '16px',
|
|
125
|
+
left: '16px',
|
|
126
|
+
right: '16px'
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
128
130
|
}
|
|
129
131
|
},
|
|
130
132
|
{
|
|
131
|
-
conditionDisplay: 'arrow === true',
|
|
132
133
|
label: {
|
|
133
|
-
en: '
|
|
134
|
+
en: 'Background'
|
|
134
135
|
},
|
|
135
136
|
setting: {
|
|
136
|
-
id: '
|
|
137
|
+
id: 'background'
|
|
137
138
|
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
moreSettings: {
|
|
142
|
+
controls: [
|
|
143
|
+
{
|
|
144
|
+
label: {
|
|
145
|
+
en: 'Border'
|
|
146
|
+
},
|
|
147
|
+
setting: {
|
|
148
|
+
id: 'borderContent'
|
|
149
|
+
}
|
|
143
150
|
},
|
|
144
|
-
|
|
145
|
-
|
|
151
|
+
{
|
|
152
|
+
label: {
|
|
153
|
+
en: 'Corner'
|
|
154
|
+
},
|
|
155
|
+
setting: {
|
|
156
|
+
id: 'roundedContent'
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
label: {
|
|
161
|
+
en: 'Shadow'
|
|
162
|
+
},
|
|
163
|
+
setting: {
|
|
164
|
+
id: 'carouselShadow'
|
|
165
|
+
},
|
|
166
|
+
options: {
|
|
167
|
+
updateFields: [
|
|
168
|
+
{
|
|
169
|
+
field: 'enable',
|
|
170
|
+
settingId: 'hasActiveShadow'
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
controlChangeTrigger: {
|
|
175
|
+
settings: [
|
|
176
|
+
{
|
|
177
|
+
condition: `carouselShadow.enable === true`,
|
|
178
|
+
source: [
|
|
179
|
+
'carouselShadow'
|
|
180
|
+
],
|
|
181
|
+
action: {
|
|
182
|
+
controlId: 'hasActiveShadow',
|
|
183
|
+
groupType: 'style',
|
|
184
|
+
controlType: 'style',
|
|
185
|
+
newValue: true
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
condition: `carouselShadow.enable === false`,
|
|
190
|
+
source: [
|
|
191
|
+
'carouselShadow'
|
|
192
|
+
],
|
|
193
|
+
action: {
|
|
194
|
+
controlId: 'hasActiveShadow',
|
|
195
|
+
groupType: 'style',
|
|
196
|
+
controlType: 'style',
|
|
197
|
+
newValue: false
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
options: {
|
|
202
|
+
noRecordHistory: true
|
|
203
|
+
}
|
|
204
|
+
}
|
|
146
205
|
}
|
|
147
|
-
|
|
148
|
-
|
|
206
|
+
]
|
|
207
|
+
}
|
|
149
208
|
},
|
|
150
209
|
{
|
|
151
210
|
conditionDisplay: "layout === 'slider'",
|
|
152
|
-
|
|
153
|
-
{
|
|
154
|
-
label: {
|
|
155
|
-
en: 'Dots'
|
|
156
|
-
},
|
|
157
|
-
setting: {
|
|
158
|
-
id: 'dot'
|
|
159
|
-
},
|
|
160
|
-
options: {
|
|
161
|
-
labelVariant: 'primary',
|
|
162
|
-
toggleStyle: 'switch'
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
conditionDisplay: 'dot == true',
|
|
167
|
-
label: {
|
|
168
|
-
en: 'Layout'
|
|
169
|
-
},
|
|
170
|
-
setting: {
|
|
171
|
-
id: 'dotStyle'
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
conditionDisplay: 'dot == true',
|
|
176
|
-
label: {
|
|
177
|
-
en: 'Active color'
|
|
178
|
-
},
|
|
179
|
-
setting: {
|
|
180
|
-
id: 'dotActiveColor'
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
conditionDisplay: 'dot == true',
|
|
185
|
-
label: {
|
|
186
|
-
en: 'Inactive color'
|
|
187
|
-
},
|
|
188
|
-
setting: {
|
|
189
|
-
id: 'dotColor'
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
conditionDisplay: 'dot == true',
|
|
194
|
-
label: {
|
|
195
|
-
en: 'Dots size'
|
|
196
|
-
},
|
|
197
|
-
setting: {
|
|
198
|
-
id: 'dotSize'
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
]
|
|
211
|
+
...uiV2.carouselNavigationSettings
|
|
202
212
|
},
|
|
203
213
|
{
|
|
204
|
-
label: {
|
|
205
|
-
en: 'Slider effect'
|
|
206
|
-
},
|
|
207
214
|
conditionDisplay: "layout === 'slider'",
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
},
|
|
214
|
-
setting: {
|
|
215
|
-
id: 'dragToScroll'
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
type: 'control',
|
|
220
|
-
label: {
|
|
221
|
-
en: 'Infinity loop'
|
|
222
|
-
},
|
|
223
|
-
setting: {
|
|
224
|
-
id: 'loop'
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
type: 'control',
|
|
229
|
-
label: {
|
|
230
|
-
en: 'Autoplay'
|
|
231
|
-
},
|
|
232
|
-
setting: {
|
|
233
|
-
id: 'autoplay'
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
type: 'control',
|
|
238
|
-
label: {
|
|
239
|
-
en: 'Pause On Hover'
|
|
240
|
-
},
|
|
241
|
-
setting: {
|
|
242
|
-
id: 'pauseOnHover'
|
|
243
|
-
},
|
|
244
|
-
conditionDisplay: 'autoplay == true'
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
type: 'control',
|
|
248
|
-
label: {
|
|
249
|
-
en: 'Timeout(s)'
|
|
250
|
-
},
|
|
251
|
-
setting: {
|
|
252
|
-
id: 'autoplayTimeout'
|
|
253
|
-
},
|
|
254
|
-
conditionDisplay: 'autoplay == true'
|
|
255
|
-
}
|
|
256
|
-
]
|
|
215
|
+
...uiV2.carouselDotsSettings
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
conditionDisplay: "layout === 'slider'",
|
|
219
|
+
...uiV2.carouselEffectsSettings
|
|
257
220
|
},
|
|
258
221
|
{
|
|
259
222
|
label: {
|
|
@@ -380,7 +343,7 @@ const SettingUIV2 = [
|
|
|
380
343
|
label: {
|
|
381
344
|
en: 'Align'
|
|
382
345
|
},
|
|
383
|
-
conditionEnable: '!(
|
|
346
|
+
conditionEnable: '!(parseInt(width) >= 100 && width?.includes("%"))',
|
|
384
347
|
setting: {
|
|
385
348
|
id: 'align'
|
|
386
349
|
},
|
|
@@ -16,6 +16,23 @@ const SettingUIV2 = [
|
|
|
16
16
|
}
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
|
+
{
|
|
20
|
+
controls: [
|
|
21
|
+
{
|
|
22
|
+
label: {
|
|
23
|
+
en: 'Product source'
|
|
24
|
+
},
|
|
25
|
+
controlConfig: {
|
|
26
|
+
id: 'gp-to-product',
|
|
27
|
+
type: 'product-source'
|
|
28
|
+
},
|
|
29
|
+
layout: 'vertical',
|
|
30
|
+
options: {
|
|
31
|
+
labelVariant: 'primary'
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
19
36
|
{
|
|
20
37
|
label: {
|
|
21
38
|
en: 'Option gap'
|
|
@@ -9,9 +9,12 @@ var getStyle = require('./common/getStyle.js');
|
|
|
9
9
|
var getDisplayText = require('./common/getDisplayText.js');
|
|
10
10
|
var getClasses = require('./common/getClasses.js');
|
|
11
11
|
|
|
12
|
-
const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, className, isText, pageContext, elementAttrs })=>{
|
|
12
|
+
const Text = ({ id, styles, builderAttrs, style, setting, advanced, builderProps, className, isText, pageContext, elementAttrs })=>{
|
|
13
13
|
const { htmlTag: Element = 'div', excludeFlex } = setting ?? {};
|
|
14
14
|
const attrs = system.createAttr({
|
|
15
|
+
...id && {
|
|
16
|
+
id
|
|
17
|
+
},
|
|
15
18
|
...getAttr.getAttr({
|
|
16
19
|
uid: builderProps?.uidInteraction ?? builderProps?.uid ?? ''
|
|
17
20
|
}),
|