@fuentis/phoenix-ui 0.0.9-alpha.641 → 0.0.9-alpha.642

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
@@ -725,8 +725,18 @@ interface TableColumn {
725
725
  filterOptions?: any;
726
726
  /** Enables/disables sorting for the column. */
727
727
  sortable?: boolean;
728
- /** Custom HTML renderer for the cell (if you use it). */
729
- customRenderer?: (rowData: any) => string;
728
+ /** Custom cell HTML renderer. Receives the raw cell value and the row. */
729
+ customRenderer?: (value: any, rowData?: any) => string;
730
+ /**
731
+ * LIST_TAG only: read the badge label from this field of each item (for
732
+ * arrays of objects). Omit for arrays of primitives.
733
+ */
734
+ tagLabel?: string;
735
+ /**
736
+ * LIST_TAG only: how many badges to show before collapsing the rest into a
737
+ * "+N" badge that opens a popover. Omit to show all.
738
+ */
739
+ tagMax?: number;
730
740
  }
731
741
 
732
742
  type SortMeta = {
@@ -919,6 +929,16 @@ declare class TableComponent implements OnChanges, OnDestroy {
919
929
  * Some tables allow click on first N columns to open details.
920
930
  */
921
931
  isColumnClickable(columnIndex: number): boolean;
932
+ /** Labels currently shown in the overflow popover. */
933
+ overflowTags: string[];
934
+ /** Badge label for one list item (string item, or `col.tagLabel` field). */
935
+ tagLabelOf(item: any, col: any): string;
936
+ /** The first `tagMax` items (all of them when `tagMax` is unset). */
937
+ visibleTags(list: any[], col: any): any[];
938
+ /** How many items are hidden behind the "+N" badge. */
939
+ tagOverflowCount(list: any[], col: any): number;
940
+ /** Open the overflow popover with the hidden items' labels. */
941
+ openTagOverflow(event: Event, panel: any, list: any[], col: any): void;
922
942
  /**
923
943
  * Utility for copy icons inside cells (prevents row-click).
924
944
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuentis/phoenix-ui",
3
- "version": "0.0.9-alpha.641",
3
+ "version": "0.0.9-alpha.642",
4
4
  "description": "Phoenix UI Angular component library",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {