pb-sxp-ui 1.17.0-alpha → 1.17.1
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/index.cjs +147 -132
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +7 -15
- package/dist/index.js +147 -132
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +147 -132
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/ExpandableText.js +2 -2
- package/es/core/components/SxpPageRender/RenderCard.js +1 -1
- package/es/materials/sxp/consentPopup/Display/index.js +1 -1
- package/es/materials/sxp/cta/AniLinkPopup/material.js +3 -2
- package/es/materials/sxp/popup/CommodityDetail/material.js +2 -1
- package/es/materials/sxp/popup/CommodityList/index.js +5 -4
- package/es/materials/sxp/popup/CommodityList/material.js +1 -1
- package/es/materials/sxp/popup/CommodityList/settingRender.js +1 -1
- package/es/materials/sxp/template/Appoint/material.js +2 -1
- package/es/materials/sxp/template/Commodity/material.js +3 -2
- package/es/materials/sxp/template/CommodityDiro/material.js +3 -2
- package/es/materials/sxp/template/CommodityDiroNew/material.js +4 -2
- package/es/materials/sxp/template/Link/material.js +4 -2
- package/es/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +3 -2
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +4 -2
- package/es/materials/sxp/template/NineCommodity/material.js +3 -2
- package/es/materials/sxp/template/components/CommodityGroup.js +1 -1
- package/es/materials/sxp/template/components/settingRender.js +1 -1
- package/lib/core/components/SxpPageRender/ExpandableText.js +2 -2
- package/lib/core/components/SxpPageRender/RenderCard.js +1 -1
- package/lib/materials/sxp/consentPopup/Display/index.js +1 -1
- package/lib/materials/sxp/cta/AniLinkPopup/material.js +2 -1
- package/lib/materials/sxp/popup/CommodityDetail/material.js +2 -1
- package/lib/materials/sxp/popup/CommodityList/index.js +5 -4
- package/lib/materials/sxp/popup/CommodityList/material.js +1 -1
- package/lib/materials/sxp/popup/CommodityList/settingRender.js +1 -1
- package/lib/materials/sxp/template/Appoint/material.js +2 -1
- package/lib/materials/sxp/template/Commodity/material.js +3 -2
- package/lib/materials/sxp/template/CommodityDiro/material.js +3 -2
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +4 -2
- package/lib/materials/sxp/template/Link/material.js +4 -2
- package/lib/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +3 -2
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +4 -2
- package/lib/materials/sxp/template/NineCommodity/material.js +3 -2
- package/lib/materials/sxp/template/components/CommodityGroup.js +1 -1
- package/lib/materials/sxp/template/components/settingRender.js +1 -1
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -2632,35 +2632,6 @@
|
|
2632
2632
|
}
|
2633
2633
|
];
|
2634
2634
|
|
2635
|
-
/*
|
2636
|
-
* @Author: binruan@chatlabs.com
|
2637
|
-
* @Date: 2024-07-09 14:35:10
|
2638
|
-
* @LastEditors: binruan@chatlabs.com
|
2639
|
-
* @LastEditTime: 2024-07-12 17:53:02
|
2640
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
2641
|
-
*
|
2642
|
-
*/
|
2643
|
-
/*
|
2644
|
-
* @Author: binruan@chatlabs.com
|
2645
|
-
* @Date: 2024-07-05 14:08:41
|
2646
|
-
* @LastEditors: binruan@chatlabs.com
|
2647
|
-
* @LastEditTime: 2024-07-09 14:34:49
|
2648
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
2649
|
-
*
|
2650
|
-
*/
|
2651
|
-
var interactionRender$g = [
|
2652
|
-
{
|
2653
|
-
title: '滑动事件',
|
2654
|
-
child: [
|
2655
|
-
{
|
2656
|
-
type: 'Switch',
|
2657
|
-
label: '滑动铺满全屏',
|
2658
|
-
name: ['isScrollFullScreen']
|
2659
|
-
}
|
2660
|
-
]
|
2661
|
-
}
|
2662
|
-
];
|
2663
|
-
|
2664
2635
|
/**
|
2665
2636
|
* SSR Window 4.0.2
|
2666
2637
|
* Better handling for window object in SSR environment
|
@@ -10239,7 +10210,7 @@
|
|
10239
10210
|
return (React.createElement(React.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (React.createElement(SwiperSlide, { className: css.css({
|
10240
10211
|
width: '50px',
|
10241
10212
|
height: '50px',
|
10242
|
-
|
10213
|
+
marginRight: '10px'
|
10243
10214
|
}), onClick: () => {
|
10244
10215
|
handleClick(item, index);
|
10245
10216
|
}, key: index },
|
@@ -10493,7 +10464,7 @@
|
|
10493
10464
|
display: '-webkit-box',
|
10494
10465
|
WebkitBoxOrient: 'vertical'
|
10495
10466
|
})), { wordBreak: 'break-word', textRendering: 'geometricPrecision', fontKerning: 'none', textSizeAdjust: '100%', boxSizing: 'border-box', contain: 'content' }), dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
|
10496
|
-
React.createElement("div", { ref: realRef, style: {
|
10467
|
+
isPost && (React.createElement("div", { ref: realRef, style: {
|
10497
10468
|
wordBreak: 'break-word',
|
10498
10469
|
textRendering: 'geometricPrecision',
|
10499
10470
|
fontKerning: 'none',
|
@@ -10505,7 +10476,7 @@
|
|
10505
10476
|
clipPath: 'inset(100%)',
|
10506
10477
|
transform: 'translateX(-9999px)'
|
10507
10478
|
// position: 'absolute'
|
10508
|
-
}, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
|
10479
|
+
}, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } })),
|
10509
10480
|
text && isPost && isShow && (React.createElement("button", { "aria-label": isShowMore ? unfoldText || 'show less' : foldText || 'show more', style: { textDecoration: 'underline', cursor: 'pointer' }, onClick: onClick !== null && onClick !== void 0 ? onClick : handleClick, dangerouslySetInnerHTML: {
|
10510
10481
|
__html: setFontForText(isShowMore ? unfoldText || 'show less' : foldText || 'show more', textStyle)
|
10511
10482
|
} }))));
|
@@ -10838,6 +10809,35 @@
|
|
10838
10809
|
};
|
10839
10810
|
var CommodityDetailComponent = React.memo(CommodityDetail$1);
|
10840
10811
|
|
10812
|
+
/*
|
10813
|
+
* @Author: binruan@chatlabs.com
|
10814
|
+
* @Date: 2024-07-09 14:35:10
|
10815
|
+
* @LastEditors: binruan@chatlabs.com
|
10816
|
+
* @LastEditTime: 2024-07-12 17:53:02
|
10817
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
10818
|
+
*
|
10819
|
+
*/
|
10820
|
+
/*
|
10821
|
+
* @Author: binruan@chatlabs.com
|
10822
|
+
* @Date: 2024-07-05 14:08:41
|
10823
|
+
* @LastEditors: binruan@chatlabs.com
|
10824
|
+
* @LastEditTime: 2024-07-09 14:34:49
|
10825
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
10826
|
+
*
|
10827
|
+
*/
|
10828
|
+
var interactionRender$g = [
|
10829
|
+
{
|
10830
|
+
title: '滑动事件',
|
10831
|
+
child: [
|
10832
|
+
{
|
10833
|
+
type: 'Switch',
|
10834
|
+
label: '滑动铺满全屏',
|
10835
|
+
name: ['isScrollFullScreen']
|
10836
|
+
}
|
10837
|
+
]
|
10838
|
+
}
|
10839
|
+
];
|
10840
|
+
|
10841
10841
|
/*
|
10842
10842
|
* @Author: binruan@chatlabs.com
|
10843
10843
|
* @Date: 2023-07-28 18:29:57
|
@@ -10884,6 +10884,7 @@
|
|
10884
10884
|
taxInfo: {
|
10885
10885
|
color: '#000',
|
10886
10886
|
fontSize: 13,
|
10887
|
+
textAlign: 'left',
|
10887
10888
|
marginBottom: '10px'
|
10888
10889
|
}
|
10889
10890
|
},
|
@@ -11975,7 +11976,7 @@ Made in Italy` })));
|
|
11975
11976
|
type: 'Number',
|
11976
11977
|
label: '与右侧边距',
|
11977
11978
|
addonAfter: 'px',
|
11978
|
-
name: ['props', 'commodityPicture', '
|
11979
|
+
name: ['props', 'commodityPicture', 'marginRight']
|
11979
11980
|
},
|
11980
11981
|
{
|
11981
11982
|
label: '居中垂直偏移',
|
@@ -12261,11 +12262,12 @@ Made in Italy` })));
|
|
12261
12262
|
React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css.css({
|
12262
12263
|
display: 'flex',
|
12263
12264
|
alignItems: 'normal',
|
12264
|
-
width: '100%'
|
12265
|
+
width: '100%',
|
12266
|
+
textAlign: 'left'
|
12265
12267
|
}) }, props),
|
12266
12268
|
React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: commodityPicture, enableEventReport: false }),
|
12267
12269
|
React.createElement("div", { style: {
|
12268
|
-
width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.
|
12270
|
+
width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.marginRight) !== null && _f !== void 0 ? _f : 0}px)`,
|
12269
12271
|
display: 'flex',
|
12270
12272
|
flexDirection: 'column',
|
12271
12273
|
justifyContent: 'space-between'
|
@@ -12346,7 +12348,7 @@ Made in Italy` })));
|
|
12346
12348
|
commodityPicture: {
|
12347
12349
|
width: 100,
|
12348
12350
|
height: 100,
|
12349
|
-
|
12351
|
+
marginRight: 10
|
12350
12352
|
},
|
12351
12353
|
commodityStyles: {
|
12352
12354
|
price: {
|
@@ -12592,7 +12594,7 @@ Made in Italy` })));
|
|
12592
12594
|
type: 'Number',
|
12593
12595
|
label: '与右侧边距',
|
12594
12596
|
addonAfter: 'px',
|
12595
|
-
name: ['props', 'ctaTempStyles', 'img', '
|
12597
|
+
name: ['props', 'ctaTempStyles', 'img', 'marginRight']
|
12596
12598
|
},
|
12597
12599
|
{
|
12598
12600
|
label: '居中垂直偏移',
|
@@ -12853,11 +12855,12 @@ Made in Italy` })));
|
|
12853
12855
|
borderRadius: 3,
|
12854
12856
|
width: 60,
|
12855
12857
|
height: 60,
|
12856
|
-
|
12858
|
+
marginRight: 8
|
12857
12859
|
},
|
12858
12860
|
title: {
|
12859
12861
|
fontSize: 12,
|
12860
|
-
color: '#fff'
|
12862
|
+
color: '#fff',
|
12863
|
+
textAlign: 'left'
|
12861
12864
|
},
|
12862
12865
|
ctaTitle: {
|
12863
12866
|
fontSize: 10,
|
@@ -12935,11 +12938,12 @@ Made in Italy` })));
|
|
12935
12938
|
borderRadius: 3,
|
12936
12939
|
width: 30,
|
12937
12940
|
height: 30,
|
12938
|
-
|
12941
|
+
marginRight: 8
|
12939
12942
|
},
|
12940
12943
|
ctaTitle: {
|
12941
12944
|
fontSize: 12,
|
12942
12945
|
color: '#fff',
|
12946
|
+
textAlign: 'left',
|
12943
12947
|
width: 130,
|
12944
12948
|
height: 20
|
12945
12949
|
}
|
@@ -13075,27 +13079,6 @@ Made in Italy` })));
|
|
13075
13079
|
}
|
13076
13080
|
];
|
13077
13081
|
|
13078
|
-
/*
|
13079
|
-
* @Author: binruan@chatlabs.com
|
13080
|
-
* @Date: 2024-08-09 16:59:38
|
13081
|
-
* @LastEditors: binruan@chatlabs.com
|
13082
|
-
* @LastEditTime: 2024-09-09 13:59:50
|
13083
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
13084
|
-
*
|
13085
|
-
*/
|
13086
|
-
var interactionRender$a = [
|
13087
|
-
{
|
13088
|
-
title: '点击事件',
|
13089
|
-
child: [
|
13090
|
-
{
|
13091
|
-
type: 'link',
|
13092
|
-
name: 'onClick',
|
13093
|
-
hiddenUrl: true
|
13094
|
-
}
|
13095
|
-
]
|
13096
|
-
}
|
13097
|
-
];
|
13098
|
-
|
13099
13082
|
var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
|
13100
13083
|
|
13101
13084
|
const Link$1 = (_a) => {
|
@@ -13123,6 +13106,27 @@ Made in Italy` })));
|
|
13123
13106
|
};
|
13124
13107
|
var LinkComponent = React.memo(Link$1);
|
13125
13108
|
|
13109
|
+
/*
|
13110
|
+
* @Author: binruan@chatlabs.com
|
13111
|
+
* @Date: 2024-08-09 16:59:38
|
13112
|
+
* @LastEditors: binruan@chatlabs.com
|
13113
|
+
* @LastEditTime: 2024-09-09 13:59:50
|
13114
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
13115
|
+
*
|
13116
|
+
*/
|
13117
|
+
var interactionRender$a = [
|
13118
|
+
{
|
13119
|
+
title: '点击事件',
|
13120
|
+
child: [
|
13121
|
+
{
|
13122
|
+
type: 'link',
|
13123
|
+
name: 'onClick',
|
13124
|
+
hiddenUrl: true
|
13125
|
+
}
|
13126
|
+
]
|
13127
|
+
}
|
13128
|
+
];
|
13129
|
+
|
13126
13130
|
var _a;
|
13127
13131
|
const Link = createMaterial(LinkComponent, {
|
13128
13132
|
displayName: '普通CTA',
|
@@ -13141,17 +13145,19 @@ Made in Italy` })));
|
|
13141
13145
|
borderRadius: 3,
|
13142
13146
|
width: 60,
|
13143
13147
|
height: 60,
|
13144
|
-
|
13148
|
+
marginRight: 8
|
13145
13149
|
},
|
13146
13150
|
ctaTitle: {
|
13147
13151
|
fontSize: 12,
|
13148
13152
|
color: '#fff',
|
13153
|
+
textAlign: 'left',
|
13149
13154
|
width: 130,
|
13150
13155
|
height: 20
|
13151
13156
|
}
|
13152
13157
|
},
|
13153
13158
|
customTitle: {
|
13154
13159
|
style: {
|
13160
|
+
textAlign: 'left',
|
13155
13161
|
textDecoration: 'underline',
|
13156
13162
|
fontWeight: 'bold',
|
13157
13163
|
width: 130,
|
@@ -13241,11 +13247,12 @@ Made in Italy` })));
|
|
13241
13247
|
borderRadius: 3,
|
13242
13248
|
width: 60,
|
13243
13249
|
height: 60,
|
13244
|
-
|
13250
|
+
marginRight: 8
|
13245
13251
|
},
|
13246
13252
|
title: {
|
13247
13253
|
fontSize: 12,
|
13248
|
-
color: '#000'
|
13254
|
+
color: '#000',
|
13255
|
+
textAlign: 'left'
|
13249
13256
|
},
|
13250
13257
|
ctaTitle: {
|
13251
13258
|
fontSize: 10,
|
@@ -13336,17 +13343,19 @@ Made in Italy` })));
|
|
13336
13343
|
borderRadius: 8,
|
13337
13344
|
width: 78,
|
13338
13345
|
height: 78,
|
13339
|
-
|
13346
|
+
marginRight: 16
|
13340
13347
|
},
|
13341
13348
|
title: {
|
13342
13349
|
fontSize: 13,
|
13343
|
-
color: '#000'
|
13350
|
+
color: '#000',
|
13351
|
+
textAlign: 'left'
|
13344
13352
|
},
|
13345
13353
|
ctaTitle: {
|
13346
13354
|
textDecoration: 'underline',
|
13347
13355
|
fontSize: 14,
|
13348
13356
|
fontWeight: 'bold',
|
13349
13357
|
color: '#000',
|
13358
|
+
textAlign: 'left',
|
13350
13359
|
width: 150,
|
13351
13360
|
height: 20
|
13352
13361
|
}
|
@@ -13388,7 +13397,7 @@ Made in Italy` })));
|
|
13388
13397
|
const [products] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
13389
13398
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13390
13399
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13391
|
-
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
13400
|
+
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
|
13392
13401
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13393
13402
|
React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
13394
13403
|
React.createElement("div", { className: css.css({
|
@@ -13434,11 +13443,12 @@ Made in Italy` })));
|
|
13434
13443
|
borderRadius: 3,
|
13435
13444
|
width: 60,
|
13436
13445
|
height: 60,
|
13437
|
-
|
13446
|
+
marginRight: 8
|
13438
13447
|
},
|
13439
13448
|
title: {
|
13440
13449
|
fontSize: 12,
|
13441
|
-
color: '#000'
|
13450
|
+
color: '#000',
|
13451
|
+
textAlign: 'left'
|
13442
13452
|
},
|
13443
13453
|
ctaTitle: {
|
13444
13454
|
fontSize: 10,
|
@@ -13486,7 +13496,7 @@ Made in Italy` })));
|
|
13486
13496
|
const [products] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
13487
13497
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13488
13498
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13489
|
-
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
13499
|
+
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
|
13490
13500
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13491
13501
|
React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
13492
13502
|
React.createElement("div", { className: css.css({
|
@@ -13532,11 +13542,12 @@ Made in Italy` })));
|
|
13532
13542
|
borderRadius: 3,
|
13533
13543
|
width: 60,
|
13534
13544
|
height: 60,
|
13535
|
-
|
13545
|
+
marginRight: 8
|
13536
13546
|
},
|
13537
13547
|
title: {
|
13538
13548
|
fontSize: 12,
|
13539
13549
|
color: '#fff',
|
13550
|
+
textAlign: 'left'
|
13540
13551
|
},
|
13541
13552
|
ctaTitle: {
|
13542
13553
|
fontSize: 10,
|
@@ -13592,7 +13603,7 @@ Made in Italy` })));
|
|
13592
13603
|
const [products] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
13593
13604
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13594
13605
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
13595
|
-
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
13606
|
+
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
|
13596
13607
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13597
13608
|
React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
13598
13609
|
React.createElement("div", { className: css.css({
|
@@ -13639,17 +13650,19 @@ Made in Italy` })));
|
|
13639
13650
|
borderRadius: 8,
|
13640
13651
|
width: 78,
|
13641
13652
|
height: 78,
|
13642
|
-
|
13653
|
+
marginRight: 16
|
13643
13654
|
},
|
13644
13655
|
title: {
|
13645
13656
|
fontSize: 12,
|
13646
|
-
color: '#000'
|
13657
|
+
color: '#000',
|
13658
|
+
textAlign: 'left'
|
13647
13659
|
},
|
13648
13660
|
ctaTitle: {
|
13649
13661
|
textDecoration: 'underline',
|
13650
13662
|
fontSize: 12,
|
13651
13663
|
fontWeight: 'bold',
|
13652
13664
|
color: '#000',
|
13665
|
+
textAlign: 'left',
|
13653
13666
|
width: 150,
|
13654
13667
|
height: 20
|
13655
13668
|
}
|
@@ -13744,11 +13757,12 @@ Made in Italy` })));
|
|
13744
13757
|
borderRadius: 3,
|
13745
13758
|
width: 60,
|
13746
13759
|
height: 60,
|
13747
|
-
|
13760
|
+
marginRight: 8
|
13748
13761
|
},
|
13749
13762
|
title: {
|
13750
13763
|
fontSize: 12,
|
13751
|
-
color: '#fff'
|
13764
|
+
color: '#fff',
|
13765
|
+
textAlign: 'left'
|
13752
13766
|
},
|
13753
13767
|
ctaTitle: {
|
13754
13768
|
fontSize: 10,
|
@@ -16668,60 +16682,6 @@ Made in Italy` })));
|
|
16668
16682
|
}
|
16669
16683
|
];
|
16670
16684
|
|
16671
|
-
/*
|
16672
|
-
* @Author: binruan@chatlabs.com
|
16673
|
-
* @Date: 2024-07-24 14:58:40
|
16674
|
-
* @LastEditors: binruan@chatlabs.com
|
16675
|
-
* @LastEditTime: 2024-09-09 13:54:35
|
16676
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
16677
|
-
*
|
16678
|
-
*/
|
16679
|
-
var interactionRender$2 = [
|
16680
|
-
{
|
16681
|
-
title: '点击事件',
|
16682
|
-
child: [
|
16683
|
-
{
|
16684
|
-
type: 'link',
|
16685
|
-
name: 'onClick',
|
16686
|
-
hiddenUrl: true
|
16687
|
-
}
|
16688
|
-
]
|
16689
|
-
},
|
16690
|
-
{
|
16691
|
-
title: '动画效果',
|
16692
|
-
child: [
|
16693
|
-
{
|
16694
|
-
type: 'Select',
|
16695
|
-
name: ['animation', 'name'],
|
16696
|
-
label: '动画',
|
16697
|
-
options: [
|
16698
|
-
{
|
16699
|
-
label: '默认',
|
16700
|
-
value: 1
|
16701
|
-
}
|
16702
|
-
],
|
16703
|
-
fieldProps: {
|
16704
|
-
style: {
|
16705
|
-
width: '100%'
|
16706
|
-
}
|
16707
|
-
}
|
16708
|
-
},
|
16709
|
-
{
|
16710
|
-
type: 'Number',
|
16711
|
-
label: '动画启动时间',
|
16712
|
-
name: ['animation', 'delay'],
|
16713
|
-
addonAfter: 'ms'
|
16714
|
-
},
|
16715
|
-
{
|
16716
|
-
type: 'Number',
|
16717
|
-
label: '动画持续时间',
|
16718
|
-
name: ['animation', 'duration'],
|
16719
|
-
addonAfter: 'ms'
|
16720
|
-
}
|
16721
|
-
]
|
16722
|
-
}
|
16723
|
-
];
|
16724
|
-
|
16725
16685
|
var styles = {"aniLinkPopup":"index-module_aniLinkPopup__YT7kj","animated-fadeIn":"index-module_animated-fadeIn__8ZCbq","fadeIn":"index-module_fadeIn__2E-dk","animated-fadeOut":"index-module_animated-fadeOut__iK4oc","fadeOut":"index-module_fadeOut__MgevT","one-line-ellipsis":"index-module_one-line-ellipsis__NRiVV","two-line-ellipsis":"index-module_two-line-ellipsis__k-YGB","modal-icon-wrapper":"index-module_modal-icon-wrapper__tu3BY","modal-icon-wrapper-img":"index-module_modal-icon-wrapper-img__4b7qZ"};
|
16726
16686
|
|
16727
16687
|
const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
@@ -16794,6 +16754,60 @@ Made in Italy` })));
|
|
16794
16754
|
};
|
16795
16755
|
var AniLinkPopupComponent = React.memo(AniLinkPopup$1);
|
16796
16756
|
|
16757
|
+
/*
|
16758
|
+
* @Author: binruan@chatlabs.com
|
16759
|
+
* @Date: 2024-07-24 14:58:40
|
16760
|
+
* @LastEditors: binruan@chatlabs.com
|
16761
|
+
* @LastEditTime: 2024-09-09 13:54:35
|
16762
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
16763
|
+
*
|
16764
|
+
*/
|
16765
|
+
var interactionRender$2 = [
|
16766
|
+
{
|
16767
|
+
title: '点击事件',
|
16768
|
+
child: [
|
16769
|
+
{
|
16770
|
+
type: 'link',
|
16771
|
+
name: 'onClick',
|
16772
|
+
hiddenUrl: true
|
16773
|
+
}
|
16774
|
+
]
|
16775
|
+
},
|
16776
|
+
{
|
16777
|
+
title: '动画效果',
|
16778
|
+
child: [
|
16779
|
+
{
|
16780
|
+
type: 'Select',
|
16781
|
+
name: ['animation', 'name'],
|
16782
|
+
label: '动画',
|
16783
|
+
options: [
|
16784
|
+
{
|
16785
|
+
label: '默认',
|
16786
|
+
value: 1
|
16787
|
+
}
|
16788
|
+
],
|
16789
|
+
fieldProps: {
|
16790
|
+
style: {
|
16791
|
+
width: '100%'
|
16792
|
+
}
|
16793
|
+
}
|
16794
|
+
},
|
16795
|
+
{
|
16796
|
+
type: 'Number',
|
16797
|
+
label: '动画启动时间',
|
16798
|
+
name: ['animation', 'delay'],
|
16799
|
+
addonAfter: 'ms'
|
16800
|
+
},
|
16801
|
+
{
|
16802
|
+
type: 'Number',
|
16803
|
+
label: '动画持续时间',
|
16804
|
+
name: ['animation', 'duration'],
|
16805
|
+
addonAfter: 'ms'
|
16806
|
+
}
|
16807
|
+
]
|
16808
|
+
}
|
16809
|
+
];
|
16810
|
+
|
16797
16811
|
/*
|
16798
16812
|
* @Author: binruan@chatlabs.com
|
16799
16813
|
* @Date: 2024-07-24 14:58:40
|
@@ -16832,6 +16846,7 @@ Made in Italy` })));
|
|
16832
16846
|
title: {
|
16833
16847
|
fontSize: 14,
|
16834
16848
|
color: '#000',
|
16849
|
+
textAlign: 'left',
|
16835
16850
|
lineHeight: 2.6
|
16836
16851
|
},
|
16837
16852
|
ctaTitle: {
|
@@ -17060,7 +17075,7 @@ Made in Italy` })));
|
|
17060
17075
|
React.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
|
17061
17076
|
__html: setFontForText((_b = content === null || content === void 0 ? void 0 : content.text) === null || _b === void 0 ? void 0 : _b.replace(/\n/g, '</br>'), content === null || content === void 0 ? void 0 : content.style)
|
17062
17077
|
} }),
|
17063
|
-
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), {
|
17078
|
+
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginLeft: '5px' }), dangerouslySetInnerHTML: {
|
17064
17079
|
__html: setFontForText((_c = interaction === null || interaction === void 0 ? void 0 : interaction.text) === null || _c === void 0 ? void 0 : _c.replace(/\n/g, '</br>'), interaction === null || interaction === void 0 ? void 0 : interaction.style)
|
17065
17080
|
}, onClick: handleClick })),
|
17066
17081
|
isShowClose && (React.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
|
@@ -18791,7 +18806,7 @@ Made in Italy` })));
|
|
18791
18806
|
const sbf = style.backdropFilter;
|
18792
18807
|
style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
18793
18808
|
}
|
18794
|
-
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50,
|
18809
|
+
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
|
18795
18810
|
}
|
18796
18811
|
else {
|
18797
18812
|
return null;
|