@adaptabletools/adaptable 12.1.6 → 12.1.7

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.
Files changed (37) hide show
  1. package/bundle.cjs.js +81 -81
  2. package/package.json +1 -1
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
  6. package/src/AdaptableOptions/ColumnOptions.d.ts +2 -4
  7. package/src/Api/FlashingCellApi.d.ts +8 -0
  8. package/src/Api/Implementation/ColumnApiImpl.js +0 -1
  9. package/src/Api/Implementation/FilterApiImpl.js +10 -1
  10. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
  11. package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
  12. package/src/Api/SystemStatusApi.d.ts +1 -1
  13. package/src/Api/ToolPanelApi.d.ts +1 -1
  14. package/src/PredefinedConfig/Common/AdaptablePredicate.js +14 -6
  15. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +6 -6
  16. package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -2
  17. package/src/Redux/ActionsReducers/SystemRedux.js +1 -2
  18. package/src/Redux/Store/AdaptableStore.js +5 -0
  19. package/src/Strategy/FlashingCellModule.js +2 -2
  20. package/src/Utilities/Helpers/CalendarHelper.js +10 -7
  21. package/src/Utilities/Helpers/DateHelper.d.ts +0 -26
  22. package/src/Utilities/Helpers/DateHelper.js +2 -32
  23. package/src/Utilities/ObjectFactory.d.ts +2 -2
  24. package/src/Utilities/ObjectFactory.js +14 -14
  25. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +2 -0
  26. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -4
  27. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  28. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +10 -10
  29. package/src/View/Components/AdaptableDateInput/index.js +1 -1
  30. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  31. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
  32. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +1 -1
  33. package/src/agGrid/Adaptable.d.ts +1 -0
  34. package/src/agGrid/Adaptable.js +9 -8
  35. package/src/metamodel/adaptable.metamodel.js +1 -1
  36. package/version.d.ts +1 -1
  37. package/version.js +1 -1
@@ -1948,7 +1948,10 @@ class Adaptable {
1948
1948
  return typeof rawValue !== 'string' ? String(rawValue) : rawValue;
1949
1949
  }
1950
1950
  if (dataType === 'Number') {
1951
- return typeof rawValue !== 'number' ? Number(rawValue) : rawValue;
1951
+ // empty string or space should not be converted to 0
1952
+ return typeof rawValue !== 'number' && StringExtensions_1.StringExtensions.IsNumeric(rawValue)
1953
+ ? Number(rawValue)
1954
+ : rawValue;
1952
1955
  }
1953
1956
  if (dataType === 'Boolean') {
1954
1957
  return typeof rawValue !== 'boolean' ? Boolean(rawValue) : rawValue;
@@ -2080,6 +2083,9 @@ class Adaptable {
2080
2083
  this.gridOptions.api.redrawRows();
2081
2084
  this._emit('GridRefreshed');
2082
2085
  }
2086
+ redrawRenderedRows() {
2087
+ this.redrawRows(this.gridOptions.api.getRenderedNodes());
2088
+ }
2083
2089
  redrawHeader() {
2084
2090
  this.gridOptions.api.refreshHeader();
2085
2091
  }
@@ -2130,8 +2136,7 @@ class Adaptable {
2130
2136
  ];
2131
2137
  }
2132
2138
  getColDefsForFreeTextColumns() {
2133
- const specialColumnsAreFilterable = this.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns;
2134
- const defaultFreeTextColumnSettings = ObjectFactory_1.CreateEmptyFreeTextColumn(specialColumnsAreFilterable).FreeTextColumnSettings;
2139
+ const defaultFreeTextColumnSettings = ObjectFactory_1.CreateEmptyFreeTextColumn().FreeTextColumnSettings;
2135
2140
  return this.api.freeTextColumnApi.getAllFreeTextColumn().map((freeTextColumn) => {
2136
2141
  var _a;
2137
2142
  const freeTextColumnSettings = Object.assign(Object.assign({}, defaultFreeTextColumnSettings), freeTextColumn.FreeTextColumnSettings);
@@ -2406,11 +2411,7 @@ class Adaptable {
2406
2411
  // !! it is important to NOT set the columns visible again as this is already taken care of in the next performed method (this.updateColDefsForSpecialColumns())
2407
2412
  }
2408
2413
  getColDefsForCalculatedColumns() {
2409
- const specialColumnsAreFilterable = this.adaptableOptions.filterOptions
2410
- .enableFilterOnSpecialColumns
2411
- ? this.adaptableOptions.filterOptions.enableFilterOnSpecialColumns
2412
- : true;
2413
- const defaultCalculatedColumnSettings = ObjectFactory_1.CreateEmptyCalculatedColumn(specialColumnsAreFilterable).CalculatedColumnSettings;
2414
+ const defaultCalculatedColumnSettings = ObjectFactory_1.CreateEmptyCalculatedColumn().CalculatedColumnSettings;
2414
2415
  const isExternalEvaluation = !this.api.internalApi.runModuleInAdaptableQL('CalculatedColumn');
2415
2416
  return this.api.calculatedColumnApi.getAllCalculatedColumn().map((calculatedColumn) => {
2416
2417
  const calculatedColumnSettings = Object.assign(Object.assign({}, defaultCalculatedColumnSettings), calculatedColumn.CalculatedColumnSettings);