pds-dev-kit-web-test 2.5.302 → 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,7 +277,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
277
277
|
else {
|
278
278
|
childrenCBIds = newBulkCBIds;
|
279
279
|
}
|
280
|
-
var groupDisabled = (
|
280
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === __spreadArray(__spreadArray([], bulkBlockIds, true), bulks_1, true).length;
|
281
281
|
sectionActionHandler &&
|
282
282
|
sectionActionHandler({
|
283
283
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -349,7 +349,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
349
349
|
else {
|
350
350
|
childrenCBIds = newBulkCBIds;
|
351
351
|
}
|
352
|
-
var groupDisabled = (
|
352
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === allRootChildIds.length;
|
353
353
|
sectionActionHandler &&
|
354
354
|
sectionActionHandler({
|
355
355
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -427,7 +427,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
427
427
|
else {
|
428
428
|
childrenCBIds = newBulkCBIds;
|
429
429
|
}
|
430
|
-
var groupDisabled = (
|
430
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === __spreadArray(__spreadArray([], bulkBlockIds, true), added, true).length;
|
431
431
|
sectionActionHandler &&
|
432
432
|
sectionActionHandler({
|
433
433
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -479,7 +479,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
479
479
|
else {
|
480
480
|
childrenCBIds = newBulkCBIds;
|
481
481
|
}
|
482
|
-
var groupDisabled = (
|
482
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === newBulks.length;
|
483
483
|
sectionActionHandler &&
|
484
484
|
sectionActionHandler({
|
485
485
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -873,7 +873,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
873
873
|
childrenCBIds_1 = newBulkCBIds_1;
|
874
874
|
}
|
875
875
|
setBulkBlockIds(newBulkBlockIds_1);
|
876
|
-
var groupDisabled = (
|
876
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === newBulkBlockIds_1.length;
|
877
877
|
sectionActionHandler &&
|
878
878
|
sectionActionHandler({
|
879
879
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -929,7 +929,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
929
929
|
else {
|
930
930
|
childrenCBIds_2 = newBulkCBIds_2;
|
931
931
|
}
|
932
|
-
var groupDisabled = (
|
932
|
+
var groupDisabled = getWorkDirDirectChildrenLength() === newBulkBlockIds_2.length;
|
933
933
|
sectionActionHandler &&
|
934
934
|
sectionActionHandler({
|
935
935
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -1013,8 +1013,11 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
1013
1013
|
innerRef.current.setAttribute('data-section-id', props.id.toString());
|
1014
1014
|
}
|
1015
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
|
+
}
|
1016
1020
|
var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
|
1017
|
-
console.log('editableCBIDs', editableCBIDs);
|
1018
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) {
|
1019
1022
|
e.stopPropagation();
|
1020
1023
|
e.preventDefault();
|