pds-dev-kit-web-test 2.5.639 → 2.5.640
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/components/Section/components/CustomSectionBackground.js +0 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +12 -9
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/propComponent/CBBackgroundMedia.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/propComponent/CBBackgroundMedia.js +7 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/propComponent/CBBackgroundOverlay.d.ts +2 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/propComponent/CBBackgroundOverlay.js +13 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parseProperties.js +4 -3
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/types.d.ts +1 -0
- package/package.json +1 -1
@@ -33,7 +33,6 @@ function CustomSectionBackground(_a) {
|
|
33
33
|
var data = jsonProperties.data;
|
34
34
|
var CB_STYLE_PROP_BGOVERLAY = data.CB_STYLE_PROP_BGOVERLAY, CB_STYLE_PROP_BGMEDIA = data.CB_STYLE_PROP_BGMEDIA;
|
35
35
|
var _c = (0, util_1.parseJsonProperties)(data, isMobile ? 'MOBILE' : 'DESKTOP'), style = _c.style, overlayStyle = _c.overlayStyle, effect = _c.effect;
|
36
|
-
console.log('DATA FROM CUSTOM SECTION BG:', data);
|
37
36
|
var isOverlay = getIsOverlay(isMobile, CB_STYLE_PROP_BGOVERLAY);
|
38
37
|
var isBgMedia = getIsBgMedia(isMobile, CB_STYLE_PROP_BGMEDIA);
|
39
38
|
var mediaType = getMediaType(isMobile, CB_STYLE_PROP_BGMEDIA);
|
@@ -25,6 +25,8 @@ var dynamicLayoutContext_1 = require("../../../../../../../DynamicLayout/dynamic
|
|
25
25
|
var hooks_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/hooks");
|
26
26
|
var util_1 = require("../../../../../../../DynamicLayout/sections/CustomSection/util");
|
27
27
|
var styled_components_1 = __importDefault(require("styled-components"));
|
28
|
+
var CBBackgroundMedia_1 = __importDefault(require("../../propComponent/CBBackgroundMedia"));
|
29
|
+
require("../../propComponent/CBBackgroundOverlay");
|
28
30
|
var S_CB_AnimationObserverBox_1 = require("../components/S_CB_AnimationObserverBox");
|
29
31
|
var S_CB_BoxWithShadow_1 = require("../components/S_CB_BoxWithShadow");
|
30
32
|
var CustomPagination_1 = require("./components/CustomPagination");
|
@@ -56,7 +58,7 @@ function ContentsList(props) {
|
|
56
58
|
var totalPage = Math.ceil((CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE === 'DATA' && queryDataValue
|
57
59
|
? queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length
|
58
60
|
: compositions.length - 1) / CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS);
|
59
|
-
var _h = (0, util_1.parseProperties)(props, device), style = _h.style, hoverStyle = _h.hoverStyle, layout = _h.layout, effect = _h.effect;
|
61
|
+
var _h = (0, util_1.parseProperties)(props, device), style = _h.style, hoverStyle = _h.hoverStyle, layout = _h.layout, effect = _h.effect, overlayStyle = _h.overlayStyle;
|
60
62
|
var contentPropCss = (0, contentsListUtils_1.parseGridContentProp)({
|
61
63
|
props: CB_CONTENT_PROP_CONTENTSLIST
|
62
64
|
}).contentPropCss;
|
@@ -126,6 +128,7 @@ function ContentsList(props) {
|
|
126
128
|
return null;
|
127
129
|
}
|
128
130
|
};
|
131
|
+
console.log('overlayStyle', overlayStyle);
|
129
132
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [Object.entries(componentGroups).map(function (_a) {
|
130
133
|
var position = _a[0], groupComponents = _a[1];
|
131
134
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentslist-button-group", ref: function (el) {
|
@@ -136,20 +139,20 @@ function ContentsList(props) {
|
|
136
139
|
delete positionRefs.current[position];
|
137
140
|
}
|
138
141
|
}, style: __assign(__assign({}, getPositionStyle(position, ccbInset)), { zIndex: 3 }) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "cb-contentslist-button-layout-box", style: getComponentGroupLayout(groupComponents, position) }, { children: groupComponents.map(function (component) { return renderElements(component); }) })) }), position));
|
139
|
-
}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ id: "contentslist-box", className: "cb-layout-box ccb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, "data-number-of-items": CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS, "data-number-of-columns": CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS, "data-row-gap": rowGap, "data-column-gap": columnGap, "data-cols": CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS, "data-min-width": listMinWidth, "data-min-height": listMinHeight, "data-inset-top": parseFloat(ccbInset.top), "data-inset-bottom": parseFloat(ccbInset.bottom) }, { children: (0, jsx_runtime_1.jsx)(S_ContentsListLayout, __assign({ className: "cb-contentslist-layout-box", ref: layoutRef }, { children: (0, jsx_runtime_1.
|
142
|
+
}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ id: "contentslist-box", className: "cb-layout-box ccb-layout-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), { overflow: 'hidden' }), hoverStyle: __assign(__assign({}, hoverStyle), { overflow: 'hidden' }), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, "data-number-of-items": CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS, "data-number-of-columns": CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS, "data-row-gap": rowGap, "data-column-gap": columnGap, "data-cols": CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS, "data-min-width": listMinWidth, "data-min-height": listMinHeight, "data-inset-top": parseFloat(ccbInset.top), "data-inset-bottom": parseFloat(ccbInset.bottom) }, { children: (0, jsx_runtime_1.jsx)(S_ContentsListLayout, __assign({ className: "cb-contentslist-layout-box", ref: layoutRef }, { children: (0, jsx_runtime_1.jsxs)(S_ContentsListWrapper, __assign({ className: "cb-contentslist-wrapper",
|
140
143
|
// ccbInset={ccbInset}
|
141
144
|
ccbInset: {
|
142
145
|
top: '0px',
|
143
146
|
right: '0px',
|
144
147
|
bottom: '0px',
|
145
148
|
left: '0px'
|
146
|
-
}, contentPropCss: contentPropCss, stylePropCss: isHovered ? hoverStylePropCss : stylePropCss }, { children: (0, createCompositions_1.createCompositions)({
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
149
|
+
}, contentPropCss: contentPropCss, stylePropCss: isHovered ? hoverStylePropCss : stylePropCss }, { children: [(0, jsx_runtime_1.jsx)(CBBackgroundMedia_1.default, {}), (0, createCompositions_1.createCompositions)({
|
150
|
+
valueType: CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE,
|
151
|
+
queryPath: CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA,
|
152
|
+
limit: CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS,
|
153
|
+
queryData: queryData,
|
154
|
+
compositions: compositions
|
155
|
+
}).slice(startIndex, endIndex), (0, jsx_runtime_1.jsx)("div", { style: overlayStyle })] })) })) })) }))] }));
|
153
156
|
}
|
154
157
|
var S_ContentsListLayout = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 100%;\n margin: 0 auto;\n position: relative;\n width: 100%;\n"], ["\n height: 100%;\n margin: 0 auto;\n position: relative;\n width: 100%;\n"])));
|
155
158
|
var S_ContentsListWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n bottom: ", ";\n display: grid;\n left: ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n\n ", ";\n ", ";\n"], ["\n bottom: ", ";\n display: grid;\n left: ", ";\n position: absolute;\n right: ", ";\n top: ", ";\n\n ", ";\n ", ";\n"])), function (_a) {
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
4
|
+
function CBBackgroundMedia() {
|
5
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "CB- background-media" });
|
6
|
+
}
|
7
|
+
exports.default = CBBackgroundMedia;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
4
|
+
require("../../../util");
|
5
|
+
function CBBackgroundOverlay() {
|
6
|
+
// console.log('ccb background overlay', jsonProperties);
|
7
|
+
// const { style, overlayStyle, effect } = parseJsonProperties(
|
8
|
+
// data,
|
9
|
+
// isMobile ? 'MOBILE' : 'DESKTOP'
|
10
|
+
// );
|
11
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "CB- background-overlay" });
|
12
|
+
}
|
13
|
+
exports.default = CBBackgroundOverlay;
|
@@ -27,8 +27,8 @@ function parseProperties(properties, device) {
|
|
27
27
|
specs: specs
|
28
28
|
};
|
29
29
|
if (normalizedProperty.name in types_4.CB_STYLE_PROP_KEYS) {
|
30
|
-
var _a = (0, stylePropParsers_1.parseStyleProperties)(normalizedProperty, device), style = _a.style, hoverStyle = _a.hoverStyle;
|
31
|
-
return __assign(__assign({}, acc), { style: __assign(__assign({}, acc.style), style), hoverStyle: __assign(__assign({}, acc.hoverStyle), hoverStyle) });
|
30
|
+
var _a = (0, stylePropParsers_1.parseStyleProperties)(normalizedProperty, device), style = _a.style, hoverStyle = _a.hoverStyle, overlayStyle = _a.overlayStyle;
|
31
|
+
return __assign(__assign({}, acc), { style: __assign(__assign({}, acc.style), style), hoverStyle: __assign(__assign({}, acc.hoverStyle), hoverStyle), overlayStyle: __assign(__assign({}, acc.overlayStyle), overlayStyle) });
|
32
32
|
}
|
33
33
|
if (normalizedProperty.name in types_3.CB_LAYOUT_PROP_KEYS) {
|
34
34
|
var style = (0, layoutPropParsers_1.parseLayoutProperties)(normalizedProperty, device).style;
|
@@ -48,7 +48,8 @@ function parseProperties(properties, device) {
|
|
48
48
|
hoverStyle: {},
|
49
49
|
layout: {},
|
50
50
|
effect: {},
|
51
|
-
content: {}
|
51
|
+
content: {},
|
52
|
+
overlayStyle: {}
|
52
53
|
});
|
53
54
|
}
|
54
55
|
exports.default = parseProperties;
|
@@ -194,6 +194,7 @@ export type OverlayStyle = {
|
|
194
194
|
export type Device = 'DESKTOP' | 'MOBILE';
|
195
195
|
export type DefaultBrightTheme = 'LIGHT' | 'DARK';
|
196
196
|
export type ParserResult = {
|
197
|
+
overlayStyle: any;
|
197
198
|
style: CSSProperties;
|
198
199
|
hoverStyle: CSSProperties;
|
199
200
|
layout: CSSProperties;
|