@acorex/components 20.6.25 → 20.6.27

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.
@@ -100,7 +100,7 @@ declare abstract class AXDataTableColumnComponent {
100
100
  * Width of the column.
101
101
  * - string: e.g., '180px', '20%'
102
102
  * - number: e.g., 180 (treated as pixels)
103
- * - 'auto': automatically fits to content after data load
103
+ * - 'auto': sizes from headers when the table first renders, then refits from row content once data loads
104
104
  *
105
105
  * @defaultValue 'auto'
106
106
  */
@@ -920,6 +920,23 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
920
920
  newColumnWidth: number;
921
921
  thElement: any;
922
922
  };
923
+ /**
924
+ * Columns that used `width="auto"` and received header-only sizing before rows were available.
925
+ * They get a full content measurement once data is present.
926
+ * @ignore
927
+ */
928
+ private pendingContentAutoFitColumns;
929
+ /**
930
+ * Columns that were configured with `width="auto"` (intent), even if we later set a pixel width.
931
+ * Used to re-measure on every page/data change.
932
+ * @ignore
933
+ */
934
+ private autoFitIntentColumns;
935
+ /**
936
+ * Columns the user manually resized by dragging. Auto-fit should not override user choice.
937
+ * @ignore
938
+ */
939
+ private userResizedColumns;
923
940
  /**
924
941
  * @ignore
925
942
  */
@@ -1090,6 +1107,7 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1090
1107
  * @ignore
1091
1108
  */
1092
1109
  ngAfterViewInit(): void;
1110
+ private captureAutoFitIntentColumns;
1093
1111
  /**
1094
1112
  * Returns the display text for a cell. Used for the native title (tooltip) on each cell.
1095
1113
  */
@@ -1188,7 +1206,7 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1188
1206
  private calculateStickyColumnsPositions;
1189
1207
  /**
1190
1208
  * Auto-fits columns that have width='auto'.
1191
- * Called automatically after data load.
1209
+ * Runs header-only sizing after view init (`headerOnly: true`) and full measurement after data load.
1192
1210
  *
1193
1211
  * @ignore
1194
1212
  */
@@ -1215,10 +1233,12 @@ declare class AXDataTableComponent extends AXBaseDataTable implements OnInit, Af
1215
1233
  * @param columnIndex - The index of the column to auto-fit (0-based, based on columns QueryList)
1216
1234
  * @param options - Configuration options
1217
1235
  * @param options.maxWidth - Maximum width for the column in pixels (default: none)
1236
+ * @param options.headerOnly - When true, only the header cell is measured (e.g. before row data exists)
1218
1237
  * @returns void
1219
1238
  */
1220
1239
  autoFitColumn(columnIndex: number, options?: {
1221
1240
  maxWidth?: number;
1241
+ headerOnly?: boolean;
1222
1242
  }): void;
1223
1243
  static ɵfac: i0.ɵɵFactoryDeclaration<AXDataTableComponent, never>;
1224
1244
  static ɵcmp: i0.ɵɵComponentDeclaration<AXDataTableComponent, "ax-data-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "selectedRows": { "alias": "selectedRows"; "required": false; }; "parentField": { "alias": "parentField"; "required": false; }; "hasChildrenField": { "alias": "hasChildrenField"; "required": false; }; "rowDetailsTemplate": { "alias": "rowDetailsTemplate"; "required": false; }; "title": { "alias": "title"; "required": false; }; "rowTemplate": { "alias": "rowTemplate"; "required": false; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; }; "noDataTemplate": { "alias": "noDataTemplate"; "required": false; }; "alternative": { "alias": "alternative"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "fixedHeader": { "alias": "fixedHeader"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "fixedFooter": { "alias": "fixedFooter"; "required": false; }; "itemHeight": { "alias": "itemHeight"; "required": false; }; "allowReordering": { "alias": "allowReordering"; "required": false; }; "paging": { "alias": "paging"; "required": false; }; "fetchDataMode": { "alias": "fetchDataMode"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "focusedRow": { "alias": "focusedRow"; "required": false; }; }, { "selectedRowsChange": "selectedRowsChange"; "focusedRowChange": "focusedRowChange"; "onRowClick": "onRowClick"; "onRowDbClick": "onRowDbClick"; "onColumnsOrderChanged": "onColumnsOrderChanged"; "onColumnSizeChanged": "onColumnSizeChanged"; "onPageChanged": "onPageChanged"; }, ["customDataPager", "columns"], ["ax-header", "ax-data-pager", "ax-footer"], true, never>;