@adaptabletools/adaptable 22.0.1-canary.3 → 22.0.1

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": "22.0.1-canary.3",
3
+ "version": "22.0.1",
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",
@@ -50,7 +50,7 @@ export class ColumnFilterInternalApi extends ApiBase {
50
50
  Predicates: [
51
51
  {
52
52
  PredicateId: this.getPredicateApi().internalApi.getEqualityPredicateForDataType(column.dataType),
53
- Inputs: [...new Set([gridCell.rawValue])],
53
+ Inputs: [...new Set([gridCell.normalisedValue])],
54
54
  },
55
55
  ],
56
56
  };
@@ -2209,10 +2209,16 @@ export class AdaptableAgGrid {
2209
2209
  return typeof rawValue !== 'string' ? String(rawValue) : rawValue;
2210
2210
  }
2211
2211
  if (dataType === 'number') {
2212
+ if (typeof rawValue === 'number') {
2213
+ return rawValue;
2214
+ }
2212
2215
  // empty string or space should not be converted to 0
2213
- return typeof rawValue !== 'number' && StringExtensions.IsNumeric(rawValue)
2214
- ? Number(rawValue)
2215
- : rawValue;
2216
+ if (typeof rawValue === 'string') {
2217
+ return StringExtensions.IsNumeric(rawValue) ? Number(rawValue) : rawValue;
2218
+ }
2219
+ // handle objects with toString() (e.g. from valueGetters)
2220
+ const numValue = Number(rawValue);
2221
+ return isNaN(numValue) ? rawValue : numValue;
2216
2222
  }
2217
2223
  if (dataType === 'boolean') {
2218
2224
  return typeof rawValue !== 'boolean' ? Boolean(rawValue) : rawValue;
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: 1772188600358 || Date.now(),
4
- VERSION: "22.0.1-canary.3" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1772196168049 || Date.now(),
4
+ VERSION: "22.0.1" || '--current-version--',
5
5
  };