publ-echo-test 0.0.73 → 0.0.75
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.
@@ -248,7 +248,6 @@ var GridItem = function (_a) {
|
|
248
248
|
var rowHeightNumber = resolveRowHeight(rowHeight, colWidth);
|
249
249
|
var bottomBoundary = offsetParent.clientHeight -
|
250
250
|
calcGridItemWHPx(h, rowHeightNumber, margin[1]);
|
251
|
-
console.log('bb', bottomBoundary);
|
252
251
|
top = clamp(top, 0, bottomBoundary);
|
253
252
|
var rightBoundary = containerWidth - calcGridItemWHPx(w, colWidth, margin[0]);
|
254
253
|
left = clamp(left, 0, rightBoundary);
|
@@ -385,7 +384,6 @@ var GridItem = function (_a) {
|
|
385
384
|
resizing: resizing,
|
386
385
|
}, colWidth);
|
387
386
|
var child = React.Children.only(children);
|
388
|
-
// console.log(child.props.className, className)
|
389
387
|
var newChild = React.cloneElement(child, {
|
390
388
|
key: i,
|
391
389
|
ref: elementRef,
|
@@ -403,8 +401,12 @@ var GridItem = function (_a) {
|
|
403
401
|
}),
|
404
402
|
style: __assign(__assign(__assign({}, props.style), child.props.style), createStyle(pos)),
|
405
403
|
});
|
406
|
-
|
407
|
-
|
404
|
+
if (isResizable) {
|
405
|
+
newChild = mixinResizable(newChild, pos, isResizable);
|
406
|
+
}
|
407
|
+
if (isDraggable) {
|
408
|
+
newChild = mixinDraggable(newChild, isDraggable);
|
409
|
+
}
|
408
410
|
return newChild;
|
409
411
|
};
|
410
412
|
export default GridItem;
|
@@ -496,6 +496,9 @@ var ReactGridLayout = function (_a) {
|
|
496
496
|
var isInBulk = bulkIds === null || bulkIds === void 0 ? void 0 : bulkIds.includes(l.i);
|
497
497
|
var isRoot = editingGroupBlock === 'ROOT';
|
498
498
|
var baseZ = function () {
|
499
|
+
if (isInBulk) {
|
500
|
+
return zIndexMap.BULK;
|
501
|
+
}
|
499
502
|
if (!isRoot && editable) {
|
500
503
|
return zIndexMap.EDITING_GROUP;
|
501
504
|
}
|
@@ -515,7 +518,7 @@ var ReactGridLayout = function (_a) {
|
|
515
518
|
'outside-of-editing-group': outsideOfEditingGroup,
|
516
519
|
}),
|
517
520
|
// className={editable ? 'editable-grid-item' : isInBulk ? 'bulk-grid-item': 'not-editable-grid-item'}
|
518
|
-
z: baseZ() + z, isDraggable: editable, isResizable: editable, 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));
|
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
522
|
};
|
520
523
|
var onDragOverHandler = function (e) {
|
521
524
|
var _a;
|