pds-dev-kit-web-test 2.5.577 → 2.5.578
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.
@@ -126,7 +126,7 @@ function ContentsList(props) {
|
|
126
126
|
return null;
|
127
127
|
}
|
128
128
|
};
|
129
|
-
return ((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", 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-min-width": listMinWidth, "data-min-height": listMinHeight, "data-inset-top": parseFloat(ccbInset.top), "data-inset-bottom": parseFloat(ccbInset.bottom) }, { children: (0, jsx_runtime_1.jsxs)(S_ContentsListLayout, __assign({ className: "cb-contentslist-layout-box", ref: layoutRef }, { children: [(0, jsx_runtime_1.jsx)(S_ContentsListWrapper, __assign({ className: "cb-contentslist-wrapper", ccbInset: ccbInset, contentPropCss: contentPropCss, stylePropCss: isHovered ? hoverStylePropCss : stylePropCss }, { children: (0, createCompositions_1.createCompositions)({
|
129
|
+
return ((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", 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-is-initialized": CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE + queryDataValue, "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-min-width": listMinWidth, "data-min-height": listMinHeight, "data-inset-top": parseFloat(ccbInset.top), "data-inset-bottom": parseFloat(ccbInset.bottom) }, { children: (0, jsx_runtime_1.jsxs)(S_ContentsListLayout, __assign({ className: "cb-contentslist-layout-box", ref: layoutRef }, { children: [(0, jsx_runtime_1.jsx)(S_ContentsListWrapper, __assign({ className: "cb-contentslist-wrapper", ccbInset: ccbInset, contentPropCss: contentPropCss, stylePropCss: isHovered ? hoverStylePropCss : stylePropCss }, { children: (0, createCompositions_1.createCompositions)({
|
130
130
|
valueType: CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE,
|
131
131
|
queryPath: CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA,
|
132
132
|
limit: CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS,
|
@@ -179,26 +179,34 @@ function getCompositionMinValue(composition, device) {
|
|
179
179
|
var minCellWidth = 10;
|
180
180
|
var minCollHeight = 11;
|
181
181
|
var padding = 20;
|
182
|
-
|
183
|
-
|
184
|
-
.
|
185
|
-
var rows = composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION
|
186
|
-
.CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS;
|
187
|
-
return {
|
188
|
-
minWidth: minCellWidth * cols + padding,
|
189
|
-
minHeight: minCollHeight * rows + padding
|
190
|
-
};
|
191
|
-
}
|
192
|
-
if (device === 'MOBILE') {
|
193
|
-
var cols = composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION['CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS:MOBILE'] ||
|
194
|
-
composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION
|
182
|
+
try {
|
183
|
+
if (device === 'DESKTOP') {
|
184
|
+
var cols = composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION
|
195
185
|
.CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS;
|
196
|
-
|
197
|
-
composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION
|
186
|
+
var rows = composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION
|
198
187
|
.CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS;
|
188
|
+
return {
|
189
|
+
minWidth: minCellWidth * cols + padding,
|
190
|
+
minHeight: minCollHeight * rows + padding
|
191
|
+
};
|
192
|
+
}
|
193
|
+
if (device === 'MOBILE') {
|
194
|
+
var cols = composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION['CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS:MOBILE'] ||
|
195
|
+
composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION
|
196
|
+
.CB_PLACEMENT_PROP_COMPOSITION_SPEC_COLUMNS;
|
197
|
+
var rows = composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION['CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS:MOBILE'] ||
|
198
|
+
composition.jsonProperties.data.CB_PLACEMENT_PROP_COMPOSITION
|
199
|
+
.CB_PLACEMENT_PROP_COMPOSITION_SPEC_ROWS;
|
200
|
+
return {
|
201
|
+
minWidth: minCellWidth * cols + padding,
|
202
|
+
minHeight: minCollHeight * rows + padding
|
203
|
+
};
|
204
|
+
}
|
205
|
+
}
|
206
|
+
catch (_a) {
|
199
207
|
return {
|
200
|
-
minWidth:
|
201
|
-
minHeight:
|
208
|
+
minWidth: 0,
|
209
|
+
minHeight: 0
|
202
210
|
};
|
203
211
|
}
|
204
212
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pds-dev-kit-web-test",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.578",
|
4
4
|
"license": "MIT",
|
5
5
|
"private": false,
|
6
6
|
"main": "dist/index.js",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"lottie-react": "^2.3.1",
|
24
24
|
"nuka-carousel": "^4.8.4",
|
25
25
|
"publ-echo": "^0.0.119",
|
26
|
-
"publ-echo-test": "^0.0.
|
26
|
+
"publ-echo-test": "^0.0.296",
|
27
27
|
"react-hook-form": "^7.28.1",
|
28
28
|
"react-i18next": "^11.12.0",
|
29
29
|
"react-router-dom": "^5.2.0",
|