@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 +27 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -755,6 +755,7 @@ function normalizeColumn(column, depth, parentKey) {
|
|
|
755
755
|
align: column.align ?? "left",
|
|
756
756
|
headerAlign: column.headerAlign,
|
|
757
757
|
fixed: column.fixed,
|
|
758
|
+
resizable: column.resizable,
|
|
758
759
|
hidden: column.hidden,
|
|
759
760
|
showExpandIcon: column.showExpandIcon,
|
|
760
761
|
ellipsis: column.ellipsis,
|
|
@@ -8155,6 +8156,18 @@ var EMPTY_RANGE_HIGHLIGHT2 = {
|
|
|
8155
8156
|
selectedColumnRange: null
|
|
8156
8157
|
};
|
|
8157
8158
|
function drawSummary(params) {
|
|
8159
|
+
const width = params.width ?? Math.max(
|
|
8160
|
+
0,
|
|
8161
|
+
...[
|
|
8162
|
+
...params.leftColumns,
|
|
8163
|
+
...params.centerColumns,
|
|
8164
|
+
...params.rightColumns
|
|
8165
|
+
].map((column) => column.drawX + column.width)
|
|
8166
|
+
);
|
|
8167
|
+
params.ctx.save();
|
|
8168
|
+
params.ctx.fillStyle = params.theme.backgroundColor;
|
|
8169
|
+
params.ctx.fillRect(0, params.summaryTop, width, params.summaryHeight);
|
|
8170
|
+
params.ctx.restore();
|
|
8158
8171
|
const defaultTitleColumnKey = resolveDefaultSummaryTitleColumnKey([
|
|
8159
8172
|
...params.leftColumns,
|
|
8160
8173
|
...params.centerColumns,
|
|
@@ -29015,6 +29028,18 @@ function roundRect2(ctx, x, y, width, height, radius) {
|
|
|
29015
29028
|
|
|
29016
29029
|
// src/rendering/pipeline/body-section-renderer.ts
|
|
29017
29030
|
function drawListTableBodySections(params) {
|
|
29031
|
+
params.ctx.save();
|
|
29032
|
+
params.ctx.beginPath();
|
|
29033
|
+
params.ctx.rect(
|
|
29034
|
+
0,
|
|
29035
|
+
params.headerHeight,
|
|
29036
|
+
params.width + 1,
|
|
29037
|
+
Math.max(
|
|
29038
|
+
params.bottomFrozenTop + params.bottomFrozenHeight - params.headerHeight,
|
|
29039
|
+
0
|
|
29040
|
+
)
|
|
29041
|
+
);
|
|
29042
|
+
params.ctx.clip();
|
|
29018
29043
|
const baseParams = {
|
|
29019
29044
|
ctx: params.ctx,
|
|
29020
29045
|
rowHeight: params.rowHeight,
|
|
@@ -29079,6 +29104,7 @@ function drawListTableBodySections(params) {
|
|
|
29079
29104
|
borderColor: params.theme.borderColor
|
|
29080
29105
|
});
|
|
29081
29106
|
}
|
|
29107
|
+
params.ctx.restore();
|
|
29082
29108
|
}
|
|
29083
29109
|
function drawBodySection(params) {
|
|
29084
29110
|
const { section, bodyHeight } = params;
|
|
@@ -29960,6 +29986,7 @@ function executeListTableRenderPipeline(params) {
|
|
|
29960
29986
|
ctx,
|
|
29961
29987
|
textSelection: selection.textSelection,
|
|
29962
29988
|
summaryValues,
|
|
29989
|
+
width,
|
|
29963
29990
|
summaryTop,
|
|
29964
29991
|
summaryHeight: summaryRowHeight,
|
|
29965
29992
|
leftColumns: leftSegment,
|