@adaptabletools/adaptable 22.0.0-canary.5 → 22.0.0-canary.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/index.css +0 -3
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/src/AdaptableOptions/CustomSortOptions.d.ts +1 -2
- package/src/AdaptableState/AlertState.d.ts +6 -3
- package/src/AdaptableState/ChartingState.d.ts +5 -5
- package/src/AdaptableState/Common/AdaptableObject.d.ts +4 -9
- package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.js +1 -0
- package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
- package/src/AdaptableState/Common/NamedObject.js +1 -0
- package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
- package/src/AdaptableState/Common/Schedule.d.ts +7 -3
- package/src/AdaptableState/Common/SuspendableObject.d.ts +10 -0
- package/src/AdaptableState/Common/SuspendableObject.js +1 -0
- package/src/AdaptableState/CustomSortState.d.ts +6 -2
- package/src/AdaptableState/DashboardState.d.ts +3 -3
- package/src/AdaptableState/ExportState.d.ts +3 -3
- package/src/AdaptableState/FlashingCellState.d.ts +6 -2
- package/src/AdaptableState/FormatColumnState.d.ts +6 -2
- package/src/AdaptableState/InternalState.d.ts +2 -0
- package/src/AdaptableState/LayoutState.d.ts +3 -3
- package/src/AdaptableState/NamedQueryState.d.ts +3 -3
- package/src/AdaptableState/PlusMinusState.d.ts +6 -2
- package/src/AdaptableState/ShortcutState.d.ts +6 -2
- package/src/AdaptableState/StyledColumnState.d.ts +1 -1
- package/src/AdaptableState/ThemeState.d.ts +3 -3
- package/src/Api/AlertApi.d.ts +6 -0
- package/src/Api/CustomSortApi.d.ts +6 -0
- package/src/Api/FlashingCellApi.d.ts +6 -0
- package/src/Api/FormatColumnApi.d.ts +10 -4
- package/src/Api/GridApi.d.ts +18 -3
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AlertApiImpl.js +3 -0
- package/src/Api/Implementation/ChartingApiImpl.js +2 -2
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CustomSortApiImpl.js +3 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +3 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
- package/src/Api/Implementation/FormatColumnApiImpl.js +6 -5
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -0
- package/src/Api/Implementation/GridApiImpl.js +15 -1
- package/src/Api/Implementation/LayoutApiImpl.js +1 -1
- package/src/Api/Implementation/NamedQueryApiImpl.js +2 -2
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +3 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
- package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +1 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
- package/src/Api/PlusMinusApi.d.ts +6 -0
- package/src/Api/ScheduleApi.d.ts +6 -0
- package/src/Api/ShortcutApi.d.ts +6 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +36 -0
- package/src/Redux/Store/AdaptableStore.js +39 -16
- package/src/Strategy/BulkUpdateModule.js +8 -8
- package/src/Strategy/PlusMinusModule.js +1 -1
- package/src/Strategy/QuickSearchModule.js +1 -1
- package/src/Strategy/SettingsPanelModule.js +11 -7
- package/src/Strategy/SmartEditModule.js +10 -10
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Fdc3Service.js +4 -4
- package/src/Utilities/Services/ModuleService.js +1 -3
- package/src/Utilities/Services/ThemeService.js +2 -6
- package/src/Utilities/Services/ValidationService.js +1 -1
- package/src/Utilities/logDeprecation.js +3 -4
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +2 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
- package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +3 -3
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +11 -11
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
- package/src/agGrid/AdaptableAgGrid.js +47 -51
- package/src/agGrid/AgGridAdapter.js +8 -8
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +15 -4
- package/src/agGrid/AgGridExportAdapter.js +5 -5
- package/src/agGrid/AgGridThemeAdapter.js +2 -2
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.js +78 -15
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +25 -18
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +2 -2
- package/src/migration/VersionUpgrade17.js +4 -4
- package/src/migration/VersionUpgrade20.js +4 -4
- package/src/types.d.ts +2 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -34,9 +34,9 @@ export class AdaptableUpgradeHelper {
|
|
|
34
34
|
let updatedState = structuredClone(state);
|
|
35
35
|
for (const version of versionUpgrades) {
|
|
36
36
|
if (version > fromVersion && version <= toVersion) {
|
|
37
|
-
upgradeHelper.logger.info(`Migration to ${version} started
|
|
37
|
+
upgradeHelper.logger.info(`Migration to version ${version} started.`);
|
|
38
38
|
updatedState = upgradeHelper.versionUpgrades.get(version).migrateState(updatedState);
|
|
39
|
-
upgradeHelper.logger.info(`Migration to ${version}
|
|
39
|
+
upgradeHelper.logger.info(`Migration to version ${version} completed.`);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
return updatedState;
|
|
@@ -98,7 +98,7 @@ export class VersionUpgrade17 extends VersionUpgrade {
|
|
|
98
98
|
// let dashboardState: any = this.api.dashboardApi.getDashboardState();
|
|
99
99
|
let dashboardState = state.Dashboard;
|
|
100
100
|
if (dashboardState?.VisibleButtons) {
|
|
101
|
-
this.logger.warn(`
|
|
101
|
+
this.logger.warn(`Migrating deprecated DashboardState.VisibleButtons: [${dashboardState.VisibleButtons}].`);
|
|
102
102
|
state.Dashboard.ModuleButtons = [
|
|
103
103
|
...state.Dashboard.ModuleButtons,
|
|
104
104
|
...dashboardState.VisibleButtons,
|
|
@@ -245,7 +245,7 @@ export class VersionUpgrade17 extends VersionUpgrade {
|
|
|
245
245
|
if (!formatColumnsWithColumnStyles.length) {
|
|
246
246
|
return state;
|
|
247
247
|
}
|
|
248
|
-
this.logger.info(`
|
|
248
|
+
this.logger.info(`Migrating ${formatColumnsWithColumnStyles.length} FormatColumn styles to StyledColumns.`, formatColumnsWithColumnStyles);
|
|
249
249
|
// delete the format columns with column styles
|
|
250
250
|
state.FormatColumn.FormatColumns = state.FormatColumn.FormatColumns?.filter((fc) => !fc.ColumnStyle);
|
|
251
251
|
const styledColumns = formatColumnsWithColumnStyles
|
|
@@ -273,7 +273,7 @@ export class VersionUpgrade17 extends VersionUpgrade {
|
|
|
273
273
|
const deprecatedToolPanelConfigs = state.ToolPanel
|
|
274
274
|
?.VisibleToolPanels;
|
|
275
275
|
if (deprecatedToolPanelConfigs?.length) {
|
|
276
|
-
this.logger.warn(`
|
|
276
|
+
this.logger.warn(`Migrating deprecated ToolPanelState.VisibleToolPanels: [${deprecatedToolPanelConfigs}].`);
|
|
277
277
|
const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({
|
|
278
278
|
Name: toolPanel,
|
|
279
279
|
State: 'collapsed',
|
|
@@ -336,7 +336,7 @@ export class VersionUpgrade17 extends VersionUpgrade {
|
|
|
336
336
|
cc.CalculatedColumnSettings = {
|
|
337
337
|
DataType: 'number',
|
|
338
338
|
};
|
|
339
|
-
this.logger.warn(`
|
|
339
|
+
this.logger.warn(`Migrating Calculated Column "${cc.ColumnId}": adding default CalculatedColumnSettings.`);
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
342
|
return state;
|
|
@@ -149,7 +149,7 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
149
149
|
return state;
|
|
150
150
|
}
|
|
151
151
|
migrateColTypeToDataType(state) {
|
|
152
|
-
this.logger.info(
|
|
152
|
+
this.logger.info('Migrating column types to data types.');
|
|
153
153
|
// Calculated Column DataType
|
|
154
154
|
const calculatedColumnState = state.CalculatedColumn;
|
|
155
155
|
if (calculatedColumnState && calculatedColumnState.CalculatedColumns) {
|
|
@@ -160,7 +160,7 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
160
160
|
}
|
|
161
161
|
const newDataType = mapOldTypeToDataType(cc.CalculatedColumnSettings.DataType);
|
|
162
162
|
if (newDataType === 'unknown') {
|
|
163
|
-
this.logger.warn(`Calculated Column ${cc.ColumnId} has
|
|
163
|
+
this.logger.warn(`Calculated Column "${cc.ColumnId}" has unrecognized DataType: "${cc.CalculatedColumnSettings.DataType}".`);
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
166
166
|
cc.CalculatedColumnSettings.DataType = newDataType;
|
|
@@ -178,7 +178,7 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
178
178
|
}
|
|
179
179
|
const newDataType = mapOldTypeToDataType(fc.FreeTextColumnSettings.DataType);
|
|
180
180
|
if (newDataType === 'unknown') {
|
|
181
|
-
this.logger.warn(`FreeText Column ${fc.ColumnId} has
|
|
181
|
+
this.logger.warn(`FreeText Column "${fc.ColumnId}" has unrecognized DataType: "${fc.FreeTextColumnSettings.DataType}".`);
|
|
182
182
|
}
|
|
183
183
|
else {
|
|
184
184
|
fc.FreeTextColumnSettings.DataType = newDataType;
|
|
@@ -188,7 +188,7 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
migrateSparklineState(state) {
|
|
191
|
-
this.logger.info(
|
|
191
|
+
this.logger.info('Migrating Sparkline state.');
|
|
192
192
|
const sparklineState = state.StyledColumn;
|
|
193
193
|
if (sparklineState && sparklineState.StyledColumns) {
|
|
194
194
|
sparklineState.StyledColumns.forEach((styledColumn) => {
|
package/src/types.d.ts
CHANGED
|
@@ -141,7 +141,7 @@ export type { ScheduleTriggeredInfo } from './Api/Events/ScheduleTriggered';
|
|
|
141
141
|
export type { AdaptableStateChangedInfo } from './Api/Events/AdaptableStateChanged';
|
|
142
142
|
export type { CommentChangedInfo } from './Api/Events/CommentChanged';
|
|
143
143
|
export type { Fdc3MessageInfo, Fdc3MessageSentInfo, Fdc3MessageReceivedInfo, } from './Api/Events/Fdc3MessageInfo';
|
|
144
|
-
export type { AdaptableState, AdaptablePersistentState } from './AdaptableState/AdaptableState';
|
|
144
|
+
export type { AdaptableState, AdaptablePersistentState, AdaptableTransientState, } from './AdaptableState/AdaptableState';
|
|
145
145
|
export type { AlertDefinition, AlertProperties, AlertState, AlertButtonForm, AlertButton, AdaptableAlertCommand, AlertDefinitionPredicate, AlertRule, AdaptableAlertQuery, SystemAlertPredicateId, SystemAlertPredicateIds, } from './AdaptableState/AlertState';
|
|
146
146
|
export type { ApplicationDataEntry, ApplicationState } from './AdaptableState/ApplicationState';
|
|
147
147
|
export type { SpecialColumnSettings } from './AdaptableState/Common/SpecialColumnSettings';
|
|
@@ -157,7 +157,7 @@ export type { SystemStatusMessageInfo } from './AdaptableState/Common/SystemStat
|
|
|
157
157
|
export type { AlternativeModuleName } from './AdaptableState/Common/AlternativeModuleName';
|
|
158
158
|
export type { AdaptableFormat, DateFormatterOptions, NumberFormatterOptions, StringFormatterOptions, } from './AdaptableState/Common/AdaptableFormat';
|
|
159
159
|
export type { AdaptableMessageType } from './AdaptableState/Common/AdaptableMessageType';
|
|
160
|
-
export type { Identifiable, AdaptableObject, AdaptableObjectTag, AdaptableObjectLookupCriteria, AdaptableVersion, SuspendableObject,
|
|
160
|
+
export type { Identifiable, AdaptableObject, AdaptableObjectTag, AdaptableObjectLookupCriteria, AdaptableVersion, SuspendableObject, } from './AdaptableState/Common/AdaptableObject';
|
|
161
161
|
export type { AdaptableQuery, AdaptableAggregatedBooleanQuery, AdaptableAggregatedScalarQuery, AdaptableBooleanQuery, AdaptableObservableQuery, AdaptableScalarQuery, } from './AdaptableState/Common/AdaptableQuery';
|
|
162
162
|
export type { AdaptablePredicate, AdaptableColumnPredicate, AdaptablePredicateDef, PredicateModuleScope, PredicateDefHandlerContext, PredicateDefInput, PredicateDefToStringParams, ColumnFilterDef, } from './AdaptableState/Common/AdaptablePredicate';
|
|
163
163
|
export type { ColumnScope } from './AdaptableState/Common/ColumnScope';
|