pds-dev-kit-web-test 2.5.114 → 2.5.116
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.
@@ -164,15 +164,21 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
164
164
|
return;
|
165
165
|
}
|
166
166
|
if (shortcutKeyMode === 'MANUAL_BULK_BREAK') {
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
sectionActionHandler
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
167
|
+
if (bulkBlockIds.length > 0) {
|
168
|
+
setBulkBlockIds([]);
|
169
|
+
setSelectedBlockId(null);
|
170
|
+
sectionActionHandler &&
|
171
|
+
sectionActionHandler({
|
172
|
+
type: '@CUSTOMSECTION/BULK_DISMISSED',
|
173
|
+
payload: {
|
174
|
+
message: 'MANUAL_BULK_BREAK_OR_ESC'
|
175
|
+
}
|
176
|
+
});
|
177
|
+
return;
|
178
|
+
}
|
179
|
+
if (editingGroupBlock !== 'ROOT') {
|
180
|
+
setEditingGroupBlock('ROOT');
|
181
|
+
}
|
176
182
|
return;
|
177
183
|
}
|
178
184
|
}, [shortcutKeyMode, setSelectedBlockId]);
|
@@ -252,7 +258,12 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
252
258
|
if (!isEditMode) {
|
253
259
|
return;
|
254
260
|
}
|
255
|
-
var added =
|
261
|
+
var added = (function () {
|
262
|
+
if (selectedBlockId === editingGroupBlock) {
|
263
|
+
return [blockId];
|
264
|
+
}
|
265
|
+
return selectedBlockId ? [selectedBlockId, blockId] : [blockId];
|
266
|
+
})();
|
256
267
|
if (shortcutKeyMode === 'BULK_SELECT' && added.length > 1) {
|
257
268
|
setBulkBlockIds(function (prev) {
|
258
269
|
var set = new Set(__spreadArray(__spreadArray([], prev, true), added, true));
|
@@ -624,7 +635,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
624
635
|
setEditingGroupBlock('ROOT');
|
625
636
|
};
|
626
637
|
var onClickGroup = function (e, id, type) {
|
627
|
-
var _a, _b, _c, _d;
|
638
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
628
639
|
e.stopPropagation();
|
629
640
|
if (id === 'BULK') {
|
630
641
|
return;
|
@@ -676,7 +687,30 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
676
687
|
return;
|
677
688
|
}
|
678
689
|
if (shortcutKeyMode === 'BULK_SELECT') {
|
679
|
-
var added =
|
690
|
+
var added = (function () {
|
691
|
+
if (selectedBlockId === editingGroupBlock) {
|
692
|
+
return [id];
|
693
|
+
}
|
694
|
+
return selectedBlockId ? [selectedBlockId, id] : [id];
|
695
|
+
})();
|
696
|
+
if (added.length === 1) {
|
697
|
+
setSelectedBlockId(id);
|
698
|
+
setBulkBlockIds([]);
|
699
|
+
sectionActionHandler &&
|
700
|
+
sectionActionHandler({
|
701
|
+
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
702
|
+
payload: {
|
703
|
+
block: {
|
704
|
+
blockId: id,
|
705
|
+
type: 'GROUP_BLOCK',
|
706
|
+
workDir: (_c = (0, group_1.getBlockWorkDirPath)(newblock, id)) !== null && _c !== void 0 ? _c : 'NOT-FOUND',
|
707
|
+
childrenBlockIds: (_d = (0, group_1.findDirectChildrenBlockIds)(newblock, id)) !== null && _d !== void 0 ? _d : [],
|
708
|
+
childrenCBIds: (_e = (0, group_1.findDirectChildrenCbIds)(newblock, id)) !== null && _e !== void 0 ? _e : []
|
709
|
+
}
|
710
|
+
}
|
711
|
+
});
|
712
|
+
return;
|
713
|
+
}
|
680
714
|
var newBulkBlockIds_2 = Array.from(new Set(__spreadArray(__spreadArray([], bulkBlockIds, true), added, true)));
|
681
715
|
var newBulkCBIds_2 = newBulkBlockIds_2
|
682
716
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
@@ -692,7 +726,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
692
726
|
type: 'BULK',
|
693
727
|
childrenBlockIds: newBulkBlockIds_2,
|
694
728
|
childrenCBIds: newBulkCBIds_2,
|
695
|
-
workDir: (
|
729
|
+
workDir: (_f = (0, group_1.getBlockWorkDirPath)(newblock, 'BULK')) !== null && _f !== void 0 ? _f : 'NOT-FOUND'
|
696
730
|
}
|
697
731
|
}
|
698
732
|
});
|
@@ -711,7 +745,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
711
745
|
block: {
|
712
746
|
blockId: id,
|
713
747
|
type: 'GROUP_BLOCK',
|
714
|
-
workDir: (
|
748
|
+
workDir: (_g = (0, group_1.getBlockWorkDirPath)(newblock, id)) !== null && _g !== void 0 ? _g : 'NOT-FOUND',
|
715
749
|
childrenBlockIds: newBulkBlockIds,
|
716
750
|
childrenCBIds: newBulkCBIds
|
717
751
|
}
|