pds-dev-kit-web-test 2.7.285 → 2.7.286

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.
@@ -37,15 +37,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
37
37
  __setModuleDefault(result, mod);
38
38
  return result;
39
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
40
  var __importDefault = (this && this.__importDefault) || function (mod) {
50
41
  return (mod && mod.__esModule) ? mod : { "default": mod };
51
42
  };
@@ -178,9 +169,12 @@ var GridAutoRowEditor = (0, react_1.forwardRef)(function CustomSection(props, re
178
169
  });
179
170
  };
180
171
  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'];
172
+ // const sectionRow =
173
+ // CB_PLACEMENT_PROP_COMPOSITION[
174
+ // device === 'DESKTOP'
175
+ // ? 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS'
176
+ // : 'CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS:MOBILE'
177
+ // ];
184
178
  var rowHeight = (function () {
185
179
  if (!size.width) {
186
180
  return 50;
@@ -246,22 +240,11 @@ var GridAutoRowEditor = (0, react_1.forwardRef)(function CustomSection(props, re
246
240
  paddingBottom: padding.bottom,
247
241
  paddingRight: padding.right,
248
242
  paddingLeft: padding.left
249
- } }, { children: (0, jsx_runtime_1.jsxs)(GridContainer, __assign({ ref: containerRef, cols: cols, rowHeight: rowHeight, sectionRow: sectionRow !== null && sectionRow !== void 0 ? sectionRow : 0, selectedRows: selectedRows, style: {
243
+ } }, { children: (0, jsx_runtime_1.jsxs)(GridContainer, __assign({ ref: containerRef, cols: cols, rowHeight: rowHeight, sectionRow: rows, selectedRows: selectedRows, style: {
250
244
  width: customSectionStyles.width,
251
245
  maxWidth: customSectionStyles.maxWidth
252
- } }, { children: [Array.from({ length: sectionRow !== null && sectionRow !== void 0 ? sectionRow : 0 }).map(function (_, rIdx) {
246
+ } }, { children: [Array.from({ length: rows }).map(function (_, rIdx) {
253
247
  // 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
248
  return ((0, jsx_runtime_1.jsx)("div", __assign({
266
249
  // className={`bg-grid-row ${isSelected ? 'selected' : ''}`}
267
250
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.285",
3
+ "version": "2.7.286",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",