pds-dev-kit-web-test 2.7.472 → 2.7.474

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.
@@ -33,7 +33,7 @@ function FlexGridItem(_a) {
33
33
  var getHeightFitContent = function () {
34
34
  var _a, _b, _c, _d, _e, _f, _g, _h;
35
35
  if ('CB_STYLE_PROP_TEXTOPTION' in cb.jsonProperties.data) {
36
- var defaultValue = true;
36
+ var defaultValue = false;
37
37
  var desktopValue = (_b = (_a = cb.jsonProperties.data.CB_STYLE_PROP_TEXTOPTION) === null || _a === void 0 ? void 0 : _a.CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT) !== null && _b !== void 0 ? _b : defaultValue;
38
38
  if (device === 'DESKTOP') {
39
39
  return desktopValue;
@@ -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 {};
@@ -41,7 +41,7 @@ function Text(props) {
41
41
  var textSuffix = (_a = CB_CONTENT_PROP_TEXTOPTION === null || CB_CONTENT_PROP_TEXTOPTION === void 0 ? void 0 : CB_CONTENT_PROP_TEXTOPTION.CB_CONTENT_PROP_TEXTOPTION_SPEC_SUFFIX) !== null && _a !== void 0 ? _a : '';
42
42
  var textPrefix = (_b = CB_CONTENT_PROP_TEXTOPTION === null || CB_CONTENT_PROP_TEXTOPTION === void 0 ? void 0 : CB_CONTENT_PROP_TEXTOPTION.CB_CONTENT_PROP_TEXTOPTION_SPEC_PREFIX) !== null && _b !== void 0 ? _b : '';
43
43
  var textFormat = (_c = CB_CONTENT_PROP_TEXTOPTION === null || CB_CONTENT_PROP_TEXTOPTION === void 0 ? void 0 : CB_CONTENT_PROP_TEXTOPTION.CB_CONTENT_PROP_TEXTOPTION_SPEC_FORMAT) !== null && _c !== void 0 ? _c : 'NONE';
44
- var desktopHeightFitContent = (_d = CB_STYLE_PROP_TEXTOPTION === null || CB_STYLE_PROP_TEXTOPTION === void 0 ? void 0 : CB_STYLE_PROP_TEXTOPTION.CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT) !== null && _d !== void 0 ? _d : true;
44
+ var desktopHeightFitContent = (_d = CB_STYLE_PROP_TEXTOPTION === null || CB_STYLE_PROP_TEXTOPTION === void 0 ? void 0 : CB_STYLE_PROP_TEXTOPTION.CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT) !== null && _d !== void 0 ? _d : false;
45
45
  var mobileHeightFitContent = (_e = CB_STYLE_PROP_TEXTOPTION === null || CB_STYLE_PROP_TEXTOPTION === void 0 ? void 0 : CB_STYLE_PROP_TEXTOPTION['CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT:MOBILE']) !== null && _e !== void 0 ? _e : desktopHeightFitContent;
46
46
  var heightFitContent = device === 'MOBILE' ? mobileHeightFitContent : desktopHeightFitContent;
47
47
  var cLinkValue = function () {
@@ -173,10 +173,11 @@ function getTextOptionStyles(props, device) {
173
173
  'CB_STYLE_PROP_TEXTOPTION_SPEC_SCROLLBAR',
174
174
  'CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT'
175
175
  ];
176
- console.log('props', props);
177
176
  if (!props) {
178
177
  return {
179
- style: {}
178
+ style: {
179
+ overflowY: 'hidden'
180
+ }
180
181
  };
181
182
  }
182
183
  return (0, textUtil_1.parseStyleTextToCSSProp)({
@@ -136,7 +136,7 @@ function parseStyleTextToCSSProp(_a) {
136
136
  style: {},
137
137
  hoverStyle: {}
138
138
  });
139
- var defaultValue = cbCode === types_1.CB_ALL_CODES.CB_BTN ? false : true;
139
+ var defaultValue = cbCode === types_1.CB_ALL_CODES.CB_TEXT ? false : true;
140
140
  var desktopValue = (_b = props['CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT']) !== null && _b !== void 0 ? _b : defaultValue;
141
141
  var mobileValue = (_c = props['CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT:MOBILE']) !== null && _c !== void 0 ? _c : desktopValue;
142
142
  var fitContentValue = device === 'DESKTOP' ? desktopValue : mobileValue;
@@ -14,7 +14,7 @@ var types_1 = require("../types");
14
14
  function getHeightFitContent(cb) {
15
15
  var _a, _b, _c, _d, _e, _f, _g, _h;
16
16
  if (cb.componentBlockCode === types_1.CB_ALL_CODES.CB_TEXT) {
17
- var desktop = (_b = (_a = cb.jsonProperties.data.CB_STYLE_PROP_TEXTOPTION) === null || _a === void 0 ? void 0 : _a.CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT) !== null && _b !== void 0 ? _b : true;
17
+ var desktop = (_b = (_a = cb.jsonProperties.data.CB_STYLE_PROP_TEXTOPTION) === null || _a === void 0 ? void 0 : _a.CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT) !== null && _b !== void 0 ? _b : false;
18
18
  var mobile = (_d = (_c = cb.jsonProperties.data.CB_STYLE_PROP_TEXTOPTION) === null || _c === void 0 ? void 0 : _c['CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT:MOBILE']) !== null && _d !== void 0 ? _d : desktop;
19
19
  return {
20
20
  desktop: desktop,
@@ -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.472",
3
+ "version": "2.7.474",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",