@adaptabletools/adaptable-cjs 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 +2 -0
- package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
- package/src/AdaptableState/Common/NamedObject.js +2 -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 +2 -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 +14 -0
- 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 +17 -1
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
- 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 +77 -14
- 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.cjs.tsbuildinfo +1 -1
|
@@ -37,9 +37,9 @@ class AdaptableUpgradeHelper {
|
|
|
37
37
|
let updatedState = structuredClone(state);
|
|
38
38
|
for (const version of versionUpgrades) {
|
|
39
39
|
if (version > fromVersion && version <= toVersion) {
|
|
40
|
-
upgradeHelper.logger.info(`Migration to ${version} started
|
|
40
|
+
upgradeHelper.logger.info(`Migration to version ${version} started.`);
|
|
41
41
|
updatedState = upgradeHelper.versionUpgrades.get(version).migrateState(updatedState);
|
|
42
|
-
upgradeHelper.logger.info(`Migration to ${version}
|
|
42
|
+
upgradeHelper.logger.info(`Migration to version ${version} completed.`);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
return updatedState;
|
|
@@ -102,7 +102,7 @@ class VersionUpgrade17 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
102
102
|
// let dashboardState: any = this.api.dashboardApi.getDashboardState();
|
|
103
103
|
let dashboardState = state.Dashboard;
|
|
104
104
|
if (dashboardState?.VisibleButtons) {
|
|
105
|
-
this.logger.warn(`
|
|
105
|
+
this.logger.warn(`Migrating deprecated DashboardState.VisibleButtons: [${dashboardState.VisibleButtons}].`);
|
|
106
106
|
state.Dashboard.ModuleButtons = [
|
|
107
107
|
...state.Dashboard.ModuleButtons,
|
|
108
108
|
...dashboardState.VisibleButtons,
|
|
@@ -249,7 +249,7 @@ class VersionUpgrade17 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
249
249
|
if (!formatColumnsWithColumnStyles.length) {
|
|
250
250
|
return state;
|
|
251
251
|
}
|
|
252
|
-
this.logger.info(`
|
|
252
|
+
this.logger.info(`Migrating ${formatColumnsWithColumnStyles.length} FormatColumn styles to StyledColumns.`, formatColumnsWithColumnStyles);
|
|
253
253
|
// delete the format columns with column styles
|
|
254
254
|
state.FormatColumn.FormatColumns = state.FormatColumn.FormatColumns?.filter((fc) => !fc.ColumnStyle);
|
|
255
255
|
const styledColumns = formatColumnsWithColumnStyles
|
|
@@ -277,7 +277,7 @@ class VersionUpgrade17 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
277
277
|
const deprecatedToolPanelConfigs = state.ToolPanel
|
|
278
278
|
?.VisibleToolPanels;
|
|
279
279
|
if (deprecatedToolPanelConfigs?.length) {
|
|
280
|
-
this.logger.warn(`
|
|
280
|
+
this.logger.warn(`Migrating deprecated ToolPanelState.VisibleToolPanels: [${deprecatedToolPanelConfigs}].`);
|
|
281
281
|
const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({
|
|
282
282
|
Name: toolPanel,
|
|
283
283
|
State: 'collapsed',
|
|
@@ -340,7 +340,7 @@ class VersionUpgrade17 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
340
340
|
cc.CalculatedColumnSettings = {
|
|
341
341
|
DataType: 'number',
|
|
342
342
|
};
|
|
343
|
-
this.logger.warn(`
|
|
343
|
+
this.logger.warn(`Migrating Calculated Column "${cc.ColumnId}": adding default CalculatedColumnSettings.`);
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
346
|
return state;
|
|
@@ -153,7 +153,7 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
153
153
|
return state;
|
|
154
154
|
}
|
|
155
155
|
migrateColTypeToDataType(state) {
|
|
156
|
-
this.logger.info(
|
|
156
|
+
this.logger.info('Migrating column types to data types.');
|
|
157
157
|
// Calculated Column DataType
|
|
158
158
|
const calculatedColumnState = state.CalculatedColumn;
|
|
159
159
|
if (calculatedColumnState && calculatedColumnState.CalculatedColumns) {
|
|
@@ -164,7 +164,7 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
164
164
|
}
|
|
165
165
|
const newDataType = mapOldTypeToDataType(cc.CalculatedColumnSettings.DataType);
|
|
166
166
|
if (newDataType === 'unknown') {
|
|
167
|
-
this.logger.warn(`Calculated Column ${cc.ColumnId} has
|
|
167
|
+
this.logger.warn(`Calculated Column "${cc.ColumnId}" has unrecognized DataType: "${cc.CalculatedColumnSettings.DataType}".`);
|
|
168
168
|
}
|
|
169
169
|
else {
|
|
170
170
|
cc.CalculatedColumnSettings.DataType = newDataType;
|
|
@@ -182,7 +182,7 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
182
182
|
}
|
|
183
183
|
const newDataType = mapOldTypeToDataType(fc.FreeTextColumnSettings.DataType);
|
|
184
184
|
if (newDataType === 'unknown') {
|
|
185
|
-
this.logger.warn(`FreeText Column ${fc.ColumnId} has
|
|
185
|
+
this.logger.warn(`FreeText Column "${fc.ColumnId}" has unrecognized DataType: "${fc.FreeTextColumnSettings.DataType}".`);
|
|
186
186
|
}
|
|
187
187
|
else {
|
|
188
188
|
fc.FreeTextColumnSettings.DataType = newDataType;
|
|
@@ -192,7 +192,7 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
migrateSparklineState(state) {
|
|
195
|
-
this.logger.info(
|
|
195
|
+
this.logger.info('Migrating Sparkline state.');
|
|
196
196
|
const sparklineState = state.StyledColumn;
|
|
197
197
|
if (sparklineState && sparklineState.StyledColumns) {
|
|
198
198
|
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';
|