@adaptabletools/adaptable 20.0.0-canary.2 → 20.0.0-canary.4
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 +1 -1
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +1 -1
- package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +0 -1
- package/src/AdaptableOptions/EditOptions.d.ts +1 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +4 -18
- package/src/AdaptableOptions/PredicateOptions.d.ts +4 -4
- package/src/Api/Implementation/AdaptableApiImpl.js +1 -0
- package/src/Api/Implementation/ExportApiImpl.js +3 -2
- package/src/Api/Implementation/ScheduleApiImpl.js +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.js +1 -1
- package/src/Api/Internal/EventInternalApi.js +6 -1
- package/src/Api/Internal/ExportInternalApi.js +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumnContext.d.ts +1 -1
- package/src/PredefinedConfig/ExportState.d.ts +3 -3
- package/src/PredefinedConfig/LayoutState.d.ts +14 -14
- package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
- package/src/Strategy/StyledColumnModule.js +6 -6
- package/src/Utilities/ObjectFactory.js +1 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.d.ts +2 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +18 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +4 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.d.ts +3 -4
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +348 -191
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +4 -4
- package/src/agGrid/AdaptableAgGrid.d.ts +1 -6
- package/src/agGrid/AdaptableAgGrid.js +24 -42
- package/src/agGrid/AgGridAdapter.js +4 -1
- package/src/agGrid/AgGridColumnAdapter.js +5 -3
- package/src/components/ColorPicker/ColorPicker.js +2 -2
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +0 -15
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade20.d.ts +1 -0
- package/src/migration/VersionUpgrade20.js +25 -0
- package/src/types.d.ts +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -77,6 +77,7 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
77
77
|
migrateState(state) {
|
|
78
78
|
this.migrateLayoutState(state);
|
|
79
79
|
this.migrateColTypeToDataType(state);
|
|
80
|
+
this.migrateSparklineState(state);
|
|
80
81
|
return state;
|
|
81
82
|
}
|
|
82
83
|
migrateLayoutState(state) {
|
|
@@ -127,4 +128,28 @@ export class VersionUpgrade20 extends VersionUpgrade {
|
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
130
|
}
|
|
131
|
+
migrateSparklineState(state) {
|
|
132
|
+
this.logger.info(`Migration of Sparkline State`);
|
|
133
|
+
const sparklineState = state.StyledColumn;
|
|
134
|
+
if (sparklineState && sparklineState.StyledColumns) {
|
|
135
|
+
sparklineState.StyledColumns.forEach((styledColumn) => {
|
|
136
|
+
// @ts-ignore renamed 'SparkLineStyle' to 'SparklineStyle'
|
|
137
|
+
if (styledColumn.SparkLineStyle != undefined) {
|
|
138
|
+
// @ts-ignore
|
|
139
|
+
styledColumn.SparklineStyle = styledColumn.SparkLineStyle;
|
|
140
|
+
// @ts-ignore
|
|
141
|
+
delete styledColumn.SparkLineStyle;
|
|
142
|
+
}
|
|
143
|
+
// @ts-ignore the previous type was "column"
|
|
144
|
+
if (styledColumn.SparklineStyle?.options?.type === 'column') {
|
|
145
|
+
// @ts-ignore the previous type was "column"
|
|
146
|
+
styledColumn.SparklineStyle.options.type = 'bar';
|
|
147
|
+
styledColumn.SparklineStyle.options.direction = 'vertical';
|
|
148
|
+
}
|
|
149
|
+
if (styledColumn.SparklineStyle?.options?.type === 'bar') {
|
|
150
|
+
styledColumn.SparklineStyle.options.direction = 'horizontal';
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
130
155
|
}
|
package/src/types.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type { SetPrimaryKeyValueContext, RowFormOptions, RowFormContext, CreateR
|
|
|
20
20
|
export type { AdaptableNumberCellEditorParams } from './agGrid/editors/AdaptableNumberEditor';
|
|
21
21
|
export type { AdaptableDateEditorParams } from './agGrid/editors/AdaptableDateEditor';
|
|
22
22
|
export type { AdaptablePercentageCellEditorParams } from './agGrid/editors/AdaptablePercentageEditor';
|
|
23
|
-
export type { ExportOptions, SystemExportDestination, CustomDestination, ExternalReport, PreProcessExportContext, DataFormatType, ExportFormContext, ReportContext,
|
|
23
|
+
export type { ExportOptions, SystemExportDestination, CustomDestination, ExternalReport, PreProcessExportContext, DataFormatType, ExportFormContext, ReportContext, ReportFileNameContext, DataFormatDataType, ExportDestinationType, GetDetailRowsContext, BaseExportContext, ExportResultData, } from './AdaptableOptions/ExportOptions';
|
|
24
24
|
export type { DataImportValidationError, DataImportOptions, DataImportFileHandler, HandleImportedDataContext, DataImportValidateContext, GetPrimaryKeyValueContext, PreprocessRowDataContext, HandleImportedDataResolution, } from './AdaptableOptions/DataImportOptions';
|
|
25
25
|
export type { DataSetOptions, DataSet, DataSetFormContext, } from './AdaptableOptions/DataSetOptions';
|
|
26
26
|
export type { CellSummaryOptions } from './AdaptableOptions/CellSummaryOptions';
|