@infinite-table/infinite-react 6.0.15 → 6.0.16
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/index.dev.js +10 -3
- package/index.dev.mjs +10 -3
- package/index.js +10 -3
- package/index.mjs +10 -3
- package/package.json +2 -2
package/index.dev.js
CHANGED
|
@@ -2690,15 +2690,22 @@ var MatrixBrain = class extends Logger {
|
|
|
2690
2690
|
if (size <= 0) {
|
|
2691
2691
|
return 0;
|
|
2692
2692
|
}
|
|
2693
|
+
const fixedStart = direction === "horizontal" ? this.fixedColsStart : this.fixedRowsStart;
|
|
2694
|
+
const fixedEnd = direction === "horizontal" ? this.fixedColsEnd : this.fixedRowsEnd;
|
|
2693
2695
|
if (typeof itemSize === "function") {
|
|
2694
2696
|
const sizes = [];
|
|
2695
|
-
|
|
2697
|
+
let start = 0;
|
|
2698
|
+
let end = count;
|
|
2699
|
+
start += fixedStart;
|
|
2700
|
+
end -= fixedEnd;
|
|
2701
|
+
for (let i = start; i < end; i++) {
|
|
2696
2702
|
sizes.push(this.getItemSize(i, direction));
|
|
2697
2703
|
}
|
|
2698
2704
|
renderCount = getGreatestCountVisibleInSize(size, sizes);
|
|
2699
2705
|
} else {
|
|
2700
2706
|
renderCount = (itemSize ? Math.ceil(size / itemSize) : 0) + 1;
|
|
2701
2707
|
}
|
|
2708
|
+
renderCount += fixedStart + fixedEnd;
|
|
2702
2709
|
renderCount = Math.min(count, renderCount);
|
|
2703
2710
|
return renderCount;
|
|
2704
2711
|
}
|
|
@@ -4692,7 +4699,7 @@ var ActiveRowIndicatorFn = (props) => {
|
|
|
4692
4699
|
setInfiniteVarsOnNode(
|
|
4693
4700
|
{
|
|
4694
4701
|
scrollTopForActiveRow: `${-scrollPosition.scrollTop}px`,
|
|
4695
|
-
scrollLeftForActiveRowWhenHorizontalLayout: `${-scrollPosition.scrollLeft}px`
|
|
4702
|
+
scrollLeftForActiveRowWhenHorizontalLayout: brain.isHorizontalLayoutBrain ? `${-scrollPosition.scrollLeft}px` : "0px"
|
|
4696
4703
|
},
|
|
4697
4704
|
domRef.current
|
|
4698
4705
|
);
|
|
@@ -22499,7 +22506,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
22499
22506
|
}
|
|
22500
22507
|
let valid2 = isValidLicense(licenseKey, {
|
|
22501
22508
|
publishedAt: 1624970570587,
|
|
22502
|
-
version: "6.0.
|
|
22509
|
+
version: "6.0.16"
|
|
22503
22510
|
});
|
|
22504
22511
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
22505
22512
|
return true;
|
package/index.dev.mjs
CHANGED
|
@@ -2631,15 +2631,22 @@ var MatrixBrain = class extends Logger {
|
|
|
2631
2631
|
if (size <= 0) {
|
|
2632
2632
|
return 0;
|
|
2633
2633
|
}
|
|
2634
|
+
const fixedStart = direction === "horizontal" ? this.fixedColsStart : this.fixedRowsStart;
|
|
2635
|
+
const fixedEnd = direction === "horizontal" ? this.fixedColsEnd : this.fixedRowsEnd;
|
|
2634
2636
|
if (typeof itemSize === "function") {
|
|
2635
2637
|
const sizes = [];
|
|
2636
|
-
|
|
2638
|
+
let start = 0;
|
|
2639
|
+
let end = count;
|
|
2640
|
+
start += fixedStart;
|
|
2641
|
+
end -= fixedEnd;
|
|
2642
|
+
for (let i = start; i < end; i++) {
|
|
2637
2643
|
sizes.push(this.getItemSize(i, direction));
|
|
2638
2644
|
}
|
|
2639
2645
|
renderCount = getGreatestCountVisibleInSize(size, sizes);
|
|
2640
2646
|
} else {
|
|
2641
2647
|
renderCount = (itemSize ? Math.ceil(size / itemSize) : 0) + 1;
|
|
2642
2648
|
}
|
|
2649
|
+
renderCount += fixedStart + fixedEnd;
|
|
2643
2650
|
renderCount = Math.min(count, renderCount);
|
|
2644
2651
|
return renderCount;
|
|
2645
2652
|
}
|
|
@@ -4633,7 +4640,7 @@ var ActiveRowIndicatorFn = (props) => {
|
|
|
4633
4640
|
setInfiniteVarsOnNode(
|
|
4634
4641
|
{
|
|
4635
4642
|
scrollTopForActiveRow: `${-scrollPosition.scrollTop}px`,
|
|
4636
|
-
scrollLeftForActiveRowWhenHorizontalLayout: `${-scrollPosition.scrollLeft}px`
|
|
4643
|
+
scrollLeftForActiveRowWhenHorizontalLayout: brain.isHorizontalLayoutBrain ? `${-scrollPosition.scrollLeft}px` : "0px"
|
|
4637
4644
|
},
|
|
4638
4645
|
domRef.current
|
|
4639
4646
|
);
|
|
@@ -22457,7 +22464,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
22457
22464
|
}
|
|
22458
22465
|
let valid2 = isValidLicense(licenseKey, {
|
|
22459
22466
|
publishedAt: 1624970570587,
|
|
22460
|
-
version: "6.0.
|
|
22467
|
+
version: "6.0.16"
|
|
22461
22468
|
});
|
|
22462
22469
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
22463
22470
|
return true;
|
package/index.js
CHANGED
|
@@ -2690,15 +2690,22 @@ var MatrixBrain = class extends Logger {
|
|
|
2690
2690
|
if (size <= 0) {
|
|
2691
2691
|
return 0;
|
|
2692
2692
|
}
|
|
2693
|
+
const fixedStart = direction === "horizontal" ? this.fixedColsStart : this.fixedRowsStart;
|
|
2694
|
+
const fixedEnd = direction === "horizontal" ? this.fixedColsEnd : this.fixedRowsEnd;
|
|
2693
2695
|
if (typeof itemSize === "function") {
|
|
2694
2696
|
const sizes = [];
|
|
2695
|
-
|
|
2697
|
+
let start = 0;
|
|
2698
|
+
let end = count;
|
|
2699
|
+
start += fixedStart;
|
|
2700
|
+
end -= fixedEnd;
|
|
2701
|
+
for (let i = start; i < end; i++) {
|
|
2696
2702
|
sizes.push(this.getItemSize(i, direction));
|
|
2697
2703
|
}
|
|
2698
2704
|
renderCount = getGreatestCountVisibleInSize(size, sizes);
|
|
2699
2705
|
} else {
|
|
2700
2706
|
renderCount = (itemSize ? Math.ceil(size / itemSize) : 0) + 1;
|
|
2701
2707
|
}
|
|
2708
|
+
renderCount += fixedStart + fixedEnd;
|
|
2702
2709
|
renderCount = Math.min(count, renderCount);
|
|
2703
2710
|
return renderCount;
|
|
2704
2711
|
}
|
|
@@ -4692,7 +4699,7 @@ var ActiveRowIndicatorFn = (props) => {
|
|
|
4692
4699
|
setInfiniteVarsOnNode(
|
|
4693
4700
|
{
|
|
4694
4701
|
scrollTopForActiveRow: `${-scrollPosition.scrollTop}px`,
|
|
4695
|
-
scrollLeftForActiveRowWhenHorizontalLayout: `${-scrollPosition.scrollLeft}px`
|
|
4702
|
+
scrollLeftForActiveRowWhenHorizontalLayout: brain.isHorizontalLayoutBrain ? `${-scrollPosition.scrollLeft}px` : "0px"
|
|
4696
4703
|
},
|
|
4697
4704
|
domRef.current
|
|
4698
4705
|
);
|
|
@@ -22499,7 +22506,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
22499
22506
|
}
|
|
22500
22507
|
let valid2 = isValidLicense(licenseKey, {
|
|
22501
22508
|
publishedAt: 1624970570587,
|
|
22502
|
-
version: "6.0.
|
|
22509
|
+
version: "6.0.16"
|
|
22503
22510
|
});
|
|
22504
22511
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
22505
22512
|
return true;
|
package/index.mjs
CHANGED
|
@@ -2631,15 +2631,22 @@ var MatrixBrain = class extends Logger {
|
|
|
2631
2631
|
if (size <= 0) {
|
|
2632
2632
|
return 0;
|
|
2633
2633
|
}
|
|
2634
|
+
const fixedStart = direction === "horizontal" ? this.fixedColsStart : this.fixedRowsStart;
|
|
2635
|
+
const fixedEnd = direction === "horizontal" ? this.fixedColsEnd : this.fixedRowsEnd;
|
|
2634
2636
|
if (typeof itemSize === "function") {
|
|
2635
2637
|
const sizes = [];
|
|
2636
|
-
|
|
2638
|
+
let start = 0;
|
|
2639
|
+
let end = count;
|
|
2640
|
+
start += fixedStart;
|
|
2641
|
+
end -= fixedEnd;
|
|
2642
|
+
for (let i = start; i < end; i++) {
|
|
2637
2643
|
sizes.push(this.getItemSize(i, direction));
|
|
2638
2644
|
}
|
|
2639
2645
|
renderCount = getGreatestCountVisibleInSize(size, sizes);
|
|
2640
2646
|
} else {
|
|
2641
2647
|
renderCount = (itemSize ? Math.ceil(size / itemSize) : 0) + 1;
|
|
2642
2648
|
}
|
|
2649
|
+
renderCount += fixedStart + fixedEnd;
|
|
2643
2650
|
renderCount = Math.min(count, renderCount);
|
|
2644
2651
|
return renderCount;
|
|
2645
2652
|
}
|
|
@@ -4633,7 +4640,7 @@ var ActiveRowIndicatorFn = (props) => {
|
|
|
4633
4640
|
setInfiniteVarsOnNode(
|
|
4634
4641
|
{
|
|
4635
4642
|
scrollTopForActiveRow: `${-scrollPosition.scrollTop}px`,
|
|
4636
|
-
scrollLeftForActiveRowWhenHorizontalLayout: `${-scrollPosition.scrollLeft}px`
|
|
4643
|
+
scrollLeftForActiveRowWhenHorizontalLayout: brain.isHorizontalLayoutBrain ? `${-scrollPosition.scrollLeft}px` : "0px"
|
|
4637
4644
|
},
|
|
4638
4645
|
domRef.current
|
|
4639
4646
|
);
|
|
@@ -22457,7 +22464,7 @@ var useLicense = (licenseKey = "") => {
|
|
|
22457
22464
|
}
|
|
22458
22465
|
let valid2 = isValidLicense(licenseKey, {
|
|
22459
22466
|
publishedAt: 1624970570587,
|
|
22460
|
-
version: "6.0.
|
|
22467
|
+
version: "6.0.16"
|
|
22461
22468
|
});
|
|
22462
22469
|
if (!licenseKey && !valid2 && isInsidePlayground) {
|
|
22463
22470
|
return true;
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/infinite-table/infinite-react/issues"
|
|
27
27
|
},
|
|
28
|
-
"version": "6.0.
|
|
28
|
+
"version": "6.0.16",
|
|
29
29
|
"main": "index.js",
|
|
30
30
|
"module": "index.mjs",
|
|
31
31
|
"typings": "index.d.ts",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "Commercial & Open Source",
|
|
36
36
|
"//": "will be updated at build time",
|
|
37
|
-
"publishedAt":
|
|
37
|
+
"publishedAt": 1732547734552
|
|
38
38
|
}
|