pds-dev-kit-web-test 2.5.309 → 2.5.310
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.
@@ -777,7 +777,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
777
777
|
return;
|
778
778
|
}
|
779
779
|
if (shortcutKeyMode === 'BULK_SELECT') {
|
780
|
-
if (bulkBlockIds.length
|
780
|
+
if (bulkBlockIds.length <= 2) {
|
781
781
|
var oneLastBlockId = bulkBlockIds.filter(function (each) { return each !== blockId; })[0];
|
782
782
|
setBulkBlockIds([]);
|
783
783
|
if (!oneLastBlockId) {
|
@@ -1059,6 +1059,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
1059
1059
|
selectedGroupBlock: (_d = selectedBlockId === null || selectedBlockId === void 0 ? void 0 : selectedBlockId.toString()) !== null && _d !== void 0 ? _d : 'ROOT', editingGroupBlock: editingGroupBlock, blockStructure: newblock, bulkIds: bulkBlockIds, onDoubleClickGroup: onDoubleClickGroup, onClickGroup: onClickGroup, onDoubleClickOutsideGroup: onDoubleClickOutsideGroup, onContextGroup: onContextGroup }, { children: layouts[layoutByDevice].map(function (each, index) {
|
1060
1060
|
var matchedCB = componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.find(function (cb) { return cb.id.toString() === each.i; });
|
1061
1061
|
var isInBulk = bulkBlockIds.includes((0, group_1.formatCbIdToBlockId)(Number(each.i)));
|
1062
|
+
console.log('id: isInBulk', each.i, isInBulk);
|
1062
1063
|
if (!matchedCB) {
|
1063
1064
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
1064
1065
|
}
|
@@ -1073,11 +1074,13 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
1073
1074
|
e.stopPropagation();
|
1074
1075
|
if (editingGroupBlock !== 'ROOT') {
|
1075
1076
|
if (!editableCBIDs.includes(matchedCB.id)) {
|
1077
|
+
console.log(each.i, 'e.preventDefault()');
|
1076
1078
|
e.preventDefault();
|
1077
1079
|
return;
|
1078
1080
|
}
|
1079
1081
|
}
|
1080
1082
|
if (isInBulk) {
|
1083
|
+
console.log(each.i, 'isInBulk onclickCB');
|
1081
1084
|
clickOneCBInBulk(matchedCB.id);
|
1082
1085
|
return;
|
1083
1086
|
}
|