publ-echo 0.0.111 → 0.0.112
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.
|
@@ -410,12 +410,6 @@ var GridItem = function (_a) {
|
|
|
410
410
|
cssTransforms: useCSSTransforms,
|
|
411
411
|
}),
|
|
412
412
|
style: __assign(__assign(__assign({}, props.style), child.props.style), createStyle(pos)),
|
|
413
|
-
onClick: function (event) {
|
|
414
|
-
var _a;
|
|
415
|
-
if ((_a = child.props.className) === null || _a === void 0 ? void 0 : _a.includes('not-editable-grid-item')) {
|
|
416
|
-
event.preventDefault();
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
413
|
});
|
|
420
414
|
newChild = mixinResizable(newChild, pos, isResizable);
|
|
421
415
|
newChild = mixinDraggable(newChild, isDraggable);
|
|
@@ -568,10 +568,10 @@ var ReactGridLayout = function (_a) {
|
|
|
568
568
|
var isInsideOfEditingGroup = editingGroupAllChildren.includes(l.i);
|
|
569
569
|
var editorZIndex = (function () {
|
|
570
570
|
if (isInBulk) {
|
|
571
|
-
return zIndexMap.
|
|
571
|
+
return zIndexMap.CB_IN_EDITING_GROUP + z;
|
|
572
572
|
}
|
|
573
573
|
if (!isRoot && isInsideOfEditingGroup) {
|
|
574
|
-
return zIndexMap.
|
|
574
|
+
return zIndexMap.CB_IN_EDITING_GROUP + z;
|
|
575
575
|
}
|
|
576
576
|
if (isRoot && editable) {
|
|
577
577
|
return zIndexMap.ROOT + z;
|
|
@@ -683,16 +683,16 @@ var ReactGridLayout = function (_a) {
|
|
|
683
683
|
return zIndexMap.EDITING_GROUP;
|
|
684
684
|
}
|
|
685
685
|
if (isBulk) {
|
|
686
|
-
return zIndexMap.
|
|
686
|
+
return zIndexMap.CB_IN_EDITING_GROUP + groupItem.z;
|
|
687
687
|
}
|
|
688
688
|
if (isInBulk) {
|
|
689
689
|
// 위와 같지만 이것은 not-editable이긴 함.
|
|
690
690
|
// const bulkBlock = findBlockByBlockId(blockStructure, 'BULK');
|
|
691
691
|
// const bulkZOrder = bulkBlock?.[device === 'DESKTOP' ? 'zOrderDesktopInternal' : 'zOrderMobileInternal'] ?? 0;
|
|
692
|
-
return zIndexMap.
|
|
692
|
+
return zIndexMap.CB_IN_EDITING_GROUP + zOrder;
|
|
693
693
|
}
|
|
694
694
|
if (!isRoot && type === 'GROUP_BLOCK') {
|
|
695
|
-
return zIndexMap.
|
|
695
|
+
return zIndexMap.EDITABLE_GROUP + zOrder;
|
|
696
696
|
}
|
|
697
697
|
if (type === 'GROUP_BLOCK') {
|
|
698
698
|
return zIndexMap.GROUP;
|
|
@@ -9,8 +9,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
9
9
|
};
|
|
10
10
|
export var zIndexMap = {
|
|
11
11
|
ISDRAGGING: 999999,
|
|
12
|
-
BULK:
|
|
13
|
-
|
|
12
|
+
BULK: 30000,
|
|
13
|
+
EDITABLE_GROUP: 20000,
|
|
14
|
+
CB_IN_EDITING_GROUP: 10000,
|
|
14
15
|
EDITING_GROUP: 9000,
|
|
15
16
|
GROUP: 5000,
|
|
16
17
|
CB: 0,
|