@swan-io/lake 8.18.10 → 8.18.11
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/package.json
CHANGED
|
@@ -14,6 +14,9 @@ const styles = StyleSheet.create({
|
|
|
14
14
|
height: 1,
|
|
15
15
|
alignSelf: "stretch",
|
|
16
16
|
},
|
|
17
|
+
contentContainer: {
|
|
18
|
+
minWidth: "100%",
|
|
19
|
+
},
|
|
17
20
|
emptyListContentContainer: {
|
|
18
21
|
flexDirection: "column",
|
|
19
22
|
alignItems: "center",
|
|
@@ -40,6 +43,9 @@ const styles = StyleSheet.create({
|
|
|
40
43
|
stickedToStartColumnGroupLocked: {
|
|
41
44
|
position: "relative",
|
|
42
45
|
},
|
|
46
|
+
centerColumnGroup: {
|
|
47
|
+
flexGrow: 1,
|
|
48
|
+
},
|
|
43
49
|
stickedToEndColumnGroup: {
|
|
44
50
|
position: "sticky",
|
|
45
51
|
right: 0,
|
|
@@ -300,6 +306,7 @@ export const VirtualizedList = ({ variant, data, stickedToStartColumns, columns,
|
|
|
300
306
|
}) })))
|
|
301
307
|
.toNull(), _jsx(View, { style: [
|
|
302
308
|
styles.cellsContainer,
|
|
309
|
+
styles.centerColumnGroup,
|
|
303
310
|
{ width: centerColumnsWidth, backgroundColor, height: headerHeight },
|
|
304
311
|
], children: columns.map(({ id, width, title, renderTitle }, index) => {
|
|
305
312
|
const columnId = `${viewId}_${id}`;
|
|
@@ -372,10 +379,13 @@ export const VirtualizedList = ({ variant, data, stickedToStartColumns, columns,
|
|
|
372
379
|
.getOr(false)) {
|
|
373
380
|
return (_jsx(ScrollView, { style: styles.container, contentContainerStyle: styles.emptyListContentContainer, children: renderEmptyList() }));
|
|
374
381
|
}
|
|
375
|
-
return (_jsxs(ScrollView, { ref: scrollViewRef, both: true, style: [styles.container, { marginHorizontal }], onScroll: onScroll, scrollEventThrottle: 32, contentContainerStyle:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
382
|
+
return (_jsxs(ScrollView, { ref: scrollViewRef, both: true, style: [styles.container, { marginHorizontal }], onScroll: onScroll, scrollEventThrottle: 32, contentContainerStyle: [
|
|
383
|
+
styles.contentContainer,
|
|
384
|
+
{
|
|
385
|
+
height: containerContainerHeight,
|
|
386
|
+
width: contentContainerWidth,
|
|
387
|
+
},
|
|
388
|
+
], children: [header, rowsToRender
|
|
379
389
|
.map(({ startIndex, endIndex, data }) => (_jsxs(View, { style: styles.rowsContainer, ref: rowsContainerRef, children: [data.map((item, index) => (_jsx(VirtualizedRow, { viewId: viewId, item: item, rowHeight: rowHeight, absoluteIndex: startIndex + index, variant: variant, stickedToStartColumnsWidth: stickedToStartColumnsWidth, centerColumnsWidth: centerColumnsWidth, stickedToEndColumnsWidth: stickedToEndColumnsWidth, stickedToStartColumns: stickedToStartColumns, columns: columns, stickedToEndColumns: stickedToEndColumns, extraInfo: extraInfo, getRowLink: getRowLink, horizontalScrollPosition: horizontalScrollPosition !== null && horizontalScrollPosition !== void 0 ? horizontalScrollPosition : "NoScroll", stickedToStartFirstCellLeftPadding: stickedToStartFirstCellLeftPadding, centerFirstCellLeftPadding: centerFirstCellLeftPadding, centerLastCellLeftPadding: centerLastCellLeftPadding, stickedToEndLastCellRightPadding: stickedToEndLastCellRightPadding }, keyExtractor(item, startIndex + index)))), Option.fromNullable(loading)
|
|
380
390
|
.flatMap(({ isLoading, count }) => (isLoading ? Option.Some(count) : Option.None()))
|
|
381
391
|
.map(count => (_jsx(View, { "aria-busy": true, style: [
|
|
@@ -438,6 +448,7 @@ const RawVirtualizedRow = ({ viewId, rowHeight, absoluteIndex, variant, stickedT
|
|
|
438
448
|
}) })))
|
|
439
449
|
.toNull(), _jsx(View, { style: [
|
|
440
450
|
styles.cellsContainer,
|
|
451
|
+
styles.centerColumnGroup,
|
|
441
452
|
{
|
|
442
453
|
width: centerColumnsWidth,
|
|
443
454
|
height: rowHeight,
|