pds-dev-kit-web-test 2.5.307 → 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.
@@ -288,7 +288,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
288
288
|
childrenBlockIds: bulks_1,
|
289
289
|
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
290
290
|
childrenCBIds: childrenCBIds,
|
291
|
-
groupDisabled: groupDisabled
|
291
|
+
groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
|
292
292
|
}
|
293
293
|
}
|
294
294
|
});
|
@@ -360,7 +360,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
360
360
|
childrenBlockIds: allRootChildIds,
|
361
361
|
workDir: (_e = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _e !== void 0 ? _e : 'NOT-FOUND',
|
362
362
|
childrenCBIds: childrenCBIds,
|
363
|
-
groupDisabled: groupDisabled
|
363
|
+
groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
|
364
364
|
}
|
365
365
|
}
|
366
366
|
});
|
@@ -438,7 +438,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
438
438
|
childrenBlockIds: newBulkBlockIds,
|
439
439
|
childrenCBIds: childrenCBIds,
|
440
440
|
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
441
|
-
groupDisabled: groupDisabled
|
441
|
+
groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
|
442
442
|
}
|
443
443
|
}
|
444
444
|
});
|
@@ -490,7 +490,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
490
490
|
childrenBlockIds: newBulks,
|
491
491
|
workDir: (_c = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _c !== void 0 ? _c : 'NOT-FOUND',
|
492
492
|
childrenCBIds: childrenCBIds,
|
493
|
-
groupDisabled: groupDisabled
|
493
|
+
groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
|
494
494
|
}
|
495
495
|
}
|
496
496
|
});
|
@@ -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) {
|
@@ -818,7 +818,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
818
818
|
childrenBlockIds: filtered,
|
819
819
|
workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND',
|
820
820
|
childrenCBIds: newBulkCBIds,
|
821
|
-
groupDisabled: groupDisabled
|
821
|
+
groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
|
822
822
|
}
|
823
823
|
}
|
824
824
|
});
|
@@ -903,7 +903,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
903
903
|
childrenBlockIds: newBulkBlockIds_1,
|
904
904
|
childrenCBIds: childrenCBIds_1,
|
905
905
|
workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND',
|
906
|
-
groupDisabled: groupDisabled
|
906
|
+
groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
|
907
907
|
}
|
908
908
|
}
|
909
909
|
});
|
@@ -959,7 +959,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
959
959
|
childrenBlockIds: newBulkBlockIds_2,
|
960
960
|
childrenCBIds: childrenCBIds_2,
|
961
961
|
workDir: (_f = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _f !== void 0 ? _f : 'NOT-FOUND',
|
962
|
-
groupDisabled: groupDisabled
|
962
|
+
groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
|
963
963
|
}
|
964
964
|
}
|
965
965
|
});
|
@@ -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
|
}
|