@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.
- package/bundle.cjs.js +81 -81
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +2 -4
- package/src/Api/FlashingCellApi.d.ts +8 -0
- package/src/Api/Implementation/ColumnApiImpl.js +0 -1
- package/src/Api/Implementation/FilterApiImpl.js +10 -1
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
- package/src/Api/SystemStatusApi.d.ts +1 -1
- package/src/Api/ToolPanelApi.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +14 -6
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +6 -6
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -2
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -2
- package/src/Redux/Store/AdaptableStore.js +5 -0
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Utilities/Helpers/CalendarHelper.js +10 -7
- package/src/Utilities/Helpers/DateHelper.d.ts +0 -26
- package/src/Utilities/Helpers/DateHelper.js +2 -32
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/ObjectFactory.js +14 -14
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +2 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +10 -10
- package/src/View/Components/AdaptableDateInput/index.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +1 -1
- package/src/agGrid/Adaptable.d.ts +1 -0
- package/src/agGrid/Adaptable.js +9 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -1948,7 +1948,10 @@ class Adaptable {
|
|
|
1948
1948
|
return typeof rawValue !== 'string' ? String(rawValue) : rawValue;
|
|
1949
1949
|
}
|
|
1950
1950
|
if (dataType === 'Number') {
|
|
1951
|
-
|
|
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
|
|
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
|
|
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);
|