pds-dev-kit-web-test 2.5.270 → 2.5.271
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.
@@ -998,6 +998,11 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
998
998
|
});
|
999
999
|
}
|
1000
1000
|
};
|
1001
|
+
(0, react_1.useLayoutEffect)(function () {
|
1002
|
+
if (innerRef.current) {
|
1003
|
+
innerRef.current.setAttribute('data-section-id', props.id.toString());
|
1004
|
+
}
|
1005
|
+
}, []);
|
1001
1006
|
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) {
|
1002
1007
|
e.stopPropagation();
|
1003
1008
|
e.preventDefault();
|
@@ -1009,7 +1014,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
1009
1014
|
paddingRight: padding.right,
|
1010
1015
|
paddingLeft: padding.left
|
1011
1016
|
} }, { children: (0, jsx_runtime_1.jsx)(Responsive, __assign({ innerRef: innerRef, className: (0, clsx_1.clsx)({
|
1012
|
-
'react-grid-layout': true,
|
1013
1017
|
'selected-grid-layout': editingSectionId === props.id
|
1014
1018
|
}), allowOverlap: true, layouts: layouts, resizeHandles: ['nw', 'e', 'n', 'ne', 's', 'se', 'sw', 'w'], breakpoints: breakpoints, breakpoint: breakpoint, cols: { lg: colsDesktop, sm: colsMobile }, rowHeight: rowHeight, margin: [10, 10], style: {
|
1015
1019
|
width: customSectionStyles.width,
|