pds-dev-kit-web-test 2.5.297 → 2.5.298
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.
@@ -1030,23 +1030,27 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
1030
1030
|
}
|
1031
1031
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, clsx_1.clsx)({
|
1032
1032
|
'react-grid-item-selected': selectedBlockId === (0, group_1.formatCbIdToBlockId)(matchedCB.id)
|
1033
|
-
}),
|
1034
|
-
e.stopPropagation();
|
1035
|
-
console.dir(e.target);
|
1036
|
-
if (isInBulk) {
|
1037
|
-
clickOneCBInBulk(matchedCB.id);
|
1038
|
-
return;
|
1039
|
-
}
|
1040
|
-
onClickCB(matchedCB.id);
|
1041
|
-
}, onContextMenu: function (e) {
|
1042
|
-
e.stopPropagation();
|
1043
|
-
e.preventDefault();
|
1044
|
-
onContextMenuCB(matchedCB.id, e);
|
1045
|
-
} }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, clsx_1.clsx)({
|
1033
|
+
}) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, clsx_1.clsx)({
|
1046
1034
|
'grid-item-child': true
|
1047
1035
|
}), style: {
|
1048
1036
|
width: '100%',
|
1049
1037
|
height: '100%'
|
1038
|
+
}, onClick: function (e) {
|
1039
|
+
e.stopPropagation();
|
1040
|
+
if (editingGroupBlock !== 'ROOT') {
|
1041
|
+
if ((0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock).includes(matchedCB.id)) {
|
1042
|
+
return;
|
1043
|
+
}
|
1044
|
+
}
|
1045
|
+
if (isInBulk) {
|
1046
|
+
clickOneCBInBulk(matchedCB.id);
|
1047
|
+
return;
|
1048
|
+
}
|
1049
|
+
onClickCB(matchedCB.id);
|
1050
|
+
}, onContextMenu: function (e) {
|
1051
|
+
e.stopPropagation();
|
1052
|
+
e.preventDefault();
|
1053
|
+
onContextMenuCB(matchedCB.id, e);
|
1050
1054
|
} }, { children: (0, jsx_runtime_1.jsxs)(ErrorBoundary_1.ErrorBoundary, { children: [(0, jsx_runtime_1.jsx)(ComponentBlockMatcher_1.default, { cbProps: matchedCB, device: device, rowHeight: rowHeight, index: index }), each.x < 0 && (0, jsx_runtime_1.jsx)("div", __assign({ className: "error-start-x" }, { children: "X" })), each.y < 0 && (0, jsx_runtime_1.jsx)("div", __assign({ className: "error-start-y" }, { children: "Y" })), (device === 'MOBILE' ? each.x + each.w > 8 : each.x + each.w > 24) && ((0, jsx_runtime_1.jsx)("div", __assign({ className: "error-cols" }, { children: "C" }))), each.h < 0 && (0, jsx_runtime_1.jsx)("div", __assign({ className: "error-rows" }, { children: "R" })), (each.x < 0 ||
|
1051
1055
|
each.y < 0 ||
|
1052
1056
|
each.x + each.w > (device === 'MOBILE' ? 8 : 24) ||
|