react-window 2.1.1 → 2.1.2
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/react-window.cjs +1 -1
- package/dist/react-window.cjs.map +1 -1
- package/dist/react-window.js +65 -62
- package/dist/react-window.js.map +1 -1
- package/docs/assets/{AriaRolesRoute-YProrOKU.js → AriaRolesRoute-CioRrafx.js} +2 -2
- package/docs/assets/{AriaRolesRoute-YProrOKU.js.map → AriaRolesRoute-CioRrafx.js.map} +1 -1
- package/docs/assets/{AriaRolesRoute-DrA2Z2g2.js → AriaRolesRoute-CjzrHhTE.js} +2 -2
- package/docs/assets/{AriaRolesRoute-DrA2Z2g2.js.map → AriaRolesRoute-CjzrHhTE.js.map} +1 -1
- package/docs/assets/{AriaRolesRoute-B8u4KZlN.js → AriaRolesRoute-DILWjLTS.js} +2 -2
- package/docs/assets/{AriaRolesRoute-B8u4KZlN.js.map → AriaRolesRoute-DILWjLTS.js.map} +1 -1
- package/docs/assets/CellComponent.example-uUYIhpiW.js +2 -0
- package/docs/assets/{CellComponent.example-ChzwGLAD.js.map → CellComponent.example-uUYIhpiW.js.map} +1 -1
- package/docs/assets/{Code-BJ6U_DpT.js → Code-r2plEB3N.js} +2 -2
- package/docs/assets/{Code-BJ6U_DpT.js.map → Code-r2plEB3N.js.map} +1 -1
- package/docs/assets/{ComponentProps-0JkeHmLq.js → ComponentProps-CnDy_aV8.js} +2 -2
- package/docs/assets/{ComponentProps-0JkeHmLq.js.map → ComponentProps-CnDy_aV8.js.map} +1 -1
- package/docs/assets/ContinueLink-BDXFlJ2t.js +2 -0
- package/docs/assets/{ContinueLink-Mq4XOwMu.js.map → ContinueLink-BDXFlJ2t.js.map} +1 -1
- package/docs/assets/{FixedRowHeightsRoute-DXFNDmnz.js → FixedRowHeightsRoute-CCpmgQDh.js} +2 -2
- package/docs/assets/{FixedRowHeightsRoute-DXFNDmnz.js.map → FixedRowHeightsRoute-CCpmgQDh.js.map} +1 -1
- package/docs/assets/{GettingStartedRoute-D-bI_IZb.js → GettingStartedRoute-bLneovGd.js} +2 -2
- package/docs/assets/{GettingStartedRoute-D-bI_IZb.js.map → GettingStartedRoute-bLneovGd.js.map} +1 -1
- package/docs/assets/Grid-BjC_BndR.js +2 -0
- package/docs/assets/Grid-BjC_BndR.js.map +1 -0
- package/docs/assets/{Header-DM8OHOd_.js → Header-CWpEkQSA.js} +2 -2
- package/docs/assets/{Header-DM8OHOd_.js.map → Header-CWpEkQSA.js.map} +1 -1
- package/docs/assets/HorizontalListsRoute-CIfKb2Dg.js +2 -0
- package/docs/assets/HorizontalListsRoute-CIfKb2Dg.js.map +1 -0
- package/docs/assets/ImagesRoute-jiaLWXKV.js +2 -0
- package/docs/assets/ImagesRoute-jiaLWXKV.js.map +1 -0
- package/docs/assets/{ImperativeApiRoute-BdK7xl-u.js → ImperativeApiRoute-DRVezybQ.js} +2 -2
- package/docs/assets/{ImperativeApiRoute-BdK7xl-u.js.map → ImperativeApiRoute-DRVezybQ.js.map} +1 -1
- package/docs/assets/{ImperativeApiRoute-DdlTcZ7C.js → ImperativeApiRoute-DXzOo4Dn.js} +2 -2
- package/docs/assets/{ImperativeApiRoute-DdlTcZ7C.js.map → ImperativeApiRoute-DXzOo4Dn.js.map} +1 -1
- package/docs/assets/List-CB_lBMmJ.js +2 -0
- package/docs/assets/List-CB_lBMmJ.js.map +1 -0
- package/docs/assets/{LoadingSpinner-CcA45RYo.js → LoadingSpinner-D94ZhMZx.js} +2 -2
- package/docs/assets/{LoadingSpinner-CcA45RYo.js.map → LoadingSpinner-D94ZhMZx.js.map} +1 -1
- package/docs/assets/{PageNotFound-BaiFbANH.js → PageNotFound-CZublSHx.js} +2 -2
- package/docs/assets/{PageNotFound-BaiFbANH.js.map → PageNotFound-CZublSHx.js.map} +1 -1
- package/docs/assets/{PlatformRequirementsRoute-BfE0JkzC.js → PlatformRequirementsRoute-Bq7s0cCu.js} +2 -2
- package/docs/assets/{PlatformRequirementsRoute-BfE0JkzC.js.map → PlatformRequirementsRoute-Bq7s0cCu.js.map} +1 -1
- package/docs/assets/{PropsRoute-E2EuXhKK.js → PropsRoute-DrhCHCJM.js} +2 -2
- package/docs/assets/{PropsRoute-E2EuXhKK.js.map → PropsRoute-DrhCHCJM.js.map} +1 -1
- package/docs/assets/{PropsRoute-B2tWvN5Y.js → PropsRoute-Hhqv1kyZ.js} +2 -2
- package/docs/assets/{PropsRoute-B2tWvN5Y.js.map → PropsRoute-Hhqv1kyZ.js.map} +1 -1
- package/docs/assets/RTLGridsRoute-C7t1OLVr.js +2 -0
- package/docs/assets/RTLGridsRoute-C7t1OLVr.js.map +1 -0
- package/docs/assets/{RenderingGridRoute-BvlK0VIG.js → RenderingGridRoute-Cd7Z3aKa.js} +2 -2
- package/docs/assets/{RenderingGridRoute-BvlK0VIG.js.map → RenderingGridRoute-Cd7Z3aKa.js.map} +1 -1
- package/docs/assets/ScratchpadRoute-BE3BnYuC.js +2 -0
- package/docs/assets/{ScratchpadRoute-wzxynGR2.js.map → ScratchpadRoute-BE3BnYuC.js.map} +1 -1
- package/docs/assets/{Select-BtAY4kA-.js → Select-D7Hzggtt.js} +2 -2
- package/docs/assets/{Select-BtAY4kA-.js.map → Select-D7Hzggtt.js.map} +1 -1
- package/docs/assets/{StickyRowsRoute-DUIWoMJJ.js → StickyRowsRoute-BFaLUY3R.js} +2 -2
- package/docs/assets/{StickyRowsRoute-DUIWoMJJ.js.map → StickyRowsRoute-BFaLUY3R.js.map} +1 -1
- package/docs/assets/{SupportRoute-DO1SyQwL.js → SupportRoute-DbxH2zGy.js} +2 -2
- package/docs/assets/{SupportRoute-DO1SyQwL.js.map → SupportRoute-DbxH2zGy.js.map} +1 -1
- package/docs/assets/{TabularDataRoute-DMwDahmo.js → TabularDataRoute-DI0yJsDS.js} +2 -2
- package/docs/assets/{TabularDataRoute-DMwDahmo.js.map → TabularDataRoute-DI0yJsDS.js.map} +1 -1
- package/docs/assets/{VariableRowHeightsRoute-B9mccfzh.js → VariableRowHeightsRoute-cSpZuhJh.js} +2 -2
- package/docs/assets/{VariableRowHeightsRoute-B9mccfzh.js.map → VariableRowHeightsRoute-cSpZuhJh.js.map} +1 -1
- package/docs/assets/{arePropsEqual-MBk0PiJi.js → arePropsEqual-CaQN03VG.js} +2 -2
- package/docs/assets/{arePropsEqual-MBk0PiJi.js.map → arePropsEqual-CaQN03VG.js.map} +1 -1
- package/docs/assets/index-C1XSX8kr.css +1 -0
- package/docs/assets/{index-3R9tv3eW.js → index-Cnm6lMUF.js} +3 -3
- package/docs/assets/index-Cnm6lMUF.js.map +1 -0
- package/docs/assets/{useCitiesByState-DlHLfAIQ.js → useCitiesByState-DF2_rnmt.js} +2 -2
- package/docs/assets/{useCitiesByState-DlHLfAIQ.js.map → useCitiesByState-DF2_rnmt.js.map} +1 -1
- package/docs/assets/{useContacts-C-Fuwn4U.js → useContacts-X0AOlpLx.js} +2 -2
- package/docs/assets/{useContacts-C-Fuwn4U.js.map → useContacts-X0AOlpLx.js.map} +1 -1
- package/docs/generated/code-snippets/ImageRow.json +3 -0
- package/docs/generated/code-snippets/Images.json +3 -0
- package/docs/generated/code-snippets/useImageSizeCache.json +3 -0
- package/docs/images/animal-3546613_1280.jpg +0 -0
- package/docs/images/ball-bearings-1958083_1280.jpg +0 -0
- package/docs/images/bourke-luck-potholes-163065_1280.jpg +0 -0
- package/docs/images/child-1439468_1280.jpg +0 -0
- package/docs/images/digiart-3405596_1280.jpg +0 -0
- package/docs/images/electrical-cable-mess-2654084_1280.jpg +0 -0
- package/docs/images/elephant-8608983_1280.jpg +0 -0
- package/docs/images/fema-4987740_1280.jpg +0 -0
- package/docs/images/log-3135150_1280.jpg +0 -0
- package/docs/images/man-1838330_1280.jpg +0 -0
- package/docs/images/manipulation-2735724_1280.jpg +0 -0
- package/docs/images/newborn-6467761_1280.jpg +0 -0
- package/docs/images/old-farm-house-2096642_1280.jpg +0 -0
- package/docs/images/people-2557534_1280.jpg +0 -0
- package/docs/images/photo-1516712109157-6a67f5d73fa1.jpg +0 -0
- package/docs/images/photo-1562123408-fbf8cbf92c03.jpg +0 -0
- package/docs/images/sculpture-99484_1280.jpg +0 -0
- package/docs/images/sport-4765008_1280.jpg +0 -0
- package/docs/images/styrofoam-19493_1280.jpg +0 -0
- package/docs/images/trabi-328402_1280.jpg +0 -0
- package/docs/images/trailers-5073244_1280.jpg +0 -0
- package/docs/images/tub-114349_1280.jpg +0 -0
- package/docs/images/venus-fly-trap-3684935_1280.jpg +0 -0
- package/docs/images/web-5013633_1280.jpg +0 -0
- package/docs/images/winter-1675197_1280.jpg +0 -0
- package/docs/images/woman-1838149_1280.jpg +0 -0
- package/docs/index.html +2 -2
- package/docs/stats.html +1 -1
- package/package.json +1 -1
- package/docs/assets/CellComponent.example-ChzwGLAD.js +0 -2
- package/docs/assets/ContinueLink-Mq4XOwMu.js +0 -2
- package/docs/assets/Grid-Cio8auWD.js +0 -2
- package/docs/assets/Grid-Cio8auWD.js.map +0 -1
- package/docs/assets/HorizontalListsRoute-Dk2qJcyq.js +0 -2
- package/docs/assets/HorizontalListsRoute-Dk2qJcyq.js.map +0 -1
- package/docs/assets/List-B9HC1vRM.js +0 -2
- package/docs/assets/List-B9HC1vRM.js.map +0 -1
- package/docs/assets/RTLGridsRoute-BiJ_ARQb.js +0 -2
- package/docs/assets/RTLGridsRoute-BiJ_ARQb.js.map +0 -1
- package/docs/assets/ScratchpadRoute-wzxynGR2.js +0 -2
- package/docs/assets/index-3R9tv3eW.js.map +0 -1
- package/docs/assets/index-DbmHyJV-.css +0 -1
package/dist/react-window.js
CHANGED
|
@@ -50,17 +50,17 @@ function ge({
|
|
|
50
50
|
return J(() => {
|
|
51
51
|
if (o === null || p)
|
|
52
52
|
return;
|
|
53
|
-
const
|
|
54
|
-
for (const V of
|
|
55
|
-
const { contentRect:
|
|
56
|
-
o === g && d((
|
|
57
|
-
height:
|
|
58
|
-
width:
|
|
53
|
+
const y = new ResizeObserver((S) => {
|
|
54
|
+
for (const V of S) {
|
|
55
|
+
const { contentRect: b, target: g } = V;
|
|
56
|
+
o === g && d((m) => m.height === b.height && m.width === b.width ? m : {
|
|
57
|
+
height: b.height,
|
|
58
|
+
width: b.width
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
return
|
|
63
|
-
|
|
62
|
+
return y.observe(o, { box: e }), () => {
|
|
63
|
+
y?.unobserve(o);
|
|
64
64
|
};
|
|
65
65
|
}, [e, p, o, c, i]), H(
|
|
66
66
|
() => ({
|
|
@@ -306,16 +306,16 @@ function C({
|
|
|
306
306
|
stopIndexVisible: -1,
|
|
307
307
|
stopIndexOverscan: -1
|
|
308
308
|
}), {
|
|
309
|
-
startIndexVisible:
|
|
310
|
-
startIndexOverscan:
|
|
309
|
+
startIndexVisible: y,
|
|
310
|
+
startIndexOverscan: S,
|
|
311
311
|
stopIndexVisible: V,
|
|
312
|
-
stopIndexOverscan:
|
|
312
|
+
stopIndexOverscan: b
|
|
313
313
|
} = {
|
|
314
314
|
startIndexVisible: Math.min(n - 1, d.startIndexVisible),
|
|
315
315
|
startIndexOverscan: Math.min(n - 1, d.startIndexOverscan),
|
|
316
316
|
stopIndexVisible: Math.min(n - 1, d.stopIndexVisible),
|
|
317
317
|
stopIndexOverscan: Math.min(n - 1, d.stopIndexOverscan)
|
|
318
|
-
}, { height: g = s, width:
|
|
318
|
+
}, { height: g = s, width: m = s } = ge({
|
|
319
319
|
defaultHeight: r === "vertical" ? s : void 0,
|
|
320
320
|
defaultWidth: r === "horizontal" ? s : void 0,
|
|
321
321
|
element: e,
|
|
@@ -324,13 +324,13 @@ function C({
|
|
|
324
324
|
}), k = K({
|
|
325
325
|
height: 0,
|
|
326
326
|
width: 0
|
|
327
|
-
}), O = r === "vertical" ? g :
|
|
327
|
+
}), O = r === "vertical" ? g : m, a = Oe({ containerSize: O, itemSize: c });
|
|
328
328
|
ee(() => {
|
|
329
329
|
if (typeof i == "function") {
|
|
330
330
|
const u = k.current;
|
|
331
|
-
(u.height !== g || u.width !==
|
|
331
|
+
(u.height !== g || u.width !== m) && (i({ height: g, width: m }, { ...u }), u.height = g, u.width = m);
|
|
332
332
|
}
|
|
333
|
-
}, [g, i,
|
|
333
|
+
}, [g, i, m]);
|
|
334
334
|
const x = we({
|
|
335
335
|
itemCount: n,
|
|
336
336
|
itemProps: l,
|
|
@@ -338,7 +338,7 @@ function C({
|
|
|
338
338
|
}), z = N(
|
|
339
339
|
(u) => x.get(u),
|
|
340
340
|
[x]
|
|
341
|
-
),
|
|
341
|
+
), T = N(
|
|
342
342
|
() => ce({
|
|
343
343
|
cachedBounds: x,
|
|
344
344
|
itemCount: n,
|
|
@@ -436,11 +436,11 @@ function C({
|
|
|
436
436
|
);
|
|
437
437
|
return {
|
|
438
438
|
getCellBounds: z,
|
|
439
|
-
getEstimatedSize:
|
|
439
|
+
getEstimatedSize: T,
|
|
440
440
|
scrollToIndex: L,
|
|
441
|
-
startIndexOverscan:
|
|
442
|
-
startIndexVisible:
|
|
443
|
-
stopIndexOverscan:
|
|
441
|
+
startIndexOverscan: S,
|
|
442
|
+
startIndexVisible: y,
|
|
443
|
+
stopIndexOverscan: b,
|
|
444
444
|
stopIndexVisible: V
|
|
445
445
|
};
|
|
446
446
|
}
|
|
@@ -459,7 +459,7 @@ function ae(e, t) {
|
|
|
459
459
|
} = t;
|
|
460
460
|
return Y(s, n) && Y(r, l) && Y(o, c);
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function ze({
|
|
463
463
|
cellComponent: e,
|
|
464
464
|
cellProps: t,
|
|
465
465
|
children: s,
|
|
@@ -472,18 +472,18 @@ function Se({
|
|
|
472
472
|
gridRef: f,
|
|
473
473
|
onCellsRendered: d,
|
|
474
474
|
onResize: p,
|
|
475
|
-
overscanCount:
|
|
476
|
-
rowCount:
|
|
475
|
+
overscanCount: y = 3,
|
|
476
|
+
rowCount: S,
|
|
477
477
|
rowHeight: V,
|
|
478
|
-
style:
|
|
478
|
+
style: b,
|
|
479
479
|
tagName: g = "div",
|
|
480
|
-
...
|
|
480
|
+
...m
|
|
481
481
|
}) {
|
|
482
482
|
const k = de(t), O = H(
|
|
483
483
|
() => ie(e, ae),
|
|
484
484
|
[e]
|
|
485
485
|
), [a, x] = j(null), z = xe(a, i), {
|
|
486
|
-
getCellBounds:
|
|
486
|
+
getCellBounds: T,
|
|
487
487
|
getEstimatedSize: M,
|
|
488
488
|
startIndexOverscan: L,
|
|
489
489
|
startIndexVisible: u,
|
|
@@ -492,6 +492,7 @@ function Se({
|
|
|
492
492
|
stopIndexVisible: v
|
|
493
493
|
} = C({
|
|
494
494
|
containerElement: a,
|
|
495
|
+
containerStyle: b,
|
|
495
496
|
defaultContainerSize: c,
|
|
496
497
|
direction: "horizontal",
|
|
497
498
|
isRtl: z,
|
|
@@ -499,7 +500,7 @@ function Se({
|
|
|
499
500
|
itemProps: k,
|
|
500
501
|
itemSize: n,
|
|
501
502
|
onResize: p,
|
|
502
|
-
overscanCount:
|
|
503
|
+
overscanCount: y
|
|
503
504
|
}), {
|
|
504
505
|
getCellBounds: E,
|
|
505
506
|
getEstimatedSize: q,
|
|
@@ -510,13 +511,14 @@ function Se({
|
|
|
510
511
|
stopIndexVisible: re
|
|
511
512
|
} = C({
|
|
512
513
|
containerElement: a,
|
|
514
|
+
containerStyle: b,
|
|
513
515
|
defaultContainerSize: l,
|
|
514
516
|
direction: "vertical",
|
|
515
|
-
itemCount:
|
|
517
|
+
itemCount: S,
|
|
516
518
|
itemProps: k,
|
|
517
519
|
itemSize: V,
|
|
518
520
|
onResize: p,
|
|
519
|
-
overscanCount:
|
|
521
|
+
overscanCount: y
|
|
520
522
|
});
|
|
521
523
|
le(
|
|
522
524
|
f,
|
|
@@ -526,13 +528,13 @@ function Se({
|
|
|
526
528
|
},
|
|
527
529
|
scrollToCell({
|
|
528
530
|
behavior: R = "auto",
|
|
529
|
-
columnAlign:
|
|
531
|
+
columnAlign: w = "auto",
|
|
530
532
|
columnIndex: W,
|
|
531
533
|
rowAlign: A = "auto",
|
|
532
534
|
rowIndex: $
|
|
533
535
|
}) {
|
|
534
536
|
const D = I({
|
|
535
|
-
align:
|
|
537
|
+
align: w,
|
|
536
538
|
containerScrollOffset: a?.scrollLeft ?? 0,
|
|
537
539
|
index: W
|
|
538
540
|
}), he = Q({
|
|
@@ -548,7 +550,7 @@ function Se({
|
|
|
548
550
|
},
|
|
549
551
|
scrollToColumn({
|
|
550
552
|
align: R = "auto",
|
|
551
|
-
behavior:
|
|
553
|
+
behavior: w = "auto",
|
|
552
554
|
index: W
|
|
553
555
|
}) {
|
|
554
556
|
const A = I({
|
|
@@ -557,13 +559,13 @@ function Se({
|
|
|
557
559
|
index: W
|
|
558
560
|
});
|
|
559
561
|
typeof a?.scrollTo == "function" && a.scrollTo({
|
|
560
|
-
behavior:
|
|
562
|
+
behavior: w,
|
|
561
563
|
left: A
|
|
562
564
|
});
|
|
563
565
|
},
|
|
564
566
|
scrollToRow({
|
|
565
567
|
align: R = "auto",
|
|
566
|
-
behavior:
|
|
568
|
+
behavior: w = "auto",
|
|
567
569
|
index: W
|
|
568
570
|
}) {
|
|
569
571
|
const A = Q({
|
|
@@ -572,7 +574,7 @@ function Se({
|
|
|
572
574
|
index: W
|
|
573
575
|
});
|
|
574
576
|
typeof a?.scrollTo == "function" && a.scrollTo({
|
|
575
|
-
behavior:
|
|
577
|
+
behavior: w,
|
|
576
578
|
top: A
|
|
577
579
|
});
|
|
578
580
|
}
|
|
@@ -606,11 +608,11 @@ function Se({
|
|
|
606
608
|
]);
|
|
607
609
|
const fe = H(() => {
|
|
608
610
|
const R = [];
|
|
609
|
-
if (o > 0 &&
|
|
610
|
-
for (let
|
|
611
|
-
const W = E(
|
|
611
|
+
if (o > 0 && S > 0)
|
|
612
|
+
for (let w = F; w <= U; w++) {
|
|
613
|
+
const W = E(w), A = [];
|
|
612
614
|
for (let $ = L; $ <= h; $++) {
|
|
613
|
-
const D =
|
|
615
|
+
const D = T($);
|
|
614
616
|
A.push(
|
|
615
617
|
/* @__PURE__ */ P(
|
|
616
618
|
O,
|
|
@@ -622,7 +624,7 @@ function Se({
|
|
|
622
624
|
},
|
|
623
625
|
columnIndex: $,
|
|
624
626
|
key: $,
|
|
625
|
-
rowIndex:
|
|
627
|
+
rowIndex: w,
|
|
626
628
|
style: {
|
|
627
629
|
position: "absolute",
|
|
628
630
|
left: z ? void 0 : 0,
|
|
@@ -636,7 +638,7 @@ function Se({
|
|
|
636
638
|
);
|
|
637
639
|
}
|
|
638
640
|
R.push(
|
|
639
|
-
/* @__PURE__ */ _("div", { role: "row", "aria-rowindex":
|
|
641
|
+
/* @__PURE__ */ _("div", { role: "row", "aria-rowindex": w + 1, children: A }, w)
|
|
640
642
|
);
|
|
641
643
|
}
|
|
642
644
|
return R;
|
|
@@ -646,10 +648,10 @@ function Se({
|
|
|
646
648
|
o,
|
|
647
649
|
L,
|
|
648
650
|
h,
|
|
649
|
-
|
|
651
|
+
T,
|
|
650
652
|
E,
|
|
651
653
|
z,
|
|
652
|
-
|
|
654
|
+
S,
|
|
653
655
|
F,
|
|
654
656
|
U
|
|
655
657
|
]), ue = /* @__PURE__ */ _(
|
|
@@ -667,9 +669,9 @@ function Se({
|
|
|
667
669
|
g,
|
|
668
670
|
{
|
|
669
671
|
"aria-colcount": o,
|
|
670
|
-
"aria-rowcount":
|
|
672
|
+
"aria-rowcount": S,
|
|
671
673
|
role: "grid",
|
|
672
|
-
...
|
|
674
|
+
...m,
|
|
673
675
|
className: r,
|
|
674
676
|
dir: i,
|
|
675
677
|
ref: x,
|
|
@@ -681,7 +683,7 @@ function Se({
|
|
|
681
683
|
maxWidth: "100%",
|
|
682
684
|
flexGrow: 1,
|
|
683
685
|
overflow: "auto",
|
|
684
|
-
...
|
|
686
|
+
...b
|
|
685
687
|
}
|
|
686
688
|
},
|
|
687
689
|
fe,
|
|
@@ -703,22 +705,23 @@ function ke({
|
|
|
703
705
|
rowHeight: f,
|
|
704
706
|
rowProps: d,
|
|
705
707
|
tagName: p = "div",
|
|
706
|
-
style:
|
|
707
|
-
...
|
|
708
|
+
style: y,
|
|
709
|
+
...S
|
|
708
710
|
}) {
|
|
709
|
-
const V = de(d),
|
|
711
|
+
const V = de(d), b = H(
|
|
710
712
|
() => ie(c, ae),
|
|
711
713
|
[c]
|
|
712
|
-
), [g,
|
|
714
|
+
), [g, m] = j(null), {
|
|
713
715
|
getCellBounds: k,
|
|
714
716
|
getEstimatedSize: O,
|
|
715
717
|
scrollToIndex: a,
|
|
716
718
|
startIndexOverscan: x,
|
|
717
719
|
startIndexVisible: z,
|
|
718
|
-
stopIndexOverscan:
|
|
720
|
+
stopIndexOverscan: T,
|
|
719
721
|
stopIndexVisible: M
|
|
720
722
|
} = C({
|
|
721
723
|
containerElement: g,
|
|
724
|
+
containerStyle: y,
|
|
722
725
|
defaultContainerSize: s,
|
|
723
726
|
direction: "vertical",
|
|
724
727
|
itemCount: i,
|
|
@@ -751,31 +754,31 @@ function ke({
|
|
|
751
754
|
}),
|
|
752
755
|
[g, a]
|
|
753
756
|
), te(() => {
|
|
754
|
-
x >= 0 &&
|
|
757
|
+
x >= 0 && T >= 0 && n && n(
|
|
755
758
|
{
|
|
756
759
|
startIndex: z,
|
|
757
760
|
stopIndex: M
|
|
758
761
|
},
|
|
759
762
|
{
|
|
760
763
|
startIndex: x,
|
|
761
|
-
stopIndex:
|
|
764
|
+
stopIndex: T
|
|
762
765
|
}
|
|
763
766
|
);
|
|
764
767
|
}, [
|
|
765
768
|
n,
|
|
766
769
|
x,
|
|
767
770
|
z,
|
|
768
|
-
|
|
771
|
+
T,
|
|
769
772
|
M
|
|
770
773
|
]);
|
|
771
774
|
const L = H(() => {
|
|
772
775
|
const I = [];
|
|
773
776
|
if (i > 0)
|
|
774
|
-
for (let h = x; h <=
|
|
777
|
+
for (let h = x; h <= T; h++) {
|
|
775
778
|
const v = k(h);
|
|
776
779
|
I.push(
|
|
777
780
|
/* @__PURE__ */ P(
|
|
778
|
-
|
|
781
|
+
b,
|
|
779
782
|
{
|
|
780
783
|
...V,
|
|
781
784
|
ariaAttributes: {
|
|
@@ -798,12 +801,12 @@ function ke({
|
|
|
798
801
|
}
|
|
799
802
|
return I;
|
|
800
803
|
}, [
|
|
801
|
-
|
|
804
|
+
b,
|
|
802
805
|
k,
|
|
803
806
|
i,
|
|
804
807
|
V,
|
|
805
808
|
x,
|
|
806
|
-
|
|
809
|
+
T
|
|
807
810
|
]), u = /* @__PURE__ */ _(
|
|
808
811
|
"div",
|
|
809
812
|
{
|
|
@@ -819,15 +822,15 @@ function ke({
|
|
|
819
822
|
p,
|
|
820
823
|
{
|
|
821
824
|
role: "list",
|
|
822
|
-
...
|
|
825
|
+
...S,
|
|
823
826
|
className: t,
|
|
824
|
-
ref:
|
|
827
|
+
ref: m,
|
|
825
828
|
style: {
|
|
826
829
|
position: "relative",
|
|
827
830
|
maxHeight: "100%",
|
|
828
831
|
flexGrow: 1,
|
|
829
832
|
overflowY: "auto",
|
|
830
|
-
...
|
|
833
|
+
...y
|
|
831
834
|
}
|
|
832
835
|
},
|
|
833
836
|
L,
|
|
@@ -845,7 +848,7 @@ function Me(e = !1) {
|
|
|
845
848
|
return Z;
|
|
846
849
|
}
|
|
847
850
|
export {
|
|
848
|
-
|
|
851
|
+
ze as Grid,
|
|
849
852
|
ke as List,
|
|
850
853
|
Me as getScrollbarSize,
|
|
851
854
|
Te as useGridCallbackRef,
|