pb-sxp-ui 1.10.10 → 1.10.12
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 +33 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +33 -17
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +33 -17
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/Modal/index.js +1 -1
- package/es/materials/sxp/popup/Iframe/index.d.ts +4 -0
- package/es/materials/sxp/popup/Iframe/index.js +5 -4
- package/es/materials/sxp/popup/Iframe/settingRender.js +15 -0
- package/es/materials/sxp/template/MultiCommodity/index.js +3 -3
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +3 -3
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +3 -3
- package/lib/core/components/SxpPageRender/Modal/index.js +1 -1
- package/lib/materials/sxp/popup/Iframe/index.d.ts +4 -0
- package/lib/materials/sxp/popup/Iframe/index.js +5 -4
- package/lib/materials/sxp/popup/Iframe/settingRender.js +15 -0
- package/lib/materials/sxp/template/MultiCommodity/index.js +3 -3
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +3 -3
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +3 -3
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -9778,7 +9778,7 @@
|
|
9778
9778
|
* @Author: binruan@chatlabs.com
|
9779
9779
|
* @Date: 2023-11-02 18:34:34
|
9780
9780
|
* @LastEditors: binruan@chatlabs.com
|
9781
|
-
* @LastEditTime: 2024-
|
9781
|
+
* @LastEditTime: 2024-12-12 16:35:54
|
9782
9782
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
9783
9783
|
*
|
9784
9784
|
*/
|
@@ -9836,7 +9836,7 @@
|
|
9836
9836
|
}, [isOpen, popup]);
|
9837
9837
|
const child = React.useCallback(() => {
|
9838
9838
|
return children;
|
9839
|
-
}, [_popup, openState, globalConfig]);
|
9839
|
+
}, [_popup, openState, globalConfig, schema]);
|
9840
9840
|
React.useEffect(() => {
|
9841
9841
|
const trapFocus = (element) => {
|
9842
9842
|
var focusableEls = element === null || element === void 0 ? void 0 : element.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');
|
@@ -11996,7 +11996,7 @@ Made in Italy` })));
|
|
11996
11996
|
* @Author: binruan@chatlabs.com
|
11997
11997
|
* @Date: 2023-10-27 14:06:35
|
11998
11998
|
* @LastEditors: binruan@chatlabs.com
|
11999
|
-
* @LastEditTime: 2024-
|
11999
|
+
* @LastEditTime: 2024-12-12 15:12:57
|
12000
12000
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
|
12001
12001
|
*
|
12002
12002
|
*/
|
@@ -12010,16 +12010,32 @@ Made in Italy` })));
|
|
12010
12010
|
name: ['style', 'backgroundColor']
|
12011
12011
|
}
|
12012
12012
|
]
|
12013
|
+
},
|
12014
|
+
{
|
12015
|
+
title: 'iframe',
|
12016
|
+
child: [
|
12017
|
+
{
|
12018
|
+
type: 'TextArea',
|
12019
|
+
label: 'url',
|
12020
|
+
name: ['props', 'iframe', 'src']
|
12021
|
+
},
|
12022
|
+
{
|
12023
|
+
type: 'TextArea',
|
12024
|
+
label: 'allow',
|
12025
|
+
name: ['props', 'iframe', 'allow']
|
12026
|
+
}
|
12027
|
+
]
|
12013
12028
|
}
|
12014
12029
|
];
|
12015
12030
|
|
12016
12031
|
const Iframe$1 = (_a) => {
|
12017
12032
|
var _b, _c;
|
12018
|
-
var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle, isTel } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle", "isTel"]);
|
12033
|
+
var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle, isTel, iframe } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle", "isTel", "iframe"]);
|
12019
12034
|
const { popupDetailData } = useSxpDataSource();
|
12020
|
-
const
|
12021
|
-
|
12022
|
-
|
12035
|
+
const { src, allow } = iframe || {};
|
12036
|
+
const iframeUrl = src || ((_c = (_b = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.video) === null || _b === void 0 ? void 0 : _b.bindCta) === null || _c === void 0 ? void 0 : _c.remark);
|
12037
|
+
return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
|
12038
|
+
React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
|
12023
12039
|
width: '100%',
|
12024
12040
|
height: 'calc(100% - 50px)',
|
12025
12041
|
marginTop: '50px',
|
@@ -13002,14 +13018,14 @@ Made in Italy` })));
|
|
13002
13018
|
|
13003
13019
|
const MultiCommodityDiro$1 = (_a) => {
|
13004
13020
|
var _b, _c;
|
13005
|
-
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive"]);
|
13021
|
+
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive", "index"]);
|
13006
13022
|
const { sxpParameter } = useSxpDataSource();
|
13007
13023
|
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]);
|
13008
13024
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13009
13025
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13010
13026
|
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' },
|
13011
|
-
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex }, props),
|
13012
|
-
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:
|
13027
|
+
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13028
|
+
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 }),
|
13013
13029
|
React.createElement("div", { className: css.css({
|
13014
13030
|
color: '#000',
|
13015
13031
|
display: 'flex',
|
@@ -13101,14 +13117,14 @@ Made in Italy` })));
|
|
13101
13117
|
|
13102
13118
|
const MultiCommodity$1 = (_a) => {
|
13103
13119
|
var _b, _c;
|
13104
|
-
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive"]);
|
13120
|
+
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive", "index"]);
|
13105
13121
|
const { sxpParameter } = useSxpDataSource();
|
13106
13122
|
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]);
|
13107
13123
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13108
13124
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13109
13125
|
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' },
|
13110
|
-
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex }, props),
|
13111
|
-
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:
|
13126
|
+
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13127
|
+
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 }),
|
13112
13128
|
React.createElement("div", { className: css.css({
|
13113
13129
|
color: '#fff',
|
13114
13130
|
display: 'flex',
|
@@ -13208,14 +13224,14 @@ Made in Italy` })));
|
|
13208
13224
|
|
13209
13225
|
const MultiCommodityDiroNew$1 = (_a) => {
|
13210
13226
|
var _b, _c;
|
13211
|
-
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive"]);
|
13227
|
+
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive", "index"]);
|
13212
13228
|
const { sxpParameter } = useSxpDataSource();
|
13213
13229
|
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]);
|
13214
13230
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13215
13231
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
13216
13232
|
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' },
|
13217
|
-
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex }, props),
|
13218
|
-
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:
|
13233
|
+
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13234
|
+
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 }),
|
13219
13235
|
React.createElement("div", { className: css.css({
|
13220
13236
|
color: '#fff',
|
13221
13237
|
display: 'flex',
|
@@ -18900,7 +18916,7 @@ Made in Italy` })));
|
|
18900
18916
|
* @Author: binruan@chatlabs.com
|
18901
18917
|
* @Date: 2023-10-31 10:56:01
|
18902
18918
|
* @LastEditors: binruan@chatlabs.com
|
18903
|
-
* @LastEditTime: 2024-
|
18919
|
+
* @LastEditTime: 2024-12-12 14:48:31
|
18904
18920
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
18905
18921
|
*
|
18906
18922
|
*/
|