pb-sxp-ui 1.0.3-alpha.3 → 1.0.3
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 +70 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +11 -8
- package/dist/index.js +70 -53
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +70 -53
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/ExpandableText.js +1 -1
- package/es/core/components/SxpPageRender/Popup/index.js +5 -3
- package/es/core/components/SxpPageRender/RenderCard.js +5 -3
- package/es/core/components/SxpPageRender/index.js +5 -3
- package/es/core/context/EditorContext.js +3 -1
- package/es/materials/sxp/popup/CommodityDetail/index.js +9 -8
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +5 -5
- package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
- package/es/materials/sxp/template/Appoint/material.js +2 -1
- package/es/materials/sxp/template/Commodity/material.js +2 -1
- package/es/materials/sxp/template/CommodityDiro/material.js +2 -1
- package/es/materials/sxp/template/CommodityDiroNew/material.js +4 -3
- package/es/materials/sxp/template/Link/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
- package/es/materials/sxp/template/components/Scroll.d.ts +1 -0
- package/es/materials/sxp/template/components/Scroll.js +2 -2
- package/lib/core/components/SxpPageRender/ExpandableText.js +1 -1
- package/lib/core/components/SxpPageRender/Popup/index.js +5 -3
- package/lib/core/components/SxpPageRender/RenderCard.js +5 -3
- package/lib/core/components/SxpPageRender/index.js +5 -3
- package/lib/core/context/EditorContext.js +3 -1
- package/lib/materials/sxp/popup/CommodityDetail/index.js +9 -8
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +5 -5
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
- package/lib/materials/sxp/template/Appoint/material.js +2 -1
- package/lib/materials/sxp/template/Commodity/material.js +2 -1
- package/lib/materials/sxp/template/CommodityDiro/material.js +2 -1
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +4 -3
- package/lib/materials/sxp/template/Link/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
- package/lib/materials/sxp/template/components/Scroll.d.ts +1 -0
- package/lib/materials/sxp/template/components/Scroll.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -778,7 +778,6 @@ const EditorCore = React.forwardRef(({ children, resolver, isSsr, schema, enable
|
|
778
778
|
});
|
779
779
|
typeof window !== 'undefined' &&
|
780
780
|
(window.sxpPopup = (type, aniType) => {
|
781
|
-
setPopup(type);
|
782
781
|
if (aniType && (aniType === null || aniType === void 0 ? void 0 : aniType.name) !== 'none') {
|
783
782
|
setPopupAni(Object.assign(Object.assign({}, popupAni), aniType));
|
784
783
|
}
|
@@ -788,6 +787,9 @@ const EditorCore = React.forwardRef(({ children, resolver, isSsr, schema, enable
|
|
788
787
|
duration: 0
|
789
788
|
});
|
790
789
|
}
|
790
|
+
setTimeout(() => {
|
791
|
+
setPopup(type);
|
792
|
+
});
|
791
793
|
});
|
792
794
|
typeof window !== 'undefined' &&
|
793
795
|
(window.getJointUtmLink = (url) => {
|
@@ -8180,7 +8182,7 @@ function useEventReport() {
|
|
8180
8182
|
* @Author: binruan@chatlabs.com
|
8181
8183
|
* @Date: 2023-11-02 18:34:34
|
8182
8184
|
* @LastEditors: binruan@chatlabs.com
|
8183
|
-
* @LastEditTime: 2024-04-
|
8185
|
+
* @LastEditTime: 2024-04-10 11:11:50
|
8184
8186
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8185
8187
|
*
|
8186
8188
|
*/
|
@@ -8232,7 +8234,7 @@ var Modal$1 = React.memo(Modal);
|
|
8232
8234
|
* @Author: binruan@chatlabs.com
|
8233
8235
|
* @Date: 2023-12-26 16:11:34
|
8234
8236
|
* @LastEditors: binruan@chatlabs.com
|
8235
|
-
* @LastEditTime: 2024-04-
|
8237
|
+
* @LastEditTime: 2024-04-09 11:00:07
|
8236
8238
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\ExpandableText.tsx
|
8237
8239
|
*
|
8238
8240
|
*/
|
@@ -8275,7 +8277,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
8275
8277
|
const cs = (_a = window === null || window === void 0 ? void 0 : window.getComputedStyle) === null || _a === void 0 ? void 0 : _a.call(window, multiRow.current);
|
8276
8278
|
const height = parseFloat(cs === null || cs === void 0 ? void 0 : cs.height);
|
8277
8279
|
const lh = parseFloat(cs === null || cs === void 0 ? void 0 : cs.lineHeight);
|
8278
|
-
const fs = parseFloat(cs === null || cs === void 0 ? void 0 : cs.fontSize) +
|
8280
|
+
const fs = parseFloat(cs === null || cs === void 0 ? void 0 : cs.fontSize) + 6;
|
8279
8281
|
const lineHeight = isNaN(lh) ? fs : lh;
|
8280
8282
|
if (text && height > lineHeight * lineClamp) {
|
8281
8283
|
setIsShowMore(false);
|
@@ -8343,15 +8345,16 @@ const CommodityDetail$1 = (_a) => {
|
|
8343
8345
|
const width = isPreview ? 375 : window.innerWidth;
|
8344
8346
|
const renderContent = ({ isPost }) => {
|
8345
8347
|
var _a, _b, _c;
|
8346
|
-
return (React.createElement("div",
|
8347
|
-
React.createElement("div", { className: 'pb-commondity-content-collection', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection }, (_a = product === null || product === void 0 ? void 0 : product.collection) !== null && _a !== void 0 ? _a : 'Tiffany Lock'),
|
8348
|
-
React.createElement("div", { className: 'pb-commondity-content-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_b = product === null || product === void 0 ? void 0 : product.title) !== null && _b !== void 0 ? _b : 'Pendant in Yellow Gold with Diamonds, Medium'),
|
8349
|
-
React.createElement("div", { className: 'pb-commondity-content-price', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
|
8350
|
-
React.createElement(
|
8348
|
+
return (React.createElement("div", null,
|
8349
|
+
React.createElement("div", { className: 'pb-commondity-content-collection', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection, hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === '') }, (_a = product === null || product === void 0 ? void 0 : product.collection) !== null && _a !== void 0 ? _a : 'Tiffany Lock'),
|
8350
|
+
React.createElement("div", { className: 'pb-commondity-content-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.title) }, (_b = product === null || product === void 0 ? void 0 : product.title) !== null && _b !== void 0 ? _b : 'Pendant in Yellow Gold with Diamonds, Medium'),
|
8351
|
+
React.createElement("div", { className: 'pb-commondity-content-price', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price, hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price) }, priceText),
|
8352
|
+
React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
|
8353
|
+
React.createElement(ExpandableText$1, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_c = product === null || product === void 0 ? void 0 : product.info) !== null && _c !== void 0 ? _c : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
|
8351
8354
|
bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
|
8352
8355
|
collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
|
8353
8356
|
necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
|
8354
|
-
18-karat gold, this necklace is embellished with hand-set diamonds.`, maxStr: 79, className: 'pb-commondity-content-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info })));
|
8357
|
+
18-karat gold, this necklace is embellished with hand-set diamonds.`, maxStr: 79, className: 'pb-commondity-content-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info }))));
|
8355
8358
|
};
|
8356
8359
|
const renderBtn = () => {
|
8357
8360
|
var _a;
|
@@ -8390,10 +8393,10 @@ const CommodityDetail$1 = (_a) => {
|
|
8390
8393
|
objectFit: 'cover',
|
8391
8394
|
width: '100%'
|
8392
8395
|
}), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
|
8393
|
-
renderContent({ isPost })),
|
8396
|
+
React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
|
8394
8397
|
renderBtn(),
|
8395
8398
|
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
|
8396
|
-
renderContent({ isPost: false }),
|
8399
|
+
React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
|
8397
8400
|
renderBtn())));
|
8398
8401
|
};
|
8399
8402
|
var CommodityDetailComponent = React.memo(CommodityDetail$1);
|
@@ -8836,12 +8839,12 @@ Made in Italy` })));
|
|
8836
8839
|
}), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
|
8837
8840
|
React.createElement("div", { className: 'pb-commondityDiroNew-content' },
|
8838
8841
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
8839
|
-
React.createElement("div",
|
8840
|
-
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_k = product === null || product === void 0 ? void 0 : product.title) !== null && _k !== void 0 ? _k : 'Large Dior Toujours Bag'),
|
8842
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
|
8843
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_k = product === null || product === void 0 ? void 0 : product.title) !== null && _k !== void 0 ? _k : 'Large Dior Toujours Bag'),
|
8841
8844
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-collection', hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === ''), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection }, (product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage Calfskin')),
|
8842
|
-
React.createElement("div",
|
8843
|
-
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
|
8844
|
-
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo }, (_l = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _l !== void 0 ? _l : '税费'))),
|
8845
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right' },
|
8846
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
|
8847
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo }, (_l = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _l !== void 0 ? _l : '税费'))),
|
8845
8848
|
(!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle }, (_m = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _m !== void 0 ? _m : 'Shop now')),
|
8846
8849
|
productInfoText({ isPost }))),
|
8847
8850
|
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false }))));
|
@@ -8852,7 +8855,7 @@ var CommodityDetailDiroNewComponent = React.memo(CommodityDetailDiroNew$1);
|
|
8852
8855
|
* @Author: binruan@chatlabs.com
|
8853
8856
|
* @Date: 2024-03-20 10:27:31
|
8854
8857
|
* @LastEditors: binruan@chatlabs.com
|
8855
|
-
* @LastEditTime: 2024-04-
|
8858
|
+
* @LastEditTime: 2024-04-09 16:25:44
|
8856
8859
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\material.tsx
|
8857
8860
|
*
|
8858
8861
|
*/
|
@@ -8874,7 +8877,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
|
|
8874
8877
|
price: {
|
8875
8878
|
color: '#000',
|
8876
8879
|
fontWeight: 'bold',
|
8877
|
-
fontSize:
|
8880
|
+
fontSize: 13
|
8878
8881
|
},
|
8879
8882
|
title: {
|
8880
8883
|
color: '#000',
|
@@ -8918,7 +8921,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
|
|
8918
8921
|
* @Author: binruan@chatlabs.com
|
8919
8922
|
* @Date: 2024-03-26 16:50:25
|
8920
8923
|
* @LastEditors: binruan@chatlabs.com
|
8921
|
-
* @LastEditTime: 2024-04-
|
8924
|
+
* @LastEditTime: 2024-04-09 21:40:18
|
8922
8925
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
|
8923
8926
|
*
|
8924
8927
|
*/
|
@@ -9278,7 +9281,8 @@ const Commodity = createMaterial(CommodityComponent, {
|
|
9278
9281
|
width: 236,
|
9279
9282
|
height: 74,
|
9280
9283
|
borderRadius: 3,
|
9281
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9284
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9285
|
+
marginBottom: 8
|
9282
9286
|
}
|
9283
9287
|
},
|
9284
9288
|
w: 100,
|
@@ -9314,7 +9318,7 @@ var AppointComponent = React.memo(Appoint$1);
|
|
9314
9318
|
* @Author: binruan@chatlabs.com
|
9315
9319
|
* @Date: 2023-07-28 18:29:57
|
9316
9320
|
* @LastEditors: binruan@chatlabs.com
|
9317
|
-
* @LastEditTime: 2024-
|
9321
|
+
* @LastEditTime: 2024-04-09 21:42:21
|
9318
9322
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Appoint\material.tsx
|
9319
9323
|
*
|
9320
9324
|
*/
|
@@ -9351,7 +9355,8 @@ const Appoint = createMaterial(AppointComponent, {
|
|
9351
9355
|
width: 236,
|
9352
9356
|
height: 44,
|
9353
9357
|
borderRadius: 3,
|
9354
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9358
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9359
|
+
marginBottom: 8
|
9355
9360
|
}
|
9356
9361
|
},
|
9357
9362
|
w: 100,
|
@@ -9427,7 +9432,8 @@ const Link = createMaterial(LinkComponent, {
|
|
9427
9432
|
width: 236,
|
9428
9433
|
height: 74,
|
9429
9434
|
borderRadius: 3,
|
9430
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9435
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9436
|
+
marginBottom: 8
|
9431
9437
|
}
|
9432
9438
|
},
|
9433
9439
|
w: 100,
|
@@ -9518,7 +9524,8 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
|
|
9518
9524
|
width: 236,
|
9519
9525
|
height: 74,
|
9520
9526
|
borderRadius: 3,
|
9521
|
-
backgroundColor: '#fff'
|
9527
|
+
backgroundColor: '#fff',
|
9528
|
+
marginBottom: 8
|
9522
9529
|
}
|
9523
9530
|
},
|
9524
9531
|
w: 100,
|
@@ -9566,7 +9573,7 @@ var CommodityDiroNewComponent = React.memo(CommodityDiroNew$1);
|
|
9566
9573
|
* @Author: binruan@chatlabs.com
|
9567
9574
|
* @Date: 2023-07-28 18:29:57
|
9568
9575
|
* @LastEditors: binruan@chatlabs.com
|
9569
|
-
* @LastEditTime: 2024-
|
9576
|
+
* @LastEditTime: 2024-04-09 11:54:27
|
9570
9577
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\CommodityDiroNew\material.tsx
|
9571
9578
|
*
|
9572
9579
|
*/
|
@@ -9590,13 +9597,13 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
9590
9597
|
marginRight: 16
|
9591
9598
|
},
|
9592
9599
|
title: {
|
9593
|
-
fontSize:
|
9600
|
+
fontSize: 13,
|
9594
9601
|
color: '#000',
|
9595
9602
|
textAlign: 'left'
|
9596
9603
|
},
|
9597
9604
|
ctaTitle: {
|
9598
9605
|
textDecoration: 'underline',
|
9599
|
-
fontSize:
|
9606
|
+
fontSize: 14,
|
9600
9607
|
fontWeight: 'bold',
|
9601
9608
|
color: '#000',
|
9602
9609
|
textAlign: 'left',
|
@@ -9610,7 +9617,8 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
9610
9617
|
width: 260,
|
9611
9618
|
height: 86,
|
9612
9619
|
padding: 4,
|
9613
|
-
backgroundColor: 'rgba(255,255,255,0.75)'
|
9620
|
+
backgroundColor: 'rgba(255,255,255,0.75)',
|
9621
|
+
marginBottom: 8
|
9614
9622
|
}
|
9615
9623
|
},
|
9616
9624
|
w: 100,
|
@@ -9630,8 +9638,8 @@ var interactionRender$2 = [
|
|
9630
9638
|
}
|
9631
9639
|
];
|
9632
9640
|
|
9633
|
-
const Scroll = ({ children }) => {
|
9634
|
-
return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: {
|
9641
|
+
const Scroll = ({ children, isPadding = true }) => {
|
9642
|
+
return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: { padding: isPadding ? '0 12px 0 20px' : 0 } }, children));
|
9635
9643
|
};
|
9636
9644
|
var Scroll$1 = React.memo(Scroll);
|
9637
9645
|
|
@@ -9675,9 +9683,9 @@ const MultiCommodityDiro$1 = (_a) => {
|
|
9675
9683
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
|
9676
9684
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9677
9685
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9678
|
-
return (React.createElement(Scroll$1,
|
9686
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9679
9687
|
var _a, _b, _c, _d, _e, _f;
|
9680
|
-
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign({
|
9688
|
+
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9681
9689
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9682
9690
|
React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
|
9683
9691
|
React.createElement("div", { className: css.css({
|
@@ -9741,7 +9749,8 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
|
|
9741
9749
|
width: 236,
|
9742
9750
|
height: 74,
|
9743
9751
|
borderRadius: 3,
|
9744
|
-
backgroundColor: '#fff'
|
9752
|
+
backgroundColor: '#fff',
|
9753
|
+
marginBottom: 8
|
9745
9754
|
}
|
9746
9755
|
},
|
9747
9756
|
w: 100,
|
@@ -9778,9 +9787,9 @@ const MultiCommodity$1 = (_a) => {
|
|
9778
9787
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
|
9779
9788
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9780
9789
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9781
|
-
return (React.createElement(Scroll$1,
|
9790
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9782
9791
|
var _a, _b, _c, _d, _e, _f;
|
9783
|
-
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign({
|
9792
|
+
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9784
9793
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9785
9794
|
React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
|
9786
9795
|
React.createElement("div", { className: css.css({
|
@@ -9844,7 +9853,8 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
|
|
9844
9853
|
width: 236,
|
9845
9854
|
height: 74,
|
9846
9855
|
borderRadius: 3,
|
9847
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9856
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9857
|
+
marginBottom: 8
|
9848
9858
|
}
|
9849
9859
|
},
|
9850
9860
|
w: 100,
|
@@ -9880,9 +9890,9 @@ const MultiCommodityDiroNew$1 = (_a) => {
|
|
9880
9890
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
|
9881
9891
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9882
9892
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9883
|
-
return (React.createElement(Scroll$1,
|
9893
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9884
9894
|
var _a, _b, _c, _d, _e, _f;
|
9885
|
-
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign({
|
9895
|
+
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9886
9896
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9887
9897
|
React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
|
9888
9898
|
React.createElement("div", { className: css.css({
|
@@ -9904,7 +9914,7 @@ var MultiCommodityDiroNewComponent = React.memo(MultiCommodityDiroNew$1);
|
|
9904
9914
|
* @Author: binruan@chatlabs.com
|
9905
9915
|
* @Date: 2023-07-28 18:29:57
|
9906
9916
|
* @LastEditors: binruan@chatlabs.com
|
9907
|
-
* @LastEditTime: 2024-
|
9917
|
+
* @LastEditTime: 2024-04-09 21:40:37
|
9908
9918
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\MultiCommodityDiroNew\material.tsx
|
9909
9919
|
*
|
9910
9920
|
*/
|
@@ -9948,7 +9958,8 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
|
|
9948
9958
|
width: 260,
|
9949
9959
|
height: 86,
|
9950
9960
|
padding: 4,
|
9951
|
-
backgroundColor: 'rgba(255,255,255,0.75)'
|
9961
|
+
backgroundColor: 'rgba(255,255,255,0.75)',
|
9962
|
+
marginBottom: 8
|
9952
9963
|
}
|
9953
9964
|
},
|
9954
9965
|
w: 100,
|
@@ -12363,14 +12374,14 @@ function withBindDataSource(Component) {
|
|
12363
12374
|
* @Author: binruan@chatlabs.com
|
12364
12375
|
* @Date: 2023-12-26 16:11:34
|
12365
12376
|
* @LastEditors: binruan@chatlabs.com
|
12366
|
-
* @LastEditTime: 2024-
|
12377
|
+
* @LastEditTime: 2024-04-09 18:17:54
|
12367
12378
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
12368
12379
|
*
|
12369
12380
|
*/
|
12370
12381
|
const RenderCard = ({ rec, index, tempMap, resolver }) => {
|
12371
12382
|
const { schema } = useEditor();
|
12372
12383
|
const renderComp = React.useMemo(() => {
|
12373
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
12384
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
12374
12385
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
12375
12386
|
return null;
|
12376
12387
|
let cta = null;
|
@@ -12393,8 +12404,10 @@ const RenderCard = ({ rec, index, tempMap, resolver }) => {
|
|
12393
12404
|
return null;
|
12394
12405
|
}
|
12395
12406
|
if (value && resolver) {
|
12396
|
-
const
|
12397
|
-
|
12407
|
+
const t = resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type];
|
12408
|
+
const Component = withBindDataSource(t);
|
12409
|
+
const defaulSetting = (_x = t === null || t === void 0 ? void 0 : t.extend) === null || _x === void 0 ? void 0 : _x.defaulSetting;
|
12410
|
+
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box' }), 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 })));
|
12398
12411
|
}
|
12399
12412
|
else {
|
12400
12413
|
return null;
|
@@ -12420,7 +12433,7 @@ const Nudge = ({ nudge }) => {
|
|
12420
12433
|
* @Author: binruan@chatlabs.com
|
12421
12434
|
* @Date: 2024-01-15 19:03:09
|
12422
12435
|
* @LastEditors: binruan@chatlabs.com
|
12423
|
-
* @LastEditTime: 2024-04-
|
12436
|
+
* @LastEditTime: 2024-04-10 10:13:48
|
12424
12437
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12425
12438
|
*
|
12426
12439
|
*/
|
@@ -12587,9 +12600,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12587
12600
|
}
|
12588
12601
|
if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
12589
12602
|
return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, index) => {
|
12590
|
-
var _a, _b, _c, _d, _e, _f;
|
12591
|
-
const
|
12592
|
-
|
12603
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12604
|
+
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
12605
|
+
const Component = withBindDataSource(t);
|
12606
|
+
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
12607
|
+
return (React.createElement(Component, Object.assign({ key: index, textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.textStyle), bindDatas: (_e = (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.bindDatas) !== null && _e !== void 0 ? _e : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.props, { event: ((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, viewTime: viewTime.current, rec: rec, isPost: true, tipText: tipText, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.style), { height: '100%', overflow: 'auto' }) })));
|
12593
12608
|
});
|
12594
12609
|
}
|
12595
12610
|
return null;
|
@@ -12798,7 +12813,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12798
12813
|
* @Author: binruan@chatlabs.com
|
12799
12814
|
* @Date: 2023-10-31 10:56:01
|
12800
12815
|
* @LastEditors: binruan@chatlabs.com
|
12801
|
-
* @LastEditTime: 2024-04-
|
12816
|
+
* @LastEditTime: 2024-04-10 09:57:19
|
12802
12817
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
12803
12818
|
*
|
12804
12819
|
*/
|
@@ -12844,10 +12859,12 @@ const Popup = () => {
|
|
12844
12859
|
const renderPopupDetail = React.useMemo(() => {
|
12845
12860
|
var _a, _b, _c;
|
12846
12861
|
return (_c = (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.sxpPageConf) === null || _a === void 0 ? void 0 : _a.globalConfig) === null || _b === void 0 ? void 0 : _b.popupList) === null || _c === void 0 ? void 0 : _c.map((value, index) => {
|
12847
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
12862
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12848
12863
|
if ((value === null || value === void 0 ? void 0 : value.id) === popup) {
|
12849
|
-
const
|
12850
|
-
|
12864
|
+
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
12865
|
+
const Component = withBindDataSource(t);
|
12866
|
+
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
12867
|
+
return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.textStyle), bindDatas: (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.bindDatas) !== null && _f !== void 0 ? _f : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.props, { event: ((_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id })));
|
12851
12868
|
}
|
12852
12869
|
else {
|
12853
12870
|
return React.createElement(React.Fragment, null);
|