pds-dev-kit-web-test 2.5.639 → 2.5.641

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.
@@ -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;
@@ -136,23 +138,24 @@ function ContentsList(props) {
136
138
  delete positionRefs.current[position];
137
139
  }
138
140
  }, 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.jsx)(S_ContentsListWrapper, __assign({ className: "cb-contentslist-wrapper",
141
+ }), (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
142
  // ccbInset={ccbInset}
141
143
  ccbInset: {
142
144
  top: '0px',
143
145
  right: '0px',
144
146
  bottom: '0px',
145
147
  left: '0px'
146
- }, contentPropCss: contentPropCss, stylePropCss: isHovered ? hoverStylePropCss : stylePropCss }, { children: (0, createCompositions_1.createCompositions)({
147
- valueType: CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE,
148
- queryPath: CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA,
149
- limit: CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS,
150
- queryData: queryData,
151
- compositions: compositions
152
- }).slice(startIndex, endIndex) })) })) })) }))] }));
148
+ }, contentPropCss: contentPropCss, stylePropCss: isHovered ? hoverStylePropCss : stylePropCss }, { children: [(0, jsx_runtime_1.jsx)(CBBackgroundMedia_1.default, {}), (0, createCompositions_1.createCompositions)({
149
+ valueType: CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE,
150
+ queryPath: CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA,
151
+ limit: CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS,
152
+ queryData: queryData,
153
+ compositions: compositions
154
+ }).slice(startIndex, endIndex), (0, jsx_runtime_1.jsx)(S_Overlay, { style: overlayStyle })] })) })) })) }))] }));
153
155
  }
154
- 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
- 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) {
156
+ var S_Overlay = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"], ["\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n"])));
157
+ var S_ContentsListLayout = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __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"])));
158
+ var S_ContentsListWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __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) {
156
159
  var ccbInset = _a.ccbInset;
157
160
  return ccbInset.bottom;
158
161
  }, function (_a) {
@@ -218,4 +221,4 @@ function getCompositionMinValue(composition, device) {
218
221
  }
219
222
  }
220
223
  exports.default = ContentsList;
221
- var templateObject_1, templateObject_2;
224
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export default function CBBackgroundMedia(): JSX.Element;
@@ -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,2 @@
1
+ /// <reference types="react" />
2
+ export default function CBBackgroundOverlay(): JSX.Element;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.639",
3
+ "version": "2.5.641",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",