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.
@@ -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 {};
@@ -175,7 +175,9 @@ function getTextOptionStyles(props, device) {
175
175
  ];
176
176
  if (!props) {
177
177
  return {
178
- style: {}
178
+ style: {
179
+ overflowY: 'hidden'
180
+ }
179
181
  };
180
182
  }
181
183
  return (0, textUtil_1.parseStyleTextToCSSProp)({
@@ -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: isGBHeightVariable_1 ? 'none' : defaultHeight
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)"); })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.473",
3
+ "version": "2.7.475",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",