@acorex/components 20.10.9 → 20.10.11
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/data-table/index.d.ts
CHANGED
|
@@ -155,6 +155,7 @@ declare abstract class AXBaseDataTable extends MXBaseComponent {
|
|
|
155
155
|
set highlightText(value: string | undefined);
|
|
156
156
|
selectedRowsChange: EventEmitter<unknown[]>;
|
|
157
157
|
protected readonly highlightedRows: WritableSignal<Map<string | number, AXDataTableRowHighlight>>;
|
|
158
|
+
protected readonly highlightedColumns: WritableSignal<Map<string, AXDataTableRowColorType>>;
|
|
158
159
|
private readonly rowCssClassCache;
|
|
159
160
|
private readonly cellCssClassCache;
|
|
160
161
|
private readonly highlightService;
|
|
@@ -180,9 +181,40 @@ declare abstract class AXBaseDataTable extends MXBaseComponent {
|
|
|
180
181
|
*/
|
|
181
182
|
highlightRows(rows: unknown[], options?: AXDataTableRowHighlightOptions): void;
|
|
182
183
|
/**
|
|
183
|
-
*
|
|
184
|
+
* Applies a color highlight to rows by their key (id) values.
|
|
185
|
+
* Unlike `highlightRow`, no badge, pulse, or pinning is applied.
|
|
186
|
+
*
|
|
187
|
+
* @param keys - Key (id) values of the rows to highlight.
|
|
188
|
+
* @param color - Semantic highlight color. @defaultValue `'primary'`
|
|
189
|
+
*/
|
|
190
|
+
highlightRowsByKey(keys: (string | number)[], color?: AXDataTableRowColorType): void;
|
|
191
|
+
/**
|
|
192
|
+
* Clears temporary row highlights.
|
|
193
|
+
*
|
|
194
|
+
* @param keys - When provided, only highlights of rows with these key (id) values are cleared.
|
|
195
|
+
*/
|
|
196
|
+
clearRowHighlights(keys?: (string | number)[]): void;
|
|
197
|
+
/**
|
|
198
|
+
* Applies a color highlight to one or more columns.
|
|
199
|
+
*
|
|
200
|
+
* @param columnNames - Column identifiers; either the column `name` (e.g. `cl-firstName`) or its `dataField`.
|
|
201
|
+
* @param color - Semantic highlight color. @defaultValue `'primary'`
|
|
202
|
+
*/
|
|
203
|
+
highlightColumns(columnNames: string | string[], color?: AXDataTableRowColorType): void;
|
|
204
|
+
/**
|
|
205
|
+
* Clears column highlights.
|
|
206
|
+
*
|
|
207
|
+
* @param columnNames - When provided, only highlights of these columns are cleared.
|
|
208
|
+
*/
|
|
209
|
+
clearColumnHighlights(columnNames?: string | string[]): void;
|
|
210
|
+
/**
|
|
211
|
+
* Returns the highlight color of a column, if any.
|
|
212
|
+
*/
|
|
213
|
+
getColumnHighlightColor(column: AXDataTableColumnComponent): AXDataTableRowColorType | null;
|
|
214
|
+
/**
|
|
215
|
+
* Returns the CSS class of a highlighted column, applied to its header and body cells.
|
|
184
216
|
*/
|
|
185
|
-
|
|
217
|
+
getColumnCssClass(column: AXDataTableColumnComponent): string;
|
|
186
218
|
/**
|
|
187
219
|
* Returns the temporary highlight state for a row, if any.
|
|
188
220
|
*/
|
|
@@ -200,7 +232,7 @@ declare abstract class AXBaseDataTable extends MXBaseComponent {
|
|
|
200
232
|
*/
|
|
201
233
|
getRowCssClass(row: unknown, rowIndex: number): string;
|
|
202
234
|
/**
|
|
203
|
-
* Returns CSS classes for a body cell, merging column `cssClass
|
|
235
|
+
* Returns CSS classes for a body cell, merging column `cssClass`, column highlight, and `cellCssClass`.
|
|
204
236
|
*/
|
|
205
237
|
getCellCssClass(row: unknown, column: AXDataTableColumnComponent, rowIndex: number): string;
|
|
206
238
|
/**
|