pds-dev-kit-web-test 2.7.281 → 2.7.283

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.
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { IComposition } from '../types';
3
+ import type { Layout } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
4
+ export type LayoutsType = {
5
+ sm: Layout;
6
+ lg: Layout;
7
+ };
8
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<IComposition & React.RefAttributes<unknown>>>;
9
+ export default _default;
@@ -0,0 +1,352 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
41
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
42
+ if (ar || !(i in from)) {
43
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
44
+ ar[i] = from[i];
45
+ }
46
+ }
47
+ return to.concat(ar || Array.prototype.slice.call(from));
48
+ };
49
+ var __importDefault = (this && this.__importDefault) || function (mod) {
50
+ return (mod && mod.__esModule) ? mod : { "default": mod };
51
+ };
52
+ Object.defineProperty(exports, "__esModule", { value: true });
53
+ var jsx_runtime_1 = require("react/jsx-runtime");
54
+ /* eslint-disable @typescript-eslint/no-unused-vars */
55
+ var group_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/group");
56
+ var renderHelpers_1 = require("publ-echo-test/dist/lib/GridLayoutEditor/utils/renderHelpers");
57
+ require("publ-echo/dist/lib/GridItem/OutsideClickHandler");
58
+ var react_1 = __importStar(require("react"));
59
+ var ErrorBoundary_1 = require("../../DynamicLayout/components/Section/ErrorBoundary");
60
+ var dynamicLayoutContext_1 = require("../../DynamicLayout/dynamicLayoutContext");
61
+ var styled_components_1 = __importDefault(require("styled-components"));
62
+ require("../components");
63
+ var CompositionBackground_1 = __importDefault(require("../CompositionRenderer/CompositionBackground"));
64
+ var FlexGridItem_1 = __importDefault(require("../CompositionRenderer/FlexGridItem"));
65
+ var gleStyles_1 = require("../gleStyles");
66
+ var useResizableObserver_1 = require("../sections/CustomSection/hooks/useResizableObserver");
67
+ var util_1 = require("../sections/CustomSection/util");
68
+ var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
69
+ var parseCompositionPlacement_1 = __importDefault(require("../sections/CustomSection/util/parseCompositionPlacement"));
70
+ var groupUtils_1 = __importDefault(require("../utils/groupUtils"));
71
+ // const GRID_CELL_MIN = 24;
72
+ // const DESKTOP_GRID_COLS = 24;
73
+ // const MOBILE_GRID_COLS = 8;
74
+ // const GLE_MIN_WIDTH_DESKTOP_PX = `${GRID_CELL_MIN * DESKTOP_GRID_COLS}px`;
75
+ // const GLE_MIN_WIDTH_MOBILE_PX = `${GRID_CELL_MIN * MOBILE_GRID_COLS}px`;
76
+ // type Props = ISection & ContextProps;
77
+ // type ContextProps = {
78
+ // device: Device;
79
+ // queryData: QueryData;
80
+ // };
81
+ var GridAutoRowEditor = (0, react_1.forwardRef)(function CustomSection(props, ref) {
82
+ var _a, _b, _c, _d;
83
+ var _e = (0, react_1.useContext)(dynamicLayoutContext_1.dynamicLayoutContext), device = _e.device, editingSectionId = _e.editingSectionId, mode = _e.mode, shortcutKeyMode = _e.shortcutKeyMode, sectionActionHandler = _e.sectionActionHandler, queryData = _e.queryData;
84
+ var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties;
85
+ var _f = jsonProperties, _g = _f.data, CB_PLACEMENT_PROP_COMPOSITION = _g.CB_PLACEMENT_PROP_COMPOSITION, CB_LAYOUT_PROP_PADDING = _g.CB_LAYOUT_PROP_PADDING, zOrders = _f.zOrders;
86
+ var isMobile = device === 'MOBILE';
87
+ var colsDesktop = (_a = CB_PLACEMENT_PROP_COMPOSITION.CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS) !== null && _a !== void 0 ? _a : 24;
88
+ var colsMobile = (_b = CB_PLACEMENT_PROP_COMPOSITION['CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS:MOBILE']) !== null && _b !== void 0 ? _b : 8;
89
+ var rowsDesktop = (_c = CB_PLACEMENT_PROP_COMPOSITION.CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS) !== null && _c !== void 0 ? _c : 26;
90
+ var rowsMobile = (_d = CB_PLACEMENT_PROP_COMPOSITION['CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS:MOBILE']) !== null && _d !== void 0 ? _d : rowsDesktop;
91
+ var rows = isMobile ? rowsMobile : rowsDesktop;
92
+ var cols = isMobile ? colsMobile : colsDesktop;
93
+ var layouts = (0, util_1.parsePlacement)(componentBlocks !== null && componentBlocks !== void 0 ? componentBlocks : [], zOrders);
94
+ var containerRef = (0, react_1.useRef)(null);
95
+ var size = (0, useResizableObserver_1.useResizeObserver)({ ref: containerRef, box: 'border-box' });
96
+ var _h = (0, react_1.useState)(null), selectedCB = _h[0], setSelectedCB = _h[1];
97
+ var gleRef = (0, react_1.useRef)(null);
98
+ var _j = (0, react_1.useState)([]), selectedRows = _j[0], setSelectedRows = _j[1]; // 빈 배열로 초기화
99
+ var isEditMode = mode === 'EDIT';
100
+ // const layoutByDevice = device === 'DESKTOP' ? 'lg' : 'sm';
101
+ // const [layouts] = useState<LayoutsType>(() => {
102
+ // const { lg, sm } = parsePlacement(componentBlocks ?? []);
103
+ // return {
104
+ // lg,
105
+ // sm
106
+ // };
107
+ // });
108
+ (0, react_1.useEffect)(function () {
109
+ if (editingSectionId !== props.id) {
110
+ setSelectedCB(null);
111
+ // breakGroupCB();
112
+ }
113
+ }, [editingSectionId]);
114
+ // NOTE: 추후에 event를 외부에서 전달받게하거나, 아예 상태를 끌어올리거나 해야합니다.
115
+ (0, react_1.useLayoutEffect)(function () {
116
+ if (props.id !== editingSectionId) {
117
+ return;
118
+ }
119
+ if (!shortcutKeyMode) {
120
+ return;
121
+ }
122
+ if (shortcutKeyMode === 'SELECT_ALL') {
123
+ if ((componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.length) === 1) {
124
+ setSelectedCB(componentBlocks[0].id);
125
+ return;
126
+ }
127
+ // makeAllInOneGroup();
128
+ return;
129
+ }
130
+ if (shortcutKeyMode === 'MANUAL_BULK_BREAK') {
131
+ // breakGroupCB();
132
+ setSelectedCB(null);
133
+ return;
134
+ }
135
+ }, [shortcutKeyMode, setSelectedCB]);
136
+ (0, react_1.useLayoutEffect)(function () {
137
+ if (props.id !== editingSectionId) {
138
+ return;
139
+ }
140
+ if (shortcutKeyMode === 'MANUAL_COLLISION_SELECT') {
141
+ if (!selectedCB || selectedCB === 'BULK') {
142
+ return;
143
+ }
144
+ // makeCollisionGroup(selectedCB);
145
+ // sectionActionHandler &&
146
+ // sectionActionHandler({
147
+ // type: '@CUSTOMSECTION/BLOCK_CLICKED',
148
+ // payload: {
149
+ // block:
150
+ // }
151
+ // });
152
+ setSelectedCB('BULK');
153
+ }
154
+ }, [selectedCB, shortcutKeyMode, sectionActionHandler, setSelectedCB]);
155
+ var _k = (0, parseCompositionPlacement_1.default)({
156
+ isMobile: isMobile,
157
+ compositionProps: CB_PLACEMENT_PROP_COMPOSITION
158
+ }), minHeight = _k.minHeight, maxHeight = _k.maxHeight, maxWidth = _k.maxWidth, minWidth = _k.minWidth;
159
+ var canvasWidth = 50 * cols;
160
+ var customSectionStyles = {
161
+ minHeight: "".concat(minHeight, "px"),
162
+ maxHeight: "".concat(maxHeight, "px"),
163
+ width: "100%",
164
+ maxWidth: maxWidth ? "".concat(maxWidth, "px") : '100%',
165
+ minWidth: "".concat(Math.max(canvasWidth, minWidth !== null && minWidth !== void 0 ? minWidth : 0), "px")
166
+ };
167
+ var onClickSection = function () {
168
+ if (!isEditMode) {
169
+ return;
170
+ }
171
+ setSelectedCB(null);
172
+ sectionActionHandler &&
173
+ sectionActionHandler({
174
+ type: '@CUSTOMSECTION/SECTION_CLICKED',
175
+ payload: {
176
+ sectionId: props.id
177
+ }
178
+ });
179
+ };
180
+ var padding = (0, parseSectionPadding_1.default)(CB_LAYOUT_PROP_PADDING, device);
181
+ var sectionRow = CB_PLACEMENT_PROP_COMPOSITION[device === 'DESKTOP'
182
+ ? 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS'
183
+ : 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS:MOBILE'];
184
+ var rowHeight = (function () {
185
+ if (!size.width) {
186
+ return 50;
187
+ }
188
+ if (device === 'MOBILE') {
189
+ var cellWidth_1 = size.width / cols;
190
+ return cellWidth_1 * 0.56;
191
+ }
192
+ var cellWidth = size.width / cols;
193
+ return cellWidth * 0.56;
194
+ })();
195
+ var baseFontSize = (function () {
196
+ if (!size.width) {
197
+ return 16;
198
+ }
199
+ // NOTE: 확인 필요
200
+ var responsiveFontMode = true;
201
+ if (device === 'MOBILE') {
202
+ if (responsiveFontMode) {
203
+ return size.width * 0.0421;
204
+ }
205
+ if (size.width < 327) {
206
+ return Math.max(getDefensiveFontSize(device, size.width), 14);
207
+ }
208
+ return 16;
209
+ }
210
+ // NOTE: Desktop
211
+ if (responsiveFontMode) {
212
+ return size.width * 0.0133;
213
+ }
214
+ if (size.width < 1200) {
215
+ return Math.max(getDefensiveFontSize(device, size.width), 16);
216
+ }
217
+ return 16;
218
+ })();
219
+ var pedigree = jsonProperties === null || jsonProperties === void 0 ? void 0 : jsonProperties.pedigree;
220
+ // const [editingGroupBlock, setEditingGroupBlock] = useState<string>('ROOT');
221
+ // const editableCBIds = findDirectChildrenCbIds(pedigree, 'ROOT');
222
+ // const groupblocks = findGroupBlocks(pedigree, editingGroupBlock) ?? [];
223
+ // const handleGroupBlockDoubleClick = (blockId: string) => {
224
+ // setEditingGroupBlock(blockId);
225
+ // };
226
+ // const [pinnedGBs, setPinnedGBs] = useState<string[]>([]);
227
+ // const pinnedChildrens = pinnedGBs.map((gbId) => findAllChildrenCbIds(pedigree, gbId)).flat();
228
+ // const currentDepthCbs = props.componentBlocks?.filter((cb) => {
229
+ // return editableCBIds.includes(cb.id);
230
+ // });
231
+ // const onToggleGBPinned = (gbId: string) => {
232
+ // setPinnedGBs((prev) => {
233
+ // if (prev.includes(gbId)) {
234
+ // return prev.filter((id) => id !== gbId);
235
+ // }
236
+ // return [...prev, gbId];
237
+ // });
238
+ // };
239
+ return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
240
+ device: device,
241
+ mode: mode,
242
+ queryData: queryData
243
+ } }, { 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)(CompositionBackground_1.default, __assign({}, props, { isMobile: isMobile, overrideStyles: {
244
+ minHeight: customSectionStyles.minHeight,
245
+ paddingTop: padding.top,
246
+ paddingBottom: padding.bottom,
247
+ paddingRight: padding.right,
248
+ paddingLeft: padding.left
249
+ } }, { children: (0, jsx_runtime_1.jsxs)(GridContainer, __assign({ ref: containerRef, cols: isMobile ? 8 : 24, rowHeight: rowHeight, sectionRow: sectionRow !== null && sectionRow !== void 0 ? sectionRow : 0, selectedRows: selectedRows, style: {
250
+ width: customSectionStyles.width,
251
+ maxWidth: customSectionStyles.maxWidth
252
+ } }, { children: [Array.from({ length: sectionRow !== null && sectionRow !== void 0 ? sectionRow : 0 }).map(function (_, rIdx) {
253
+ // selectedRows 배열에 현재 행의 인덱스가 포함되어 있는지 확인합니다.
254
+ var isSelected = selectedRows.includes(rIdx);
255
+ var handleRowClick = function () {
256
+ setSelectedRows(function (prevSelectedRows) {
257
+ // 이미 선택된 상태라면, 배열에서 해당 인덱스를 제거합니다 (선택 해제).
258
+ if (isSelected) {
259
+ return prevSelectedRows.filter(function (rowIdx) { return rowIdx !== rIdx; });
260
+ }
261
+ // 선택되지 않은 상태라면, 배열에 현재 인덱스를 추가합니다 (선택).
262
+ return __spreadArray(__spreadArray([], prevSelectedRows, true), [rIdx], false);
263
+ });
264
+ };
265
+ return ((0, jsx_runtime_1.jsx)("div", __assign({
266
+ // className={`bg-grid-row ${isSelected ? 'selected' : ''}`}
267
+ style: {
268
+ gridRow: "".concat(rIdx + 1),
269
+ gridColumn: "1 / -1",
270
+ display: 'contents'
271
+ } }, { children: Array.from({ length: cols }).map(function (_, cIdx) { return ((0, jsx_runtime_1.jsx)("div", { className: "bg-grid-item", style: {
272
+ gridArea: "".concat(rIdx + 1, " / ").concat(cIdx + 1),
273
+ position: 'relative',
274
+ backgroundColor: '#0000001a',
275
+ border: '1px solid #ffffff33'
276
+ }, "data-row": rIdx + 1, "data-col": cIdx + 1 }, "bg-grid-item-".concat(rIdx + 1, "-").concat(cIdx + 1))); }) }), "bg-grid-row-".concat(rIdx + 1)));
277
+ }), 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,
278
+ // pinnedGBs={device === 'DESKTOP' ? child?.isPinnedDesktop : child.isPinnedMobile}
279
+ // onToggleGBPinned={onToggleGBPinned}
280
+ isEditMode: true }, child.blockId)); })] })) })) })) }) })) }));
281
+ });
282
+ function GroupBlockRender(_a) {
283
+ 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;
284
+ var childrenIds = (0, group_1.findAllChildrenCbIds)(pedigree, block.blockId).map(function (i) { return i.toString(); });
285
+ var bounding = (0, renderHelpers_1.getBoundingArea)(layouts, childrenIds);
286
+ (0, react_1.useEffect)(function () {
287
+ if (!isEditing) {
288
+ return;
289
+ }
290
+ function handleDoubleClickOutside(e) {
291
+ if (!e.target.closest('.group')) {
292
+ onDoubleClickOutside();
293
+ }
294
+ }
295
+ document.addEventListener('dblclick', handleDoubleClickOutside);
296
+ return function () {
297
+ document.removeEventListener('dblclick', handleDoubleClickOutside);
298
+ };
299
+ }, [isEditing]);
300
+ if (!bounding) {
301
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
302
+ }
303
+ var gridArea = getGridAreaFromGroup({
304
+ x: bounding.x,
305
+ y: bounding.y,
306
+ cols: bounding.w,
307
+ rows: bounding.h
308
+ });
309
+ var children = componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.filter(function (cb) { return childrenIds.includes(cb.id.toString()); });
310
+ if (childrenIds.length === 0) {
311
+ return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "\uB529\uD06C\uADF8\uB8F9" });
312
+ }
313
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: {
314
+ gridArea: gridArea,
315
+ position: 'relative',
316
+ width: '100%',
317
+ height: '100%'
318
+ }, onDoubleClick: onDoubleClick }, { children: [(0, jsx_runtime_1.jsx)("div", { className: "group", style: {
319
+ position: 'absolute',
320
+ top: 0,
321
+ left: 0,
322
+ right: 0,
323
+ bottom: 0,
324
+ boxShadow: '0 0 0 3px #027aff'
325
+ } }), children === null || children === void 0 ? void 0 : children.map(function (cb, index) { return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(FlexGridItem_1.default, { cb: cb, index: index, device: "DESKTOP", rowHeight: 50, zIndex: 0, style: { pointerEvents: 'none', opacity: isEditing ? 1 : 0.3 }, showPinned: isEditing, block: block, isParentGroupPinned: isPinned }) }, cb.id)); })] })));
326
+ }
327
+ 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"])));
328
+ function getGridAreaFromGroup(position) {
329
+ var x = position.x, y = position.y, cols = position.cols, rows = position.rows;
330
+ var colStart = clamp(x + 1, 1, Math.max(1, 25 - cols));
331
+ var rowStart = clamp(y + 1, 1, Infinity);
332
+ var rowEnd = clamp(rows + rowStart, rowStart + 1, Infinity);
333
+ var colEnd = clamp(colStart + cols, colStart + 1, 25);
334
+ return "".concat(rowStart, " / ").concat(colStart, " / ").concat(rowEnd, " / ").concat(colEnd);
335
+ }
336
+ function clamp(num, min, max) {
337
+ return Math.max(Math.min(num, max), min);
338
+ }
339
+ 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 grid-template-rows: ", ";\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 grid-template-rows: ", ";\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) {
340
+ return Array.from({ length: props.sectionRow })
341
+ .map(function (_) { return "minmax(".concat(props.rowHeight, "px, auto)"); })
342
+ .join(' ');
343
+ });
344
+ var S_SectionWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
345
+ exports.default = react_1.default.memo(GridAutoRowEditor);
346
+ function getDefensiveFontSize(device, width) {
347
+ if (device === 'MOBILE') {
348
+ return width * (0.0000868 * width + 0.0202);
349
+ }
350
+ return width * (0.0000246 * width - 0.01618);
351
+ }
352
+ var templateObject_1, templateObject_2, templateObject_3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.281",
3
+ "version": "2.7.283",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",