@adaptabletools/adaptable-cjs 20.0.0-canary.10 → 20.0.0-canary.11

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.10",
3
+ "version": "20.0.0-canary.11",
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: 1741781327852 || Date.now(),
6
- VERSION: "20.0.0-canary.10" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1741783748629 || Date.now(),
6
+ VERSION: "20.0.0-canary.11" || '--current-version--',
7
7
  };
@@ -35,7 +35,7 @@ function transition_pre_20(layout) {
35
35
  layout.PivotAggregationColumns = layout.TableAggregationColumns;
36
36
  }
37
37
  }
38
- if (l.ColumnFilters) {
38
+ if (Array.isArray(l.ColumnFilters)) {
39
39
  layout.ColumnFilters = l.ColumnFilters.map((columnFilter) => {
40
40
  const filter = {
41
41
  ...columnFilter,
@@ -44,10 +44,13 @@ function transition_pre_20(layout) {
44
44
  // while version 20 has an array of predicates
45
45
  // @ts-ignore
46
46
  if (filter.Predicate) {
47
- // @ts-ignore
48
- delete filter.Predicate;
49
47
  // @ts-ignore
50
48
  filter.Predicates = [filter.Predicate];
49
+ // @ts-ignore
50
+ delete filter.Predicate;
51
+ }
52
+ if (!Array.isArray(filter.Predicates)) {
53
+ filter.Predicates = [];
51
54
  }
52
55
  filter.Predicates = filter.Predicates.map((p) => {
53
56
  // the following predicate ids were renamed: