pds-dev-kit-web-test 2.5.301 → 2.5.303
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.
@@ -258,8 +258,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
258
258
|
return;
|
259
259
|
}
|
260
260
|
var bulks_1 = getCollisionGroupIds(selectedCBId);
|
261
|
-
// const newBulksSet = new Set([...bulkBlockIds, ...bulks]);
|
262
|
-
// const newBulks = Array.from(newBulksSet);
|
263
261
|
if (selectedBlockId) {
|
264
262
|
bulks_1.push(selectedBlockId);
|
265
263
|
}
|
@@ -279,6 +277,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
279
277
|
else {
|
280
278
|
childrenCBIds = newBulkCBIds;
|
281
279
|
}
|
280
|
+
var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length ===
|
281
|
+
__spreadArray(__spreadArray([], bulkBlockIds, true), bulks_1, true).length;
|
282
282
|
sectionActionHandler &&
|
283
283
|
sectionActionHandler({
|
284
284
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -288,7 +288,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
288
288
|
blockId: 'BULK',
|
289
289
|
childrenBlockIds: bulks_1,
|
290
290
|
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
291
|
-
childrenCBIds: childrenCBIds
|
291
|
+
childrenCBIds: childrenCBIds,
|
292
|
+
groupDisabled: groupDisabled
|
292
293
|
}
|
293
294
|
}
|
294
295
|
});
|
@@ -349,6 +350,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
349
350
|
else {
|
350
351
|
childrenCBIds = newBulkCBIds;
|
351
352
|
}
|
353
|
+
var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length === allRootChildIds.length;
|
352
354
|
sectionActionHandler &&
|
353
355
|
sectionActionHandler({
|
354
356
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -358,7 +360,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
358
360
|
blockId: 'BULK',
|
359
361
|
childrenBlockIds: allRootChildIds,
|
360
362
|
workDir: (_e = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _e !== void 0 ? _e : 'NOT-FOUND',
|
361
|
-
childrenCBIds: childrenCBIds
|
363
|
+
childrenCBIds: childrenCBIds,
|
364
|
+
groupDisabled: groupDisabled
|
362
365
|
}
|
363
366
|
}
|
364
367
|
});
|
@@ -425,6 +428,10 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
425
428
|
else {
|
426
429
|
childrenCBIds = newBulkCBIds;
|
427
430
|
}
|
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));
|
428
435
|
sectionActionHandler &&
|
429
436
|
sectionActionHandler({
|
430
437
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -434,7 +441,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
434
441
|
blockId: 'BULK',
|
435
442
|
childrenBlockIds: newBulkBlockIds,
|
436
443
|
childrenCBIds: childrenCBIds,
|
437
|
-
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
|
444
|
+
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
445
|
+
groupDisabled: groupDisabled
|
438
446
|
}
|
439
447
|
}
|
440
448
|
});
|
@@ -475,6 +483,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
475
483
|
else {
|
476
484
|
childrenCBIds = newBulkCBIds;
|
477
485
|
}
|
486
|
+
var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length === newBulks.length;
|
478
487
|
sectionActionHandler &&
|
479
488
|
sectionActionHandler({
|
480
489
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -484,7 +493,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
484
493
|
blockId: 'BULK',
|
485
494
|
childrenBlockIds: newBulks,
|
486
495
|
workDir: (_c = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _c !== void 0 ? _c : 'NOT-FOUND',
|
487
|
-
childrenCBIds: childrenCBIds
|
496
|
+
childrenCBIds: childrenCBIds,
|
497
|
+
groupDisabled: groupDisabled
|
488
498
|
}
|
489
499
|
}
|
490
500
|
});
|
@@ -867,6 +877,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
867
877
|
childrenCBIds_1 = newBulkCBIds_1;
|
868
878
|
}
|
869
879
|
setBulkBlockIds(newBulkBlockIds_1);
|
880
|
+
var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length === newBulkBlockIds_1.length;
|
870
881
|
sectionActionHandler &&
|
871
882
|
sectionActionHandler({
|
872
883
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -876,7 +887,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
876
887
|
type: 'BULK',
|
877
888
|
childrenBlockIds: newBulkBlockIds_1,
|
878
889
|
childrenCBIds: childrenCBIds_1,
|
879
|
-
workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND'
|
890
|
+
workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND',
|
891
|
+
groupDisabled: groupDisabled
|
880
892
|
}
|
881
893
|
}
|
882
894
|
});
|
@@ -921,6 +933,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
921
933
|
else {
|
922
934
|
childrenCBIds_2 = newBulkCBIds_2;
|
923
935
|
}
|
936
|
+
var groupDisabled = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).length === newBulkBlockIds_2.length;
|
924
937
|
sectionActionHandler &&
|
925
938
|
sectionActionHandler({
|
926
939
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -930,7 +943,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
930
943
|
type: 'BULK',
|
931
944
|
childrenBlockIds: newBulkBlockIds_2,
|
932
945
|
childrenCBIds: childrenCBIds_2,
|
933
|
-
workDir: (_f = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _f !== void 0 ? _f : 'NOT-FOUND'
|
946
|
+
workDir: (_f = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _f !== void 0 ? _f : 'NOT-FOUND',
|
947
|
+
groupDisabled: groupDisabled
|
934
948
|
}
|
935
949
|
}
|
936
950
|
});
|
@@ -1004,7 +1018,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
1004
1018
|
}
|
1005
1019
|
}, []);
|
1006
1020
|
var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
|
1007
|
-
console.log('editableCBIDs', editableCBIDs);
|
1008
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) {
|
1009
1022
|
e.stopPropagation();
|
1010
1023
|
e.preventDefault();
|