pds-dev-kit-web-test 2.5.303 → 2.5.305
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 = (
|
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 = (
|
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 = (
|
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 = (
|
482
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === newBulks.length;
|
487
483
|
sectionActionHandler &&
|
488
484
|
sectionActionHandler({
|
489
485
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -775,7 +771,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
775
771
|
var breakpoints = device === 'DESKTOP' ? { lg: 100, sm: 0 } : { lg: 1200, sm: 480 };
|
776
772
|
var innerRef = (0, react_1.useRef)(null);
|
777
773
|
var clickOneCBInBulk = function (id) {
|
778
|
-
var _a;
|
774
|
+
var _a, _b;
|
779
775
|
var blockId = (0, group_1.formatCbIdToBlockId)(id);
|
780
776
|
if (shortcutKeyMode === 'COLLISION_SELECT') {
|
781
777
|
return;
|
@@ -806,7 +802,26 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
806
802
|
});
|
807
803
|
return;
|
808
804
|
}
|
809
|
-
|
805
|
+
var filtered = bulkBlockIds.filter(function (each) { return each !== blockId; });
|
806
|
+
setBulkBlockIds(filtered);
|
807
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === filtered.length;
|
808
|
+
var newBulkCBIds = filtered
|
809
|
+
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
810
|
+
.filter(function (each) { return each !== null; });
|
811
|
+
sectionActionHandler &&
|
812
|
+
sectionActionHandler({
|
813
|
+
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
814
|
+
payload: {
|
815
|
+
block: {
|
816
|
+
type: 'BULK',
|
817
|
+
blockId: 'BULK',
|
818
|
+
childrenBlockIds: filtered,
|
819
|
+
workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND',
|
820
|
+
childrenCBIds: newBulkCBIds,
|
821
|
+
groupDisabled: groupDisabled
|
822
|
+
}
|
823
|
+
}
|
824
|
+
});
|
810
825
|
}
|
811
826
|
};
|
812
827
|
var showSectionHiddenCover = (function () {
|
@@ -877,7 +892,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
877
892
|
childrenCBIds_1 = newBulkCBIds_1;
|
878
893
|
}
|
879
894
|
setBulkBlockIds(newBulkBlockIds_1);
|
880
|
-
var groupDisabled = (
|
895
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === newBulkBlockIds_1.length;
|
881
896
|
sectionActionHandler &&
|
882
897
|
sectionActionHandler({
|
883
898
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -933,7 +948,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
933
948
|
else {
|
934
949
|
childrenCBIds_2 = newBulkCBIds_2;
|
935
950
|
}
|
936
|
-
var groupDisabled = (
|
951
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === newBulkBlockIds_2.length;
|
937
952
|
sectionActionHandler &&
|
938
953
|
sectionActionHandler({
|
939
954
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -1017,6 +1032,10 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
1017
1032
|
innerRef.current.setAttribute('data-section-id', props.id.toString());
|
1018
1033
|
}
|
1019
1034
|
}, []);
|
1035
|
+
function getWorkDirDirectChildrenLength() {
|
1036
|
+
var ids = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock).filter(function (each) { return each !== 'BULK'; });
|
1037
|
+
return ids.length + bulkBlockIds.length;
|
1038
|
+
}
|
1020
1039
|
var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
|
1021
1040
|
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
1041
|
e.stopPropagation();
|