pds-dev-kit-web-test 2.7.308 → 2.7.310
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.
- package/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +6 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +0 -2
- package/package.json +1 -1
|
@@ -61,11 +61,11 @@ function FlexGridItem(_a) {
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
return {
|
|
64
|
-
height:
|
|
64
|
+
height: defaultHeight,
|
|
65
65
|
maxHeight: 'none'
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
return ((0, jsx_runtime_1.jsx)(GridItem, __assign({ style: __assign(__assign({ zIndex: zIndex, gridArea: gridArea, position: 'relative' }, style), getHeightStyles()), className: "flex-grid-item", "data-is-pinned": !isParentGroupPinned && isCBPinned, "data-show-pinned": showPinned
|
|
68
|
+
return ((0, jsx_runtime_1.jsx)(GridItem, __assign({ style: __assign(__assign({ zIndex: zIndex, gridArea: gridArea, position: 'relative' }, style), getHeightStyles()), className: "flex-grid-item", "data-is-pinned": !isParentGroupPinned && isCBPinned, "data-show-pinned": showPinned }, { children: (0, jsx_runtime_1.jsx)(ComponentBlockMatcherWithCCB_1.default, { rowHeight: rowHeight, cbProps: cb, device: device, index: index }) })));
|
|
69
69
|
}
|
|
70
70
|
var GridItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: auto;\n word-break: break-word;\n"], ["\n height: auto;\n word-break: break-word;\n"])));
|
|
71
71
|
function getMaxHeight(props, device, rowHeight) {
|
|
@@ -1086,7 +1086,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
1086
1086
|
e.stopPropagation();
|
|
1087
1087
|
e.preventDefault();
|
|
1088
1088
|
onContextMenuCB(matchedCB.id, e);
|
|
1089
|
-
}
|
|
1089
|
+
} }, { children: (0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(ComponentBlockMatcherWithCCB_1.default, { cbProps: matchedCB, device: device, rowHeight: rowHeight, index: index }) }) })) }), each.i));
|
|
1090
1090
|
}) })) })) }))] })) }));
|
|
1091
1091
|
});
|
|
1092
1092
|
function isLayoutPlacementSame(current, prev) {
|
|
@@ -40,6 +40,7 @@ var isNullOrUndefined_1 = __importDefault(require("../../../../../../../DynamicL
|
|
|
40
40
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
41
41
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
|
42
42
|
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
|
43
|
+
var S_HeightFitContentCover_1 = require("../components/S_HeightFitContentCover");
|
|
43
44
|
var CustomPagination_1 = require("./components/CustomPagination");
|
|
44
45
|
var contentsListUtils_1 = require("./contentsListUtils");
|
|
45
46
|
var useFlexGridLayout_1 = require("./hooks/useFlexGridLayout");
|
|
@@ -170,7 +171,11 @@ function ContentsList(props) {
|
|
|
170
171
|
.map(function (item) {
|
|
171
172
|
return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
|
|
172
173
|
});
|
|
173
|
-
|
|
174
|
+
var heightFitContentByDevice = device === 'DESKTOP'
|
|
175
|
+
? CB_STYLE_PROP_CONTENTSLIST.CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMHEIGHTFITCONTENT
|
|
176
|
+
: CB_STYLE_PROP_CONTENTSLIST['CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMHEIGHTFITCONTENT:MOBILE'];
|
|
177
|
+
var isEditModeAndHeightFitContent = heightFitContentByDevice && mode === 'EDIT';
|
|
178
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHeightFitContent && ((0, jsx_runtime_1.jsx)(S_HeightFitContentCover_1.S_HeightFitContentCover, { bottomText: "<\uC774\uAC70 \uBB34\uC870\uAC74 \uB2E4\uBCF4\uC784>" })), Object.entries(componentGroups).map(function (_a) {
|
|
174
179
|
var position = _a[0], groupComponents = _a[1];
|
|
175
180
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentslist-button-group ccb-elements", ref: function (el) {
|
|
176
181
|
if (el) {
|
|
@@ -28,9 +28,7 @@ export type CB_STYLE_PROP_CONTENTSLISTDESIGN_SPECS = CB_STYLE_PROP_CONTENTSLISTD
|
|
|
28
28
|
'CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMLINEHEIGHT:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
|
|
29
29
|
'CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMLINEHEIGHT:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
|
|
30
30
|
'CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMLINEHEIGHT:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE;
|
|
31
|
-
'CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMHEIGHTFITCONTENT:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
|
|
32
31
|
'CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMHEIGHTFITCONTENT:MOBILE': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
|
|
33
|
-
'CB_STYLE_PROP_CONTENTSLISTDESIGN_SPEC_ITEMHEIGHTFITCONTENT:MOBILE:HOVER': CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE;
|
|
34
32
|
};
|
|
35
33
|
export type CB_STYLE_PROP_CONTENTSLISTPAGINATION_BASE_SPECS = {
|
|
36
34
|
CB_STYLE_PROP_CONTENTSLISTPAGINATION_SPEC_PAGINATIONSTYLE: CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE;
|