@canvas-components/react-list-table 0.2.2 → 0.2.3
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/index.cjs +9 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2772,6 +2772,7 @@ function ReactListTableInner(props, ref) {
|
|
|
2772
2772
|
rowKey,
|
|
2773
2773
|
columns,
|
|
2774
2774
|
dataSource,
|
|
2775
|
+
onRow,
|
|
2775
2776
|
theme,
|
|
2776
2777
|
striped,
|
|
2777
2778
|
highlightMode,
|
|
@@ -2826,6 +2827,7 @@ function ReactListTableInner(props, ref) {
|
|
|
2826
2827
|
rowKey,
|
|
2827
2828
|
columns: resolvedColumns,
|
|
2828
2829
|
dataSource,
|
|
2830
|
+
onRow,
|
|
2829
2831
|
theme,
|
|
2830
2832
|
striped,
|
|
2831
2833
|
highlightMode,
|
|
@@ -2858,6 +2860,7 @@ function ReactListTableInner(props, ref) {
|
|
|
2858
2860
|
rowKey,
|
|
2859
2861
|
resolvedColumns,
|
|
2860
2862
|
dataSource,
|
|
2863
|
+
onRow,
|
|
2861
2864
|
theme,
|
|
2862
2865
|
striped,
|
|
2863
2866
|
highlightMode,
|
|
@@ -2939,7 +2942,12 @@ function ReactListTableInner(props, ref) {
|
|
|
2939
2942
|
density: resolvedRowHeight === "auto" ? 40 : resolvedRowHeight ?? 40,
|
|
2940
2943
|
hostRef: shellRef,
|
|
2941
2944
|
onExport: (options2) => tableRef.current?.exportXlsx(options2),
|
|
2942
|
-
onDensityChange:
|
|
2945
|
+
onDensityChange: (density) => {
|
|
2946
|
+
setDensityOverride(density);
|
|
2947
|
+
if (toolbar) {
|
|
2948
|
+
toolbar.onDensityChange?.(density);
|
|
2949
|
+
}
|
|
2950
|
+
},
|
|
2943
2951
|
onColumnVisibilityChange: (columnKey, visible) => {
|
|
2944
2952
|
setColumnVisibility((current) => {
|
|
2945
2953
|
const next = new Map(current);
|