pds-dev-kit-web-test 2.5.114 → 2.5.115
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.
@@ -252,7 +252,12 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
252
252
|
if (!isEditMode) {
|
253
253
|
return;
|
254
254
|
}
|
255
|
-
var added =
|
255
|
+
var added = (function () {
|
256
|
+
if (selectedBlockId === editingGroupBlock) {
|
257
|
+
return [blockId];
|
258
|
+
}
|
259
|
+
return selectedBlockId ? [selectedBlockId, blockId] : [blockId];
|
260
|
+
})();
|
256
261
|
if (shortcutKeyMode === 'BULK_SELECT' && added.length > 1) {
|
257
262
|
setBulkBlockIds(function (prev) {
|
258
263
|
var set = new Set(__spreadArray(__spreadArray([], prev, true), added, true));
|
@@ -624,7 +629,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
624
629
|
setEditingGroupBlock('ROOT');
|
625
630
|
};
|
626
631
|
var onClickGroup = function (e, id, type) {
|
627
|
-
var _a, _b, _c, _d;
|
632
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
628
633
|
e.stopPropagation();
|
629
634
|
if (id === 'BULK') {
|
630
635
|
return;
|
@@ -676,7 +681,30 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
676
681
|
return;
|
677
682
|
}
|
678
683
|
if (shortcutKeyMode === 'BULK_SELECT') {
|
679
|
-
var added =
|
684
|
+
var added = (function () {
|
685
|
+
if (selectedBlockId === editingGroupBlock) {
|
686
|
+
return [id];
|
687
|
+
}
|
688
|
+
return selectedBlockId ? [selectedBlockId, id] : [id];
|
689
|
+
})();
|
690
|
+
if (added.length === 1) {
|
691
|
+
setSelectedBlockId(id);
|
692
|
+
setBulkBlockIds([]);
|
693
|
+
sectionActionHandler &&
|
694
|
+
sectionActionHandler({
|
695
|
+
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
696
|
+
payload: {
|
697
|
+
block: {
|
698
|
+
blockId: id,
|
699
|
+
type: 'GROUP_BLOCK',
|
700
|
+
workDir: (_c = (0, group_1.getBlockWorkDirPath)(newblock, id)) !== null && _c !== void 0 ? _c : 'NOT-FOUND',
|
701
|
+
childrenBlockIds: (_d = (0, group_1.findDirectChildrenBlockIds)(newblock, id)) !== null && _d !== void 0 ? _d : [],
|
702
|
+
childrenCBIds: (_e = (0, group_1.findDirectChildrenCbIds)(newblock, id)) !== null && _e !== void 0 ? _e : []
|
703
|
+
}
|
704
|
+
}
|
705
|
+
});
|
706
|
+
return;
|
707
|
+
}
|
680
708
|
var newBulkBlockIds_2 = Array.from(new Set(__spreadArray(__spreadArray([], bulkBlockIds, true), added, true)));
|
681
709
|
var newBulkCBIds_2 = newBulkBlockIds_2
|
682
710
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
@@ -692,7 +720,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
692
720
|
type: 'BULK',
|
693
721
|
childrenBlockIds: newBulkBlockIds_2,
|
694
722
|
childrenCBIds: newBulkCBIds_2,
|
695
|
-
workDir: (
|
723
|
+
workDir: (_f = (0, group_1.getBlockWorkDirPath)(newblock, 'BULK')) !== null && _f !== void 0 ? _f : 'NOT-FOUND'
|
696
724
|
}
|
697
725
|
}
|
698
726
|
});
|
@@ -711,7 +739,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
711
739
|
block: {
|
712
740
|
blockId: id,
|
713
741
|
type: 'GROUP_BLOCK',
|
714
|
-
workDir: (
|
742
|
+
workDir: (_g = (0, group_1.getBlockWorkDirPath)(newblock, id)) !== null && _g !== void 0 ? _g : 'NOT-FOUND',
|
715
743
|
childrenBlockIds: newBulkBlockIds,
|
716
744
|
childrenCBIds: newBulkCBIds
|
717
745
|
}
|