@canvas-components/list-table 0.2.6 → 0.2.7
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 +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -20150,7 +20150,11 @@ function buildListTableRenderSnapshot(params) {
|
|
|
20150
20150
|
theme,
|
|
20151
20151
|
cache: params.cache
|
|
20152
20152
|
}) : options.rowHeight ?? DEFAULT_ROW_HEIGHT;
|
|
20153
|
-
const headerRowHeight =
|
|
20153
|
+
const headerRowHeight = resolveListTableHeaderRowHeight({
|
|
20154
|
+
rowHeight: options.rowHeight,
|
|
20155
|
+
resolvedRowHeight: rowHeight,
|
|
20156
|
+
headerRowHeight: options.headerRowHeight
|
|
20157
|
+
});
|
|
20154
20158
|
const summaryRowHeight = options.summaryRowHeight ?? rowHeight;
|
|
20155
20159
|
const groupingBarHeight = params.groupBarVisible ? rowHeight : 0;
|
|
20156
20160
|
const columnHeaderHeight = (headerInfo.maxDepth + 1) * headerRowHeight;
|
|
@@ -20909,6 +20913,9 @@ function resolveAutoRowHeightMeasureRows(rows, sampleCount = AUTO_ROW_HEIGHT_SAM
|
|
|
20909
20913
|
}
|
|
20910
20914
|
return rows.slice(0, sampleCount);
|
|
20911
20915
|
}
|
|
20916
|
+
function resolveListTableHeaderRowHeight(params) {
|
|
20917
|
+
return params.headerRowHeight ?? (params.rowHeight === "auto" ? DEFAULT_ROW_HEIGHT : params.resolvedRowHeight);
|
|
20918
|
+
}
|
|
20912
20919
|
function buildListTableDebugSnapshot(params) {
|
|
20913
20920
|
const {
|
|
20914
20921
|
snapshot,
|