@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.js CHANGED
@@ -20148,7 +20148,11 @@ function buildListTableRenderSnapshot(params) {
20148
20148
  theme,
20149
20149
  cache: params.cache
20150
20150
  }) : options.rowHeight ?? DEFAULT_ROW_HEIGHT;
20151
- const headerRowHeight = options.headerRowHeight ?? rowHeight;
20151
+ const headerRowHeight = resolveListTableHeaderRowHeight({
20152
+ rowHeight: options.rowHeight,
20153
+ resolvedRowHeight: rowHeight,
20154
+ headerRowHeight: options.headerRowHeight
20155
+ });
20152
20156
  const summaryRowHeight = options.summaryRowHeight ?? rowHeight;
20153
20157
  const groupingBarHeight = params.groupBarVisible ? rowHeight : 0;
20154
20158
  const columnHeaderHeight = (headerInfo.maxDepth + 1) * headerRowHeight;
@@ -20907,6 +20911,9 @@ function resolveAutoRowHeightMeasureRows(rows, sampleCount = AUTO_ROW_HEIGHT_SAM
20907
20911
  }
20908
20912
  return rows.slice(0, sampleCount);
20909
20913
  }
20914
+ function resolveListTableHeaderRowHeight(params) {
20915
+ return params.headerRowHeight ?? (params.rowHeight === "auto" ? DEFAULT_ROW_HEIGHT : params.resolvedRowHeight);
20916
+ }
20910
20917
  function buildListTableDebugSnapshot(params) {
20911
20918
  const {
20912
20919
  snapshot,