pds-dev-kit-web-test 2.5.434 → 2.5.436

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.
@@ -36,13 +36,11 @@ function ContentsList(props) {
36
36
  var CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS, CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE, CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA, CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS = CB_CONTENT_PROP_CONTENTSLIST.CB_CONTENT_PROP_CONTENTSLIST_SPEC_COLUMNS;
37
37
  var _f = (0, react_1.useState)(false), isHovered = _f[0], setIsHovered = _f[1];
38
38
  var _g = (0, react_1.useState)(1), currentPage = _g[0], setCurrentPage = _g[1];
39
- // Ensure displayCounts is a valid positive integer
40
- var displayCounts = CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS !== null && CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS !== void 0 ? CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS : CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS;
41
39
  var parsedQueryPath = removeFirstSegment(CB_CONTENT_PROP_CONTENTSLIST_SPEC_CONNECTDATA);
42
40
  var queryDataValue = queryData === null || queryData === void 0 ? void 0 : queryData[parsedQueryPath];
43
41
  var totalPage = Math.ceil((CB_CONTENT_PROP_CONTENTSLIST_SPEC_VALUETYPE === 'DATA' && queryDataValue
44
42
  ? queryDataValue === null || queryDataValue === void 0 ? void 0 : queryDataValue.length
45
- : compositions.length - 1) / displayCounts);
43
+ : compositions.length - 1) / CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS);
46
44
  var _h = (0, util_1.parseProperties)(props, device), style = _h.style, hoverStyle = _h.hoverStyle, layout = _h.layout, effect = _h.effect;
47
45
  var contentPropCss = (0, contentsListUtils_1.parseGridContentProp)({
48
46
  props: CB_CONTENT_PROP_CONTENTSLIST
@@ -73,7 +71,8 @@ function ContentsList(props) {
73
71
  var handlePageClick = function (page) {
74
72
  setCurrentPage(page);
75
73
  };
76
- var startIndex = typeof currentPage === 'number' && !isNaN(currentPage) ? (currentPage - 1) * displayCounts : 0;
74
+ var displayCounts = CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS !== null && CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS !== void 0 ? CB_CONTENT_PROP_CONTENTSLIST_SPEC_DISPLAYCOUNTS : CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS;
75
+ var startIndex = (currentPage - 1) * displayCounts;
77
76
  var endIndex = startIndex + displayCounts;
78
77
  // list의 minheight / minwidth를 계산
79
78
  var numberOfItems = CB_CONTENT_PROP_CONTENTSLIST_SPEC_ITEMCOUNTS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.434",
3
+ "version": "2.5.436",
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.225",
26
+ "publ-echo-test": "^0.0.226",
27
27
  "react-hook-form": "^7.28.1",
28
28
  "react-i18next": "^11.12.0",
29
29
  "react-router-dom": "^5.2.0",