Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@labkey/components",
"version": "6.72.0",
"version": "6.72.1",
"description": "Components, models, actions, and utility functions for LabKey applications and pages",
"sideEffects": false,
"files": [
Expand Down
4 changes: 4 additions & 0 deletions packages/components/releaseNotes/components.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# @labkey/components
Components, models, actions, and utility functions for LabKey applications and pages

### version 6.72.1
*Released*: 25 November 2025
- QueryColumn to only apply displayWidth for multiLine columns

### version 6.72.0
*Released*: 20 November 2025
- Default to detailed audit behavior
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/internal/components/base/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function processColumns(columns: List<any>): List<GridColumn> {
raw: c,
tableCell: c.tableCell,
title: c.title || c.caption,
width: c.width || c.displayWidth,
width: c.width,
});
})
.toList();
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/public/IQueryColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface IQueryColumn {
displayField?: string;
displayFieldJsonType?: string;
displayFieldSqlType?: string;
displayWidth: number | string;
// excludeFromShifting: boolean;
// ext: any;
facetingBehaviorType: string;
Expand Down
5 changes: 5 additions & 0 deletions packages/components/src/public/QueryColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ export class QueryColumn implements IQueryColumn {
if (rawColumn && rawColumn.lookup !== undefined) {
Object.assign(this, { lookup: new QueryLookup(rawColumn.lookup) });
}

// only apply the displayWidth, if available, to multiLine text columns for now
if (rawColumn?.displayWidth && this.width === undefined && this.rangeURI?.endsWith('multiLine')) {
Object.assign(this, { width: rawColumn.displayWidth });
}
}

static ANCESTORS_PREFIX = 'Ancestors';
Expand Down