pds-dev-kit-web-test 2.5.296 → 2.5.297
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,28 +1030,23 @@ 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
|
-
})
|
1033
|
+
}), onClick: function (e) {
|
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)({
|
1034
1046
|
'grid-item-child': true
|
1035
1047
|
}), style: {
|
1036
1048
|
width: '100%',
|
1037
1049
|
height: '100%'
|
1038
|
-
}, onClick: function (e) {
|
1039
|
-
var _a;
|
1040
|
-
e.stopPropagation();
|
1041
|
-
var target = e.target;
|
1042
|
-
console.dir(target);
|
1043
|
-
if ((_a = target.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains('not-editable-grid-item')) {
|
1044
|
-
return;
|
1045
|
-
}
|
1046
|
-
if (isInBulk) {
|
1047
|
-
clickOneCBInBulk(matchedCB.id);
|
1048
|
-
return;
|
1049
|
-
}
|
1050
|
-
onClickCB(matchedCB.id);
|
1051
|
-
}, onContextMenu: function (e) {
|
1052
|
-
e.stopPropagation();
|
1053
|
-
e.preventDefault();
|
1054
|
-
onContextMenuCB(matchedCB.id, e);
|
1055
1050
|
} }, { 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 ||
|
1056
1051
|
each.y < 0 ||
|
1057
1052
|
each.x + each.w > (device === 'MOBILE' ? 8 : 24) ||
|