@canvas-components/list-table 0.3.17 → 0.3.18

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 CHANGED
@@ -757,6 +757,7 @@ function normalizeColumn(column, depth, parentKey) {
757
757
  align: column.align ?? "left",
758
758
  headerAlign: column.headerAlign,
759
759
  fixed: column.fixed,
760
+ resizable: column.resizable,
760
761
  hidden: column.hidden,
761
762
  showExpandIcon: column.showExpandIcon,
762
763
  ellipsis: column.ellipsis,
@@ -8157,6 +8158,18 @@ var EMPTY_RANGE_HIGHLIGHT2 = {
8157
8158
  selectedColumnRange: null
8158
8159
  };
8159
8160
  function drawSummary(params) {
8161
+ const width = params.width ?? Math.max(
8162
+ 0,
8163
+ ...[
8164
+ ...params.leftColumns,
8165
+ ...params.centerColumns,
8166
+ ...params.rightColumns
8167
+ ].map((column) => column.drawX + column.width)
8168
+ );
8169
+ params.ctx.save();
8170
+ params.ctx.fillStyle = params.theme.backgroundColor;
8171
+ params.ctx.fillRect(0, params.summaryTop, width, params.summaryHeight);
8172
+ params.ctx.restore();
8160
8173
  const defaultTitleColumnKey = resolveDefaultSummaryTitleColumnKey([
8161
8174
  ...params.leftColumns,
8162
8175
  ...params.centerColumns,
@@ -29017,6 +29030,18 @@ function roundRect2(ctx, x, y, width, height, radius) {
29017
29030
 
29018
29031
  // src/rendering/pipeline/body-section-renderer.ts
29019
29032
  function drawListTableBodySections(params) {
29033
+ params.ctx.save();
29034
+ params.ctx.beginPath();
29035
+ params.ctx.rect(
29036
+ 0,
29037
+ params.headerHeight,
29038
+ params.width + 1,
29039
+ Math.max(
29040
+ params.bottomFrozenTop + params.bottomFrozenHeight - params.headerHeight,
29041
+ 0
29042
+ )
29043
+ );
29044
+ params.ctx.clip();
29020
29045
  const baseParams = {
29021
29046
  ctx: params.ctx,
29022
29047
  rowHeight: params.rowHeight,
@@ -29081,6 +29106,7 @@ function drawListTableBodySections(params) {
29081
29106
  borderColor: params.theme.borderColor
29082
29107
  });
29083
29108
  }
29109
+ params.ctx.restore();
29084
29110
  }
29085
29111
  function drawBodySection(params) {
29086
29112
  const { section, bodyHeight } = params;
@@ -29962,6 +29988,7 @@ function executeListTableRenderPipeline(params) {
29962
29988
  ctx,
29963
29989
  textSelection: selection.textSelection,
29964
29990
  summaryValues,
29991
+ width,
29965
29992
  summaryTop,
29966
29993
  summaryHeight: summaryRowHeight,
29967
29994
  leftColumns: leftSegment,