autoql-fe-utils 1.0.118 → 1.0.119

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/dist/index.d.ts CHANGED
@@ -534,7 +534,8 @@ interface Column extends RawColumn {
534
534
  origColumn?: Column;
535
535
  origPivotColumn?: Column;
536
536
  origValues?: any;
537
- headerFilter?: boolean;
537
+ headerFilter?: boolean | string;
538
+ headerSort?: boolean | string;
538
539
  frozen?: boolean;
539
540
  visible?: boolean;
540
541
  field?: string;
@@ -16057,7 +16057,7 @@
16057
16057
  }
16058
16058
  const isListQuery2 = getNumberOfGroupables(columns) === 0;
16059
16059
  const formattedColumns = columns.map((col, i) => {
16060
- var _a;
16060
+ var _a, _b, _c;
16061
16061
  const newCol = (0, import_lodash2.default)(col);
16062
16062
  newCol.id = (_a = col.id) != null ? _a : v4_default();
16063
16063
  newCol.field = `${i}`;
@@ -16088,11 +16088,11 @@
16088
16088
  htmlElement: cell.getElement()
16089
16089
  });
16090
16090
  };
16091
- newCol.headerFilter = "input";
16091
+ newCol.headerFilter = (_b = col.headerFilter) != null ? _b : "input";
16092
16092
  newCol.headerFilterPlaceholder = setHeaderFilterPlaceholder(newCol);
16093
16093
  newCol.headerFilterFunc = setFilterFunction({ column: newCol, dataFormatting });
16094
16094
  newCol.sorter = setSorterFunction(newCol);
16095
- newCol.headerSort = enableTableSorting;
16095
+ newCol.headerSort = (_c = col.headerSort) != null ? _c : enableTableSorting;
16096
16096
  newCol.headerSortStartingDir = "desc";
16097
16097
  newCol.headerClick = () => {
16098
16098
  onTableHeaderClick == null ? void 0 : onTableHeaderClick();