@adaptabletools/adaptable-cjs 20.0.0-canary.3 → 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 +3 -0
- 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.cjs.tsbuildinfo +1 -1
|
@@ -80,6 +80,7 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
80
80
|
migrateState(state) {
|
|
81
81
|
this.migrateLayoutState(state);
|
|
82
82
|
this.migrateColTypeToDataType(state);
|
|
83
|
+
this.migrateSparklineState(state);
|
|
83
84
|
return state;
|
|
84
85
|
}
|
|
85
86
|
migrateLayoutState(state) {
|
|
@@ -130,5 +131,29 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
133
|
}
|
|
134
|
+
migrateSparklineState(state) {
|
|
135
|
+
this.logger.info(`Migration of Sparkline State`);
|
|
136
|
+
const sparklineState = state.StyledColumn;
|
|
137
|
+
if (sparklineState && sparklineState.StyledColumns) {
|
|
138
|
+
sparklineState.StyledColumns.forEach((styledColumn) => {
|
|
139
|
+
// @ts-ignore renamed 'SparkLineStyle' to 'SparklineStyle'
|
|
140
|
+
if (styledColumn.SparkLineStyle != undefined) {
|
|
141
|
+
// @ts-ignore
|
|
142
|
+
styledColumn.SparklineStyle = styledColumn.SparkLineStyle;
|
|
143
|
+
// @ts-ignore
|
|
144
|
+
delete styledColumn.SparkLineStyle;
|
|
145
|
+
}
|
|
146
|
+
// @ts-ignore the previous type was "column"
|
|
147
|
+
if (styledColumn.SparklineStyle?.options?.type === 'column') {
|
|
148
|
+
// @ts-ignore the previous type was "column"
|
|
149
|
+
styledColumn.SparklineStyle.options.type = 'bar';
|
|
150
|
+
styledColumn.SparklineStyle.options.direction = 'vertical';
|
|
151
|
+
}
|
|
152
|
+
if (styledColumn.SparklineStyle?.options?.type === 'bar') {
|
|
153
|
+
styledColumn.SparklineStyle.options.direction = 'horizontal';
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
133
158
|
}
|
|
134
159
|
exports.VersionUpgrade20 = VersionUpgrade20;
|
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';
|