@adaptabletools/adaptable 13.0.0-canary.8 → 13.0.0

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.
Files changed (263) hide show
  1. package/agGrid.d.ts +10 -10
  2. package/agGrid.js +10 -10
  3. package/base.css +1231 -733
  4. package/base.css.map +1 -0
  5. package/bundle.cjs.js +237 -220
  6. package/index.css +1249 -734
  7. package/index.css.map +1 -0
  8. package/package.json +5 -5
  9. package/publishTimestamp.d.ts +1 -1
  10. package/publishTimestamp.js +1 -1
  11. package/src/AdaptableInterfaces/IAdaptable.d.ts +7 -3
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +0 -2
  13. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +116 -35
  14. package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
  15. package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +32 -0
  16. package/src/{Api/ConditionalStyleApi.js → AdaptableOptions/FinsemblePluginOptions.js} +0 -0
  17. package/src/AdaptableOptions/GeneralOptions.d.ts +0 -6
  18. package/src/AdaptableOptions/LayoutOptions.d.ts +2 -1
  19. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
  20. package/src/Api/AdaptableApi.d.ts +2 -5
  21. package/src/Api/ColumnApi.d.ts +8 -2
  22. package/src/Api/ConfigApi.d.ts +0 -6
  23. package/src/Api/ExportApi.d.ts +6 -6
  24. package/src/Api/FinsembleApi.d.ts +10 -0
  25. package/src/{Strategy/Interface/IConditionalStyleModule.js → Api/FinsembleApi.js} +0 -0
  26. package/src/Api/FormatColumnApi.d.ts +46 -73
  27. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  28. package/src/Api/Implementation/AdaptableApiImpl.js +2 -3
  29. package/src/Api/Implementation/AlertApiImpl.js +9 -4
  30. package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
  31. package/src/Api/Implementation/ColumnApiImpl.js +15 -11
  32. package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -2
  33. package/src/Api/Implementation/ConfigApiImpl.js +0 -11
  34. package/src/Api/Implementation/ExportApiImpl.d.ts +4 -4
  35. package/src/Api/Implementation/ExportApiImpl.js +14 -14
  36. package/src/Api/Implementation/FlashingCellApiImpl.js +4 -1
  37. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +24 -22
  38. package/src/Api/Implementation/FormatColumnApiImpl.js +57 -224
  39. package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
  40. package/src/Api/Implementation/InternalApiImpl.js +4 -3
  41. package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -0
  42. package/src/Api/Implementation/PluginsApiImpl.js +6 -0
  43. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -1
  44. package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -15
  45. package/src/Api/Implementation/ScopeApiImpl.d.ts +1 -1
  46. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +25 -0
  47. package/src/Api/Implementation/StyledColumnApiImpl.js +193 -0
  48. package/src/Api/InternalApi.d.ts +1 -1
  49. package/src/Api/PluginsApi.d.ts +5 -0
  50. package/src/Api/QueryLanguageApi.d.ts +3 -2
  51. package/src/Api/ScopeApi.d.ts +1 -1
  52. package/src/Api/StyledColumnApi.d.ts +106 -0
  53. package/src/Api/StyledColumnApi.js +2 -0
  54. package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
  55. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  56. package/src/PredefinedConfig/Common/Types.d.ts +3 -3
  57. package/src/PredefinedConfig/Common/Types.js +1 -0
  58. package/src/PredefinedConfig/ConditionalStyleState.d.ts +10 -19
  59. package/src/PredefinedConfig/FormatColumnState.d.ts +6 -96
  60. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -0
  61. package/src/PredefinedConfig/StyledColumnState.d.ts +119 -0
  62. package/src/PredefinedConfig/StyledColumnState.js +2 -0
  63. package/src/Redux/ActionsReducers/PluginsRedux.d.ts +4 -4
  64. package/src/Redux/ActionsReducers/PluginsRedux.js +5 -5
  65. package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +49 -0
  66. package/src/Redux/ActionsReducers/StyledColumnRedux.js +92 -0
  67. package/src/Redux/DeadRedux.d.ts +6 -0
  68. package/src/Redux/DeadRedux.js +19 -1
  69. package/src/Redux/Store/AdaptableStore.js +9 -8
  70. package/src/Strategy/ConditionalStyleModule.d.ts +2 -27
  71. package/src/Strategy/ConditionalStyleModule.js +0 -219
  72. package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
  73. package/src/Strategy/DataChangeHistoryModule.js +12 -0
  74. package/src/Strategy/FormatColumnModule.d.ts +0 -2
  75. package/src/Strategy/FormatColumnModule.js +30 -221
  76. package/src/Strategy/LayoutModule.js +0 -4
  77. package/src/Strategy/StyledColumnModule.d.ts +24 -0
  78. package/src/Strategy/StyledColumnModule.js +165 -0
  79. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.d.ts +1 -1
  80. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +3 -4
  81. package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +1 -16
  82. package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
  83. package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
  84. package/src/Utilities/Constants/ModuleConstants.js +4 -1
  85. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -13
  86. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
  87. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +1 -1
  88. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -4
  89. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
  90. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +3 -4
  91. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -1
  92. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -4
  93. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +2 -5
  94. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -4
  95. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  96. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -4
  97. package/src/Utilities/ObjectFactory.d.ts +5 -2
  98. package/src/Utilities/ObjectFactory.js +14 -7
  99. package/src/Utilities/Services/ModuleService.js +2 -2
  100. package/src/Utilities/Services/QueryLanguageService.d.ts +1 -3
  101. package/src/Utilities/Services/QueryLanguageService.js +49 -53
  102. package/src/Utilities/Services/ReportService.js +6 -6
  103. package/src/View/AdaptablePopover/index.js +1 -1
  104. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +15 -14
  105. package/src/View/Alert/Wizard/AlertButtonsEditor.js +24 -1
  106. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -5
  107. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -3
  108. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -3
  109. package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
  110. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  111. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
  112. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
  113. package/src/View/Components/AdaptableObjectRow/index.js +1 -6
  114. package/src/View/Components/Buttons/ButtonInfo.d.ts +1 -3
  115. package/src/View/Components/Buttons/ButtonInfo.js +3 -5
  116. package/src/View/Components/EntityRulesEditor/index.js +8 -17
  117. package/src/View/Components/FilterForm/FilterForm.js +11 -16
  118. package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
  119. package/src/View/Components/FilterForm/QuickFilterForm.js +7 -13
  120. package/src/View/Components/NewScopeComponent.js +3 -3
  121. package/src/View/Components/Panels/PanelWithButton.js +1 -5
  122. package/src/View/Components/Panels/PanelWithImage.js +1 -5
  123. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -2
  124. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -0
  125. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +3 -16
  126. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
  127. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +5 -5
  128. package/src/View/Components/RangesComponent.d.ts +8 -1
  129. package/src/View/Components/RangesComponent.js +60 -24
  130. package/src/View/Components/ScopeComponent.js +6 -6
  131. package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
  132. package/src/View/Components/Selectors/ColumnSelector.js +2 -1
  133. package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
  134. package/src/View/Components/StyleComponent.js +14 -19
  135. package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -11
  136. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +21 -9
  137. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  138. package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
  139. package/src/View/DataSet/DataSetSelector.js +1 -1
  140. package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
  141. package/src/View/Export/ExportViewPanel.d.ts +1 -1
  142. package/src/View/Export/ExportViewPanel.js +4 -4
  143. package/src/View/Export/ReportExportDropdown.js +1 -1
  144. package/src/View/Export/Wizard/ReportNameWizardSection.js +10 -11
  145. package/src/View/Filter/FilterSummary.d.ts +1 -1
  146. package/src/View/Filter/FilterViewPanel.d.ts +1 -1
  147. package/src/View/FlashingCell/FlashingCellStyle.js +3 -3
  148. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +3 -3
  149. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +6 -6
  150. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
  151. package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
  152. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +27 -27
  153. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +4 -5
  154. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
  155. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +2 -28
  156. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +3 -3
  157. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +6 -301
  158. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +3 -10
  159. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
  160. package/src/View/GridInfo/ColumnInfoComponent.js +0 -7
  161. package/src/View/Layout/LayoutRadioSelector.js +1 -1
  162. package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
  163. package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
  164. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  165. package/src/View/Layout/Wizard/sections/ColumnsSection.js +7 -6
  166. package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
  167. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +1 -1
  168. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
  169. package/src/View/Query/QueryViewPanel.d.ts +1 -1
  170. package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
  171. package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
  172. package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
  173. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -5
  174. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +1 -1
  175. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +5 -5
  176. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
  177. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -5
  178. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -2
  179. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +3 -3
  180. package/src/View/SmartEdit/SmartEditPopup.js +3 -3
  181. package/src/View/SpecialColumnSettingsWizardStep.js +10 -10
  182. package/src/View/StateManagement/StateManagementPopup.js +4 -4
  183. package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +7 -0
  184. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +77 -0
  185. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +9 -0
  186. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +65 -0
  187. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.d.ts +9 -0
  188. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.js +234 -0
  189. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.d.ts +7 -0
  190. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +59 -0
  191. package/src/View/SystemStatus/SystemStatusEntityRow.js +4 -6
  192. package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
  193. package/src/View/TeamSharing/SharedEntityObjectView.js +1 -1
  194. package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
  195. package/src/View/Theme/ThemePopup.js +1 -1
  196. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
  197. package/src/View/Wizard/OnePageAdaptableWizard.js +1 -2
  198. package/src/agGrid/ActionColumnRenderer.d.ts +2 -0
  199. package/src/agGrid/ActionColumnRenderer.js +94 -62
  200. package/src/agGrid/Adaptable.d.ts +12 -13
  201. package/src/agGrid/Adaptable.js +162 -236
  202. package/src/agGrid/CheckboxRenderer.js +1 -1
  203. package/src/agGrid/FilterWrapper.js +60 -16
  204. package/src/agGrid/FloatingFilterWrapper.d.ts +2 -2
  205. package/src/agGrid/FloatingFilterWrapper.js +71 -32
  206. package/src/agGrid/PercentBarRenderer.d.ts +6 -2
  207. package/src/agGrid/PercentBarRenderer.js +19 -17
  208. package/src/agGrid/agGridHelper.d.ts +6 -2
  209. package/src/agGrid/agGridHelper.js +17 -17
  210. package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
  211. package/src/agGrid/createAgStatusPanelComponent.js +17 -0
  212. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +4 -1
  213. package/src/agGrid/editors/AdaptableDateEditor/index.js +84 -17
  214. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
  215. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -3
  216. package/src/agGrid/editors/AdaptableNumberEditor/index.js +78 -27
  217. package/src/agGrid/weightedAverage.js +19 -11
  218. package/src/components/CheckBox/index.js +7 -2
  219. package/src/components/Datepicker/index.d.ts +1 -1
  220. package/src/components/ExpressionEditor/BaseEditorInput.js +13 -32
  221. package/src/components/ExpressionEditor/index.js +9 -17
  222. package/src/components/FormLayout/index.js +1 -1
  223. package/src/components/StylePreview.js +2 -1
  224. package/src/components/icons/brush.d.ts +3 -0
  225. package/src/components/icons/brush.js +7 -0
  226. package/src/components/icons/index.js +2 -0
  227. package/src/metamodel/adaptable.metamodel.d.ts +178 -104
  228. package/src/metamodel/adaptable.metamodel.js +1 -1
  229. package/src/renderReactRoot.d.ts +2 -0
  230. package/src/renderReactRoot.js +11 -9
  231. package/src/types.d.ts +7 -5
  232. package/themes/dark.css +8 -4
  233. package/themes/dark.css.map +1 -0
  234. package/themes/light.css +4 -1
  235. package/themes/light.css.map +1 -0
  236. package/version.d.ts +1 -1
  237. package/version.js +1 -1
  238. package/src/AdaptableComponents.d.ts +0 -1
  239. package/src/AdaptableComponents.js +0 -5
  240. package/src/Api/ConditionalStyleApi.d.ts +0 -128
  241. package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +0 -29
  242. package/src/Api/Implementation/ConditionalStyleApiImpl.js +0 -98
  243. package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +0 -49
  244. package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +0 -95
  245. package/src/Strategy/Interface/IConditionalStyleModule.d.ts +0 -6
  246. package/src/Strategy/Utilities/getStyleViewItems.d.ts +0 -2
  247. package/src/Strategy/Utilities/getStyleViewItems.js +0 -16
  248. package/src/View/ConditionalStyle/ConditionalStylePopupHeader.d.ts +0 -2
  249. package/src/View/ConditionalStyle/ConditionalStylePopupHeader.js +0 -18
  250. package/src/View/ConditionalStyle/ConditionalStyleSummary.d.ts +0 -25
  251. package/src/View/ConditionalStyle/ConditionalStyleSummary.js +0 -108
  252. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.d.ts +0 -9
  253. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +0 -42
  254. package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.d.ts +0 -8
  255. package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +0 -43
  256. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +0 -8
  257. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +0 -29
  258. package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.d.ts +0 -8
  259. package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +0 -23
  260. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.d.ts +0 -6
  261. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +0 -114
  262. package/src/View/ConditionalStyle/Wizard/DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE.d.ts +0 -1
  263. package/src/View/ConditionalStyle/Wizard/DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE.js +0 -4
@@ -0,0 +1,119 @@
1
+ import { ConfigState } from './ConfigState';
2
+ import { SuspendableObject } from './Common/SuspendableObject';
3
+ /**
4
+ * Predefined Configuration for Styled Column Module
5
+ */
6
+ export interface StyledColumnState extends ConfigState {
7
+ /**
8
+ * Collection of Special Column Styles
9
+ */
10
+ StyledColumns?: StyledColumn[];
11
+ }
12
+ /**
13
+ * Object used in Special Column Style function
14
+ */
15
+ export interface StyledColumn extends SuspendableObject {
16
+ /**
17
+ * Column being styled
18
+ */
19
+ ColumnId: string;
20
+ /**
21
+ * Styles a numeric column with a Gradient
22
+ */
23
+ GradientStyle?: GradientStyle;
24
+ /**
25
+ * Styles a numeric column so each cell displays a 'bar'
26
+ */
27
+ PercentBarStyle?: PercentBarStyle;
28
+ /**
29
+ * Renders a Checkbox in a boolean column
30
+ */
31
+ CheckBoxStyle?: boolean;
32
+ }
33
+ /**
34
+ * Style used to display Percent Bars in Special Column Style
35
+ */
36
+ export interface PercentBarStyle extends NumericStyledColumn {
37
+ /**
38
+ * Ranges (e.g. to allow a traffic light effect)
39
+ */
40
+ CellRanges?: CellColorRange[];
41
+ /**
42
+ * Compares Cell values to another Column
43
+ */
44
+ ColumnComparison?: ColumnComparison;
45
+ /**
46
+ * Whether Cell shows Cell Value, Percent Value, both or none
47
+ */
48
+ CellText?: CellTextOptions;
49
+ /**
50
+ * Whether Tooltip shows Cell Value, Percent Value, both or none
51
+ */
52
+ ToolTipText?: CellTextOptions;
53
+ /**
54
+ * Background colour for 'Percent Bar'; leave unset if none required
55
+ * @defaultValue Gray
56
+ */
57
+ BackColor?: string;
58
+ }
59
+ export interface NumericStyledColumn {
60
+ }
61
+ /**
62
+ * Used to display Gradient Styles in Special Column Style
63
+ */
64
+ export interface GradientStyle extends NumericStyledColumn {
65
+ /**
66
+ * Ranges (e.g. to allow a traffic light effect)
67
+ */
68
+ CellRanges?: CellColorRange[];
69
+ /**
70
+ * Compares cell values to another Column
71
+ */
72
+ ColumnComparison?: ColumnComparison;
73
+ }
74
+ /**
75
+ * Defines which Colours to show in Gradient and Percent Bar Styles
76
+ */
77
+ export interface CellColorRange {
78
+ /**
79
+ * Start number of Range
80
+ */
81
+ Min: number | 'Col-Min';
82
+ /**
83
+ * End number of Range
84
+ */
85
+ Max: number | 'Col-Max';
86
+ /**
87
+ * Cell colour to use for values that fall inside Range
88
+ */
89
+ Color: string;
90
+ /**
91
+ * Reverses the Gradient so the lower the cell value the darker the colour
92
+ */
93
+ ReverseGradient?: boolean;
94
+ }
95
+ /**
96
+ * Enables a Percent Bar or Gradient Style to use another column in its calculations
97
+ */
98
+ export interface ColumnComparison {
99
+ /**
100
+ * Start value - either numeric or Column name
101
+ */
102
+ MinValue: number | string;
103
+ /**
104
+ * End value - either numeric or Column name
105
+ */
106
+ MaxValue: number | string;
107
+ /**
108
+ * Colour to use for the Comparison
109
+ */
110
+ Color: string;
111
+ }
112
+ /**
113
+ * Array of CellTextOption available in Special Column Styles
114
+ */
115
+ export declare type CellTextOptions = CellTextOption[];
116
+ /**
117
+ * Text optionally to show in a Special Column Style special style: 'CellValue' or 'PercentageValue'
118
+ */
119
+ export declare type CellTextOption = 'CellValue' | 'PercentageValue';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -162,19 +162,19 @@ export declare const GLUE42_LIVE_REPORT_CLEAR = "GLUE42_LIVE_REPORT_CLEAR";
162
162
  /**
163
163
  * @ReduxAction Glue43 is now available
164
164
  */
165
- export declare const SET_GLUE42_AVAILABLE_ON = "SET_GLUE42_AVAILABLE_ON";
165
+ export declare const GLUE42_SET_AVAILABLE_ON = "GLUE42_SET_AVAILABLE_ON";
166
166
  /**
167
167
  * @ReduxAction Glue43 is no longer available
168
168
  */
169
- export declare const SET_GLUE42_AVAILABLE_OFF = "SET_GLUE42_AVAILABLE_OFF";
169
+ export declare const GLUE42_SET_AVAILABLE_OFF = "GLUE42_SET_AVAILABLE_OFF";
170
170
  /**
171
171
  * @ReduxAction Glue43 is now running
172
172
  */
173
- export declare const SET_GLUE42_RUNNING_ON = "SET_GLUE42_RUNNING_ON";
173
+ export declare const GLUE42_SET_RUNNING_ON = "GLUE42_SET_RUNNING_ON";
174
174
  /**
175
175
  * @ReduxAction Glue43 is no longer running
176
176
  */
177
- export declare const SET_GLUE42_RUNNING_OFF = "SET_GLUE42_RUNNING_OFF";
177
+ export declare const GLUE42_SET_RUNNING_OFF = "SET_GLGLUE42_SET_RUNNING_OFFUE42_RUNNING_OFF";
178
178
  export interface PluginsAction extends Redux.Action {
179
179
  pluginState: any;
180
180
  pluginId: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PluginsReducer = exports.PluginsSetPluginState = exports.SET_GLUE42_RUNNING_OFF = exports.SET_GLUE42_RUNNING_ON = exports.SET_GLUE42_AVAILABLE_OFF = exports.SET_GLUE42_AVAILABLE_ON = exports.GLUE42_LIVE_REPORT_CLEAR = exports.GLUE42_LIVE_REPORT_SET = exports.GLUE42_STOP_LIVE_DATA = exports.GLUE42_START_LIVE_DATA = exports.GLUE42_SEND_SNAPSHOT = exports.GLUE42_SET_THROTTLE_TIME = exports.GLUE42_SET_LOGIN_ERROR_MESSAGE = exports.GLUE42_LOGIN = exports.OPENFIN_SET_CURRENT_REPORTNAME = exports.OPENFIN_SET_RUNNING_OFF = exports.OPENFIN_SET_RUNNING_ON = exports.OPENFIN_SET_AVAILABLE_OFF = exports.OPENFIN_SET_AVAILABLE_ON = exports.OPENFIN_LIVE_REPORT_CLEAR = exports.OPENFIN_LIVE_REPORT_SET = exports.OPENFIN_STOP_LIVE_DATA = exports.OPENFIN_START_LIVE_DATA = exports.IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES = exports.IPUSHPULL_SET_CURRENT_PAGE = exports.IPUSHPULL_SET_CURRENT_FOLDER = exports.IPUSHPULL_SET_CURRENT_REPORTNAME = exports.IPUSHPULL_DOMAIN_PAGES_CLEAR = exports.IPUSHPULL_DOMAIN_PAGES_SET = exports.IPUSHPULL_LIVE_REPORT_CLEAR = exports.IPUSHPULL_LIVE_REPORT_SET = exports.IPUSHPULL_SET_RUNNING_OFF = exports.IPUSHPULL_SET_RUNNING_ON = exports.IPUSHPULL_SET_AVAILABLE_OFF = exports.IPUSHPULL_SET_AVAILABLE_ON = exports.IPUSHPULL_SET_LOGIN_DETAILS = exports.IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = exports.IPUSHPULL_LOGOUT = exports.IPUSHPULL_LOGIN = exports.IPUSHPULL_ADD_PAGE = exports.IPUSHPULL_STOP_LIVE_DATA = exports.IPUSHPULL_START_LIVE_DATA = exports.IPUSHPULL_REPORT_SELECT = exports.IPUSHPULL_SEND_SNAPSHOT = exports.IPUSHPULL_SET_THROTTLE_TIME = exports.PLUGINS_SET_PLUGIN_STATE = void 0;
3
+ exports.PluginsReducer = exports.PluginsSetPluginState = exports.GLUE42_SET_RUNNING_OFF = exports.GLUE42_SET_RUNNING_ON = exports.GLUE42_SET_AVAILABLE_OFF = exports.GLUE42_SET_AVAILABLE_ON = exports.GLUE42_LIVE_REPORT_CLEAR = exports.GLUE42_LIVE_REPORT_SET = exports.GLUE42_STOP_LIVE_DATA = exports.GLUE42_START_LIVE_DATA = exports.GLUE42_SEND_SNAPSHOT = exports.GLUE42_SET_THROTTLE_TIME = exports.GLUE42_SET_LOGIN_ERROR_MESSAGE = exports.GLUE42_LOGIN = exports.OPENFIN_SET_CURRENT_REPORTNAME = exports.OPENFIN_SET_RUNNING_OFF = exports.OPENFIN_SET_RUNNING_ON = exports.OPENFIN_SET_AVAILABLE_OFF = exports.OPENFIN_SET_AVAILABLE_ON = exports.OPENFIN_LIVE_REPORT_CLEAR = exports.OPENFIN_LIVE_REPORT_SET = exports.OPENFIN_STOP_LIVE_DATA = exports.OPENFIN_START_LIVE_DATA = exports.IPUSHPULL_SET_CURRENT_AVAILABLE_PAGES = exports.IPUSHPULL_SET_CURRENT_PAGE = exports.IPUSHPULL_SET_CURRENT_FOLDER = exports.IPUSHPULL_SET_CURRENT_REPORTNAME = exports.IPUSHPULL_DOMAIN_PAGES_CLEAR = exports.IPUSHPULL_DOMAIN_PAGES_SET = exports.IPUSHPULL_LIVE_REPORT_CLEAR = exports.IPUSHPULL_LIVE_REPORT_SET = exports.IPUSHPULL_SET_RUNNING_OFF = exports.IPUSHPULL_SET_RUNNING_ON = exports.IPUSHPULL_SET_AVAILABLE_OFF = exports.IPUSHPULL_SET_AVAILABLE_ON = exports.IPUSHPULL_SET_LOGIN_DETAILS = exports.IPUSHPULL_SET_LOGIN_ERROR_MESSAGE = exports.IPUSHPULL_LOGOUT = exports.IPUSHPULL_LOGIN = exports.IPUSHPULL_ADD_PAGE = exports.IPUSHPULL_STOP_LIVE_DATA = exports.IPUSHPULL_START_LIVE_DATA = exports.IPUSHPULL_REPORT_SELECT = exports.IPUSHPULL_SEND_SNAPSHOT = exports.IPUSHPULL_SET_THROTTLE_TIME = exports.PLUGINS_SET_PLUGIN_STATE = void 0;
4
4
  /**
5
5
  * @ReduxAction Plugins have been instantiated
6
6
  */
@@ -164,19 +164,19 @@ exports.GLUE42_LIVE_REPORT_CLEAR = 'GLUE42_LIVE_REPORT_CLEAR';
164
164
  /**
165
165
  * @ReduxAction Glue43 is now available
166
166
  */
167
- exports.SET_GLUE42_AVAILABLE_ON = 'SET_GLUE42_AVAILABLE_ON';
167
+ exports.GLUE42_SET_AVAILABLE_ON = 'GLUE42_SET_AVAILABLE_ON';
168
168
  /**
169
169
  * @ReduxAction Glue43 is no longer available
170
170
  */
171
- exports.SET_GLUE42_AVAILABLE_OFF = 'SET_GLUE42_AVAILABLE_OFF';
171
+ exports.GLUE42_SET_AVAILABLE_OFF = 'GLUE42_SET_AVAILABLE_OFF';
172
172
  /**
173
173
  * @ReduxAction Glue43 is now running
174
174
  */
175
- exports.SET_GLUE42_RUNNING_ON = 'SET_GLUE42_RUNNING_ON';
175
+ exports.GLUE42_SET_RUNNING_ON = 'GLUE42_SET_RUNNING_ON';
176
176
  /**
177
177
  * @ReduxAction Glue43 is no longer running
178
178
  */
179
- exports.SET_GLUE42_RUNNING_OFF = 'SET_GLUE42_RUNNING_OFF';
179
+ exports.GLUE42_SET_RUNNING_OFF = 'SET_GLGLUE42_SET_RUNNING_OFFUE42_RUNNING_OFF';
180
180
  const PluginsSetPluginState = (pluginId, pluginState) => ({
181
181
  type: exports.PLUGINS_SET_PLUGIN_STATE,
182
182
  pluginId,
@@ -0,0 +1,49 @@
1
+ import { StyledColumnState, StyledColumn } from '../../PredefinedConfig/StyledColumnState';
2
+ import * as Redux from 'redux';
3
+ /**
4
+ * @ReduxAction A Special Column Style has been added
5
+ */
6
+ export declare const STYLED_COLUMN_ADD = "STYLED_COLUMN_ADD";
7
+ /**
8
+ * @ReduxAction A Special Column Style has been edited
9
+ */
10
+ export declare const STYLED_COLUMN_EDIT = "STYLED_COLUMN_EDIT";
11
+ /**
12
+ * @ReduxAction A Special Column Style has been deleted
13
+ */
14
+ export declare const STYLED_COLUMN_DELETE = "STYLED_COLUMN_DELETE";
15
+ /**
16
+ * @ReduxAction StyledColumn Module is ready
17
+ */
18
+ export declare const STYLED_COLUMN_READY = "STYLED_COLUMN_READY";
19
+ /**
20
+ * @ReduxAction StyledColumn Module is suspended
21
+ */
22
+ export declare const STYLED_COLUMN_SUSPEND = "STYLED_COLUMN_SUSPEND";
23
+ /**
24
+ * @ReduxAction StyledColumn Module is unsuspended, or activated
25
+ */
26
+ export declare const STYLED_COLUMN_UNSUSPEND = "STYLED_COLUMN_UNSUSPEND";
27
+ export interface StyledColumnAction extends Redux.Action {
28
+ StyledColumn: StyledColumn;
29
+ }
30
+ export interface StyledColumnAddAction extends StyledColumnAction {
31
+ }
32
+ export interface StyledColumnEditAction extends StyledColumnAction {
33
+ }
34
+ export interface StyledColumnDeleteAction extends StyledColumnAction {
35
+ }
36
+ export interface StyledColumnSuspendAction extends StyledColumnAction {
37
+ }
38
+ export interface StyledColumnUnSuspendAction extends StyledColumnAction {
39
+ }
40
+ export interface StyledColumnReadyAction extends Redux.Action {
41
+ StyledColumnState: StyledColumnState;
42
+ }
43
+ export declare const StyledColumnAdd: (formatColumn: StyledColumn) => StyledColumnAddAction;
44
+ export declare const StyledColumnEdit: (formatColumn: StyledColumn) => StyledColumnEditAction;
45
+ export declare const StyledColumnDelete: (formatColumn: StyledColumn) => StyledColumnDeleteAction;
46
+ export declare const StyledColumnSuspend: (formatColumn: StyledColumn) => StyledColumnSuspendAction;
47
+ export declare const StyledColumnUnSuspend: (formatColumn: StyledColumn) => StyledColumnSuspendAction;
48
+ export declare const StyledColumnReady: (formatColumnState: StyledColumnState) => StyledColumnReadyAction;
49
+ export declare const StyledColumnReducer: Redux.Reducer<StyledColumnState>;
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StyledColumnReducer = exports.StyledColumnReady = exports.StyledColumnUnSuspend = exports.StyledColumnSuspend = exports.StyledColumnDelete = exports.StyledColumnEdit = exports.StyledColumnAdd = exports.STYLED_COLUMN_UNSUSPEND = exports.STYLED_COLUMN_SUSPEND = exports.STYLED_COLUMN_READY = exports.STYLED_COLUMN_DELETE = exports.STYLED_COLUMN_EDIT = exports.STYLED_COLUMN_ADD = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
+ const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
7
+ const utils_1 = require("./utils");
8
+ /**
9
+ * @ReduxAction A Special Column Style has been added
10
+ */
11
+ exports.STYLED_COLUMN_ADD = 'STYLED_COLUMN_ADD';
12
+ /**
13
+ * @ReduxAction A Special Column Style has been edited
14
+ */
15
+ exports.STYLED_COLUMN_EDIT = 'STYLED_COLUMN_EDIT';
16
+ /**
17
+ * @ReduxAction A Special Column Style has been deleted
18
+ */
19
+ exports.STYLED_COLUMN_DELETE = 'STYLED_COLUMN_DELETE';
20
+ /**
21
+ * @ReduxAction StyledColumn Module is ready
22
+ */
23
+ exports.STYLED_COLUMN_READY = 'STYLED_COLUMN_READY';
24
+ /**
25
+ * @ReduxAction StyledColumn Module is suspended
26
+ */
27
+ exports.STYLED_COLUMN_SUSPEND = 'STYLED_COLUMN_SUSPEND';
28
+ /**
29
+ * @ReduxAction StyledColumn Module is unsuspended, or activated
30
+ */
31
+ exports.STYLED_COLUMN_UNSUSPEND = 'STYLED_COLUMN_UNSUSPEND';
32
+ const StyledColumnAdd = (formatColumn) => ({
33
+ type: exports.STYLED_COLUMN_ADD,
34
+ StyledColumn: formatColumn,
35
+ });
36
+ exports.StyledColumnAdd = StyledColumnAdd;
37
+ const StyledColumnEdit = (formatColumn) => ({
38
+ type: exports.STYLED_COLUMN_EDIT,
39
+ StyledColumn: formatColumn,
40
+ });
41
+ exports.StyledColumnEdit = StyledColumnEdit;
42
+ const StyledColumnDelete = (formatColumn) => ({
43
+ type: exports.STYLED_COLUMN_DELETE,
44
+ StyledColumn: formatColumn,
45
+ });
46
+ exports.StyledColumnDelete = StyledColumnDelete;
47
+ const StyledColumnSuspend = (formatColumn) => ({
48
+ type: exports.STYLED_COLUMN_SUSPEND,
49
+ StyledColumn: formatColumn,
50
+ });
51
+ exports.StyledColumnSuspend = StyledColumnSuspend;
52
+ const StyledColumnUnSuspend = (formatColumn) => ({
53
+ type: exports.STYLED_COLUMN_UNSUSPEND,
54
+ StyledColumn: formatColumn,
55
+ });
56
+ exports.StyledColumnUnSuspend = StyledColumnUnSuspend;
57
+ const StyledColumnReady = (formatColumnState) => ({
58
+ type: exports.STYLED_COLUMN_READY,
59
+ StyledColumnState: formatColumnState,
60
+ });
61
+ exports.StyledColumnReady = StyledColumnReady;
62
+ const initialState = {
63
+ StyledColumns: GeneralConstants_1.EMPTY_ARRAY,
64
+ };
65
+ const StyledColumnReducer = (state = initialState, action) => {
66
+ let formatColumns;
67
+ switch (action.type) {
68
+ case exports.STYLED_COLUMN_ADD: {
69
+ const actionStyledColumn = action.StyledColumn;
70
+ AdaptableHelper_1.default.addUuidAndSource(actionStyledColumn);
71
+ formatColumns = [].concat(state.StyledColumns);
72
+ formatColumns.push(actionStyledColumn);
73
+ return Object.assign(Object.assign({}, state), { StyledColumns: formatColumns });
74
+ }
75
+ case exports.STYLED_COLUMN_EDIT:
76
+ const actionStyledColumn = action.StyledColumn;
77
+ return Object.assign(Object.assign({}, state), { StyledColumns: state.StyledColumns.map((abObject) => abObject.Uuid === actionStyledColumn.Uuid ? actionStyledColumn : abObject) });
78
+ case exports.STYLED_COLUMN_DELETE: {
79
+ const actionStyledColumn = action.StyledColumn;
80
+ return Object.assign(Object.assign({}, state), { StyledColumns: state.StyledColumns.filter((abObject) => abObject.Uuid !== actionStyledColumn.Uuid) });
81
+ }
82
+ case exports.STYLED_COLUMN_SUSPEND: {
83
+ return Object.assign(Object.assign({}, state), { StyledColumns: (0, utils_1.changeIsSuspendInList)(action.StyledColumn, state.StyledColumns, true) });
84
+ }
85
+ case exports.STYLED_COLUMN_UNSUSPEND: {
86
+ return Object.assign(Object.assign({}, state), { StyledColumns: (0, utils_1.changeIsSuspendInList)(action.StyledColumn, state.StyledColumns, false) });
87
+ }
88
+ default:
89
+ return state;
90
+ }
91
+ };
92
+ exports.StyledColumnReducer = StyledColumnReducer;
@@ -19,3 +19,9 @@ export interface UpdatedRowClearAction extends Redux.Action {
19
19
  }
20
20
  export declare const UpdatedRowClear: () => UpdatedRowClearAction;
21
21
  export declare const UpdatedRowReducer: Redux.Reducer<any>;
22
+ export declare const CONDITIONAL_STYLE_DELETE = "CONDITIONAL_STYLE_DELETE";
23
+ export interface ConditionalStyleDeleteAction extends Redux.Action {
24
+ conditionalStyle: any;
25
+ }
26
+ export declare const ConditionalStyleDelete: (conditionalStyle: any) => ConditionalStyleDeleteAction;
27
+ export declare const ConditionalStyleReducer: Redux.Reducer<any>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatedRowReducer = exports.UpdatedRowClear = exports.UPDATED_ROW_CLEAR = exports.FlashingCellReducer = exports.FlashingCellClear = exports.FLASHING_CELL_CLEAR = exports.PercentBarReducer = exports.PercentBarClear = exports.PERCENT_BAR_CLEAR = exports.GradientColumnReducer = exports.GradientColumnClear = exports.GRADIENT_COLUMN_CLEAR = void 0;
3
+ exports.ConditionalStyleReducer = exports.ConditionalStyleDelete = exports.CONDITIONAL_STYLE_DELETE = exports.UpdatedRowReducer = exports.UpdatedRowClear = exports.UPDATED_ROW_CLEAR = exports.FlashingCellReducer = exports.FlashingCellClear = exports.FLASHING_CELL_CLEAR = exports.PercentBarReducer = exports.PercentBarClear = exports.PERCENT_BAR_CLEAR = exports.GradientColumnReducer = exports.GradientColumnClear = exports.GRADIENT_COLUMN_CLEAR = void 0;
4
4
  const initialGradientColumnState = {};
5
5
  exports.GRADIENT_COLUMN_CLEAR = 'GRADIENT_COLUMN_CLEAR';
6
6
  const GradientColumnClear = () => ({
@@ -65,3 +65,21 @@ const UpdatedRowReducer = (state = initialUpdatedRowState, action) => {
65
65
  }
66
66
  };
67
67
  exports.UpdatedRowReducer = UpdatedRowReducer;
68
+ const initialConditionalStyleState = {};
69
+ exports.CONDITIONAL_STYLE_DELETE = 'CONDITIONAL_STYLE_DELETE';
70
+ const ConditionalStyleDelete = (conditionalStyle) => ({
71
+ type: exports.CONDITIONAL_STYLE_DELETE,
72
+ conditionalStyle,
73
+ });
74
+ exports.ConditionalStyleDelete = ConditionalStyleDelete;
75
+ const ConditionalStyleReducer = (state = initialConditionalStyleState, action) => {
76
+ switch (action.type) {
77
+ case exports.CONDITIONAL_STYLE_DELETE: {
78
+ const actionConditionalStyle = action.conditionalStyle;
79
+ return Object.assign(Object.assign({}, state), { ConditionalStyles: state.ConditionalStyles.filter((abObject) => abObject.Uuid !== actionConditionalStyle.Uuid) });
80
+ }
81
+ default:
82
+ return state;
83
+ }
84
+ };
85
+ exports.ConditionalStyleReducer = ConditionalStyleReducer;
@@ -20,10 +20,10 @@ const GridRedux = tslib_1.__importStar(require("../ActionsReducers/GridRedux"));
20
20
  const SystemRedux = tslib_1.__importStar(require("../ActionsReducers/SystemRedux"));
21
21
  const PlusMinusRedux = tslib_1.__importStar(require("../ActionsReducers/PlusMinusRedux"));
22
22
  const ExportRedux = tslib_1.__importStar(require("../ActionsReducers/ExportRedux"));
23
- const ConditionalStyleRedux = tslib_1.__importStar(require("../ActionsReducers/ConditionalStyleRedux"));
24
23
  const QuickSearchRedux = tslib_1.__importStar(require("../ActionsReducers/QuickSearchRedux"));
25
24
  const ThemeRedux = tslib_1.__importStar(require("../ActionsReducers/ThemeRedux"));
26
25
  const FormatColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FormatColumnRedux"));
26
+ const StyledColumnRedux = tslib_1.__importStar(require("../ActionsReducers/StyledColumnRedux"));
27
27
  const ApplicationRedux = tslib_1.__importStar(require("../ActionsReducers/ApplicationRedux"));
28
28
  const FreeTextColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FreeTextColumnRedux"));
29
29
  const LayoutRedux = tslib_1.__importStar(require("../ActionsReducers/LayoutRedux"));
@@ -131,7 +131,6 @@ class AdaptableStore {
131
131
  FlashingCell: FlashingCellRedux.FlashingCellReducer,
132
132
  Application: ApplicationRedux.ApplicationReducer,
133
133
  CalculatedColumn: CalculatedColumnRedux.CalculatedColumnReducer,
134
- ConditionalStyle: ConditionalStyleRedux.ConditionalStyleReducer,
135
134
  CustomSort: CustomSortRedux.CustomSortReducer,
136
135
  Dashboard: DashboardRedux.DashboardReducer,
137
136
  Export: ExportRedux.ExportReducer,
@@ -148,10 +147,12 @@ class AdaptableStore {
148
147
  ToolPanel: ToolPanelRedux.ToolPanelReducer,
149
148
  Query: QueryRedux.QueryReducer,
150
149
  Charting: ChartingRedux.ChartingReducer,
150
+ StyledColumn: StyledColumnRedux.StyledColumnReducer,
151
151
  // dead reducers
152
152
  PercentBar: DeadRedux.PercentBarReducer,
153
153
  UpdatedRow: DeadRedux.UpdatedRowReducer,
154
154
  GradientColumn: DeadRedux.GradientColumnReducer,
155
+ ConditionalStyle: DeadRedux.ConditionalStyleReducer,
155
156
  };
156
157
  // allow plugins to participate in the root reducer
157
158
  adaptable.forPlugins((plugin) => {
@@ -661,16 +662,16 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
661
662
  case FormatColumnRedux.FORMAT_COLUMN_MOVE_UP:
662
663
  case FormatColumnRedux.FORMAT_COLUMN_SUSPEND:
663
664
  case FormatColumnRedux.FORMAT_COLUMN_UNSUSPEND:
665
+ case StyledColumnRedux.STYLED_COLUMN_ADD:
666
+ case StyledColumnRedux.STYLED_COLUMN_EDIT:
667
+ case StyledColumnRedux.STYLED_COLUMN_DELETE:
668
+ case StyledColumnRedux.STYLED_COLUMN_SUSPEND:
669
+ case StyledColumnRedux.STYLED_COLUMN_UNSUSPEND:
664
670
  case CustomSortRedux.CUSTOM_SORT_ADD:
665
671
  case CustomSortRedux.CUSTOM_SORT_EDIT:
666
672
  case CustomSortRedux.CUSTOM_SORT_DELETE:
667
673
  case CustomSortRedux.CUSTOM_SORT_SUSPEND:
668
- case CustomSortRedux.CUSTOM_SORT_UNSUSPEND:
669
- case ConditionalStyleRedux.CONDITIONAL_STYLE_ADD:
670
- case ConditionalStyleRedux.CONDITIONAL_STYLE_EDIT:
671
- case ConditionalStyleRedux.CONDITIONAL_STYLE_SUSPEND:
672
- case ConditionalStyleRedux.CONDITIONAL_STYLE_UNSUSPEND:
673
- case ConditionalStyleRedux.CONDITIONAL_STYLE_DELETE: {
674
+ case CustomSortRedux.CUSTOM_SORT_UNSUSPEND: {
674
675
  const returnAction = next(action);
675
676
  // called also for alert actions, see ALERT ACTIONS block
676
677
  adaptable.setupColumns();
@@ -1,31 +1,6 @@
1
1
  import { AdaptableApi } from '../Api/AdaptableApi';
2
- import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
3
- import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
4
- import { ConditionalStyle } from '../PredefinedConfig/ConditionalStyleState';
5
- import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
6
2
  import { AdaptableModuleBase } from './AdaptableModuleBase';
7
- import { IConditionalStyleModule } from './Interface/IConditionalStyleModule';
8
- import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
9
- import { AdaptableModuleView, AdaptableObjectView } from './Interface/IModule';
10
- import { AccessLevel } from '../types';
11
- export declare class ConditionalStyleModule extends AdaptableModuleBase implements IConditionalStyleModule {
3
+ import { IModule } from './Interface/IModule';
4
+ export declare class ConditionalStyleModule extends AdaptableModuleBase implements IModule {
12
5
  constructor(api: AdaptableApi);
13
- getViewAccessLevel(): AccessLevel;
14
- getModuleAdaptableObjects(config?: {
15
- includeLayoutNotAssociatedObjects?: boolean;
16
- }): AdaptableObject[];
17
- getExplicitlyReferencedColumnIds(conditionalStyle: ConditionalStyle): string[];
18
- getReferencedNamedQueryNames(conditionalStyle: ConditionalStyle): string[];
19
- updateOldConfig(): void;
20
- addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
21
- getTeamSharingAction(): TeamSharingImportInfo<ConditionalStyle>;
22
- isConditionalStyleActiveForColumn(conditionalStyleForColumn: ConditionalStyle, column: AdaptableColumn, params: any): boolean;
23
- isConditionalStyleActiveForRow(conditionalStyleForRow: ConditionalStyle, params: any): boolean;
24
- private evaluatePredicate;
25
- private evaluateExpression;
26
- private shouldRunStyle;
27
- toView(conditionalStyle: ConditionalStyle): AdaptableObjectView;
28
- toViewAll(): AdaptableObjectView[];
29
- getViewProperties(): AdaptableModuleView;
30
- canBeAssociatedWithLayouts(): boolean;
31
6
  }