@canvas-components/list-table 0.3.20 → 0.3.21
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 +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -8359,7 +8359,7 @@ function resolveHeaderTextLayout(params) {
|
|
|
8359
8359
|
Math.min(baseX - textLeft, textRight - baseX) * 2,
|
|
8360
8360
|
0
|
|
8361
8361
|
);
|
|
8362
|
-
if (centeredWidth >= 12) {
|
|
8362
|
+
if (centeredWidth >= Math.max(params.contentWidth ?? 0, 12)) {
|
|
8363
8363
|
return {
|
|
8364
8364
|
align,
|
|
8365
8365
|
x: baseX,
|
|
@@ -26941,9 +26941,9 @@ function updateHeaderActionTooltip(params) {
|
|
|
26941
26941
|
tooltip.show(tooltipPoint.x, tooltipPoint.y, text);
|
|
26942
26942
|
}
|
|
26943
26943
|
function showDragTooltip(params) {
|
|
26944
|
-
const { tooltip, toViewportPoint, x, y, text } = params;
|
|
26944
|
+
const { tooltip, toViewportPoint, x, y, text, variant } = params;
|
|
26945
26945
|
const point = toViewportPoint(x, y + 16);
|
|
26946
|
-
tooltip.show(point.x, point.y, text);
|
|
26946
|
+
tooltip.show(point.x, point.y, text, variant);
|
|
26947
26947
|
}
|
|
26948
26948
|
|
|
26949
26949
|
// src/shared/utils/hit-result.ts
|
|
@@ -29138,7 +29138,8 @@ var ListTableEventController = class {
|
|
|
29138
29138
|
toViewportPoint: (x, y) => this.host.toViewportPoint(x, y),
|
|
29139
29139
|
x: dragPos.x,
|
|
29140
29140
|
y: dragPos.y,
|
|
29141
|
-
text: `${resizeResult.column.title}: ${resizeResult.nextWidth}px
|
|
29141
|
+
text: `${resizeResult.column.title}: ${resizeResult.nextWidth}px`,
|
|
29142
|
+
variant: "resize"
|
|
29142
29143
|
});
|
|
29143
29144
|
}
|
|
29144
29145
|
this.host.scheduleRender();
|