@fuentis/phoenix-ui 0.0.9-alpha.640 → 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
@@ -638,6 +638,19 @@ interface TableConfiguration {
638
638
  clickableColumnCount?: number;
639
639
  /** Table height, required for scroll/virtual scroll. */
640
640
  scrollHeight?: string;
641
+ /**
642
+ * Disables all column sorting: no sort icons, no click-to-sort, and no initial
643
+ * fallback sort — rows render in the exact order they arrive. For lists whose
644
+ * order is meaningful (config-driven tables that pre-order their own data).
645
+ */
646
+ disableSort?: boolean;
647
+ /**
648
+ * Optional per-row inline style, e.g. a danger background for rows that fail a
649
+ * check. Returns a style object (or null) for each row.
650
+ */
651
+ rowStyle?: (row: any) => {
652
+ [key: string]: string;
653
+ } | null;
641
654
  /** Number of rows per page (PrimeNG paginator / virtual scroll configs). */
642
655
  rows?: number;
643
656
  /** Checkbox / radio selection behavior. */
@@ -712,8 +725,18 @@ interface TableColumn {
712
725
  filterOptions?: any;
713
726
  /** Enables/disables sorting for the column. */
714
727
  sortable?: boolean;
715
- /** Custom HTML renderer for the cell (if you use it). */
716
- 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;
717
740
  }
718
741
 
719
742
  type SortMeta = {
@@ -906,6 +929,16 @@ declare class TableComponent implements OnChanges, OnDestroy {
906
929
  * Some tables allow click on first N columns to open details.
907
930
  */
908
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;
909
942
  /**
910
943
  * Utility for copy icons inside cells (prevents row-click).
911
944
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuentis/phoenix-ui",
3
- "version": "0.0.9-alpha.640",
3
+ "version": "0.0.9-alpha.642",
4
4
  "description": "Phoenix UI Angular component library",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {