@adaptabletools/adaptable-cjs 20.0.0-canary.4 → 20.0.0-canary.6
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/AdaptableInterfaces/IAdaptable.d.ts +2 -1
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +1 -0
- package/src/AdaptableOptions/EditOptions.d.ts +13 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +7 -0
- package/src/Api/Fdc3Api.d.ts +5 -3
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +3 -3
- package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
- package/src/Api/Implementation/LayoutHelpers.js +8 -27
- package/src/Api/Implementation/ThemeApiImpl.js +3 -1
- package/src/Api/Internal/RowFormInternalApi.js +1 -1
- package/src/Api/ThemeApi.d.ts +2 -0
- package/src/PredefinedConfig/AlertState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +0 -16
- package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +2 -2
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +2 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +12 -1
- package/src/Utilities/Services/Fdc3Service.d.ts +2 -2
- package/src/Utilities/Services/Fdc3Service.js +7 -2
- package/src/Utilities/Services/ThemeService.d.ts +1 -1
- package/src/Utilities/Services/ThemeService.js +5 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +41 -0
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +4 -1
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +7 -2
- package/src/agGrid/AdaptableAgGrid.d.ts +2 -2
- package/src/agGrid/AdaptableAgGrid.js +14 -73
- package/src/agGrid/AgGridAdapter.d.ts +1 -1
- package/src/agGrid/AgGridAdapter.js +2 -6
- package/src/agGrid/AgGridColumnAdapter.js +0 -7
- package/src/agGrid/AgGridThemeAdapter.d.ts +19 -0
- package/src/agGrid/AgGridThemeAdapter.js +126 -0
- package/src/components/OverlayTrigger/useAgGridClassName.js +1 -1
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +16 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade20.js +49 -5
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -137,12 +137,14 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
137
137
|
if (sparklineState && sparklineState.StyledColumns) {
|
|
138
138
|
sparklineState.StyledColumns.forEach((styledColumn) => {
|
|
139
139
|
// @ts-ignore renamed 'SparkLineStyle' to 'SparklineStyle'
|
|
140
|
-
if (styledColumn.SparkLineStyle
|
|
141
|
-
|
|
142
|
-
styledColumn.SparklineStyle = styledColumn.SparkLineStyle;
|
|
143
|
-
// @ts-ignore
|
|
144
|
-
delete styledColumn.SparkLineStyle;
|
|
140
|
+
if (styledColumn.SparkLineStyle == undefined) {
|
|
141
|
+
return;
|
|
145
142
|
}
|
|
143
|
+
// @ts-ignore renamed 'SparkLineStyle' to 'SparklineStyle'
|
|
144
|
+
// @ts-ignore
|
|
145
|
+
styledColumn.SparklineStyle = styledColumn.SparkLineStyle;
|
|
146
|
+
// @ts-ignore
|
|
147
|
+
delete styledColumn.SparkLineStyle;
|
|
146
148
|
// @ts-ignore the previous type was "column"
|
|
147
149
|
if (styledColumn.SparklineStyle?.options?.type === 'column') {
|
|
148
150
|
// @ts-ignore the previous type was "column"
|
|
@@ -152,6 +154,48 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
152
154
|
if (styledColumn.SparklineStyle?.options?.type === 'bar') {
|
|
153
155
|
styledColumn.SparklineStyle.options.direction = 'horizontal';
|
|
154
156
|
}
|
|
157
|
+
if (styledColumn.SparklineStyle?.options?.line) {
|
|
158
|
+
const previousLineOpts = (styledColumn.SparklineStyle?.options).line;
|
|
159
|
+
styledColumn.SparklineStyle.options.stroke = previousLineOpts.stroke;
|
|
160
|
+
styledColumn.SparklineStyle.options.strokeWidth = previousLineOpts.strokeWidth;
|
|
161
|
+
delete styledColumn.SparklineStyle.options.line;
|
|
162
|
+
}
|
|
163
|
+
if (styledColumn.SparklineStyle?.options?.axis &&
|
|
164
|
+
styledColumn.SparklineStyle?.options?.axis?.type == undefined) {
|
|
165
|
+
styledColumn.SparklineStyle.options.axis.type = 'category';
|
|
166
|
+
}
|
|
167
|
+
if (styledColumn.SparklineStyle?.options?.highlightStyle) {
|
|
168
|
+
const obsoleteKeys = ['fill', 'stroke', 'strokeWidth'];
|
|
169
|
+
obsoleteKeys.forEach((obsoleteKey) => {
|
|
170
|
+
if (
|
|
171
|
+
// @ts-ignore
|
|
172
|
+
styledColumn.SparklineStyle?.options?.highlightStyle?.[obsoleteKey] != undefined) {
|
|
173
|
+
const itemHighlightStyle = styledColumn.SparklineStyle.options.highlightStyle.item ?? {};
|
|
174
|
+
// @ts-ignore
|
|
175
|
+
itemHighlightStyle[obsoleteKey] = styledColumn.SparklineStyle?.options
|
|
176
|
+
?.highlightStyle?.[obsoleteKey];
|
|
177
|
+
// @ts-ignore
|
|
178
|
+
delete styledColumn.SparklineStyle.options.highlightStyle[obsoleteKey];
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
if ((styledColumn.SparklineStyle?.options).paddingInner != undefined) {
|
|
183
|
+
const axisOpts = (styledColumn.SparklineStyle.options.axis ?? {
|
|
184
|
+
type: 'category',
|
|
185
|
+
});
|
|
186
|
+
axisOpts.paddingInner = (styledColumn.SparklineStyle?.options).paddingInner;
|
|
187
|
+
delete (styledColumn.SparklineStyle?.options).paddingInner;
|
|
188
|
+
}
|
|
189
|
+
if ((styledColumn.SparklineStyle?.options).paddingOuter != undefined) {
|
|
190
|
+
const axisOpts = (styledColumn.SparklineStyle.options.axis ?? {
|
|
191
|
+
type: 'category',
|
|
192
|
+
});
|
|
193
|
+
axisOpts.paddingOuter = (styledColumn.SparklineStyle?.options).paddingOuter;
|
|
194
|
+
delete (styledColumn.SparklineStyle?.options).paddingOuter;
|
|
195
|
+
}
|
|
196
|
+
if ((styledColumn.SparklineStyle?.options).marker != undefined) {
|
|
197
|
+
(styledColumn.SparklineStyle?.options).marker.enabled = true;
|
|
198
|
+
}
|
|
155
199
|
});
|
|
156
200
|
}
|
|
157
201
|
}
|