@adaptabletools/adaptable 20.0.0-canary.8 → 20.0.0-canary.9

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": "20.0.0-canary.8",
3
+ "version": "20.0.0-canary.9",
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",
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: 1741620176158 || Date.now(),
4
- VERSION: "20.0.0-canary.8" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1741700549806 || Date.now(),
4
+ VERSION: "20.0.0-canary.9" || '--current-version--',
5
5
  };
@@ -32,6 +32,37 @@ function transition_pre_20(layout) {
32
32
  layout.PivotAggregationColumns = layout.TableAggregationColumns;
33
33
  }
34
34
  }
35
+ if (l.ColumnFilters) {
36
+ layout.ColumnFilters = l.ColumnFilters.map((columnFilter) => {
37
+ const filter = {
38
+ ...columnFilter,
39
+ };
40
+ // version 19 had a single predicate
41
+ // while version 20 has an array of predicates
42
+ // @ts-ignore
43
+ if (filter.Predicate) {
44
+ // @ts-ignore
45
+ delete filter.Predicate;
46
+ // @ts-ignore
47
+ filter.Predicates = [filter.Predicate];
48
+ }
49
+ filter.Predicates = filter.Predicates.map((p) => {
50
+ // the following predicate ids were renamed:
51
+ // Values -> In
52
+ if (p.PredicateId === 'Values') {
53
+ p = { ...p };
54
+ p.PredicateId = 'In';
55
+ }
56
+ // ExcludeValues -> NotIn
57
+ if (p.PredicateId === 'ExcludeValues') {
58
+ p = { ...p };
59
+ p.PredicateId = 'NotIn';
60
+ }
61
+ return p;
62
+ });
63
+ return filter;
64
+ });
65
+ }
35
66
  return layout;
36
67
  }
37
68
  function hasUpToDateDataType(dataType) {