@fuentis/phoenix-ui 0.0.9-alpha.645 → 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.
@@ -824,6 +830,8 @@ declare class TableComponent implements OnChanges, OnDestroy {
824
830
  rowSelection: EventEmitter<any>;
825
831
  checkBoxSelection: EventEmitter<any>;
826
832
  saveColumns: EventEmitter<string[]>;
833
+ /** Emits the full data array in its new order after a drag reorder. */
834
+ rowReorder: EventEmitter<any[]>;
827
835
  private sortWorker;
828
836
  /**
829
837
  * reqId counters ensure we can ignore outdated results
@@ -948,6 +956,8 @@ declare class TableComponent implements OnChanges, OnDestroy {
948
956
  visibleTags(list: any[], col: any): any[];
949
957
  /** How many items are hidden behind the "+N" badge. */
950
958
  tagOverflowCount(list: any[], col: any): number;
959
+ /** PrimeNG has already reordered `tableData` in place; emit the new order. */
960
+ onRowReorder(_event: any): void;
951
961
  /** Open the overflow popover with the hidden items' labels. */
952
962
  openTagOverflow(event: Event, panel: any, list: any[], col: any): void;
953
963
  /**
@@ -963,7 +973,7 @@ declare class TableComponent implements OnChanges, OnDestroy {
963
973
  */
964
974
  applyColumns(selected: any[]): void;
965
975
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
966
- 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>;
967
977
  }
968
978
 
969
979
  interface MetaControl {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuentis/phoenix-ui",
3
- "version": "0.0.9-alpha.645",
3
+ "version": "0.0.9-alpha.646",
4
4
  "description": "Phoenix UI Angular component library",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {