pds-dev-kit-web-test 2.7.421 → 2.7.422
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.
|
@@ -583,19 +583,13 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
583
583
|
if (!props.item) {
|
|
584
584
|
return;
|
|
585
585
|
}
|
|
586
|
-
var
|
|
587
|
-
if (
|
|
588
|
-
if (props.item.i === 'BULK') {
|
|
589
|
-
// do bulk
|
|
590
|
-
}
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
if (blockKind.type === 'CB') {
|
|
586
|
+
var blockType = props.item.i.startsWith('GB_') ? 'GROUP_BLOCK' : 'COMPONENT_BLOCK';
|
|
587
|
+
if (blockType === 'COMPONENT_BLOCK') {
|
|
594
588
|
onClickCB(Number(props.item.i));
|
|
595
589
|
}
|
|
596
|
-
if (
|
|
590
|
+
if (blockType === 'GROUP_BLOCK' && props.e) {
|
|
597
591
|
var e = props.e;
|
|
598
|
-
onClickGroup(e,
|
|
592
|
+
onClickGroup(e, props.item.i);
|
|
599
593
|
}
|
|
600
594
|
sectionActionHandler &&
|
|
601
595
|
sectionActionHandler({
|
|
@@ -608,7 +602,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
608
602
|
if (!isEditMode || !props.item) {
|
|
609
603
|
return;
|
|
610
604
|
}
|
|
611
|
-
console.log('------ onDragStop -------', props);
|
|
612
605
|
var item = props.item, prev = props.prev;
|
|
613
606
|
var isShiftOn = shortcutKeyMode === 'BULK_SELECT' || shortcutKeyMode === 'COLLISION_SELECT';
|
|
614
607
|
if (isLayoutPlacementSame(item, prev) && isShiftOn) {
|
|
@@ -1041,7 +1034,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
1041
1034
|
var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
|
|
1042
1035
|
var t = (0, react_i18next_1.useTranslation)('translation').t;
|
|
1043
1036
|
var a = t('str_grid_height_variable');
|
|
1044
|
-
console.log('here', a);
|
|
1045
1037
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsxs)(gleStyles_1.S_gleStyles, __assign({ isBulkMode: shortcutKeyMode === 'BULK_SELECT', strKeys: { str_grid_height_variable: a } }, { 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) {
|
|
1046
1038
|
e.stopPropagation();
|
|
1047
1039
|
e.preventDefault();
|