pds-dev-kit-web-test 2.5.310 → 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,7 +848,7 @@ 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
854
  return;
@@ -859,10 +859,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
859
859
  if (bulkBlockIds.includes(id) && shortcutKeyMode === 'BULK_SELECT') {
860
860
  if (bulkBlockIds.length <= 2) {
861
861
  var oneLastBlockId = bulkBlockIds.filter(function (each) { return each !== id; })[0];
862
- var cbId = (0, group_1.formatBlockIdToCbId)(oneLastBlockId);
863
- if (!cbId) {
864
- return;
865
- }
866
862
  setBulkBlockIds([]);
867
863
  setSelectedBlockId(oneLastBlockId);
868
864
  sectionActionHandler &&
@@ -871,9 +867,10 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
871
867
  payload: {
872
868
  block: {
873
869
  blockId: oneLastBlockId,
874
- type: 'COMPONENT_BLOCK',
875
- cbId: cbId,
876
- workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
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 : []
877
874
  }
878
875
  }
879
876
  });
@@ -902,7 +899,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
902
899
  type: 'BULK',
903
900
  childrenBlockIds: newBulkBlockIds_1,
904
901
  childrenCBIds: childrenCBIds_1,
905
- workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND',
902
+ workDir: (_d = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _d !== void 0 ? _d : 'NOT-FOUND',
906
903
  groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
907
904
  }
908
905
  }
@@ -926,9 +923,9 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
926
923
  block: {
927
924
  blockId: id,
928
925
  type: 'GROUP_BLOCK',
929
- workDir: (_c = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _c !== void 0 ? _c : 'NOT-FOUND',
930
- childrenBlockIds: (_d = (0, group_1.findDirectChildrenBlockIds)(newblock, id)) !== null && _d !== void 0 ? _d : [],
931
- childrenCBIds: (_e = (0, group_1.findDirectChildrenCbIds)(newblock, id)) !== null && _e !== void 0 ? _e : []
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 : []
932
929
  }
933
930
  }
934
931
  });
@@ -958,7 +955,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
958
955
  type: 'BULK',
959
956
  childrenBlockIds: newBulkBlockIds_2,
960
957
  childrenCBIds: childrenCBIds_2,
961
- workDir: (_f = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _f !== void 0 ? _f : 'NOT-FOUND',
958
+ workDir: (_h = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _h !== void 0 ? _h : 'NOT-FOUND',
962
959
  groupDisabled: groupDisabled && editingGroupBlock !== 'ROOT'
963
960
  }
964
961
  }
@@ -986,7 +983,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
986
983
  block: {
987
984
  blockId: id,
988
985
  type: 'GROUP_BLOCK',
989
- workDir: (_g = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _g !== void 0 ? _g : 'NOT-FOUND',
986
+ workDir: (_j = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _j !== void 0 ? _j : 'NOT-FOUND',
990
987
  childrenBlockIds: newBulkBlockIds,
991
988
  childrenCBIds: childrenCBIds
992
989
  }
@@ -1059,7 +1056,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
1059
1056
  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
1057
  var matchedCB = componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.find(function (cb) { return cb.id.toString() === each.i; });
1061
1058
  var isInBulk = bulkBlockIds.includes((0, group_1.formatCbIdToBlockId)(Number(each.i)));
1062
- console.log('id: isInBulk', each.i, isInBulk);
1063
1059
  if (!matchedCB) {
1064
1060
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
1065
1061
  }
@@ -1072,18 +1068,16 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
1072
1068
  height: '100%'
1073
1069
  }, onClick: function (e) {
1074
1070
  e.stopPropagation();
1071
+ if (isInBulk) {
1072
+ clickOneCBInBulk(matchedCB.id);
1073
+ return;
1074
+ }
1075
1075
  if (editingGroupBlock !== 'ROOT') {
1076
1076
  if (!editableCBIDs.includes(matchedCB.id)) {
1077
- console.log(each.i, 'e.preventDefault()');
1078
1077
  e.preventDefault();
1079
1078
  return;
1080
1079
  }
1081
1080
  }
1082
- if (isInBulk) {
1083
- console.log(each.i, 'isInBulk onclickCB');
1084
- clickOneCBInBulk(matchedCB.id);
1085
- return;
1086
- }
1087
1081
  onClickCB(matchedCB.id);
1088
1082
  }, onContextMenu: function (e) {
1089
1083
  e.stopPropagation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.310",
3
+ "version": "2.5.312",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",