publ-echo-test 0.0.395 → 0.0.396
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.
|
@@ -30,7 +30,7 @@ import { Resizable } from "../Resizable";
|
|
|
30
30
|
var GridItem = function (_a) {
|
|
31
31
|
var _b;
|
|
32
32
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
33
|
-
var resizeHandle = props.resizeHandle, cols = props.cols, zOrder = props.zOrder, zOrderInternal = props.zOrderInternal, isDraggable = props.isDraggable, _c = props.transformScale, transformScale = _c === void 0 ? 1 : _c, isResizable = props.isResizable, useCSSTransforms = props.useCSSTransforms, className = props.className, _d = props.cancel, cancel = _d === void 0 ? "" : _d, _e = props.handle, handle = _e === void 0 ? "" : _e, x = props.x, y = props.y, z = props.z, w = props.w, h = props.h, _f = props.minH, minH = _f === void 0 ? 1 : _f, _g = props.minW, minW = _g === void 0 ? 1 : _g, _h = props.maxH, maxH = _h === void 0 ? Infinity : _h, _j = props.maxW, maxW = _j === void 0 ? Infinity : _j, i = props.i, _k = props.isHiddenVisibility, isHiddenVisibility = _k === void 0 ? false : _k, containerWidth = props.containerWidth, customColWidth = props.customColWidth, autoResize = props.autoResize, heightFitContent = props.heightFitContent;
|
|
33
|
+
var resizeHandle = props.resizeHandle, cols = props.cols, zOrder = props.zOrder, zOrderInternal = props.zOrderInternal, isDraggable = props.isDraggable, _c = props.transformScale, transformScale = _c === void 0 ? 1 : _c, isResizable = props.isResizable, useCSSTransforms = props.useCSSTransforms, className = props.className, _d = props.cancel, cancel = _d === void 0 ? "" : _d, _e = props.handle, handle = _e === void 0 ? "" : _e, x = props.x, y = props.y, z = props.z, w = props.w, h = props.h, _f = props.minH, minH = _f === void 0 ? 1 : _f, _g = props.minW, minW = _g === void 0 ? 1 : _g, _h = props.maxH, maxH = _h === void 0 ? Infinity : _h, _j = props.maxW, maxW = _j === void 0 ? Infinity : _j, i = props.i, _k = props.isHiddenVisibility, isHiddenVisibility = _k === void 0 ? false : _k, containerWidth = props.containerWidth, customColWidth = props.customColWidth, autoResize = props.autoResize, heightFitContent = props.heightFitContent, isGroupChild = props.isGroupChild;
|
|
34
34
|
var _l = useState(), resizing = _l[0], setResizing = _l[1];
|
|
35
35
|
var _m = useState(), dragging = _m[0], setDragging = _m[1];
|
|
36
36
|
var _o = useState(), dragStart = _o[0], setDragStart = _o[1];
|
|
@@ -615,6 +615,7 @@ var GridItem = function (_a) {
|
|
|
615
615
|
isDragging: Boolean(isDragging) && Boolean(dragging) && Boolean(isHiddenVisibility),
|
|
616
616
|
"react-draggable-dragging": Boolean(dragging),
|
|
617
617
|
// dropping: Boolean(droppingPosition),
|
|
618
|
+
"is-group-child": props.isGroupChild,
|
|
618
619
|
cssTransforms: useCSSTransforms,
|
|
619
620
|
}),
|
|
620
621
|
style: __assign(__assign(__assign({}, props.style), child.props.style), createStyle(pos)),
|
|
@@ -539,6 +539,9 @@ var ReactGridLayout = function (_a) {
|
|
|
539
539
|
var editable = editableBlockIds.includes(Number(l.i));
|
|
540
540
|
var z = l.z || 0;
|
|
541
541
|
var isInBulk = blockStructure && (bulkIds === null || bulkIds === void 0 ? void 0 : bulkIds.includes(formatCbIdToBlockId(Number(l.i))));
|
|
542
|
+
var isInGroup = blockStructure &&
|
|
543
|
+
selectedGroupBlock !== "ROOT" &&
|
|
544
|
+
findAllChildrenCbIds(blockStructure, selectedGroupBlock).includes(Number(l.i));
|
|
542
545
|
var isRoot = editingGroupBlock === "ROOT";
|
|
543
546
|
var block = blockStructure
|
|
544
547
|
? findBlockByBlockId(blockStructure, formatCbIdToBlockId(Number(l.i)))
|
|
@@ -612,6 +615,7 @@ var ReactGridLayout = function (_a) {
|
|
|
612
615
|
"bulk-child-item": isInBulk,
|
|
613
616
|
"outside-of-editing-group": !isInsideOfEditingGroup,
|
|
614
617
|
"show-block-data": showBlockData,
|
|
618
|
+
"is-in-group": isInGroup,
|
|
615
619
|
}), z: zIndex, zOrder: l.z, zOrderInternal: parent
|
|
616
620
|
? "".concat(parent[device === "DESKTOP"
|
|
617
621
|
? "zOrderDesktopInternal"
|
|
@@ -736,7 +740,6 @@ var ReactGridLayout = function (_a) {
|
|
|
736
740
|
var parent = blockStructure
|
|
737
741
|
? findParentGroupBlock(blockStructure, block.blockId)
|
|
738
742
|
: null;
|
|
739
|
-
console.log("active rows", activeRows);
|
|
740
743
|
return (_jsx(OutsideClickHandler, { onOutsideClick: onDoubleClickOutsideGroup, children: _jsx(GroupItem, { heightFitContent: false, isheightVariable: device === "DESKTOP"
|
|
741
744
|
? !!block.isHeightVariableDesktop
|
|
742
745
|
: !!block.isHeightVariableMobile, className: classNames({
|
|
@@ -793,8 +796,6 @@ var ReactGridLayout = function (_a) {
|
|
|
793
796
|
var activeRowsFiltered = shouldShowAllHeightVariableRows
|
|
794
797
|
? heightVariableRows
|
|
795
798
|
: activeRows;
|
|
796
|
-
console.log("activeDrag:", activeDrag);
|
|
797
|
-
console.log("selectedLayoutItem:", selectedLayoutItem);
|
|
798
799
|
return (_jsxs("div", { ref: innerRef, className: mergedClassName, style: mergedStyle, onDrop: isDroppable ? onDropHandler : noop, onDragLeave: isDroppable ? onDragLeaveHandler : noop, onDragEnter: isDroppable ? onDragEnterHandler : noop, onDragOver: isDroppable ? onDragOverHandler : noop, "data-grid-row-height": rowHeight, "data-grid-cols": cols, "data-section-id": sectionId, children: [currentGroupBlocks.map(function (each) { return processGroup(each); }), React.Children.map(children, function (child) { return processGridItem(child); }), placeholder(), activeDrag && _jsx("div", { className: "grid-guide-line-center" }), activeDragItemOrSelectedItem && (_jsx(GridBackgroundPlaceholder, { device: device, backgroundWidth: getBackgroundWidth(), backgroundHeight: getBackgroundHeight(), margin: margin,
|
|
799
800
|
// width={width}
|
|
800
801
|
rowHeight: rowHeight, activeRows: activeRowsFiltered !== null && activeRowsFiltered !== void 0 ? activeRowsFiltered : [], colWidth: colWidth, activeDrag: activeDragItemOrSelectedItem, activeBlock: activeBlock, selectedBlockId: selectedBlockId, totalCols: cols, layout: layout }))] }));
|