pds-dev-kit-web-test 2.5.311 → 2.5.312
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.
@@ -848,23 +848,17 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
848
848
|
setSelectedBlockId(null);
|
849
849
|
};
|
850
850
|
var onClickGroup = function (e, id) {
|
851
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
851
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
852
852
|
e.stopPropagation();
|
853
853
|
if (id === 'BULK') {
|
854
|
-
console.log('id is BULK SO RETURNED');
|
855
854
|
return;
|
856
855
|
}
|
857
856
|
if (editingGroupBlock === id && shortcutKeyMode === 'BULK_SELECT') {
|
858
|
-
console.log('editingGroupBlock === id && shortcutKeyMode === BULK_SELECT');
|
859
857
|
return;
|
860
858
|
}
|
861
859
|
if (bulkBlockIds.includes(id) && shortcutKeyMode === 'BULK_SELECT') {
|
862
860
|
if (bulkBlockIds.length <= 2) {
|
863
861
|
var oneLastBlockId = bulkBlockIds.filter(function (each) { return each !== id; })[0];
|
864
|
-
var cbId = (0, group_1.formatBlockIdToCbId)(oneLastBlockId);
|
865
|
-
if (!cbId) {
|
866
|
-
return;
|
867
|
-
}
|
868
862
|
setBulkBlockIds([]);
|
869
863
|
setSelectedBlockId(oneLastBlockId);
|
870
864
|
sectionActionHandler &&
|
@@ -873,9 +867,10 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
873
867
|
payload: {
|
874
868
|
block: {
|
875
869
|
blockId: oneLastBlockId,
|
876
|
-
type: '
|
877
|
-
|
878
|
-
|
870
|
+
type: 'GROUP_BLOCK',
|
871
|
+
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
872
|
+
childrenBlockIds: (_b = (0, group_1.findDirectChildrenBlockIds)(newblock, oneLastBlockId)) !== null && _b !== void 0 ? _b : [],
|
873
|
+
childrenCBIds: (_c = (0, group_1.findDirectChildrenCbIds)(newblock, oneLastBlockId)) !== null && _c !== void 0 ? _c : []
|
879
874
|
}
|
880
875
|
}
|
881
876
|
});
|
@@ -904,7 +899,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
904
899
|
type: 'BULK',
|
905
900
|
childrenBlockIds: newBulkBlockIds_1,
|
906
901
|
childrenCBIds: childrenCBIds_1,
|
907
|
-
workDir: (
|
902
|
+
workDir: (_d = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _d !== void 0 ? _d : 'NOT-FOUND',
|
908
903
|
groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
|
909
904
|
}
|
910
905
|
}
|
@@ -928,9 +923,9 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
928
923
|
block: {
|
929
924
|
blockId: id,
|
930
925
|
type: 'GROUP_BLOCK',
|
931
|
-
workDir: (
|
932
|
-
childrenBlockIds: (
|
933
|
-
childrenCBIds: (
|
926
|
+
workDir: (_e = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _e !== void 0 ? _e : 'NOT-FOUND',
|
927
|
+
childrenBlockIds: (_f = (0, group_1.findDirectChildrenBlockIds)(newblock, id)) !== null && _f !== void 0 ? _f : [],
|
928
|
+
childrenCBIds: (_g = (0, group_1.findDirectChildrenCbIds)(newblock, id)) !== null && _g !== void 0 ? _g : []
|
934
929
|
}
|
935
930
|
}
|
936
931
|
});
|
@@ -960,7 +955,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
960
955
|
type: 'BULK',
|
961
956
|
childrenBlockIds: newBulkBlockIds_2,
|
962
957
|
childrenCBIds: childrenCBIds_2,
|
963
|
-
workDir: (
|
958
|
+
workDir: (_h = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _h !== void 0 ? _h : 'NOT-FOUND',
|
964
959
|
groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
|
965
960
|
}
|
966
961
|
}
|
@@ -988,7 +983,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
988
983
|
block: {
|
989
984
|
blockId: id,
|
990
985
|
type: 'GROUP_BLOCK',
|
991
|
-
workDir: (
|
986
|
+
workDir: (_j = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _j !== void 0 ? _j : 'NOT-FOUND',
|
992
987
|
childrenBlockIds: newBulkBlockIds,
|
993
988
|
childrenCBIds: childrenCBIds
|
994
989
|
}
|