@swan-io/lake 8.18.9 → 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,
|
|
@@ -58,7 +64,6 @@ const styles = StyleSheet.create({
|
|
|
58
64
|
display: "flex",
|
|
59
65
|
flexDirection: "row",
|
|
60
66
|
alignItems: "stretch",
|
|
61
|
-
boxShadow: `0 -1px ${colors.gray[100]}`,
|
|
62
67
|
transitionProperty: "top",
|
|
63
68
|
transitionDuration: "300ms",
|
|
64
69
|
transitionTimingFunction: "ease-in-out",
|
|
@@ -68,12 +73,14 @@ const styles = StyleSheet.create({
|
|
|
68
73
|
flexDirection: "row",
|
|
69
74
|
flexGrow: 1,
|
|
70
75
|
alignItems: "center",
|
|
76
|
+
boxShadow: `0 -1px ${colors.gray[100]}`,
|
|
71
77
|
},
|
|
72
78
|
cell: {
|
|
73
79
|
display: "flex",
|
|
74
80
|
flexDirection: "row",
|
|
75
81
|
flexGrow: 1,
|
|
76
82
|
alignItems: "stretch",
|
|
83
|
+
boxShadow: `0 -1px ${colors.gray[100]}`,
|
|
77
84
|
},
|
|
78
85
|
shadowsLayerContainer: {
|
|
79
86
|
position: "absolute",
|
|
@@ -299,6 +306,7 @@ export const VirtualizedList = ({ variant, data, stickedToStartColumns, columns,
|
|
|
299
306
|
}) })))
|
|
300
307
|
.toNull(), _jsx(View, { style: [
|
|
301
308
|
styles.cellsContainer,
|
|
309
|
+
styles.centerColumnGroup,
|
|
302
310
|
{ width: centerColumnsWidth, backgroundColor, height: headerHeight },
|
|
303
311
|
], children: columns.map(({ id, width, title, renderTitle }, index) => {
|
|
304
312
|
const columnId = `${viewId}_${id}`;
|
|
@@ -371,10 +379,13 @@ export const VirtualizedList = ({ variant, data, stickedToStartColumns, columns,
|
|
|
371
379
|
.getOr(false)) {
|
|
372
380
|
return (_jsx(ScrollView, { style: styles.container, contentContainerStyle: styles.emptyListContentContainer, children: renderEmptyList() }));
|
|
373
381
|
}
|
|
374
|
-
return (_jsxs(ScrollView, { ref: scrollViewRef, both: true, style: [styles.container, { marginHorizontal }], onScroll: onScroll, scrollEventThrottle: 32, contentContainerStyle:
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
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
|
|
378
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)
|
|
379
390
|
.flatMap(({ isLoading, count }) => (isLoading ? Option.Some(count) : Option.None()))
|
|
380
391
|
.map(count => (_jsx(View, { "aria-busy": true, style: [
|
|
@@ -437,6 +448,7 @@ const RawVirtualizedRow = ({ viewId, rowHeight, absoluteIndex, variant, stickedT
|
|
|
437
448
|
}) })))
|
|
438
449
|
.toNull(), _jsx(View, { style: [
|
|
439
450
|
styles.cellsContainer,
|
|
451
|
+
styles.centerColumnGroup,
|
|
440
452
|
{
|
|
441
453
|
width: centerColumnsWidth,
|
|
442
454
|
height: rowHeight,
|