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.
Files changed (56) hide show
  1. package/dist/index.cjs +70 -53
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +11 -8
  4. package/dist/index.js +70 -53
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +70 -53
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/SxpPageRender/ExpandableText.js +1 -1
  15. package/es/core/components/SxpPageRender/Popup/index.js +5 -3
  16. package/es/core/components/SxpPageRender/RenderCard.js +5 -3
  17. package/es/core/components/SxpPageRender/index.js +5 -3
  18. package/es/core/context/EditorContext.js +3 -1
  19. package/es/materials/sxp/popup/CommodityDetail/index.js +9 -8
  20. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +5 -5
  21. package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
  22. package/es/materials/sxp/template/Appoint/material.js +2 -1
  23. package/es/materials/sxp/template/Commodity/material.js +2 -1
  24. package/es/materials/sxp/template/CommodityDiro/material.js +2 -1
  25. package/es/materials/sxp/template/CommodityDiroNew/material.js +4 -3
  26. package/es/materials/sxp/template/Link/material.js +2 -1
  27. package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
  28. package/es/materials/sxp/template/MultiCommodity/material.js +2 -1
  29. package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
  30. package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
  31. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
  32. package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
  33. package/es/materials/sxp/template/components/Scroll.d.ts +1 -0
  34. package/es/materials/sxp/template/components/Scroll.js +2 -2
  35. package/lib/core/components/SxpPageRender/ExpandableText.js +1 -1
  36. package/lib/core/components/SxpPageRender/Popup/index.js +5 -3
  37. package/lib/core/components/SxpPageRender/RenderCard.js +5 -3
  38. package/lib/core/components/SxpPageRender/index.js +5 -3
  39. package/lib/core/context/EditorContext.js +3 -1
  40. package/lib/materials/sxp/popup/CommodityDetail/index.js +9 -8
  41. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +5 -5
  42. package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
  43. package/lib/materials/sxp/template/Appoint/material.js +2 -1
  44. package/lib/materials/sxp/template/Commodity/material.js +2 -1
  45. package/lib/materials/sxp/template/CommodityDiro/material.js +2 -1
  46. package/lib/materials/sxp/template/CommodityDiroNew/material.js +4 -3
  47. package/lib/materials/sxp/template/Link/material.js +2 -1
  48. package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
  49. package/lib/materials/sxp/template/MultiCommodity/material.js +2 -1
  50. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
  51. package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
  52. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
  53. package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
  54. package/lib/materials/sxp/template/components/Scroll.d.ts +1 -0
  55. package/lib/materials/sxp/template/components/Scroll.js +2 -2
  56. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -62,6 +62,7 @@
62
62
 
63
63
  .pb-commondity {
64
64
  position: relative;
65
+ height: 100%;
65
66
  }
66
67
  .pb-commondity-content {
67
68
  padding: 21px 19px 80px;
@@ -155,21 +156,26 @@
155
156
  display: -ms-flexbox;
156
157
  display: flex;
157
158
  }
158
- .pb-commondityDiroNew-content-top-title {
159
+ .pb-commondityDiroNew-content-top-left {
160
+ width: 100%;
161
+ }
162
+ .pb-commondityDiroNew-content-top-left-title {
159
163
  font-size: 13px;
160
164
  -webkit-box-flex: 1;
161
165
  -webkit-flex: 1;
162
166
  -ms-flex: 1;
163
167
  flex: 1;
164
168
  }
165
- .pb-commondityDiroNew-content-top-price {
166
- font-size: 13px;
167
- font-weight: bold;
169
+ .pb-commondityDiroNew-content-top-right {
168
170
  -webkit-flex-shrink: 0;
169
171
  -ms-flex-negative: 0;
170
172
  flex-shrink: 0;
171
173
  margin-left: 35px;
172
174
  }
175
+ .pb-commondityDiroNew-content-top-right-price {
176
+ font-size: 13px;
177
+ font-weight: bold;
178
+ }
173
179
  .pb-commondityDiroNew-content-collection {
174
180
  font-size: 13px;
175
181
  color: #757575;
@@ -1330,14 +1336,10 @@ button.swiper-pagination-bullet {
1330
1336
  gap: 6px;
1331
1337
  margin-left: 20px;
1332
1338
  }
1333
- .clc-sxp-bottom-card {
1334
- margin-bottom: 10px;
1335
- }
1336
1339
  .clc-sxp-bottom-text {
1337
1340
  padding: 0 20px;
1338
1341
  }
1339
1342
  .clc-sxp-bottom-hashtag {
1340
- margin-left: 20px;
1341
1343
  margin-top: 16px;
1342
1344
  }
1343
1345
  .clc-sxp-bottom-hashtag-item {
@@ -1453,6 +1455,7 @@ button.swiper-pagination-bullet {
1453
1455
  height: 100%;
1454
1456
  -o-object-fit: contain;
1455
1457
  object-fit: contain;
1458
+ display: block;
1456
1459
  }
1457
1460
  .flex {
1458
1461
  display: -webkit-box;
package/dist/index.js CHANGED
@@ -755,7 +755,6 @@ const EditorCore = forwardRef(({ children, resolver, isSsr, schema, enableDataSo
755
755
  });
756
756
  typeof window !== 'undefined' &&
757
757
  (window.sxpPopup = (type, aniType) => {
758
- setPopup(type);
759
758
  if (aniType && (aniType === null || aniType === void 0 ? void 0 : aniType.name) !== 'none') {
760
759
  setPopupAni(Object.assign(Object.assign({}, popupAni), aniType));
761
760
  }
@@ -765,6 +764,9 @@ const EditorCore = forwardRef(({ children, resolver, isSsr, schema, enableDataSo
765
764
  duration: 0
766
765
  });
767
766
  }
767
+ setTimeout(() => {
768
+ setPopup(type);
769
+ });
768
770
  });
769
771
  typeof window !== 'undefined' &&
770
772
  (window.getJointUtmLink = (url) => {
@@ -8157,7 +8159,7 @@ function useEventReport() {
8157
8159
  * @Author: binruan@chatlabs.com
8158
8160
  * @Date: 2023-11-02 18:34:34
8159
8161
  * @LastEditors: binruan@chatlabs.com
8160
- * @LastEditTime: 2024-04-02 10:33:15
8162
+ * @LastEditTime: 2024-04-10 11:11:50
8161
8163
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
8162
8164
  *
8163
8165
  */
@@ -8209,7 +8211,7 @@ var Modal$1 = memo(Modal);
8209
8211
  * @Author: binruan@chatlabs.com
8210
8212
  * @Date: 2023-12-26 16:11:34
8211
8213
  * @LastEditors: binruan@chatlabs.com
8212
- * @LastEditTime: 2024-04-02 18:52:59
8214
+ * @LastEditTime: 2024-04-09 11:00:07
8213
8215
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\ExpandableText.tsx
8214
8216
  *
8215
8217
  */
@@ -8252,7 +8254,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
8252
8254
  const cs = (_a = window === null || window === void 0 ? void 0 : window.getComputedStyle) === null || _a === void 0 ? void 0 : _a.call(window, multiRow.current);
8253
8255
  const height = parseFloat(cs === null || cs === void 0 ? void 0 : cs.height);
8254
8256
  const lh = parseFloat(cs === null || cs === void 0 ? void 0 : cs.lineHeight);
8255
- const fs = parseFloat(cs === null || cs === void 0 ? void 0 : cs.fontSize) + 4;
8257
+ const fs = parseFloat(cs === null || cs === void 0 ? void 0 : cs.fontSize) + 6;
8256
8258
  const lineHeight = isNaN(lh) ? fs : lh;
8257
8259
  if (text && height > lineHeight * lineClamp) {
8258
8260
  setIsShowMore(false);
@@ -8320,15 +8322,16 @@ const CommodityDetail$1 = (_a) => {
8320
8322
  const width = isPreview ? 375 : window.innerWidth;
8321
8323
  const renderContent = ({ isPost }) => {
8322
8324
  var _a, _b, _c;
8323
- return (React.createElement("div", { className: 'pb-commondity-content' },
8324
- 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'),
8325
- 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'),
8326
- React.createElement("div", { className: 'pb-commondity-content-price', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
8327
- 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
8325
+ return (React.createElement("div", null,
8326
+ 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'),
8327
+ 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'),
8328
+ 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),
8329
+ React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
8330
+ 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
8328
8331
  bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
8329
8332
  collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
8330
8333
  necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
8331
- 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 })));
8334
+ 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 }))));
8332
8335
  };
8333
8336
  const renderBtn = () => {
8334
8337
  var _a;
@@ -8367,10 +8370,10 @@ const CommodityDetail$1 = (_a) => {
8367
8370
  objectFit: 'cover',
8368
8371
  width: '100%'
8369
8372
  }), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
8370
- renderContent({ isPost })),
8373
+ React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
8371
8374
  renderBtn(),
8372
8375
  React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
8373
- renderContent({ isPost: false }),
8376
+ React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
8374
8377
  renderBtn())));
8375
8378
  };
8376
8379
  var CommodityDetailComponent = memo(CommodityDetail$1);
@@ -8813,12 +8816,12 @@ Made in Italy` })));
8813
8816
  }), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
8814
8817
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
8815
8818
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
8816
- React.createElement("div", null,
8817
- 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'),
8819
+ React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
8820
+ 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'),
8818
8821
  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')),
8819
- React.createElement("div", null,
8820
- 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),
8821
- 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 : '税费'))),
8822
+ React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right' },
8823
+ 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),
8824
+ 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 : '税费'))),
8822
8825
  (!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')),
8823
8826
  productInfoText({ isPost }))),
8824
8827
  React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false }))));
@@ -8829,7 +8832,7 @@ var CommodityDetailDiroNewComponent = memo(CommodityDetailDiroNew$1);
8829
8832
  * @Author: binruan@chatlabs.com
8830
8833
  * @Date: 2024-03-20 10:27:31
8831
8834
  * @LastEditors: binruan@chatlabs.com
8832
- * @LastEditTime: 2024-04-02 15:12:53
8835
+ * @LastEditTime: 2024-04-09 16:25:44
8833
8836
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\material.tsx
8834
8837
  *
8835
8838
  */
@@ -8851,7 +8854,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
8851
8854
  price: {
8852
8855
  color: '#000',
8853
8856
  fontWeight: 'bold',
8854
- fontSize: 18
8857
+ fontSize: 13
8855
8858
  },
8856
8859
  title: {
8857
8860
  color: '#000',
@@ -8895,7 +8898,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
8895
8898
  * @Author: binruan@chatlabs.com
8896
8899
  * @Date: 2024-03-26 16:50:25
8897
8900
  * @LastEditors: binruan@chatlabs.com
8898
- * @LastEditTime: 2024-04-03 15:51:15
8901
+ * @LastEditTime: 2024-04-09 21:40:18
8899
8902
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
8900
8903
  *
8901
8904
  */
@@ -9255,7 +9258,8 @@ const Commodity = createMaterial(CommodityComponent, {
9255
9258
  width: 236,
9256
9259
  height: 74,
9257
9260
  borderRadius: 3,
9258
- backgroundColor: 'rgba(0,0,0,.3)'
9261
+ backgroundColor: 'rgba(0,0,0,.3)',
9262
+ marginBottom: 8
9259
9263
  }
9260
9264
  },
9261
9265
  w: 100,
@@ -9291,7 +9295,7 @@ var AppointComponent = memo(Appoint$1);
9291
9295
  * @Author: binruan@chatlabs.com
9292
9296
  * @Date: 2023-07-28 18:29:57
9293
9297
  * @LastEditors: binruan@chatlabs.com
9294
- * @LastEditTime: 2024-03-29 17:03:49
9298
+ * @LastEditTime: 2024-04-09 21:42:21
9295
9299
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Appoint\material.tsx
9296
9300
  *
9297
9301
  */
@@ -9328,7 +9332,8 @@ const Appoint = createMaterial(AppointComponent, {
9328
9332
  width: 236,
9329
9333
  height: 44,
9330
9334
  borderRadius: 3,
9331
- backgroundColor: 'rgba(0,0,0,.3)'
9335
+ backgroundColor: 'rgba(0,0,0,.3)',
9336
+ marginBottom: 8
9332
9337
  }
9333
9338
  },
9334
9339
  w: 100,
@@ -9404,7 +9409,8 @@ const Link = createMaterial(LinkComponent, {
9404
9409
  width: 236,
9405
9410
  height: 74,
9406
9411
  borderRadius: 3,
9407
- backgroundColor: 'rgba(0,0,0,.3)'
9412
+ backgroundColor: 'rgba(0,0,0,.3)',
9413
+ marginBottom: 8
9408
9414
  }
9409
9415
  },
9410
9416
  w: 100,
@@ -9495,7 +9501,8 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
9495
9501
  width: 236,
9496
9502
  height: 74,
9497
9503
  borderRadius: 3,
9498
- backgroundColor: '#fff'
9504
+ backgroundColor: '#fff',
9505
+ marginBottom: 8
9499
9506
  }
9500
9507
  },
9501
9508
  w: 100,
@@ -9543,7 +9550,7 @@ var CommodityDiroNewComponent = memo(CommodityDiroNew$1);
9543
9550
  * @Author: binruan@chatlabs.com
9544
9551
  * @Date: 2023-07-28 18:29:57
9545
9552
  * @LastEditors: binruan@chatlabs.com
9546
- * @LastEditTime: 2024-03-29 11:56:56
9553
+ * @LastEditTime: 2024-04-09 11:54:27
9547
9554
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\CommodityDiroNew\material.tsx
9548
9555
  *
9549
9556
  */
@@ -9567,13 +9574,13 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
9567
9574
  marginRight: 16
9568
9575
  },
9569
9576
  title: {
9570
- fontSize: 12,
9577
+ fontSize: 13,
9571
9578
  color: '#000',
9572
9579
  textAlign: 'left'
9573
9580
  },
9574
9581
  ctaTitle: {
9575
9582
  textDecoration: 'underline',
9576
- fontSize: 12,
9583
+ fontSize: 14,
9577
9584
  fontWeight: 'bold',
9578
9585
  color: '#000',
9579
9586
  textAlign: 'left',
@@ -9587,7 +9594,8 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
9587
9594
  width: 260,
9588
9595
  height: 86,
9589
9596
  padding: 4,
9590
- backgroundColor: 'rgba(255,255,255,0.75)'
9597
+ backgroundColor: 'rgba(255,255,255,0.75)',
9598
+ marginBottom: 8
9591
9599
  }
9592
9600
  },
9593
9601
  w: 100,
@@ -9607,8 +9615,8 @@ var interactionRender$2 = [
9607
9615
  }
9608
9616
  ];
9609
9617
 
9610
- const Scroll = ({ children }) => {
9611
- return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: { paddingRight: '20px' } }, children));
9618
+ const Scroll = ({ children, isPadding = true }) => {
9619
+ 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));
9612
9620
  };
9613
9621
  var Scroll$1 = memo(Scroll);
9614
9622
 
@@ -9652,9 +9660,9 @@ const MultiCommodityDiro$1 = (_a) => {
9652
9660
  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 }) }));
9653
9661
  onClick === null || onClick === void 0 ? void 0 : onClick();
9654
9662
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9655
- return (React.createElement(Scroll$1, null, products === null || products === void 0 ? void 0 : products.map((item) => {
9663
+ return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
9656
9664
  var _a, _b, _c, _d, _e, _f;
9657
- 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(Object.assign({ flexShrink: 0 }, style)), style: { display: 'flex' } }, props, { onClick: () => handleClick(item) }),
9665
+ 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(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
9658
9666
  React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9659
9667
  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 })),
9660
9668
  React.createElement("div", { className: css({
@@ -9718,7 +9726,8 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
9718
9726
  width: 236,
9719
9727
  height: 74,
9720
9728
  borderRadius: 3,
9721
- backgroundColor: '#fff'
9729
+ backgroundColor: '#fff',
9730
+ marginBottom: 8
9722
9731
  }
9723
9732
  },
9724
9733
  w: 100,
@@ -9755,9 +9764,9 @@ const MultiCommodity$1 = (_a) => {
9755
9764
  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 }) }));
9756
9765
  onClick === null || onClick === void 0 ? void 0 : onClick();
9757
9766
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9758
- return (React.createElement(Scroll$1, null, products === null || products === void 0 ? void 0 : products.map((item) => {
9767
+ return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
9759
9768
  var _a, _b, _c, _d, _e, _f;
9760
- return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css(Object.assign({ flexShrink: 0 }, style)), style: { display: 'flex' } }, props, { onClick: () => handleClick(item) }),
9769
+ return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
9761
9770
  React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9762
9771
  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 })),
9763
9772
  React.createElement("div", { className: css({
@@ -9821,7 +9830,8 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
9821
9830
  width: 236,
9822
9831
  height: 74,
9823
9832
  borderRadius: 3,
9824
- backgroundColor: 'rgba(0,0,0,.3)'
9833
+ backgroundColor: 'rgba(0,0,0,.3)',
9834
+ marginBottom: 8
9825
9835
  }
9826
9836
  },
9827
9837
  w: 100,
@@ -9857,9 +9867,9 @@ const MultiCommodityDiroNew$1 = (_a) => {
9857
9867
  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 }) }));
9858
9868
  onClick === null || onClick === void 0 ? void 0 : onClick();
9859
9869
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9860
- return (React.createElement(Scroll$1, null, products === null || products === void 0 ? void 0 : products.map((item) => {
9870
+ return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
9861
9871
  var _a, _b, _c, _d, _e, _f;
9862
- 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(Object.assign({ flexShrink: 0 }, style)), style: { display: 'flex' } }, props, { onClick: () => handleClick(item) }),
9872
+ 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(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
9863
9873
  React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9864
9874
  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 })),
9865
9875
  React.createElement("div", { className: css({
@@ -9881,7 +9891,7 @@ var MultiCommodityDiroNewComponent = memo(MultiCommodityDiroNew$1);
9881
9891
  * @Author: binruan@chatlabs.com
9882
9892
  * @Date: 2023-07-28 18:29:57
9883
9893
  * @LastEditors: binruan@chatlabs.com
9884
- * @LastEditTime: 2024-03-29 15:40:54
9894
+ * @LastEditTime: 2024-04-09 21:40:37
9885
9895
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\MultiCommodityDiroNew\material.tsx
9886
9896
  *
9887
9897
  */
@@ -9925,7 +9935,8 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
9925
9935
  width: 260,
9926
9936
  height: 86,
9927
9937
  padding: 4,
9928
- backgroundColor: 'rgba(255,255,255,0.75)'
9938
+ backgroundColor: 'rgba(255,255,255,0.75)',
9939
+ marginBottom: 8
9929
9940
  }
9930
9941
  },
9931
9942
  w: 100,
@@ -12340,14 +12351,14 @@ function withBindDataSource(Component) {
12340
12351
  * @Author: binruan@chatlabs.com
12341
12352
  * @Date: 2023-12-26 16:11:34
12342
12353
  * @LastEditors: binruan@chatlabs.com
12343
- * @LastEditTime: 2024-03-04 14:25:27
12354
+ * @LastEditTime: 2024-04-09 18:17:54
12344
12355
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
12345
12356
  *
12346
12357
  */
12347
12358
  const RenderCard = ({ rec, index, tempMap, resolver }) => {
12348
12359
  const { schema } = useEditor();
12349
12360
  const renderComp = useMemo(() => {
12350
- 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;
12361
+ 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;
12351
12362
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
12352
12363
  return null;
12353
12364
  let cta = null;
@@ -12370,8 +12381,10 @@ const RenderCard = ({ rec, index, tempMap, resolver }) => {
12370
12381
  return null;
12371
12382
  }
12372
12383
  if (value && resolver) {
12373
- const Component = withBindDataSource(resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type]);
12374
- return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign({}, (_x = value === null || value === void 0 ? void 0 : value.item) === null || _x === void 0 ? void 0 : _x.style), { zIndex: 50, marginLeft: '20px' }), textStyle: (_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.textStyle, bindDatas: (_0 = (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.bindDatas) !== null && _0 !== void 0 ? _0 : [] }, (_1 = value === null || value === void 0 ? void 0 : value.item) === null || _1 === void 0 ? void 0 : _1.props, { event: ((_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.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 })));
12384
+ const t = resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type];
12385
+ const Component = withBindDataSource(t);
12386
+ const defaulSetting = (_x = t === null || t === void 0 ? void 0 : t.extend) === null || _x === void 0 ? void 0 : _x.defaulSetting;
12387
+ 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 })));
12375
12388
  }
12376
12389
  else {
12377
12390
  return null;
@@ -12397,7 +12410,7 @@ const Nudge = ({ nudge }) => {
12397
12410
  * @Author: binruan@chatlabs.com
12398
12411
  * @Date: 2024-01-15 19:03:09
12399
12412
  * @LastEditors: binruan@chatlabs.com
12400
- * @LastEditTime: 2024-04-07 17:06:06
12413
+ * @LastEditTime: 2024-04-10 10:13:48
12401
12414
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12402
12415
  *
12403
12416
  */
@@ -12564,9 +12577,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12564
12577
  }
12565
12578
  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) {
12566
12579
  return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, index) => {
12567
- var _a, _b, _c, _d, _e, _f;
12568
- const Component = withBindDataSource(resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type]);
12569
- return (React.createElement(Component, Object.assign({ key: index, textStyle: (_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.textStyle, bindDatas: (_d = (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.bindDatas) !== null && _d !== void 0 ? _d : [] }, (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.props, { event: ((_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, viewTime: viewTime.current, rec: rec, isPost: true, tipText: tipText, style: { height: '100%', overflow: 'auto' } })));
12580
+ var _a, _b, _c, _d, _e, _f, _g, _h;
12581
+ const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
12582
+ const Component = withBindDataSource(t);
12583
+ const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
12584
+ 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' }) })));
12570
12585
  });
12571
12586
  }
12572
12587
  return null;
@@ -12775,7 +12790,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12775
12790
  * @Author: binruan@chatlabs.com
12776
12791
  * @Date: 2023-10-31 10:56:01
12777
12792
  * @LastEditors: binruan@chatlabs.com
12778
- * @LastEditTime: 2024-04-02 10:31:51
12793
+ * @LastEditTime: 2024-04-10 09:57:19
12779
12794
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
12780
12795
  *
12781
12796
  */
@@ -12821,10 +12836,12 @@ const Popup = () => {
12821
12836
  const renderPopupDetail = useMemo(() => {
12822
12837
  var _a, _b, _c;
12823
12838
  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) => {
12824
- var _a, _b, _c, _d, _e, _f, _g;
12839
+ var _a, _b, _c, _d, _e, _f, _g, _h;
12825
12840
  if ((value === null || value === void 0 ? void 0 : value.id) === popup) {
12826
- const Component = withBindDataSource(resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type]);
12827
- return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign({}, (_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.style), { width: '100%', height: '80vh', overflow: 'auto' }), 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 : [] }, (_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 })));
12841
+ const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
12842
+ const Component = withBindDataSource(t);
12843
+ const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
12844
+ 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 })));
12828
12845
  }
12829
12846
  else {
12830
12847
  return React.createElement(React.Fragment, null);