@fuentis/phoenix-ui 0.0.9-alpha.643 → 0.0.9-alpha.646
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
|
@@ -651,6 +651,12 @@ interface TableConfiguration {
|
|
|
651
651
|
* a large empty area below the rows.
|
|
652
652
|
*/
|
|
653
653
|
autoHeight?: boolean;
|
|
654
|
+
/**
|
|
655
|
+
* Enables drag-to-reorder rows via a handle column; the table emits
|
|
656
|
+
* `rowReorder` with the new order. Pair with `autoHeight` (reorder does not
|
|
657
|
+
* work with virtual scroll) and `disableSort`.
|
|
658
|
+
*/
|
|
659
|
+
reorderable?: boolean;
|
|
654
660
|
/**
|
|
655
661
|
* Optional per-row inline style, e.g. a danger background for rows that fail a
|
|
656
662
|
* check. Returns a style object (or null) for each row.
|
|
@@ -744,6 +750,8 @@ interface TableColumn {
|
|
|
744
750
|
* "+N" badge that opens a popover. Omit to show all.
|
|
745
751
|
*/
|
|
746
752
|
tagMax?: number;
|
|
753
|
+
/** LIST_TAG only: p-badge severity for the item badges. Default 'warn'. */
|
|
754
|
+
tagSeverity?: string;
|
|
747
755
|
}
|
|
748
756
|
|
|
749
757
|
type SortMeta = {
|
|
@@ -822,6 +830,8 @@ declare class TableComponent implements OnChanges, OnDestroy {
|
|
|
822
830
|
rowSelection: EventEmitter<any>;
|
|
823
831
|
checkBoxSelection: EventEmitter<any>;
|
|
824
832
|
saveColumns: EventEmitter<string[]>;
|
|
833
|
+
/** Emits the full data array in its new order after a drag reorder. */
|
|
834
|
+
rowReorder: EventEmitter<any[]>;
|
|
825
835
|
private sortWorker;
|
|
826
836
|
/**
|
|
827
837
|
* reqId counters ensure we can ignore outdated results
|
|
@@ -938,12 +948,16 @@ declare class TableComponent implements OnChanges, OnDestroy {
|
|
|
938
948
|
isColumnClickable(columnIndex: number): boolean;
|
|
939
949
|
/** Labels currently shown in the overflow popover. */
|
|
940
950
|
overflowTags: string[];
|
|
951
|
+
/** Badge severity for the overflow popover (matches the column). */
|
|
952
|
+
overflowSeverity: string;
|
|
941
953
|
/** Badge label for one list item (string item, or `col.tagLabel` field). */
|
|
942
954
|
tagLabelOf(item: any, col: any): string;
|
|
943
955
|
/** The first `tagMax` items (all of them when `tagMax` is unset). */
|
|
944
956
|
visibleTags(list: any[], col: any): any[];
|
|
945
957
|
/** How many items are hidden behind the "+N" badge. */
|
|
946
958
|
tagOverflowCount(list: any[], col: any): number;
|
|
959
|
+
/** PrimeNG has already reordered `tableData` in place; emit the new order. */
|
|
960
|
+
onRowReorder(_event: any): void;
|
|
947
961
|
/** Open the overflow popover with the hidden items' labels. */
|
|
948
962
|
openTagOverflow(event: Event, panel: any, list: any[], col: any): void;
|
|
949
963
|
/**
|
|
@@ -959,7 +973,7 @@ declare class TableComponent implements OnChanges, OnDestroy {
|
|
|
959
973
|
*/
|
|
960
974
|
applyColumns(selected: any[]): void;
|
|
961
975
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
962
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "phoenix-table", never, { "columns": { "alias": "columns"; "required": false; }; "selectedColumnsInput": { "alias": "selectedColumnsInput"; "required": false; }; "tableConfiguration": { "alias": "tableConfiguration"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "actionClick": "actionClick"; "rowSelection": "rowSelection"; "checkBoxSelection": "checkBoxSelection"; "saveColumns": "saveColumns"; }, never, never, true, never>;
|
|
976
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "phoenix-table", never, { "columns": { "alias": "columns"; "required": false; }; "selectedColumnsInput": { "alias": "selectedColumnsInput"; "required": false; }; "tableConfiguration": { "alias": "tableConfiguration"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "actionClick": "actionClick"; "rowSelection": "rowSelection"; "checkBoxSelection": "checkBoxSelection"; "saveColumns": "saveColumns"; "rowReorder": "rowReorder"; }, never, never, true, never>;
|
|
963
977
|
}
|
|
964
978
|
|
|
965
979
|
interface MetaControl {
|