pds-dev-kit-web-test 2.7.172 → 2.7.173

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.
@@ -31,10 +31,9 @@ function FlexGridItem(_a) {
31
31
  var gridArea = getGridAreaFromCB(cb.jsonProperties.data.CB_PLACEMENT_PROP_PLACEMENT, device);
32
32
  var _b = (0, react_1.useState)(false), isCBPinned = _b[0], setIsCBPinned = _b[1];
33
33
  var isPinned = isParentGroupPinned || isCBPinned;
34
- return ((0, jsx_runtime_1.jsxs)(GridItem, __assign({ style: __assign({ zIndex: zIndex, gridArea: gridArea, position: 'relative', maxHeight: isPinned ? defaultHeight : 'none' }, style) }, { children: [showPinned && ((0, jsx_runtime_1.jsx)(S_Pinned, { children: isCBPinned ? ((0, jsx_runtime_1.jsx)("button", __assign({ type: "button", disabled: isParentGroupPinned, onClick: function () { return setIsCBPinned(false); } }, { children: "H\uACE0\uC815\uB428 \uD83D\uDCCC" }))) : ((0, jsx_runtime_1.jsx)("button", __assign({ disabled: isParentGroupPinned, type: "button", onClick: function () { return setIsCBPinned(true); } }, { children: "H\uB298\uC5B4\uB0A8 \uD83E\uDEB1" }))) })), (0, jsx_runtime_1.jsx)(ComponentBlockMatcherWithCCB_1.default, { rowHeight: rowHeight, cbProps: cb, device: device, index: index })] })));
34
+ return ((0, jsx_runtime_1.jsx)(GridItem, __assign({ style: __assign({ zIndex: zIndex, gridArea: gridArea, position: 'relative', maxHeight: isPinned ? defaultHeight : 'none' }, style) }, { children: (0, jsx_runtime_1.jsx)(ComponentBlockMatcherWithCCB_1.default, { rowHeight: rowHeight, cbProps: cb, device: device, index: index }) })));
35
35
  }
36
- var S_Pinned = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n pointer-events: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 9999999;\n"], ["\n pointer-events: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 9999999;\n"])));
37
- var GridItem = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: auto;\n word-break: break-word;\n"], ["\n height: auto;\n word-break: break-word;\n"])));
36
+ 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"])));
38
37
  function getMaxHeight(props, device, rowHeight) {
39
38
  if (device === 'DESKTOP') {
40
39
  var CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS = props.CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS;
@@ -68,4 +67,4 @@ function getGridAreaFromCB(props, device) {
68
67
  }
69
68
  exports.getGridAreaFromCB = getGridAreaFromCB;
70
69
  exports.default = FlexGridItem;
71
- var templateObject_1, templateObject_2;
70
+ var templateObject_1;
@@ -211,29 +211,22 @@ var GridAutoRowEditor = (0, react_1.forwardRef)(function CustomSection(props, re
211
211
  // const handleGroupBlockDoubleClick = (blockId: string) => {
212
212
  // setEditingGroupBlock(blockId);
213
213
  // };
214
- var _g = (0, react_1.useState)([]), pinnedGBs = _g[0], setPinnedGBs = _g[1];
214
+ // const [pinnedGBs, setPinnedGBs] = useState<string[]>([]);
215
215
  // const pinnedChildrens = pinnedGBs.map((gbId) => findAllChildrenCbIds(pedigree, gbId)).flat();
216
216
  // const currentDepthCbs = props.componentBlocks?.filter((cb) => {
217
217
  // return editableCBIds.includes(cb.id);
218
218
  // });
219
- var onToggleGBPinned = function (gbId) {
220
- setPinnedGBs(function (prev) {
221
- if (prev.includes(gbId)) {
222
- return prev.filter(function (id) { return id !== gbId; });
223
- }
224
- return __spreadArray(__spreadArray([], prev, true), [gbId], false);
225
- });
226
- };
219
+ // const onToggleGBPinned = (gbId: string) => {
220
+ // setPinnedGBs((prev) => {
221
+ // if (prev.includes(gbId)) {
222
+ // return prev.filter((id) => id !== gbId);
223
+ // }
224
+ // return [...prev, gbId];
225
+ // });
226
+ // };
227
227
  return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
228
228
  device: device,
229
229
  mode: mode,
230
- // isPreview,
231
- // navigationHandler,
232
- // sectionActionHandler,
233
- // editingSectionId,
234
- // programmedSectionComponents,
235
- // shortcutKeyMode,
236
- // zoomScale,
237
230
  queryData: queryData
238
231
  } }, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, { children: (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection }, { children: (0, jsx_runtime_1.jsx)(components_1.CustomSection, __assign({}, props, { isMobile: isMobile, overrideStyles: {
239
232
  minHeight: customSectionStyles.minHeight,
@@ -259,18 +252,23 @@ var GridAutoRowEditor = (0, react_1.forwardRef)(function CustomSection(props, re
259
252
  return __spreadArray(__spreadArray([], prevSelectedRows, true), [rIdx], false);
260
253
  });
261
254
  };
262
- return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "bg-grid-row ".concat(isSelected ? 'selected' : ''), style: {
255
+ return ((0, jsx_runtime_1.jsx)("div", __assign({
256
+ // className={`bg-grid-row ${isSelected ? 'selected' : ''}`}
257
+ style: {
263
258
  gridRow: "".concat(rIdx + 1),
264
259
  gridColumn: "1 / -1",
265
260
  display: 'contents',
266
261
  cursor: 'pointer'
267
- }, onClick: handleRowClick }, { children: Array.from({ length: isMobile ? MOBILE_GRID_COLS : DESKTOP_GRID_COLS }).map(function (_, cIdx) { return ((0, jsx_runtime_1.jsx)("div", { className: "bg-grid-item", style: {
262
+ } }, { children: Array.from({ length: isMobile ? MOBILE_GRID_COLS : DESKTOP_GRID_COLS }).map(function (_, cIdx) { return ((0, jsx_runtime_1.jsx)("div", { className: "bg-grid-item", style: {
268
263
  gridArea: "".concat(rIdx + 1, " / ").concat(cIdx + 1),
269
264
  position: 'relative',
270
265
  backgroundColor: '#e8e1e189',
271
266
  border: '1px solid #6b666688'
272
267
  }, "data-row": rIdx + 1, "data-col": cIdx + 1 }, "bg-grid-item-".concat(rIdx + 1, "-").concat(cIdx + 1))); }) }), "bg-grid-row-".concat(rIdx + 1)));
273
- }), 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: selectedRows, pinnedGBs: pinnedGBs, onToggleGBPinned: onToggleGBPinned, isEditMode: true }, child.blockId)); })] })) })) })) }) })) }));
268
+ }), 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: selectedRows,
269
+ // pinnedGBs={device === 'DESKTOP' ? child?.isPinnedDesktop : child.isPinnedMobile}
270
+ // onToggleGBPinned={onToggleGBPinned}
271
+ isEditMode: true }, child.blockId)); })] })) })) })) }) })) }));
274
272
  });
275
273
  function GroupBlockRender(_a) {
276
274
  var block = _a.block, layouts = _a.layouts, pedigree = _a.pedigree, isEditing = _a.isEditing, isPinned = _a.isPinned, componentBlocks = _a.componentBlocks, onTogglePinned = _a.onTogglePinned, onDoubleClick = _a.onDoubleClick, onDoubleClickOutside = _a.onDoubleClickOutside;
@@ -308,7 +306,7 @@ function GroupBlockRender(_a) {
308
306
  position: 'relative',
309
307
  width: '100%',
310
308
  height: '100%'
311
- }, onDoubleClick: onDoubleClick }, { children: [!isEditing && ((0, jsx_runtime_1.jsx)(S_Pinned, { children: isPinned ? ((0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: onTogglePinned }, { children: "(\uADF8\uB8F9)H\uACE0\uC815\uB428 \uD83D\uDCCC" }))) : ((0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: onTogglePinned }, { children: "(\uADF8\uB8F9)H\uB298\uC5B4\uB0A8 \uD83E\uDEB1" }))) })), (0, jsx_runtime_1.jsx)("div", { className: "group", style: {
309
+ }, onDoubleClick: onDoubleClick }, { children: [(0, jsx_runtime_1.jsx)("div", { className: "group", style: {
312
310
  position: 'absolute',
313
311
  top: 0,
314
312
  left: 0,
@@ -325,15 +323,6 @@ function getGridAreaFromGroup(position) {
325
323
  var rowEnd = clamp(rows + rowStart, rowStart + 1, Infinity);
326
324
  var colEnd = clamp(colStart + cols, colStart + 1, 25);
327
325
  return "".concat(rowStart, " / ").concat(colStart, " / ").concat(rowEnd, " / ").concat(colEnd);
328
- // const startXMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX:MOBILE'];
329
- // const startYMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE'];
330
- // const colsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE'];
331
- // const rowsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'];
332
- // const colStart = clamp(startXMobile + 1, 1, Math.max(1, 9 - colsMobile));
333
- // const rowStart = clamp(startYMobile + 1, 1, Infinity);
334
- // const rowEnd = clamp(rowsMobile + rowStart, rowStart + 1, Infinity);
335
- // const colEnd = clamp(colStart + colsMobile, colStart + 1, 9);
336
- // return `${rowStart} / ${colStart} / ${rowEnd} / ${colEnd}`;
337
326
  }
338
327
  function clamp(num, min, max) {
339
328
  return Math.max(Math.min(num, max), min);
@@ -341,13 +330,10 @@ function clamp(num, min, max) {
341
330
  var GridContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n\n grid-template-rows: ", "; /* \uBC30\uC5F4\uC744 \uACF5\uBC31\uC73C\uB85C \uAD6C\uBD84\uB41C \uBB38\uC790\uC5F4\uB85C \uD569\uCE69\uB2C8\uB2E4. */\n padding: 10px 10px;\n\n * {\n box-sizing: border-box;\n }\n\n .bg-grid-item {\n transition: background-color 0.2s ease;\n }\n\n /* 1. \uAE30\uBCF8 \uD638\uBC84 (\uC120\uD0DD\uB418\uC9C0 \uC54A\uC558\uC744 \uB54C) */\n .bg-grid-row:not(.selected):hover > .bg-grid-item {\n background-color: #90ee90 !important; /* \uC5F0\uB450\uC0C9 */\n }\n\n /* 2. 'selected' \uD074\uB798\uC2A4\uAC00 \uBD99\uC740 \uD589\uC758 \uC544\uC774\uD15C (\uC120\uD0DD\uB428) */\n .bg-grid-row.selected > .bg-grid-item {\n background-color: #90ee90 !important; /* \uC5F0\uB450\uC0C9 */\n }\n\n /* 3. \uC120\uD0DD\uB41C \uD589\uC5D0 \uD638\uBC84\uD588\uC744 \uB54C */\n .bg-grid-row.selected:hover > .bg-grid-item {\n background-color: #ffc0cb !important; /* \uD551\uD06C\uC0C9 */\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\n grid-template-rows: ", "; /* \uBC30\uC5F4\uC744 \uACF5\uBC31\uC73C\uB85C \uAD6C\uBD84\uB41C \uBB38\uC790\uC5F4\uB85C \uD569\uCE69\uB2C8\uB2E4. */\n padding: 10px 10px;\n\n * {\n box-sizing: border-box;\n }\n\n .bg-grid-item {\n transition: background-color 0.2s ease;\n }\n\n /* 1. \uAE30\uBCF8 \uD638\uBC84 (\uC120\uD0DD\uB418\uC9C0 \uC54A\uC558\uC744 \uB54C) */\n .bg-grid-row:not(.selected):hover > .bg-grid-item {\n background-color: #90ee90 !important; /* \uC5F0\uB450\uC0C9 */\n }\n\n /* 2. 'selected' \uD074\uB798\uC2A4\uAC00 \uBD99\uC740 \uD589\uC758 \uC544\uC774\uD15C (\uC120\uD0DD\uB428) */\n .bg-grid-row.selected > .bg-grid-item {\n background-color: #90ee90 !important; /* \uC5F0\uB450\uC0C9 */\n }\n\n /* 3. \uC120\uD0DD\uB41C \uD589\uC5D0 \uD638\uBC84\uD588\uC744 \uB54C */\n .bg-grid-row.selected:hover > .bg-grid-item {\n background-color: #ffc0cb !important; /* \uD551\uD06C\uC0C9 */\n }\n"])), function (props) { return "".concat(props.rowHeight, "px"); }, function (props) { return props.cols; }, function (props) {
342
331
  // 전체 행 개수만큼 배열을 생성하여 각 행의 CSS 값을 정의합니다.
343
332
  return Array.from({ length: props.sectionRow })
344
- .map(function (_, index) {
333
+ .map(function (_) {
345
334
  // props로 받은 selectedRows 배열에 현재 행(index)이 포함되어 있는지 확인합니다.
346
- return props.selectedRows.includes(index)
347
- ? "minmax(".concat(props.rowHeight, "px, auto)") // 포함되어 있다면 minmax 사용
348
- : "".concat(props.rowHeight, "px");
349
- } // 포함되어 있지 않다면 고정 높이 사용
350
- )
335
+ return "minmax(".concat(props.rowHeight, "px, auto)");
336
+ })
351
337
  .join(' ');
352
338
  });
353
339
  var S_SectionWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
@@ -217,7 +217,10 @@ var FlexGridCustomSection = (0, react_1.forwardRef)(function CustomSection(props
217
217
  maxWidth: customSectionStyles.maxWidth,
218
218
  minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
219
219
  fontSize: "".concat(baseFontSize, "px")
220
- } }, { 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: selectedRows, pinnedGBs: pinnedGBs, onToggleGBPinned: onToggleGBPinned, isEditMode: false }, child.blockId)); }) })) })) })) }) }));
220
+ } }, { 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: selectedRows,
221
+ // pinnedGBs={pinnedGBs}
222
+ // onToggleGBPinned={onToggleGBPinned}
223
+ isEditMode: false }, child.blockId)); }) })) })) })) }) }));
221
224
  });
222
225
  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 padding: 10px 10px;\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 padding: 10px 10px;\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"); });
223
226
  var S_SectionWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import type { ComponentBlock } from '../sections/CustomSection/types';
3
3
  import type { Device } from '../sections/CustomSection/util/types';
4
+ import type { Block } from 'publ-echo-test/dist/lib/GridLayoutEditor/group';
4
5
  import type { LayoutItem } from 'publ-echo/dist/lib';
5
- import type { Block } from 'publ-echo/dist/lib/GridLayoutEditor/group';
6
6
  export declare function findAllChildrenCbIds(block: Block, targetGroupId: string): number[];
7
- export default function RenderPedigreeRecursively({ isEditMode, block, layoutItems, cbs, parentGroupArea, rowHeight, device, selectedRows, pinnedGBs, isParentGroupPinned, onToggleGBPinned }: {
7
+ export default function RenderPedigreeRecursively({ isEditMode, block, layoutItems, cbs, parentGroupArea, rowHeight, device, selectedRows, isParentGroupPinned }: {
8
8
  isEditMode: boolean;
9
9
  block: Block;
10
10
  layoutItems: LayoutItem[];
@@ -12,8 +12,6 @@ export default function RenderPedigreeRecursively({ isEditMode, block, layoutIte
12
12
  rowHeight: number;
13
13
  device: Device;
14
14
  selectedRows: number[];
15
- pinnedGBs: string[];
16
- onToggleGBPinned: (gbId: string) => void;
17
15
  isParentGroupPinned?: boolean;
18
16
  parentGroupArea?: {
19
17
  rowStart: number;
@@ -78,7 +78,11 @@ function findAllChildrenCbIds(block, targetGroupId) {
78
78
  }
79
79
  exports.findAllChildrenCbIds = findAllChildrenCbIds;
80
80
  function RenderPedigreeRecursively(_a) {
81
- var isEditMode = _a.isEditMode, block = _a.block, layoutItems = _a.layoutItems, cbs = _a.cbs, parentGroupArea = _a.parentGroupArea, rowHeight = _a.rowHeight, device = _a.device, selectedRows = _a.selectedRows, pinnedGBs = _a.pinnedGBs, _b = _a.isParentGroupPinned, isParentGroupPinned = _b === void 0 ? false : _b, onToggleGBPinned = _a.onToggleGBPinned;
81
+ var isEditMode = _a.isEditMode, block = _a.block, layoutItems = _a.layoutItems, cbs = _a.cbs, parentGroupArea = _a.parentGroupArea, rowHeight = _a.rowHeight, device = _a.device, selectedRows = _a.selectedRows,
82
+ // pinnedGBs,
83
+ _b = _a.isParentGroupPinned,
84
+ // pinnedGBs,
85
+ isParentGroupPinned = _b === void 0 ? false : _b;
82
86
  var type = block.type;
83
87
  if (type === 'GROUP_BLOCK') {
84
88
  var childrenIds = findAllChildrenCbIds(block, block.blockId).map(function (i) { return i.toString(); });
@@ -99,16 +103,19 @@ function RenderPedigreeRecursively(_a) {
99
103
  var relativeSelectedRows_1 = selectedRows
100
104
  .map(function (row) { return row - gridArea_1.rowStart + 1; })
101
105
  .filter(function (row) { return row >= 0 && row <= bounding_1.h; });
102
- var isGBPinned_1 = pinnedGBs.includes(block.blockId);
106
+ var isGBPinned_1 = device === 'DESKTOP' ? block.isPinnedDesktop : block.isPinnedMobile;
103
107
  var defaultHeight = getMaxHeight({ cols: bounding_1.w, rows: bounding_1.h, x: bounding_1.x, y: bounding_1.y }, rowHeight);
104
- return ((0, jsx_runtime_1.jsxs)(S_GroupItem, __assign({ cols: bounding_1.w, sectionRow: bounding_1.h, isEditMode: isEditMode, rowHeight: rowHeight, selectedRows: relativeSelectedRows_1, style: {
108
+ return ((0, jsx_runtime_1.jsx)(S_GroupItem, __assign({ cols: bounding_1.w, sectionRow: bounding_1.h, isEditMode: isEditMode, rowHeight: rowHeight, selectedRows: relativeSelectedRows_1, style: {
105
109
  gridArea: gridAreaObjToString(relativeGridArea_1),
106
110
  display: 'grid',
107
111
  zIndex: device === 'DESKTOP'
108
112
  ? block.zOrderDesktopInternal
109
113
  : block.zOrderMobileInternal,
110
114
  maxHeight: isGBPinned_1 ? defaultHeight : 'none'
111
- } }, { children: [isEditMode && ((0, jsx_runtime_1.jsx)(S_Pinned, { children: isGBPinned_1 ? ((0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: function () { return onToggleGBPinned(block.blockId); } }, { children: "H\uACE0\uC815\uB428 \uD83D\uDCCC" }))) : ((0, jsx_runtime_1.jsx)("button", __assign({ type: "button", onClick: function () { return onToggleGBPinned(block.blockId); } }, { children: "H\uB298\uC5B4\uB0A8 \uD83E\uDEB1" }))) })), 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, pinnedGBs: pinnedGBs, onToggleGBPinned: onToggleGBPinned, isEditMode: isEditMode, isParentGroupPinned: isGBPinned_1 }, child.blockId)); })] })));
115
+ } }, { 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,
116
+ // pinnedGBs={pinnedGBs}
117
+ // onToggleGBPinned={onToggleGBPinned}
118
+ isEditMode: isEditMode, isParentGroupPinned: isGBPinned_1 }, child.blockId)); }) })));
112
119
  }
113
120
  // default: TYPE === 'COMPONENT_BLOCK'
114
121
  var cbIndex = cbs.findIndex(function (c) { return c.blockId === block.blockId; });
@@ -141,7 +148,6 @@ function RenderPedigreeRecursively(_a) {
141
148
  );
142
149
  }
143
150
  exports.default = RenderPedigreeRecursively;
144
- var S_Pinned = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n pointer-events: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 9999999;\n"], ["\n pointer-events: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 9999999;\n"])));
145
151
  function clamp(num, min, max) {
146
152
  return Math.max(Math.min(num, max), min);
147
153
  }
@@ -161,15 +167,6 @@ function getGridAreaFromGroup(position) {
161
167
  rowEnd: rowEnd,
162
168
  colEnd: colEnd
163
169
  };
164
- // const startXMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTX:MOBILE'];
165
- // const startYMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_STARTY:MOBILE'];
166
- // const colsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_COLS:MOBILE'];
167
- // const rowsMobile = props['CB_PLACEMENT_PROP_PLACEMENT_SPEC_ROWS:MOBILE'];
168
- // const colStart = clamp(startXMobile + 1, 1, Math.max(1, 9 - colsMobile));
169
- // const rowStart = clamp(startYMobile + 1, 1, Infinity);
170
- // const rowEnd = clamp(rowsMobile + rowStart, rowStart + 1, Infinity);
171
- // const colEnd = clamp(colStart + colsMobile, colStart + 1, 9);
172
- // return `${rowStart} / ${colStart} / ${rowEnd} / ${colEnd}`;
173
170
  }
174
171
  /**
175
172
  * grid-area 문자열을 파싱하여 객체로 변환합니다.
@@ -209,16 +206,16 @@ function getMaxHeight(props, rowHeight) {
209
206
  // const height = rowsMobile * rowHeight + (rowsMobile - 1) * gap;
210
207
  // return height;
211
208
  }
212
- var S_GroupItem = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n box-shadow: ", ";\n gap: 10px;\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: ", ";\n pointer-events: none;\n position: relative; /* \uBC30\uC5F4\uC744 \uACF5\uBC31\uC73C\uB85C \uAD6C\uBD84\uB41C \uBB38\uC790\uC5F4\uB85C \uD569\uCE69\uB2C8\uB2E4. */\n"], ["\n box-shadow: ", ";\n gap: 10px;\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: ", ";\n pointer-events: none;\n position: relative; /* \uBC30\uC5F4\uC744 \uACF5\uBC31\uC73C\uB85C \uAD6C\uBD84\uB41C \uBB38\uC790\uC5F4\uB85C \uD569\uCE69\uB2C8\uB2E4. */\n"])), function (props) { return (props.isEditMode ? '0 0 0 2px blue' : 'none'); }, function (props) { return props.cols; }, function (props) {
209
+ 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; /* \uBC30\uC5F4\uC744 \uACF5\uBC31\uC73C\uB85C \uAD6C\uBD84\uB41C \uBB38\uC790\uC5F4\uB85C \uD569\uCE69\uB2C8\uB2E4. */\n"], ["\n box-shadow: ", ";\n gap: 10px;\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: ", ";\n pointer-events: none;\n position: relative; /* \uBC30\uC5F4\uC744 \uACF5\uBC31\uC73C\uB85C \uAD6C\uBD84\uB41C \uBB38\uC790\uC5F4\uB85C \uD569\uCE69\uB2C8\uB2E4. */\n"])), function (props) { return (props.isEditMode ? '0 0 0 2px blue' : 'none'); }, function (props) { return props.cols; }, function (props) {
213
210
  // // 전체 행 개수만큼 배열을 생성하여 각 행의 CSS 값을 정의합니다.
214
211
  return Array.from({ length: props.sectionRow })
215
- .map(function (_, index) {
212
+ .map(function (_) {
216
213
  // props로 받은 selectedRows 배열에 현재 행(index)이 포함되어 있는지 확인합니다.
217
- return props.selectedRows.includes(index)
218
- ? "minmax(".concat(props.rowHeight, "px, auto)") // 포함되어 있다면 minmax 사용
219
- : "".concat(props.rowHeight, "px");
220
- } // 포함되어 있지 않다면 고정 높이 사용
221
- )
214
+ // props.selectedRows.includes(index)
215
+ // ? `minmax(${props.rowHeight}px, auto)` // 포함되어 있다면 minmax 사용
216
+ // : `${props.rowHeight}px` // 포함되어 있지 않다면 고정 높이 사용
217
+ return "minmax(".concat(props.rowHeight, "px, auto)");
218
+ })
222
219
  .join(' ');
223
220
  });
224
- var templateObject_1, templateObject_2;
221
+ var templateObject_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.172",
3
+ "version": "2.7.173",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",