@adaptabletools/adaptable 23.0.0-canary.7 → 23.0.0-canary.8
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 +75 -9
- package/package.json +1 -1
- package/src/AdaptableState/StyledColumnState.d.ts +8 -850
- package/src/AdaptableState/StyledColumnState.js +1 -9
- package/src/AdaptableState/StyledColumns/BadgeStyle.d.ts +143 -0
- package/src/AdaptableState/StyledColumns/BadgeStyle.js +9 -0
- package/src/AdaptableState/StyledColumns/BulletChartStyle.d.ts +147 -0
- package/src/AdaptableState/StyledColumns/BulletChartStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/Common/BarChartCellText.d.ts +60 -0
- package/src/AdaptableState/StyledColumns/Common/BarChartCellText.js +6 -0
- package/src/AdaptableState/StyledColumns/Common/BarChartMarker.d.ts +24 -0
- package/src/AdaptableState/StyledColumns/Common/BarChartMarker.js +5 -0
- package/src/AdaptableState/StyledColumns/Common/CellTextOptions.d.ts +13 -0
- package/src/AdaptableState/StyledColumns/Common/CellTextOptions.js +6 -0
- package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.d.ts +79 -0
- package/src/AdaptableState/StyledColumns/Common/NumericStyledColumn.js +9 -0
- package/src/AdaptableState/StyledColumns/GradientStyle.d.ts +48 -0
- package/src/AdaptableState/StyledColumns/GradientStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/IconStyle.d.ts +158 -0
- package/src/AdaptableState/StyledColumns/IconStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/PercentBarStyle.d.ts +32 -0
- package/src/AdaptableState/StyledColumns/PercentBarStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/RangeBarStyle.d.ts +155 -0
- package/src/AdaptableState/StyledColumns/RangeBarStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/RatingStyle.d.ts +111 -0
- package/src/AdaptableState/StyledColumns/RatingStyle.js +1 -0
- package/src/AdaptableState/StyledColumns/SparklineStyle.d.ts +21 -0
- package/src/AdaptableState/StyledColumns/SparklineStyle.js +1 -0
- package/src/Api/ColumnScopeApi.d.ts +1 -1
- package/src/Api/Implementation/ColumnScopeApiImpl.d.ts +1 -1
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -1
- package/src/Utilities/Helpers/IconStylePresets.d.ts +1 -1
- package/src/Utilities/Helpers/StyledColumnGradientHelper.d.ts +3 -1
- package/src/Utilities/Helpers/barChartCellText.d.ts +63 -0
- package/src/Utilities/Helpers/barChartCellText.js +316 -0
- package/src/Utilities/Helpers/percentBarPreviewHelper.d.ts +2 -1
- package/src/Utilities/Helpers/percentBarPreviewHelper.js +3 -8
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +159 -126
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertWizard.js +9 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +3 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +3 -2
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.d.ts +2 -0
- package/src/View/Components/AdaptableObjectList/objectListActionButtonStyles.js +2 -0
- package/src/View/Components/Buttons/EntityListActionButtons.js +1 -1
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -0
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +8 -8
- package/src/View/Components/ColumnFilter/ColumnFilter.js +14 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -1
- package/src/View/Components/RangesComponent.d.ts +2 -1
- package/src/View/Export/ExportSchedulesTab.js +3 -4
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +129 -103
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +36 -30
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +1 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +73 -58
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +38 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +86 -44
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextLayoutEditor.d.ts +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextLayoutEditor.js +35 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextPreview.d.ts +23 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BarChartCellTextPreview.js +57 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/BulletRangesSummaryPreview.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/RangeBarRangesSummaryPreview.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +3 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBulletPreview.js +13 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +5 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnIconPreview.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnPercentBarPreview.js +14 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRangeBarPreview.js +11 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnRatingPreview.d.ts +2 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +18 -54
- package/src/agGrid/AgGridColumnAdapter.js +2 -1
- package/src/agGrid/cellRenderers/BadgeRenderer.js +7 -5
- package/src/agGrid/cellRenderers/BulletChartRenderer.js +43 -42
- package/src/agGrid/cellRenderers/IconRenderer.d.ts +2 -1
- package/src/agGrid/cellRenderers/IconRenderer.js +13 -11
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +24 -96
- package/src/agGrid/cellRenderers/RangeBarRenderer.js +49 -46
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +80 -14
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/VersionUpgrade23.d.ts +27 -31
- package/src/migration/VersionUpgrade23.js +110 -29
- package/src/types.d.ts +12 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
|
@@ -1,39 +1,21 @@
|
|
|
1
1
|
import { VersionUpgrade } from './VersionUpgrade';
|
|
2
2
|
import { AdaptableState } from '../AdaptableState/AdaptableState';
|
|
3
|
-
/**
|
|
4
|
-
* Version 23 — all state changes since the last major release:
|
|
5
|
-
*
|
|
6
|
-
* Styled columns:
|
|
7
|
-
* - Gradient zero-centred layout + Styled Column Name + Badge pill
|
|
8
|
-
* style + Styled Column `RowScope`.
|
|
9
|
-
*
|
|
10
|
-
* - Replaces the legacy two-`CellRanges` diverging pattern (`Col-Min`…`0` with
|
|
11
|
-
* `ReverseGradient: true` + `0`…`Col-Max`) with an explicit
|
|
12
|
-
* `GradientStyle.ZeroCentred` object `{ NegativeColor, PositiveColor }`.
|
|
13
|
-
* - Backfills the new mandatory `Name` property on every `StyledColumn` using a
|
|
14
|
-
* deterministic `${Type}-${ColumnId}` default (e.g. `Badge-tradeId`,
|
|
15
|
-
* `Gradient-notional`).
|
|
16
|
-
* - Migrates `BadgeStyleDefinition.Style` (full `AdaptableStyle`) to
|
|
17
|
-
* `PillStyle`, infers `Shape` from legacy `BorderRadius` when needed, and lifts
|
|
18
|
-
* per-pill `Alignment` to `BadgeStyle.Font.Alignment` when present.
|
|
19
|
-
* - Promotes `BadgeStyle.RowScope` to the top-level `StyledColumn.RowScope`
|
|
20
|
-
* so the same row-kind selection applies to every Styled Column type, not
|
|
21
|
-
* just Badge.
|
|
22
|
-
*
|
|
23
|
-
* Note: `ReverseGradient` on `CellColorRange` is **still supported** (lower-is-darker
|
|
24
|
-
* per-range option). This migration only collapses the *full* legacy diverging
|
|
25
|
-
* shape into `ZeroCentred`; standalone `ReverseGradient` ranges are left untouched.
|
|
26
|
-
*
|
|
27
|
-
* Scheduling:
|
|
28
|
-
* - Remove the legacy Schedule state section entirely (Reminders, ReportSchedules,
|
|
29
|
-
* IPushPull, OpenFin, and any other keys). Schedules now live under Export / Alert.
|
|
30
|
-
*
|
|
31
|
-
* On first load after upgrade, `AdaptableUpgradeHelper.migrateAdaptableState` runs this when
|
|
32
|
-
* `autoMigrateState` is enabled.
|
|
33
|
-
*/
|
|
34
3
|
export declare class VersionUpgrade23 extends VersionUpgrade {
|
|
35
4
|
migrateState(state: AdaptableState): AdaptableState;
|
|
36
5
|
private migrateSchedulingState;
|
|
6
|
+
/**
|
|
7
|
+
* v22 Percent Bar stored cell-text overlay settings as flat
|
|
8
|
+
* `CellText: CellTextOptions` + `CellTextPosition: 'Above' | 'Below' | 'Merged'`
|
|
9
|
+
* keys on `PercentBarStyle`. v23 replaces them with the per-value
|
|
10
|
+
* `CellTextProperties.CellTextLayout: { CellValue?, PercentValue? }`, where
|
|
11
|
+
* each value carries its own `Horizontal` and `Vertical` placement.
|
|
12
|
+
*
|
|
13
|
+
* The flat keys are forwarded onto the new layout (`Horizontal: 'Left'`,
|
|
14
|
+
* `Vertical` taken from `CellTextPosition`) and stripped from the parent
|
|
15
|
+
* style. Range Bar and Bullet Chart never shipped cell-text overlays in
|
|
16
|
+
* v22 so they need no migration here.
|
|
17
|
+
*/
|
|
18
|
+
private migratePercentBarCellText;
|
|
37
19
|
/**
|
|
38
20
|
* `RowScope` (which row kinds — data / group / summary / total — render
|
|
39
21
|
* the style) was originally a Badge-only concept. It applies equally to
|
|
@@ -46,6 +28,20 @@ export declare class VersionUpgrade23 extends VersionUpgrade {
|
|
|
46
28
|
* Then delete the nested copy so we only have one source of truth going
|
|
47
29
|
* forward.
|
|
48
30
|
*/
|
|
31
|
+
/**
|
|
32
|
+
* v22 Badge icon settings lived as four flat keys on
|
|
33
|
+
* `BadgeStyleDefinition`: `Icon`, `IconPosition`, `IconOnly` (and the
|
|
34
|
+
* v23 canary-only `IconGap`). v23 groups them under
|
|
35
|
+
* `IconProperties: { Icon, Position, Gap, IconOnly }`.
|
|
36
|
+
*
|
|
37
|
+
* Migration: per badge, if any of the flat keys are present, build
|
|
38
|
+
* `IconProperties` (renaming `IconPosition → Position` and `IconGap → Gap`,
|
|
39
|
+
* leaving `IconOnly` as-is) and strip the flat keys from the parent.
|
|
40
|
+
* `IconProperties.Icon` is required, so if the only flat fields set were
|
|
41
|
+
* decoration flags (`IconPosition` / `IconOnly` / `IconGap`) without an
|
|
42
|
+
* `Icon`, those flags are dropped (they had no effect anyway).
|
|
43
|
+
*/
|
|
44
|
+
private migrateBadgeIconProperties;
|
|
49
45
|
private liftBadgeStyleRowScope;
|
|
50
46
|
/**
|
|
51
47
|
* `Name` was added as a mandatory property on `StyledColumn` (mirroring every
|
|
@@ -1,39 +1,32 @@
|
|
|
1
1
|
import { VersionUpgrade } from './VersionUpgrade';
|
|
2
|
+
import { mergeBarChartCellTextProperties } from '../Utilities/Helpers/barChartCellText';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* style + Styled Column `RowScope`.
|
|
8
|
-
*
|
|
9
|
-
* - Replaces the legacy two-`CellRanges` diverging pattern (`Col-Min`…`0` with
|
|
10
|
-
* `ReverseGradient: true` + `0`…`Col-Max`) with an explicit
|
|
11
|
-
* `GradientStyle.ZeroCentred` object `{ NegativeColor, PositiveColor }`.
|
|
12
|
-
* - Backfills the new mandatory `Name` property on every `StyledColumn` using a
|
|
13
|
-
* deterministic `${Type}-${ColumnId}` default (e.g. `Badge-tradeId`,
|
|
14
|
-
* `Gradient-notional`).
|
|
15
|
-
* - Migrates `BadgeStyleDefinition.Style` (full `AdaptableStyle`) to
|
|
16
|
-
* `PillStyle`, infers `Shape` from legacy `BorderRadius` when needed, and lifts
|
|
17
|
-
* per-pill `Alignment` to `BadgeStyle.Font.Alignment` when present.
|
|
18
|
-
* - Promotes `BadgeStyle.RowScope` to the top-level `StyledColumn.RowScope`
|
|
19
|
-
* so the same row-kind selection applies to every Styled Column type, not
|
|
20
|
-
* just Badge.
|
|
21
|
-
*
|
|
22
|
-
* Note: `ReverseGradient` on `CellColorRange` is **still supported** (lower-is-darker
|
|
23
|
-
* per-range option). This migration only collapses the *full* legacy diverging
|
|
24
|
-
* shape into `ZeroCentred`; standalone `ReverseGradient` ranges are left untouched.
|
|
25
|
-
*
|
|
26
|
-
* Scheduling:
|
|
27
|
-
* - Remove the legacy Schedule state section entirely (Reminders, ReportSchedules,
|
|
28
|
-
* IPushPull, OpenFin, and any other keys). Schedules now live under Export / Alert.
|
|
29
|
-
*
|
|
30
|
-
* On first load after upgrade, `AdaptableUpgradeHelper.migrateAdaptableState` runs this when
|
|
31
|
-
* `autoMigrateState` is enabled.
|
|
4
|
+
* Forward v22 `{ CellText, CellTextPosition }` into the canonical per-value
|
|
5
|
+
* layout. Each token in `CellText` becomes one placement on the
|
|
6
|
+
* `CellTextLayout` with `Horizontal: 'Left'` and `Vertical = CellTextPosition`.
|
|
7
|
+
* Returns `undefined` when no v22 cell-text was configured.
|
|
32
8
|
*/
|
|
9
|
+
const migrateLegacyPercentBarCellText = (legacy) => {
|
|
10
|
+
const tokens = legacy.CellText ?? [];
|
|
11
|
+
if (!tokens.length) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
const vertical = legacy.CellTextPosition ?? 'Below';
|
|
15
|
+
const layout = {};
|
|
16
|
+
if (tokens.includes('CellValue')) {
|
|
17
|
+
layout.CellValue = { Horizontal: 'Left', Vertical: vertical };
|
|
18
|
+
}
|
|
19
|
+
if (tokens.includes('PercentageValue')) {
|
|
20
|
+
layout.PercentValue = { Horizontal: 'Left', Vertical: vertical };
|
|
21
|
+
}
|
|
22
|
+
return mergeBarChartCellTextProperties(undefined, { CellTextLayout: layout });
|
|
23
|
+
};
|
|
33
24
|
export class VersionUpgrade23 extends VersionUpgrade {
|
|
34
25
|
migrateState(state) {
|
|
35
26
|
this.migrateStyledColumnGradientZeroCentred(state);
|
|
36
27
|
this.migrateBadgeStyleToPillStyle(state);
|
|
28
|
+
this.migrateBadgeIconProperties(state);
|
|
29
|
+
this.migratePercentBarCellText(state);
|
|
37
30
|
this.patchStyledColumnName(state);
|
|
38
31
|
this.liftBadgeStyleRowScope(state);
|
|
39
32
|
return this.migrateSchedulingState(state);
|
|
@@ -59,6 +52,41 @@ export class VersionUpgrade23 extends VersionUpgrade {
|
|
|
59
52
|
const { Schedule: _removed, ...stateWithoutSchedule } = state;
|
|
60
53
|
return stateWithoutSchedule;
|
|
61
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* v22 Percent Bar stored cell-text overlay settings as flat
|
|
57
|
+
* `CellText: CellTextOptions` + `CellTextPosition: 'Above' | 'Below' | 'Merged'`
|
|
58
|
+
* keys on `PercentBarStyle`. v23 replaces them with the per-value
|
|
59
|
+
* `CellTextProperties.CellTextLayout: { CellValue?, PercentValue? }`, where
|
|
60
|
+
* each value carries its own `Horizontal` and `Vertical` placement.
|
|
61
|
+
*
|
|
62
|
+
* The flat keys are forwarded onto the new layout (`Horizontal: 'Left'`,
|
|
63
|
+
* `Vertical` taken from `CellTextPosition`) and stripped from the parent
|
|
64
|
+
* style. Range Bar and Bullet Chart never shipped cell-text overlays in
|
|
65
|
+
* v22 so they need no migration here.
|
|
66
|
+
*/
|
|
67
|
+
migratePercentBarCellText(state) {
|
|
68
|
+
const columns = state.StyledColumn?.StyledColumns;
|
|
69
|
+
if (!columns?.length) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
for (const sc of columns) {
|
|
73
|
+
const percentBarStyle = sc.PercentBarStyle;
|
|
74
|
+
if (!percentBarStyle) {
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
const legacy = percentBarStyle;
|
|
78
|
+
if (legacy.CellText == undefined && legacy.CellTextPosition == undefined) {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
const migrated = migrateLegacyPercentBarCellText(legacy);
|
|
82
|
+
delete legacy.CellText;
|
|
83
|
+
delete legacy.CellTextPosition;
|
|
84
|
+
if (migrated && !percentBarStyle.CellTextProperties) {
|
|
85
|
+
percentBarStyle.CellTextProperties = migrated;
|
|
86
|
+
this.logger.info(`Migrated v22 Percent Bar cell-text settings to per-value layout on column "${sc.ColumnId}" (v23).`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
62
90
|
/**
|
|
63
91
|
* `RowScope` (which row kinds — data / group / summary / total — render
|
|
64
92
|
* the style) was originally a Badge-only concept. It applies equally to
|
|
@@ -71,6 +99,59 @@ export class VersionUpgrade23 extends VersionUpgrade {
|
|
|
71
99
|
* Then delete the nested copy so we only have one source of truth going
|
|
72
100
|
* forward.
|
|
73
101
|
*/
|
|
102
|
+
/**
|
|
103
|
+
* v22 Badge icon settings lived as four flat keys on
|
|
104
|
+
* `BadgeStyleDefinition`: `Icon`, `IconPosition`, `IconOnly` (and the
|
|
105
|
+
* v23 canary-only `IconGap`). v23 groups them under
|
|
106
|
+
* `IconProperties: { Icon, Position, Gap, IconOnly }`.
|
|
107
|
+
*
|
|
108
|
+
* Migration: per badge, if any of the flat keys are present, build
|
|
109
|
+
* `IconProperties` (renaming `IconPosition → Position` and `IconGap → Gap`,
|
|
110
|
+
* leaving `IconOnly` as-is) and strip the flat keys from the parent.
|
|
111
|
+
* `IconProperties.Icon` is required, so if the only flat fields set were
|
|
112
|
+
* decoration flags (`IconPosition` / `IconOnly` / `IconGap`) without an
|
|
113
|
+
* `Icon`, those flags are dropped (they had no effect anyway).
|
|
114
|
+
*/
|
|
115
|
+
migrateBadgeIconProperties(state) {
|
|
116
|
+
const columns = state.StyledColumn?.StyledColumns;
|
|
117
|
+
if (!columns?.length) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
for (const sc of columns) {
|
|
121
|
+
const badges = sc.BadgeStyle?.Badges;
|
|
122
|
+
if (!badges?.length) {
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
let didMigrate = false;
|
|
126
|
+
for (const badge of badges) {
|
|
127
|
+
const hasAnyFlatKey = badge.Icon !== undefined ||
|
|
128
|
+
badge.IconPosition !== undefined ||
|
|
129
|
+
badge.IconGap !== undefined ||
|
|
130
|
+
badge.IconOnly !== undefined;
|
|
131
|
+
if (!hasAnyFlatKey) {
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
if (badge.Icon && !badge.IconProperties) {
|
|
135
|
+
const next = { Icon: badge.Icon };
|
|
136
|
+
if (badge.IconPosition !== undefined)
|
|
137
|
+
next.Position = badge.IconPosition;
|
|
138
|
+
if (badge.IconGap !== undefined)
|
|
139
|
+
next.Gap = badge.IconGap;
|
|
140
|
+
if (badge.IconOnly !== undefined)
|
|
141
|
+
next.IconOnly = badge.IconOnly;
|
|
142
|
+
badge.IconProperties = next;
|
|
143
|
+
}
|
|
144
|
+
delete badge.Icon;
|
|
145
|
+
delete badge.IconPosition;
|
|
146
|
+
delete badge.IconGap;
|
|
147
|
+
delete badge.IconOnly;
|
|
148
|
+
didMigrate = true;
|
|
149
|
+
}
|
|
150
|
+
if (didMigrate) {
|
|
151
|
+
this.logger.info(`Migrated flat Badge icon settings to IconProperties on column "${sc.ColumnId}" (v23).`);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
74
155
|
liftBadgeStyleRowScope(state) {
|
|
75
156
|
const columns = state.StyledColumn?.StyledColumns;
|
|
76
157
|
if (!columns?.length) {
|
package/src/types.d.ts
CHANGED
|
@@ -194,7 +194,18 @@ export type { ExportState, Report, ReportData, ReportColumn, ReportSchedule, Sys
|
|
|
194
194
|
export type { ColumnFilter, ColumnFilterPredicate, SystemFilterPredicateIds, SystemFilterPredicateId, PredicatesOperator, } from './AdaptableState/Common/ColumnFilter';
|
|
195
195
|
export type { GridFilter } from './AdaptableState/Common/GridFilter';
|
|
196
196
|
export type { FormatColumn, FormatColumnState, FormatColumnRule, FormatColumnPredicate, SystemFormatColumnPredicateId, SystemFormatColumnPredicateIds, ColumnGroupScope, FormatColumnTarget, FormatColumnConfig, } from './AdaptableState/FormatColumnState';
|
|
197
|
-
export type { StyledColumn, StyledColumnState
|
|
197
|
+
export type { StyledColumn, StyledColumnState } from './AdaptableState/StyledColumnState';
|
|
198
|
+
export type { CellColorRange, ColumnComparison, DynamicRangeEndpoint, NumericStyledColumn, RangeValueType, } from './AdaptableState/StyledColumns/Common/NumericStyledColumn';
|
|
199
|
+
export type { CellTextOption, CellTextOptions, } from './AdaptableState/StyledColumns/Common/CellTextOptions';
|
|
200
|
+
export type { BarChartMarker } from './AdaptableState/StyledColumns/Common/BarChartMarker';
|
|
201
|
+
export type { BadgeDensity, BadgeIconProperties, BadgeOverflowMode, BadgePillStyle, BadgeShape, BadgeStyle, BadgeStyleDefinition, BadgeStylePredicate, SystemBadgeStylePredicateId, SystemBadgeStylePredicateIds, } from './AdaptableState/StyledColumns/BadgeStyle';
|
|
202
|
+
export type { BulletChartBarProperties, BulletChartStyle, BulletChartTarget, BulletChartTargetDefinition, BulletChartTargetProperties, } from './AdaptableState/StyledColumns/BulletChartStyle';
|
|
203
|
+
export type { GradientStyle, GradientZeroCentredColors, } from './AdaptableState/StyledColumns/GradientStyle';
|
|
204
|
+
export type { IconStyle, IconStyleBuiltInPreset, IconStyleFallback, IconStyleMapping, IconStyleMatchMode, IconStyleSpec, } from './AdaptableState/StyledColumns/IconStyle';
|
|
205
|
+
export type { PercentBarStyle } from './AdaptableState/StyledColumns/PercentBarStyle';
|
|
206
|
+
export type { RangeBarBound, RangeBarOutOfRangeProperties, RangeBarReferenceProperties, RangeBarStyle, RangeBarTrackProperties, } from './AdaptableState/StyledColumns/RangeBarStyle';
|
|
207
|
+
export type { RatingIconShape, RatingStyle, } from './AdaptableState/StyledColumns/RatingStyle';
|
|
208
|
+
export type { SparklineStyle } from './AdaptableState/StyledColumns/SparklineStyle';
|
|
198
209
|
export type { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue, FreeTextColumnSettings, } from './AdaptableState/FreeTextColumnState';
|
|
199
210
|
export type { StatusBarState, AdaptableStatusBar } from './AdaptableState/StatusBarState';
|
|
200
211
|
export type { IPushPullDomain, IPushPullReport, IPushPullState, } from './AdaptableState/IPushPullState';
|