@meshmakers/shared-ui 3.3.1160 → 3.3.1170

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshmakers/shared-ui",
3
- "version": "3.3.1160",
3
+ "version": "3.3.1170",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0",
@@ -126,6 +126,14 @@ interface TableColumn {
126
126
  * ```
127
127
  */
128
128
  formatter?: (value: unknown, item: unknown) => string;
129
+ /**
130
+ * When true, cell content is rendered on a single line and clipped with an ellipsis.
131
+ * The full value is exposed via a native `title` tooltip on hover, so long strings
132
+ * (e.g. error messages, log lines) stay readable without bloating row heights.
133
+ * Intended for text-style cells; has no visual effect on columns whose content is
134
+ * already a fixed-size widget (statusIcons, progressBar, badge, …).
135
+ */
136
+ truncate?: boolean;
129
137
  }
130
138
  type ColumnDefinition = string | TableColumn;
131
139
  type ContextMenuType = 'contextMenu' | 'actionMenu';
@@ -250,6 +258,12 @@ declare class ListViewComponent extends CommandBaseService implements OnDestroy,
250
258
  * the dataType-driven rendering.
251
259
  */
252
260
  protected getFormattedValue(element: Record<string, unknown>, column: TableColumn): string | null;
261
+ /**
262
+ * Plain-text representation of the cell value used as the `title` attribute on truncated
263
+ * cells so the full string is reachable via the browser's native tooltip on hover.
264
+ * Honours `formatter` first, then falls back to a stringified raw value.
265
+ */
266
+ protected getCellTitle(element: Record<string, unknown>, column: TableColumn): string | null;
253
267
  protected getFilterType(column: TableColumn): 'text' | 'numeric' | 'boolean' | 'date';
254
268
  /**
255
269
  * Gets all status field configurations for a statusIcons column.