pds-dev-kit-web-test 2.7.473 → 2.7.475
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 +9 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.d.ts +3 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/Text/Text.js +3 -1
- package/dist/src/sub/DynamicLayout/utils/groupUtils.js +11 -1
- package/package.json +1 -1
- package/dist/src/sub/DynamicLayout/mock.json +0 -8165
- package/dist/src/sub/DynamicLayout/mock_componentBlocks.d.ts +0 -1145
- package/dist/src/sub/DynamicLayout/mock_componentBlocks.js +0 -4329
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/mock_contentsCarousel.js +0 -6740
- package/dist/src/sub/DynamicLayout/mock_contentsList.d.ts +0 -1
- package/dist/src/sub/DynamicLayout/mock_contentsList.js +0 -5635
- package/dist/src/sub/DynamicLayout/mock_video.d.ts +0 -368
- package/dist/src/sub/DynamicLayout/mock_video.js +0 -371
- package/dist/src/sub/DynamicLayout/mock_video_cb.d.ts +0 -369
- package/dist/src/sub/DynamicLayout/mock_video_cb.js +0 -372
- package/dist/src/sub/DynamicLayout/mocks.d.ts +0 -343
- package/dist/src/sub/DynamicLayout/mocks.js +0 -597
|
@@ -49,10 +49,19 @@ function FlexGridItem(_a) {
|
|
|
49
49
|
}
|
|
50
50
|
return ((_h = (_g = cb.jsonProperties.data.CB_LAYOUT_PROP_HEIGHTADJUSTMENT) === null || _g === void 0 ? void 0 : _g['CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT:MOBILE']) !== null && _h !== void 0 ? _h : desktopValue);
|
|
51
51
|
}
|
|
52
|
+
if (cb.componentBlockCode === 'CB_TEXT') {
|
|
53
|
+
return 'OG';
|
|
54
|
+
}
|
|
52
55
|
return false;
|
|
53
56
|
};
|
|
54
57
|
var heightFitContent = getHeightFitContent();
|
|
55
58
|
var getHeightStyles = function () {
|
|
59
|
+
if (heightFitContent === 'OG' &&
|
|
60
|
+
(isHeightVariable === undefined || isHeightVariable === null)) {
|
|
61
|
+
return {
|
|
62
|
+
height: '100%'
|
|
63
|
+
};
|
|
64
|
+
}
|
|
56
65
|
if (heightFitContent && isHeightVariable) {
|
|
57
66
|
return {
|
|
58
67
|
height: 'auto',
|
|
@@ -11,6 +11,8 @@ export declare function getTextOptionStyles(props: CB_STYLE_PROP_TEXTOPTION, dev
|
|
|
11
11
|
style: import("styled-components").CSSProperties;
|
|
12
12
|
hoverStyle: import("styled-components").CSSProperties;
|
|
13
13
|
} | {
|
|
14
|
-
style: {
|
|
14
|
+
style: {
|
|
15
|
+
overflowY: string;
|
|
16
|
+
};
|
|
15
17
|
};
|
|
16
18
|
export {};
|
|
@@ -51,13 +51,14 @@ function RenderPedigreeRecursively(_a) {
|
|
|
51
51
|
var isGBHeightVariable_1 = device === 'DESKTOP' ? block.isHeightVariableDesktop : block.isHeightVariableMobile;
|
|
52
52
|
var defaultHeight = (0, groupHelpers_1.getMaxHeight)({ cols: bounding_1.w, rows: bounding_1.h, x: bounding_1.x, y: bounding_1.y }, rowHeight);
|
|
53
53
|
var maxW = device === 'DESKTOP' ? 24 : 8;
|
|
54
|
+
var gbMaxHeight = getMaxHeightOfGroup(isGBHeightVariable_1, defaultHeight);
|
|
54
55
|
return ((0, jsx_runtime_1.jsx)(S_GroupItem, __assign({ cols: Math.min(bounding_1.w, maxW), sectionRow: bounding_1.h, isEditMode: isEditMode, rowHeight: rowHeight, selectedRows: relativeSelectedRows_1, style: {
|
|
55
56
|
gridArea: (0, groupHelpers_1.gridAreaObjToString)(relativeGridArea_1),
|
|
56
57
|
display: 'grid',
|
|
57
58
|
zIndex: device === 'DESKTOP'
|
|
58
59
|
? block.zOrderDesktopInternal
|
|
59
60
|
: block.zOrderMobileInternal,
|
|
60
|
-
maxHeight:
|
|
61
|
+
maxHeight: gbMaxHeight
|
|
61
62
|
}, className: "flex-grid-item", "data-show-pinned": isEditMode }, { children: block.children.map(function (child) { return ((0, jsx_runtime_1.jsx)(RenderPedigreeRecursively, { rowHeight: rowHeight, block: child, layoutItems: layoutItems, cbs: cbs, parentGroupArea: gridArea_1, device: device, selectedRows: relativeSelectedRows_1,
|
|
62
63
|
// pinnedGBs={pinnedGBs}
|
|
63
64
|
// onToggleGBPinned={onToggleGBPinned}
|
|
@@ -92,6 +93,15 @@ function RenderPedigreeRecursively(_a) {
|
|
|
92
93
|
}, showPinned: isEditMode && !parentGroupArea, isParentGroupHeightVariable: isParentGroupHeightVariable }) }, cb.id));
|
|
93
94
|
}
|
|
94
95
|
exports.default = RenderPedigreeRecursively;
|
|
96
|
+
function getMaxHeightOfGroup(isHeightVariable, maxHeight) {
|
|
97
|
+
if (isHeightVariable) {
|
|
98
|
+
return 'none';
|
|
99
|
+
}
|
|
100
|
+
if (isHeightVariable === null || isHeightVariable === undefined) {
|
|
101
|
+
return 'none';
|
|
102
|
+
}
|
|
103
|
+
return maxHeight ? "".concat(maxHeight, "px") : undefined;
|
|
104
|
+
}
|
|
95
105
|
var S_GroupItem = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-shadow: ", ";\n gap: 10px;\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: ", ";\n pointer-events: none;\n position: relative;\n"], ["\n box-shadow: ", ";\n gap: 10px;\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: ", ";\n pointer-events: none;\n position: relative;\n"])), function (props) { return (props.isEditMode ? '0 0 0 2px #027aff' : 'none'); }, function (props) { return props.cols; }, function (props) {
|
|
96
106
|
return Array.from({ length: props.sectionRow })
|
|
97
107
|
.map(function () { return "minmax(".concat(props.rowHeight, "px, auto)"); })
|