@adaptabletools/adaptable 21.1.0-canary.1 → 21.1.0-canary.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "21.1.0-canary.1",
3
+ "version": "21.1.0-canary.3",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -95,6 +95,22 @@ export class AgGridAdapter {
95
95
  colDef.hide = !allDisplayedColIds.includes(colDef.colId);
96
96
  }
97
97
  });
98
+ // for pre-existing ColDefs, keep the filter property from the previous one
99
+ if (self.adaptableApi.optionsApi.getFilterOptions().useAdaptableFiltering) {
100
+ const hasActiveFilters = self.adaptableApi.filterApi.columnFilterApi.getActiveColumnFilters().length;
101
+ // theoretically we should always update the filter property
102
+ // practically, only do it if there are active filters to avoid unnecessary processing
103
+ if (hasActiveFilters) {
104
+ self.patchColDefs(colDefsWithSpecialColumns, (colDef) => {
105
+ if (colDef.filter !== false) {
106
+ const originalColDef = self.getAgGridApi().getColumnDef(colDef.colId);
107
+ if (originalColDef) {
108
+ colDef.filter = originalColDef.filter;
109
+ }
110
+ }
111
+ });
112
+ }
113
+ }
98
114
  options['columnDefs'] = colDefsWithSpecialColumns;
99
115
  self.logger.info(`Added SpecialColumns on GridOptions.columnDefs update (source=${source})`);
100
116
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { TreeDataSource, TreeGrid, } from '../../InfiniteTable';
3
3
  import { Flex } from 'rebass';
4
- import join from '../../../../../adaptable-react-aggrid/src/utils/join';
4
+ import join from '../../utils/join';
5
5
  const columns = {
6
6
  label: {
7
7
  field: 'label',
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
3
- PUBLISH_TIMESTAMP: 1763374295002 || Date.now(),
4
- VERSION: "21.1.0-canary.1" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1763413188526 || Date.now(),
4
+ VERSION: "21.1.0-canary.3" || '--current-version--',
5
5
  };