publ-echo-test 0.0.75 → 0.0.77
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.
@@ -401,12 +401,8 @@ var GridItem = function (_a) {
|
|
401
401
|
}),
|
402
402
|
style: __assign(__assign(__assign({}, props.style), child.props.style), createStyle(pos)),
|
403
403
|
});
|
404
|
-
|
405
|
-
|
406
|
-
}
|
407
|
-
if (isDraggable) {
|
408
|
-
newChild = mixinDraggable(newChild, isDraggable);
|
409
|
-
}
|
404
|
+
newChild = mixinResizable(newChild, pos, isResizable);
|
405
|
+
newChild = mixinDraggable(newChild, isDraggable);
|
410
406
|
return newChild;
|
411
407
|
};
|
412
408
|
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
|
}
|