pds-dev-kit-web-test 2.7.330 → 2.7.333
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.
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/CompositionRenderer/Composition.js +3 -59
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/components/S_HeightFitContentCover.js +1 -1
- package/dist/src/sub/DynamicLayout/utils/groupUtils.js +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CB_ALL_CODES } from '../sections/CustomSection/types';
|
|
3
3
|
import type { IComposition } from '../types';
|
|
4
4
|
import type { Layout } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
|
|
5
5
|
export type LayoutsType = {
|
|
@@ -51,6 +51,7 @@ require("../components");
|
|
|
51
51
|
require("../components/Section/components/CustomSectionBackground");
|
|
52
52
|
var gleStyles_1 = require("../gleStyles");
|
|
53
53
|
var useResizableObserver_1 = require("../sections/CustomSection/hooks/useResizableObserver");
|
|
54
|
+
var types_1 = require("../sections/CustomSection/types");
|
|
54
55
|
var util_1 = require("../sections/CustomSection/util");
|
|
55
56
|
var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
|
|
56
57
|
var parseCompositionPlacement_1 = __importDefault(require("../sections/CustomSection/util/parseCompositionPlacement"));
|
|
@@ -220,8 +221,8 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
220
221
|
paddingBottom: padding.bottom,
|
|
221
222
|
paddingRight: padding.right,
|
|
222
223
|
paddingLeft: padding.left,
|
|
223
|
-
width: '100%'
|
|
224
|
-
|
|
224
|
+
width: '100%',
|
|
225
|
+
height: ccbCode === types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL ? 'auto' : '100%'
|
|
225
226
|
} }, { 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: {
|
|
226
227
|
width: customSectionStyles.width,
|
|
227
228
|
maxWidth: customSectionStyles.maxWidth
|
|
@@ -232,63 +233,6 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
232
233
|
// onToggleGBPinned={onToggleGBPinned}
|
|
233
234
|
isEditMode: false }, child.blockId)); }) })) })) })) })) })) }));
|
|
234
235
|
});
|
|
235
|
-
var MOCK_BORDER = {
|
|
236
|
-
CB_STYLE_PROP_BORDER_SPEC_COLOR: '#000000FF',
|
|
237
|
-
'CB_STYLE_PROP_BORDER_SPEC_COLOR:HOVER': null,
|
|
238
|
-
'CB_STYLE_PROP_BORDER_SPEC_COLOR:MOBILE': null,
|
|
239
|
-
'CB_STYLE_PROP_BORDER_SPEC_COLOR:MOBILE:HOVER': null,
|
|
240
|
-
CB_STYLE_PROP_BORDER_SPEC_RADIUS: {
|
|
241
|
-
bl: 18,
|
|
242
|
-
br: 18,
|
|
243
|
-
tl: 18,
|
|
244
|
-
tr: 18
|
|
245
|
-
},
|
|
246
|
-
'CB_STYLE_PROP_BORDER_SPEC_RADIUS:HOVER': null,
|
|
247
|
-
'CB_STYLE_PROP_BORDER_SPEC_RADIUS:MOBILE': null,
|
|
248
|
-
'CB_STYLE_PROP_BORDER_SPEC_RADIUS:MOBILE:HOVER': null,
|
|
249
|
-
CB_STYLE_PROP_BORDER_SPEC_RADIUSFIX: true,
|
|
250
|
-
'CB_STYLE_PROP_BORDER_SPEC_RADIUSFIX:HOVER': true,
|
|
251
|
-
'CB_STYLE_PROP_BORDER_SPEC_RADIUSFIX:MOBILE': null,
|
|
252
|
-
'CB_STYLE_PROP_BORDER_SPEC_RADIUSFIX:MOBILE:HOVER': null,
|
|
253
|
-
CB_STYLE_PROP_BORDER_SPEC_STYLE: 'SOLID',
|
|
254
|
-
'CB_STYLE_PROP_BORDER_SPEC_STYLE:HOVER': null,
|
|
255
|
-
'CB_STYLE_PROP_BORDER_SPEC_STYLE:MOBILE': null,
|
|
256
|
-
'CB_STYLE_PROP_BORDER_SPEC_STYLE:MOBILE:HOVER': null,
|
|
257
|
-
CB_STYLE_PROP_BORDER_SPEC_WIDTH: 3,
|
|
258
|
-
'CB_STYLE_PROP_BORDER_SPEC_WIDTH:HOVER': null,
|
|
259
|
-
'CB_STYLE_PROP_BORDER_SPEC_WIDTH:MOBILE': null,
|
|
260
|
-
'CB_STYLE_PROP_BORDER_SPEC_WIDTH:MOBILE:HOVER': null
|
|
261
|
-
};
|
|
262
|
-
var MOCK_SHADOW = {
|
|
263
|
-
CB_STYLE_PROP_SHADOW_SPEC_BLUR: 24,
|
|
264
|
-
'CB_STYLE_PROP_SHADOW_SPEC_BLUR:HOVER': null,
|
|
265
|
-
'CB_STYLE_PROP_SHADOW_SPEC_BLUR:MOBILE': null,
|
|
266
|
-
'CB_STYLE_PROP_SHADOW_SPEC_BLUR:MOBILE:HOVER': null,
|
|
267
|
-
CB_STYLE_PROP_SHADOW_SPEC_COLOR: '#000000FF',
|
|
268
|
-
'CB_STYLE_PROP_SHADOW_SPEC_COLOR:HOVER': null,
|
|
269
|
-
'CB_STYLE_PROP_SHADOW_SPEC_COLOR:MOBILE': null,
|
|
270
|
-
'CB_STYLE_PROP_SHADOW_SPEC_COLOR:MOBILE:HOVER': null,
|
|
271
|
-
CB_STYLE_PROP_SHADOW_SPEC_OPACITY: 30,
|
|
272
|
-
'CB_STYLE_PROP_SHADOW_SPEC_OPACITY:HOVER': null,
|
|
273
|
-
'CB_STYLE_PROP_SHADOW_SPEC_OPACITY:MOBILE': null,
|
|
274
|
-
'CB_STYLE_PROP_SHADOW_SPEC_OPACITY:MOBILE:HOVER': null,
|
|
275
|
-
CB_STYLE_PROP_SHADOW_SPEC_SPREAD: 2,
|
|
276
|
-
'CB_STYLE_PROP_SHADOW_SPEC_SPREAD:HOVER': null,
|
|
277
|
-
'CB_STYLE_PROP_SHADOW_SPEC_SPREAD:MOBILE': null,
|
|
278
|
-
'CB_STYLE_PROP_SHADOW_SPEC_SPREAD:MOBILE:HOVER': null,
|
|
279
|
-
CB_STYLE_PROP_SHADOW_SPEC_TYPE: 'OUTSET',
|
|
280
|
-
'CB_STYLE_PROP_SHADOW_SPEC_TYPE:HOVER': 'OUTSET',
|
|
281
|
-
'CB_STYLE_PROP_SHADOW_SPEC_TYPE:MOBILE': null,
|
|
282
|
-
'CB_STYLE_PROP_SHADOW_SPEC_TYPE:MOBILE:HOVER': null,
|
|
283
|
-
CB_STYLE_PROP_SHADOW_SPEC_X: 0,
|
|
284
|
-
'CB_STYLE_PROP_SHADOW_SPEC_X:HOVER': null,
|
|
285
|
-
'CB_STYLE_PROP_SHADOW_SPEC_X:MOBILE': null,
|
|
286
|
-
'CB_STYLE_PROP_SHADOW_SPEC_X:MOBILE:HOVER': null,
|
|
287
|
-
CB_STYLE_PROP_SHADOW_SPEC_Y: 12,
|
|
288
|
-
'CB_STYLE_PROP_SHADOW_SPEC_Y:HOVER': null,
|
|
289
|
-
'CB_STYLE_PROP_SHADOW_SPEC_Y:MOBILE': null,
|
|
290
|
-
'CB_STYLE_PROP_SHADOW_SPEC_Y:MOBILE:HOVER': null
|
|
291
|
-
};
|
|
292
236
|
var GridContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\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-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 props.cols; }, function (props) { return props.sectionRow; }, function (props) { return "".concat(props.rowHeight, "px"); });
|
|
293
237
|
var S_COMPOSITIONWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
|
294
238
|
exports.default = react_1.default.memo(Composition);
|
|
@@ -9,5 +9,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.S_HeightFitContentCover = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.S_HeightFitContentCover = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* --- 1. \uAE30\uC874 \uC624\uBC84\uB808\uC774 \uC2A4\uD0C0\uC77C --- */\n /* background: linear-gradient(to top, ", " 0%, transparent 100%); */\n background: linear-gradient(
|
|
12
|
+
exports.S_HeightFitContentCover = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* --- 1. \uAE30\uC874 \uC624\uBC84\uB808\uC774 \uC2A4\uD0C0\uC77C --- */\n /* background: linear-gradient(to top, ", " 0%, transparent 100%); */\n background: repeating-linear-gradient(\n -120deg,\n rgba(30, 235, 180, 0.3),\n rgba(30, 235, 180, 0.3) 12px,\n rgba(0, 0, 0, 0.1) 12px,\n rgba(0, 0, 0, 0.1) 25px\n );\n bottom: 0;\n height: 100%;\n left: 0;\n opacity: 0.5;\n pointer-events: none;\n position: absolute;\n width: 100%;\n\n /* * [\uC911\uC694] \n * \uC774 \uC694\uC18C \uC804\uCCB4\uB294 \uD074\uB9AD\uC774 \uD1B5\uACFC\uB429\uB2C8\uB2E4. \n * (\uC790\uC2DD\uC778 ::after\uB3C4 \uC774 \uC18D\uC131\uC744 \uC0C1\uC18D\uBC1B\uC2B5\uB2C8\uB2E4)\n */\n z-index: 2;\n\n /* --- 2. ::after \uAC00\uC0C1 \uC694\uC18C\uB97C \uC0AC\uC6A9\uD574 \uAE00\uC790 \uCD94\uAC00 --- */\n &::after {\n bottom: 0;\n color: #ffffffff;\n content: '", "';\n font-size: 11px;\n font-weight: bold;\n left: 0;\n pointer-events: none;\n position: absolute;\n text-align: center;\n width: 100%;\n }\n"], ["\n /* --- 1. \uAE30\uC874 \uC624\uBC84\uB808\uC774 \uC2A4\uD0C0\uC77C --- */\n /* background: linear-gradient(to top, ", " 0%, transparent 100%); */\n background: repeating-linear-gradient(\n -120deg,\n rgba(30, 235, 180, 0.3),\n rgba(30, 235, 180, 0.3) 12px,\n rgba(0, 0, 0, 0.1) 12px,\n rgba(0, 0, 0, 0.1) 25px\n );\n bottom: 0;\n height: 100%;\n left: 0;\n opacity: 0.5;\n pointer-events: none;\n position: absolute;\n width: 100%;\n\n /* * [\uC911\uC694] \n * \uC774 \uC694\uC18C \uC804\uCCB4\uB294 \uD074\uB9AD\uC774 \uD1B5\uACFC\uB429\uB2C8\uB2E4. \n * (\uC790\uC2DD\uC778 ::after\uB3C4 \uC774 \uC18D\uC131\uC744 \uC0C1\uC18D\uBC1B\uC2B5\uB2C8\uB2E4)\n */\n z-index: 2;\n\n /* --- 2. ::after \uAC00\uC0C1 \uC694\uC18C\uB97C \uC0AC\uC6A9\uD574 \uAE00\uC790 \uCD94\uAC00 --- */\n &::after {\n bottom: 0;\n color: #ffffffff;\n content: '", "';\n font-size: 11px;\n font-weight: bold;\n left: 0;\n pointer-events: none;\n position: absolute;\n text-align: center;\n width: 100%;\n }\n"])), function (props) { return '#58ab81ff'; }, function (props) { return props.bottomText || ''; });
|
|
13
13
|
var templateObject_1;
|
|
@@ -99,6 +99,8 @@ function RenderPedigreeRecursively(_a) {
|
|
|
99
99
|
var relativeGridArea_1 = parentGroupArea
|
|
100
100
|
? calculateRelativeGridArea(gridArea_1, parentGroupArea)
|
|
101
101
|
: gridArea_1;
|
|
102
|
+
console.log('before:', gridArea_1);
|
|
103
|
+
console.log('after:', relativeGridArea_1);
|
|
102
104
|
// 그룹의 시작 행을 기준으로 상대적인 selectedRows 계산
|
|
103
105
|
var relativeSelectedRows_1 = selectedRows
|
|
104
106
|
.map(function (row) { return row - gridArea_1.rowStart + 1; })
|