publ-echo-test 0.0.75 → 0.0.76
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.
@@ -207,6 +207,12 @@ var GridItem = function (_a) {
|
|
207
207
|
*/
|
208
208
|
var onDragStart = function (e, _a) {
|
209
209
|
var node = _a.node, deltaX = _a.deltaX, deltaY = _a.deltaY;
|
210
|
+
if (className === null || className === void 0 ? void 0 : className.split(" ").includes("bulk-child-item")) {
|
211
|
+
if (elementRef.current) {
|
212
|
+
elementRef.current.style.pointerEvents = 'none';
|
213
|
+
}
|
214
|
+
return;
|
215
|
+
}
|
210
216
|
var newPosition = { top: 0, left: 0 };
|
211
217
|
var offsetParent = node.offsetParent;
|
212
218
|
if (!offsetParent)
|
@@ -401,12 +407,8 @@ var GridItem = function (_a) {
|
|
401
407
|
}),
|
402
408
|
style: __assign(__assign(__assign({}, props.style), child.props.style), createStyle(pos)),
|
403
409
|
});
|
404
|
-
|
405
|
-
|
406
|
-
}
|
407
|
-
if (isDraggable) {
|
408
|
-
newChild = mixinDraggable(newChild, isDraggable);
|
409
|
-
}
|
410
|
+
newChild = mixinResizable(newChild, pos, isResizable);
|
411
|
+
newChild = mixinDraggable(newChild, isDraggable);
|
410
412
|
return newChild;
|
411
413
|
};
|
412
414
|
export default GridItem;
|
@@ -516,9 +516,7 @@ var ReactGridLayout = function (_a) {
|
|
516
516
|
'not-editable-grid-item': (!isRoot && !editable),
|
517
517
|
'bulk-child-item': isInBulk,
|
518
518
|
'outside-of-editing-group': outsideOfEditingGroup,
|
519
|
-
}),
|
520
|
-
// className={editable ? 'editable-grid-item' : isInBulk ? 'bulk-grid-item': 'not-editable-grid-item'}
|
521
|
-
z: baseZ() + z, isDraggable: editable && !isInBulk, isResizable: editable && !isInBulk, containerWidth: width, cols: cols, margin: margin, containerPadding: containerPadding || margin, maxRows: maxRows, rowHeight: rowHeight, cancel: draggableCancel, handle: draggableHandle, onDragStop: onDragStopHandler, onDragStart: onDragStartHandler, onDrag: onDragHandler, onResizeStart: onResizeStartHandler, onResize: onResizeHandler, onResizeStop: onResizeStopHandler, onFitToContent: onFitToContentHandler, isBounded: bounded, useCSSTransforms: useCSSTransforms && isMounted, usePercentages: !isMounted, transformScale: transformScale, w: l.w, h: l.h, x: l.x, y: l.y, i: l.i, minH: l.minH, minW: l.minW, maxH: l.maxH, maxW: l.maxW, static: l.static, droppingPosition: isDroppingItem ? droppingPosition : undefined, resizeHandles: resizeHandlesOptions, resizeHandle: resizeHandle, isHiddenVisibility: isHiddenVisibility, customColWidth: colWidth, autoResize: !!l.autoResize, children: child }, l.i));
|
519
|
+
}), z: baseZ() + z, isDraggable: editable && !isInBulk, isResizable: editable && !isInBulk, containerWidth: width, cols: cols, margin: margin, containerPadding: containerPadding || margin, maxRows: maxRows, rowHeight: rowHeight, cancel: draggableCancel, handle: draggableHandle, onDragStop: onDragStopHandler, onDragStart: onDragStartHandler, onDrag: onDragHandler, onResizeStart: onResizeStartHandler, onResize: onResizeHandler, onResizeStop: onResizeStopHandler, onFitToContent: onFitToContentHandler, isBounded: bounded, useCSSTransforms: useCSSTransforms && isMounted, usePercentages: !isMounted, transformScale: transformScale, w: l.w, h: l.h, x: l.x, y: l.y, i: l.i, minH: l.minH, minW: l.minW, maxH: l.maxH, maxW: l.maxW, static: l.static, droppingPosition: isDroppingItem ? droppingPosition : undefined, resizeHandles: resizeHandlesOptions, resizeHandle: resizeHandle, isHiddenVisibility: isHiddenVisibility, customColWidth: colWidth, autoResize: !!l.autoResize, children: child }, l.i));
|
522
520
|
};
|
523
521
|
var onDragOverHandler = function (e) {
|
524
522
|
var _a;
|
@@ -608,7 +606,11 @@ var ReactGridLayout = function (_a) {
|
|
608
606
|
var isEditingGroup = block.blockId === editingGroupBlock;
|
609
607
|
var type = getBlockSpecificType(block);
|
610
608
|
var isRoot = editingGroupBlock === 'ROOT';
|
609
|
+
var isInBulk = bulkIds === null || bulkIds === void 0 ? void 0 : bulkIds.includes(block.blockId);
|
611
610
|
var z = (function () {
|
611
|
+
if (isInBulk) {
|
612
|
+
return zIndexMap.BULK;
|
613
|
+
}
|
612
614
|
if (!isRoot && type === 'GROUP_BLOCK') {
|
613
615
|
return zIndexMap.EDITING_GROUP;
|
614
616
|
}
|