pds-dev-kit-web-test 2.7.548 → 2.7.550

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.
@@ -119,9 +119,9 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props) {
119
119
  var customSectionStyles = {
120
120
  minHeight: "".concat(minHeight, "px"),
121
121
  maxHeight: "".concat(maxHeight, "px"),
122
- width: "100%",
122
+ width: "".concat(Math.max(canvasWidth, minWidth !== null && minWidth !== void 0 ? minWidth : 0), "px"),
123
123
  maxWidth: maxWidth ? "".concat(maxWidth, "px") : '100%',
124
- minWidth: "".concat(Math.max(canvasWidth, minWidth !== null && minWidth !== void 0 ? minWidth : 0), "px")
124
+ minWidth: minWidth ? "".concat(minWidth, "px") : '0px'
125
125
  };
126
126
  var onClickSection = function () {
127
127
  if (!isEditMode) {
@@ -152,17 +152,17 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props) {
152
152
  width: '100%',
153
153
  height: '100%'
154
154
  } }, { children: (0, jsx_runtime_1.jsx)(CompositionBackground_1.default, __assign({}, props, { isMobile: isMobile, overrideStyles: {
155
- // minHeight: customSectionStyles.minHeight,
156
155
  paddingTop: padding.top,
157
156
  paddingBottom: padding.bottom,
158
157
  paddingRight: padding.right,
159
158
  paddingLeft: padding.left,
160
- width: '100%',
161
- height: HEIGHT_AUTO_CODES.includes(ccbCode) ? 'auto' : '100%'
162
- } }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ className: "composition-container", "data-cols": cols, "data-rows": rows, "data-row-height": rowHeight, "data-col-width": "10px", ref: containerRef, cols: cols, rowHeight: rowHeight, sectionRow: rows, "data-wrapper-paddingT": padding.top, "data-wrapper-paddingB": padding.bottom, "data-wrapper-paddingL": padding.left, "data-wrapper-paddingR": padding.right, style: {
163
- width: customSectionStyles.width,
164
- maxWidth: customSectionStyles.maxWidth
165
- } }, { children: pedigree.children.map(function (child) { return ((0, jsx_runtime_1.jsx)(groupUtils_1.default, { block: child, rowHeight: rowHeight, layoutItems: layouts[device === 'DESKTOP' ? 'lg' : 'sm'], cbs: props.componentBlocks, device: device, selectedRows: [], isEditMode: false }, child.blockId)); }) })) })) })) })) })) }));
159
+ width: customSectionStyles.width,
160
+ height: ccbCode === types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL ? 'auto' : '100%',
161
+ maxHeight: customSectionStyles.maxHeight,
162
+ minHeight: customSectionStyles.minHeight,
163
+ maxWidth: customSectionStyles.maxWidth,
164
+ minWidth: customSectionStyles.minWidth
165
+ } }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ className: "composition-container", "data-cols": cols, "data-rows": rows, "data-row-height": rowHeight, "data-col-width": "10px", ref: containerRef, cols: cols, rowHeight: rowHeight, sectionRow: rows, "data-wrapper-paddingT": padding.top, "data-wrapper-paddingB": padding.bottom, "data-wrapper-paddingL": padding.left, "data-wrapper-paddingR": padding.right }, { children: pedigree.children.map(function (child) { return ((0, jsx_runtime_1.jsx)(groupUtils_1.default, { block: child, rowHeight: rowHeight, layoutItems: layouts[device === 'DESKTOP' ? 'lg' : 'sm'], cbs: props.componentBlocks, device: device, selectedRows: [], isEditMode: false }, child.blockId)); }) })) })) })) })) })) }));
166
166
  });
167
167
  var GridContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(\n ", ",\n minmax(", ", auto)\n );\n /* height: 100%; */\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"], ["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(\n ", ",\n minmax(", ", auto)\n );\n /* height: 100%; */\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"])), function (props) { return "".concat(props.rowHeight, "px"); }, function (props) { return props.cols; }, function (props) { return props.sectionRow; }, function (props) { return "".concat(props.rowHeight, "px"); });
168
168
  var S_COMPOSITIONWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
@@ -106,7 +106,7 @@ function ContentsCarousel(props) {
106
106
  : compositions.filter(function (comp) { return !comp.ccbManualItemUuid; });
107
107
  var childrenLength = CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_VALUETYPE === 'VALUE'
108
108
  ? orderedCompositions.length
109
- : CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS;
109
+ : Math.min(orderedCompositions.length, CB_CONTENT_PROP_CONTENTSCAROUSEL_SPEC_ITEMCOUNTS);
110
110
  var loop = contentsCarouselNormalStyle.loop && childrenLength >= displayCounts;
111
111
  // NOTE: edit모드에서는 그리드의 이벤트만 작동하도록 CB의 포인터 이벤트는 막습니다.
112
112
  var editModeStyle = mode === 'EDIT' ? { pointerEvents: 'none' } : {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.548",
3
+ "version": "2.7.550",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",