pds-dev-kit-web-test 2.5.303 → 2.5.304

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.
@@ -277,8 +277,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
277
277
  else {
278
278
  childrenCBIds = newBulkCBIds;
279
279
  }
280
- var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length ===
281
- __spreadArray(__spreadArray([], bulkBlockIds, true), bulks_1, true).length;
280
+ var groupDisabled = getWorkDirDirectChildrenLength() === __spreadArray(__spreadArray([], bulkBlockIds, true), bulks_1, true).length;
282
281
  sectionActionHandler &&
283
282
  sectionActionHandler({
284
283
  type: '@CUSTOMSECTION/BLOCK_CLICKED',
@@ -350,7 +349,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
350
349
  else {
351
350
  childrenCBIds = newBulkCBIds;
352
351
  }
353
- var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length === allRootChildIds.length;
352
+ var groupDisabled = getWorkDirDirectChildrenLength() === allRootChildIds.length;
354
353
  sectionActionHandler &&
355
354
  sectionActionHandler({
356
355
  type: '@CUSTOMSECTION/BLOCK_CLICKED',
@@ -428,10 +427,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
428
427
  else {
429
428
  childrenCBIds = newBulkCBIds;
430
429
  }
431
- var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length ===
432
- __spreadArray(__spreadArray([], bulkBlockIds, true), added, true).length;
433
- console.log('directChildrenBlockIds', (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock));
434
- console.log('newbulkblocks...', __spreadArray(__spreadArray([], bulkBlockIds, true), added, true));
430
+ var groupDisabled = getWorkDirDirectChildrenLength() === __spreadArray(__spreadArray([], bulkBlockIds, true), added, true).length;
435
431
  sectionActionHandler &&
436
432
  sectionActionHandler({
437
433
  type: '@CUSTOMSECTION/BLOCK_CLICKED',
@@ -483,7 +479,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
483
479
  else {
484
480
  childrenCBIds = newBulkCBIds;
485
481
  }
486
- var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length === newBulks.length;
482
+ var groupDisabled = getWorkDirDirectChildrenLength() === newBulks.length;
487
483
  sectionActionHandler &&
488
484
  sectionActionHandler({
489
485
  type: '@CUSTOMSECTION/BLOCK_CLICKED',
@@ -877,7 +873,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
877
873
  childrenCBIds_1 = newBulkCBIds_1;
878
874
  }
879
875
  setBulkBlockIds(newBulkBlockIds_1);
880
- var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length === newBulkBlockIds_1.length;
876
+ var groupDisabled = getWorkDirDirectChildrenLength() === newBulkBlockIds_1.length;
881
877
  sectionActionHandler &&
882
878
  sectionActionHandler({
883
879
  type: '@CUSTOMSECTION/BLOCK_CLICKED',
@@ -933,7 +929,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
933
929
  else {
934
930
  childrenCBIds_2 = newBulkCBIds_2;
935
931
  }
936
- var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length === newBulkBlockIds_2.length;
932
+ var groupDisabled = getWorkDirDirectChildrenLength() === newBulkBlockIds_2.length;
937
933
  sectionActionHandler &&
938
934
  sectionActionHandler({
939
935
  type: '@CUSTOMSECTION/BLOCK_CLICKED',
@@ -1017,6 +1013,10 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
1017
1013
  innerRef.current.setAttribute('data-section-id', props.id.toString());
1018
1014
  }
1019
1015
  }, []);
1016
+ function getWorkDirDirectChildrenLength() {
1017
+ var ids = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).filter(function (each) { return each !== 'BULK'; });
1018
+ return ids.length + bulkBlockIds.length;
1019
+ }
1020
1020
  var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
1021
1021
  return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsxs)(gleStyles_1.S_gleStyles, __assign({ isBulkMode: shortcutKeyMode === 'BULK_SELECT' }, { children: [showSectionHiddenCover && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, onContextMenu: function (e) {
1022
1022
  e.stopPropagation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.303",
3
+ "version": "2.5.304",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",