publ-echo 0.0.112 → 0.0.115
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.
|
@@ -567,8 +567,8 @@ var ReactGridLayout = function (_a) {
|
|
|
567
567
|
var zOrder = (_a = block[device === 'DESKTOP' ? 'zOrderDesktopInternal' : 'zOrderMobileInternal']) !== null && _a !== void 0 ? _a : 0;
|
|
568
568
|
var isInsideOfEditingGroup = editingGroupAllChildren.includes(l.i);
|
|
569
569
|
var editorZIndex = (function () {
|
|
570
|
-
if (isInBulk) {
|
|
571
|
-
return
|
|
570
|
+
if (isRoot && isInBulk) {
|
|
571
|
+
return z;
|
|
572
572
|
}
|
|
573
573
|
if (!isRoot && isInsideOfEditingGroup) {
|
|
574
574
|
return zIndexMap.CB_IN_EDITING_GROUP + z;
|
|
@@ -672,37 +672,35 @@ var ReactGridLayout = function (_a) {
|
|
|
672
672
|
if (!groupItem) {
|
|
673
673
|
return _jsx(_Fragment, {});
|
|
674
674
|
}
|
|
675
|
-
var
|
|
675
|
+
var internalZOrder = (_a = block[device === 'DESKTOP' ? 'zOrderDesktopInternal' : 'zOrderMobileInternal']) !== null && _a !== void 0 ? _a : 0;
|
|
676
676
|
var isEditingGroup = block.blockId === editingGroupBlock;
|
|
677
677
|
var type = getBlockSpecificType(block);
|
|
678
678
|
var isRoot = editingGroupBlock === 'ROOT';
|
|
679
679
|
var isInBulk = bulkIds === null || bulkIds === void 0 ? void 0 : bulkIds.includes(block.blockId);
|
|
680
680
|
var isBulk = block.blockId === 'BULK';
|
|
681
681
|
var baseZ = (function () {
|
|
682
|
-
if (isEditingGroup) {
|
|
683
|
-
return zIndexMap.EDITING_GROUP;
|
|
684
|
-
}
|
|
685
682
|
if (isBulk) {
|
|
683
|
+
// groupItem.z : 그룹 내 CB중 가장 큰 zorder
|
|
686
684
|
return zIndexMap.CB_IN_EDITING_GROUP + groupItem.z;
|
|
687
685
|
}
|
|
688
686
|
if (isInBulk) {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
return zIndexMap.CB_IN_EDITING_GROUP +
|
|
687
|
+
if (!isRoot) {
|
|
688
|
+
return zIndexMap.EDITABLE_GROUP + internalZOrder;
|
|
689
|
+
}
|
|
690
|
+
return zIndexMap.CB_IN_EDITING_GROUP + internalZOrder;
|
|
691
|
+
}
|
|
692
|
+
if (isEditingGroup) {
|
|
693
|
+
return zIndexMap.EDITING_GROUP;
|
|
693
694
|
}
|
|
694
695
|
if (!isRoot && type === 'GROUP_BLOCK') {
|
|
695
|
-
return zIndexMap.EDITABLE_GROUP +
|
|
696
|
+
return zIndexMap.EDITABLE_GROUP + internalZOrder;
|
|
696
697
|
}
|
|
697
698
|
if (type === 'GROUP_BLOCK') {
|
|
698
699
|
return zIndexMap.GROUP;
|
|
699
700
|
}
|
|
700
|
-
|
|
701
|
-
return zIndexMap.BULK;
|
|
702
|
-
}
|
|
703
|
-
return zIndexMap.CB;
|
|
701
|
+
return -1; // NOTE: ERROR
|
|
704
702
|
})();
|
|
705
|
-
var zIndex = editorMode === 'EDIT' ? baseZ :
|
|
703
|
+
var zIndex = editorMode === 'EDIT' ? baseZ : internalZOrder;
|
|
706
704
|
var handleClick = function (e) {
|
|
707
705
|
onClickGroup && onClickGroup(e, block.blockId, type);
|
|
708
706
|
};
|
|
@@ -721,11 +719,11 @@ var ReactGridLayout = function (_a) {
|
|
|
721
719
|
'grid-bulk-block': block.blockId === 'BULK',
|
|
722
720
|
editing: editingGroupBlock === block.blockId,
|
|
723
721
|
selected: selectedGroupBlock === block.blockId,
|
|
724
|
-
}), z: zIndex, minZ: groupItem.minZ, zOrder:
|
|
722
|
+
}), z: zIndex, minZ: groupItem.minZ, zOrder: internalZOrder, zOrderInternal: parent
|
|
725
723
|
? "".concat(parent[device === 'DESKTOP'
|
|
726
724
|
? 'zOrderDesktopInternal'
|
|
727
|
-
: 'zOrderMobileInternal'], " > ").concat(
|
|
728
|
-
:
|
|
725
|
+
: 'zOrderMobileInternal'], " > ").concat(internalZOrder)
|
|
726
|
+
: internalZOrder.toString(), containerWidth: width, cols: cols, margin: margin, containerPadding: containerPadding || margin, maxRows: maxRows, rowHeight: rowHeight, cancel: draggableCancel, handle: draggableHandle, onDragStop: onDragStopGroupHandler, onDragStart: onDragStartHandler, onDrag: onDragHandler, onResizeStart: onResizeStartHandler, onResize: onResizeHandler, onResizeStop: onResizeStopHandler, onFitToContent: onFitToContentHandler, isDraggable: !viewOnly && !isEditingGroup && !isInBulk, isResizable: !viewOnly && !isEditingGroup && !isInBulk, isBounded: false, useCSSTransforms: useCSSTransforms && isMounted, usePercentages: !isMounted, transformScale: transformScale, w: groupItem.w, h: groupItem.h, x: groupItem.x, y: groupItem.y, i: block.blockId,
|
|
729
727
|
// minH={l.minH}
|
|
730
728
|
// minW={l.minW}
|
|
731
729
|
// maxH={l.maxH}
|