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