@fuentis/phoenix-ui 0.0.9-alpha.641 → 0.0.9-alpha.643
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/index.d.ts
CHANGED
|
@@ -644,6 +644,13 @@ interface TableConfiguration {
|
|
|
644
644
|
* order is meaningful (config-driven tables that pre-order their own data).
|
|
645
645
|
*/
|
|
646
646
|
disableSort?: boolean;
|
|
647
|
+
/**
|
|
648
|
+
* Fit-to-content height: the table grows to its rows (no fixed viewport height,
|
|
649
|
+
* no virtual scroll) and only starts scrolling once it exceeds `scrollHeight`,
|
|
650
|
+
* which acts as a max-height. Best for short config lists that shouldn't leave
|
|
651
|
+
* a large empty area below the rows.
|
|
652
|
+
*/
|
|
653
|
+
autoHeight?: boolean;
|
|
647
654
|
/**
|
|
648
655
|
* Optional per-row inline style, e.g. a danger background for rows that fail a
|
|
649
656
|
* check. Returns a style object (or null) for each row.
|
|
@@ -725,8 +732,18 @@ interface TableColumn {
|
|
|
725
732
|
filterOptions?: any;
|
|
726
733
|
/** Enables/disables sorting for the column. */
|
|
727
734
|
sortable?: boolean;
|
|
728
|
-
/** Custom HTML renderer
|
|
729
|
-
customRenderer?: (
|
|
735
|
+
/** Custom cell HTML renderer. Receives the raw cell value and the row. */
|
|
736
|
+
customRenderer?: (value: any, rowData?: any) => string;
|
|
737
|
+
/**
|
|
738
|
+
* LIST_TAG only: read the badge label from this field of each item (for
|
|
739
|
+
* arrays of objects). Omit for arrays of primitives.
|
|
740
|
+
*/
|
|
741
|
+
tagLabel?: string;
|
|
742
|
+
/**
|
|
743
|
+
* LIST_TAG only: how many badges to show before collapsing the rest into a
|
|
744
|
+
* "+N" badge that opens a popover. Omit to show all.
|
|
745
|
+
*/
|
|
746
|
+
tagMax?: number;
|
|
730
747
|
}
|
|
731
748
|
|
|
732
749
|
type SortMeta = {
|
|
@@ -919,6 +936,16 @@ declare class TableComponent implements OnChanges, OnDestroy {
|
|
|
919
936
|
* Some tables allow click on first N columns to open details.
|
|
920
937
|
*/
|
|
921
938
|
isColumnClickable(columnIndex: number): boolean;
|
|
939
|
+
/** Labels currently shown in the overflow popover. */
|
|
940
|
+
overflowTags: string[];
|
|
941
|
+
/** Badge label for one list item (string item, or `col.tagLabel` field). */
|
|
942
|
+
tagLabelOf(item: any, col: any): string;
|
|
943
|
+
/** The first `tagMax` items (all of them when `tagMax` is unset). */
|
|
944
|
+
visibleTags(list: any[], col: any): any[];
|
|
945
|
+
/** How many items are hidden behind the "+N" badge. */
|
|
946
|
+
tagOverflowCount(list: any[], col: any): number;
|
|
947
|
+
/** Open the overflow popover with the hidden items' labels. */
|
|
948
|
+
openTagOverflow(event: Event, panel: any, list: any[], col: any): void;
|
|
922
949
|
/**
|
|
923
950
|
* Utility for copy icons inside cells (prevents row-click).
|
|
924
951
|
*/
|