@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,193 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StyledColumnApiImpl = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ApiBase_1 = require("./ApiBase");
6
+ const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/StyledColumnRedux"));
7
+ const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
8
+ const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
9
+ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
10
+ getStyledColumnState() {
11
+ return this.getAdaptableState().StyledColumn;
12
+ }
13
+ getAllStyledColumn(config) {
14
+ var _a;
15
+ return ((_a = this.handleLayoutAssociatedObjects(this.getStyledColumnState().StyledColumns, 'StyledColumn', config)) !== null && _a !== void 0 ? _a : []);
16
+ }
17
+ getStyledColumnById(id) {
18
+ return this.getAllStyledColumn().find((styledcolumn) => styledcolumn.Uuid === id);
19
+ }
20
+ getStyledColumnByColumnId(id) {
21
+ return this.getAllStyledColumn().find((styledcolumn) => styledcolumn.ColumnId === id);
22
+ }
23
+ getAllActiveStyledColumn() {
24
+ return this.getAllStyledColumn().filter((styledcolumn) => !styledcolumn.IsSuspended);
25
+ }
26
+ getAllSuspendedStyledColumn() {
27
+ return this.getAllStyledColumn().filter((styledcolumn) => styledcolumn.IsSuspended);
28
+ }
29
+ deleteStyledColumn(styledColumn) {
30
+ this.dispatchAction(StyledColumnRedux.StyledColumnDelete(styledColumn));
31
+ }
32
+ addStyledColumn(styledColumn) {
33
+ this.dispatchAction(StyledColumnRedux.StyledColumnAdd(styledColumn));
34
+ }
35
+ getNumericStyleMinValue(styledColumn, column, rowNode, cellValue) {
36
+ var _a, _b;
37
+ const columnComparison = styledColumn.GradientStyle
38
+ ? styledColumn.GradientStyle.ColumnComparison
39
+ : (_a = styledColumn.PercentBarStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison;
40
+ if (columnComparison) {
41
+ if (!isNaN(Number(columnComparison.MinValue))) {
42
+ return Number(columnComparison.MinValue);
43
+ }
44
+ else {
45
+ let columnId = columnComparison.MinValue;
46
+ if (!this.adaptable.api.columnApi.doesColumnExist(columnId)) {
47
+ return 0;
48
+ }
49
+ else {
50
+ return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
51
+ }
52
+ }
53
+ }
54
+ // for Gradient Column we want just the range that contains cell value
55
+ if (styledColumn.GradientStyle) {
56
+ let range;
57
+ styledColumn.GradientStyle.CellRanges.forEach((cellRange) => {
58
+ if (!range) {
59
+ if ((cellRange.Min == 'Col-Min' || cellValue >= cellRange.Min) &&
60
+ (cellRange.Max == 'Col-Max' || cellValue <= cellRange.Max)) {
61
+ range = cellRange;
62
+ }
63
+ }
64
+ });
65
+ return this.getCellColorRangeMinValue(range, column);
66
+ }
67
+ // for percentbar we want to get the whole Ranges
68
+ if (styledColumn.PercentBarStyle) {
69
+ const ranges = (_b = styledColumn.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
70
+ if (ranges) {
71
+ return this.getCellColorRangeMinValue(ranges[0], column);
72
+ }
73
+ }
74
+ }
75
+ getNumericStyleMaxValue(styledColumn, column, rowNode, cellValue) {
76
+ var _a, _b;
77
+ const columnComparison = styledColumn.GradientStyle
78
+ ? styledColumn.GradientStyle.ColumnComparison
79
+ : (_a = styledColumn.PercentBarStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison;
80
+ if (columnComparison) {
81
+ if (!isNaN(Number(columnComparison.MaxValue))) {
82
+ return Number(columnComparison.MaxValue);
83
+ }
84
+ else {
85
+ let columnId = columnComparison.MaxValue;
86
+ if (!this.adaptable.api.columnApi.doesColumnExist(columnId)) {
87
+ return 0;
88
+ }
89
+ else {
90
+ return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
91
+ }
92
+ }
93
+ }
94
+ if (styledColumn.GradientStyle) {
95
+ let range;
96
+ styledColumn.GradientStyle.CellRanges.forEach((cellRange) => {
97
+ if (!range) {
98
+ if ((cellRange.Min == 'Col-Min' || cellValue >= cellRange.Min) &&
99
+ (cellRange.Max == 'Col-Max' || cellValue <= cellRange.Max)) {
100
+ range = cellRange;
101
+ }
102
+ }
103
+ });
104
+ return this.getCellColorRangeMaxValue(range, column);
105
+ }
106
+ if (styledColumn.PercentBarStyle) {
107
+ const ranges = (_b = styledColumn.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
108
+ if (ranges) {
109
+ return this.getCellColorRangeMaxValue(ranges[ranges.length - 1], column);
110
+ }
111
+ }
112
+ }
113
+ getCellColorRangeMinValue(range, column) {
114
+ if (!range) {
115
+ return undefined;
116
+ }
117
+ if (range.Min == undefined) {
118
+ return undefined;
119
+ }
120
+ return range.Min == 'Col-Min'
121
+ ? this.getAdaptableApi().columnApi.getMinValueForNumericColumn(column)
122
+ : range.Min;
123
+ }
124
+ getCellColorRangeMaxValue(range, column) {
125
+ if (!range) {
126
+ return undefined;
127
+ }
128
+ if (range.Max == undefined) {
129
+ return undefined;
130
+ }
131
+ return range.Max == 'Col-Max'
132
+ ? this.getAdaptableApi().columnApi.getMaxValueForNumericColumn(column)
133
+ : range.Max;
134
+ }
135
+ getColumnComparisonForStyledColumn(styledColumn) {
136
+ var _a, _b;
137
+ if (styledColumn.GradientStyle) {
138
+ if ((_a = styledColumn.GradientStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison) {
139
+ return styledColumn.GradientStyle.ColumnComparison;
140
+ }
141
+ }
142
+ if (styledColumn.PercentBarStyle) {
143
+ if ((_b = styledColumn.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.ColumnComparison) {
144
+ return styledColumn.PercentBarStyle.ColumnComparison;
145
+ }
146
+ }
147
+ return undefined;
148
+ }
149
+ getColumnIdsFromColumnComparison(columnComparison) {
150
+ let returnValues = [];
151
+ if (typeof columnComparison.MinValue === 'string') {
152
+ let minIds = this.adaptable.api.columnApi.getColumnIdsFromId(columnComparison.MinValue, false);
153
+ if (ArrayExtensions_1.default.IsNotNullOrEmpty(minIds)) {
154
+ returnValues.push(...minIds);
155
+ }
156
+ }
157
+ if (typeof columnComparison.MaxValue === 'string') {
158
+ let maxIds = this.adaptable.api.columnApi.getColumnIdsFromId(columnComparison.MaxValue, false);
159
+ if (ArrayExtensions_1.default.IsNotNullOrEmpty(maxIds)) {
160
+ returnValues.push(...maxIds);
161
+ }
162
+ }
163
+ return returnValues;
164
+ }
165
+ getCheckBoxStyleStyledColumn(column) {
166
+ var _a;
167
+ if (column.dataType != 'Boolean') {
168
+ return undefined;
169
+ }
170
+ const checkBoxFormatColumns = (_a = this.getStyledColumnState().StyledColumns) === null || _a === void 0 ? void 0 : _a.filter((sc) => sc === null || sc === void 0 ? void 0 : sc.CheckBoxStyle);
171
+ const styledColumn = checkBoxFormatColumns.find((sc) => sc.ColumnId == column.columnId);
172
+ return styledColumn;
173
+ }
174
+ isCheckBoxStyleStyledColumn(column) {
175
+ const styledColumn = this.getCheckBoxStyleStyledColumn(column);
176
+ return Helper_1.default.objectExists(styledColumn);
177
+ }
178
+ fireCheckboxColumnClickedEvent(columnId, rowData, primaryKeyValue, isChecked) {
179
+ let checkboxColumnClickedInfo = {
180
+ adaptableApi: this.adaptable.api,
181
+ column: this.adaptable.api.columnApi.getColumnFromId(columnId),
182
+ rowData: rowData,
183
+ primaryKeyValue: primaryKeyValue,
184
+ isChecked: isChecked,
185
+ };
186
+ this.adaptable.api.eventApi.emit('CheckboxColumnClicked', checkboxColumnClickedInfo);
187
+ }
188
+ getActiveStyledColumnForColumn(column) {
189
+ const styledColumns = this.getAllActiveStyledColumn();
190
+ return styledColumns.find((sc) => sc.ColumnId == column.columnId);
191
+ }
192
+ }
193
+ exports.StyledColumnApiImpl = StyledColumnApiImpl;
@@ -144,5 +144,5 @@ export interface InternalApi {
144
144
  getValueForTag(adaptableObjectTag: AdaptableObjectTag): string | number;
145
145
  getEditLookUpValuesForColumn(editLookUpItem: EditLookUpPermittedValues, column: AdaptableColumn, gridCell?: GridCell): any[] | undefined;
146
146
  getAdaptableQueryExpressionText(query: Partial<AdaptableQuery>): string;
147
- shouldKeepDeprecatedConditionalStyles(): boolean;
147
+ deleteConditionalStyles(conditionalStyles: any[]): void;
148
148
  }
@@ -3,6 +3,7 @@ import { IPushPullApi } from './IPushPullApi';
3
3
  import { Glue42Api } from './Glue42Api';
4
4
  import { OpenFinApi } from './OpenFinApi';
5
5
  import { FinanceApi } from './FinanceApi';
6
+ import { FinsembleApi } from './FinsembleApi';
6
7
  /**
7
8
  * API methods dealing with AdapTable plugins
8
9
  */
@@ -44,4 +45,8 @@ export interface PluginsApi {
44
45
  * Returns Finance API class in Adaptable API
45
46
  */
46
47
  getFinancePluginApi(): FinanceApi;
48
+ /**
49
+ * Returns Finsemble API class in Adaptable API
50
+ */
51
+ getFinsemblePluginApi(): FinsembleApi;
47
52
  }
@@ -1,5 +1,6 @@
1
1
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
2
2
  import { AdaptableQuery } from '../PredefinedConfig/Common/AdaptableQuery';
3
+ import { AdaptableColumnBase } from '../PredefinedConfig/Common/AdaptableColumn';
3
4
  /**
4
5
  * Functions related to AdapTableQL (the Adaptable Query Language)
5
6
  */
@@ -38,9 +39,9 @@ export interface QueryLanguageApi {
38
39
  */
39
40
  getColumnsFromExpression(expression: string): string[];
40
41
  /**
41
- * Returns all columns that can be used in an Expression
42
+ * Returns whether a Column is Queryable
42
43
  */
43
- getQueryableColumnIds(): string[];
44
+ isColumnQueryable(adaptableColumnBase: AdaptableColumnBase): boolean;
44
45
  /**
45
46
  * Runs the AST that AdapTableQL creates for an Expression - useful when evaluating remotely
46
47
  * @param expression expression to be run
@@ -1,6 +1,6 @@
1
1
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
2
2
  import { AdaptableScope, ScopeDataType } from '../PredefinedConfig/Common/AdaptableScope';
3
- import { CellColorRange } from '../PredefinedConfig/FormatColumnState';
3
+ import { CellColorRange } from '../PredefinedConfig/StyledColumnState';
4
4
  /**
5
5
  * Provides access to a suite of functions related to the `Scope` object
6
6
  */
@@ -0,0 +1,106 @@
1
+ import { RowNode } from '@ag-grid-community/core/dist/cjs/es5/entities/rowNode';
2
+ import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
3
+ import { StyledColumnState, StyledColumn, CellColorRange, ColumnComparison } from '../PredefinedConfig/StyledColumnState';
4
+ /**
5
+ * Provides run-time access to Styled Column Module and associated state
6
+ */
7
+ export interface StyledColumnApi {
8
+ /**
9
+ * Retrieves Styled Column section from Adaptable State
10
+ */
11
+ getStyledColumnState(): StyledColumnState;
12
+ /**
13
+ * Retrieves all Styled Columns in Adaptable State
14
+ * @returns Styled Columns
15
+ */
16
+ getAllStyledColumn(config?: {
17
+ includeLayoutNotAssociatedObjects?: boolean;
18
+ }): StyledColumn[];
19
+ /**
20
+ * Retrieves Styled Column by Id
21
+ * @param id Styled Column id
22
+ * @returns Styled Column
23
+ */
24
+ getStyledColumnById(id: StyledColumn['Uuid']): StyledColumn;
25
+ /**
26
+ * Retrieves Styled Column by Column Id
27
+ * @param columnId Styled Column id
28
+ * @returns Styled Column
29
+ */
30
+ getStyledColumnByColumnId(columnId: StyledColumn['ColumnId']): StyledColumn;
31
+ /**
32
+ * Retrieves all active (not-suspended) Styled Columns in Adaptable State
33
+ * @returns Styled Columns
34
+ */
35
+ getAllActiveStyledColumn(): StyledColumn[];
36
+ /**
37
+ * Retrieves all suspended Styled Columns in Adaptable State
38
+ * @returns Styled Columns
39
+ */
40
+ getAllSuspendedStyledColumn(): StyledColumn[];
41
+ /**
42
+ * Delete a Styled column
43
+ * @param styledColumn
44
+ */
45
+ deleteStyledColumn(styledColumn: StyledColumn): void;
46
+ /**
47
+ * Create a Styled column
48
+ * @param styledColumn
49
+ */
50
+ addStyledColumn(styledColumn: StyledColumn): void;
51
+ /**
52
+ * Gets the Minimum Value to display for a Styled Column
53
+ * @param styledColumn Styled Column to check
54
+ * @param rowNode current Row Node
55
+ * @param cellValue current Cell Value
56
+ */
57
+ getNumericStyleMinValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
58
+ /**
59
+ * Gets the Maximum Value to display for a Styled Column
60
+ * @param styledColumn Styled Column to check
61
+ * @param rowNode current Row Node
62
+ * @param cellValue current Cell Value
63
+ */
64
+ getNumericStyleMaxValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
65
+ /**
66
+ * Returns the smallest number in a Range
67
+ * @param range Range to check
68
+ * @param column current Column
69
+ */
70
+ getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
71
+ /**
72
+ * Returns the largest number in a Range
73
+ * @param range Range to check
74
+ * @param column current Column
75
+ */
76
+ getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
77
+ /**
78
+ * Retrieves the ColumnComparison property, if there, from a Styled Column
79
+ * @param styledColumn Styled Column to Add
80
+ */
81
+ getColumnComparisonForStyledColumn(styledColumn: StyledColumn): ColumnComparison | undefined;
82
+ /**
83
+ * Returns any ColumnIds referenced in a Column Comparison
84
+ * @param columnComparision Column Comparison to check
85
+ */
86
+ getColumnIdsFromColumnComparison(columnComparision: ColumnComparison): string[];
87
+ /**
88
+ * Returns first Styled Column that contains checkbox style
89
+ * @param columnId column to check
90
+ */
91
+ getCheckBoxStyleStyledColumn(column: AdaptableColumn): StyledColumn | undefined;
92
+ /**
93
+ * Whether given column is a (boolean) checkbox column
94
+ * @param columnId column to check
95
+ */
96
+ isCheckBoxStyleStyledColumn(column: AdaptableColumn): boolean;
97
+ /**
98
+ * Publishes the CheckboxColumnClickedEvent - when the checkbox in an Checkbox Column is clicked
99
+ */
100
+ fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
101
+ /**
102
+ * Returns a Styled Column for a given column
103
+ * @param column Column to check
104
+ */
105
+ getActiveStyledColumnForColumn(column: AdaptableColumn): StyledColumn | undefined;
106
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -23,6 +23,7 @@ import { QueryState } from './QueryState';
23
23
  import { FlashingCellState } from './FlashingCellState';
24
24
  import { StatusBarState } from './StatusBarState';
25
25
  import { ChartingState } from './ChartingState';
26
+ import { StyledColumnState } from './StyledColumnState';
26
27
  /**
27
28
  * The main state object of Adaptable
28
29
  */
@@ -48,6 +49,7 @@ export interface AdaptablePersistentState {
48
49
  Query: QueryState;
49
50
  QuickSearch: QuickSearchState;
50
51
  Schedule: ScheduleState;
52
+ StyledColumn: StyledColumnState;
51
53
  Shortcut: ShortcutState;
52
54
  StatusBar: StatusBarState;
53
55
  TeamSharing: TeamSharingState;
@@ -51,4 +51,4 @@ export interface AdaptableBaseIcon {
51
51
  /**
52
52
  * All AdapTable internal icon names
53
53
  */
54
- export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
54
+ export declare type AdaptableInternalIconName = 'add' | 'add-row' | 'alert' | 'align-justify' | 'analysis' | 'application' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrow-up' | 'arrow-up-long' | 'arrow-down-long' | 'arrowexpand' | 'attach-file' | 'blanks' | 'boolean-list' | 'broadcast' | 'brush' | 'build' | 'bulk-update' | 'calculated-column' | 'calendar' | 'call' | 'campaign' | 'cell-summary' | 'cell-validation' | 'chart' | 'chat' | 'check' | 'check-circle' | 'checked' | 'clear' | 'clone' | 'close' | 'cloud-upload' | 'collapse' | 'column-add' | 'column-chooser' | 'column-filter' | 'comment' | 'conditional-style' | 'contains' | 'custom-sort' | 'dashboard' | 'data-set' | 'date-range' | 'delete' | 'division' | 'dock' | 'drag' | 'edit' | 'ends-with' | 'equal' | 'equation' | 'error' | 'expand' | 'exponent' | 'export' | 'export-data' | 'fast-backward' | 'fast-forward' | 'filter' | 'flashing-cell' | 'folder' | 'folder-open' | 'folder-shared' | 'format-column' | 'freetext-column' | 'function' | 'gradient-column' | 'greater-than' | 'greater-than-or-equal' | 'hide-column' | 'history' | 'home' | 'import-export' | 'info' | 'instrument' | 'invalid' | 'ipushpull' | 'justify' | 'layout' | 'less-than' | 'less-than-or-equal' | 'list' | 'login' | 'logout' | 'menu' | 'minus' | 'multiplication' | 'newpage' | 'news' | 'non-blanks' | 'not-contains' | 'not-equal' | 'ok' | 'pause' | 'percent' | 'percent-bar' | 'person' | 'pie-chart' | 'play' | 'plus' | 'plus-minus' | 'query' | 'quick-search' | 'quote' | 'refresh' | 'regex' | 'reminder' | 'save' | 'schedule' | 'settings' | 'shortcut' | 'show-column' | 'smart-edit' | 'sort-asc' | 'sort-desc' | 'spark-line' | 'starts-with' | 'state-management' | 'statusbar' | 'stop' | 'system-status' | 'tab-unselected' | 'team-share' | 'theme' | 'tool-panel' | 'track-changes' | 'trash' | 'triangle-down' | 'triangle-up' | 'unchecked' | 'undo' | 'updated-row' | 'upload' | 'warning';
@@ -22,15 +22,15 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
22
22
  /**
23
23
  * List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
24
24
  */
25
- export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
25
+ export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
26
26
  export declare type AdaptableStateKeys = AdaptableStateKey[];
27
27
  export declare type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFin' | 'Glue42' | 'IPushPull';
28
28
  /**
29
29
  * Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
30
30
  */
31
- export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
31
+ export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
32
32
  export declare const ALL_MODULES: AdaptableModule[];
33
- export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
33
+ export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
34
34
  export declare type TypeHint<Base, Literals> = (Base & {
35
35
  __subType?: true;
36
36
  }) | Literals;
@@ -102,6 +102,7 @@ exports.ALL_MODULES = [
102
102
  ModuleConstants.SettingsPanelModuleId,
103
103
  ModuleConstants.ShortcutModuleId,
104
104
  ModuleConstants.SmartEditModuleId,
105
+ ModuleConstants.StyledColumnModuleId,
105
106
  ModuleConstants.StateManagementModuleId,
106
107
  ModuleConstants.StatusBarModuleId,
107
108
  ModuleConstants.SystemStatusModuleId,
@@ -7,41 +7,32 @@ import { XOR } from '../Utilities/Extensions/TypeExtensions';
7
7
  import { AdaptableBooleanQuery } from './Common/AdaptableQuery';
8
8
  import { SuspendableObject } from './Common/SuspendableObject';
9
9
  /**
10
- * Predefined Configuration for the Conditional Style Module
10
+ * Deprecated section of Adaptable State - use `FormatColumnState` instead
11
+ * @deprecated use `FormatColumnState` instead
11
12
  **/
12
13
  export interface ConditionalStyleState extends ConfigState {
13
- /**
14
- * Array of Conditional Styles to ship with AdapTable
15
- */
16
14
  ConditionalStyles?: ConditionalStyle[];
17
15
  }
18
16
  /**
19
- * Object used in Conditional Style function - contains Scope, a Rule and a Style
17
+ * Deprecated Adaptable Object - use `FormatColumn` instead
18
+ * @deprecated use `FormatColumn` instead
20
19
  */
21
20
  export interface ConditionalStyle extends SuspendableObject {
22
- /**
23
- * Where Style is applied - can be whole Row, some Columns or all Columns of given DataType
24
- */
25
21
  Scope: AdaptableScope;
26
- /**
27
- * Predicate-based Rule to use for deciding if a style needs to be applied.
28
- */
29
22
  Rule: ConditionalStyleRule;
30
- /**
31
- * Adaptable Style (e.g. font properties and colurs) to apply.
32
- */
33
23
  Style: AdaptableStyle;
34
- /**
35
- * Whether to apply Style in Grouped Rows and when Pivoting
36
- * @defaultValue false
37
- */
38
24
  IncludeGroupedRows?: boolean;
39
25
  }
26
+ /**
27
+ * Deprecated - use `FormatColumnPredicate` instead
28
+ * @deprecated use `FormatColumnPredicate` instead
29
+ */
40
30
  export interface ConditionalStylePredicate extends AdaptablePredicate {
41
31
  PredicateId: TypeHint<string, SystemConditionalStylePredicateId>;
42
32
  }
43
33
  /**
44
- * The Conditional Style Rule - can be either a Predicate or an Expression
34
+ * Deprecated - use `FormatColumnRule` instead
35
+ * @deprecated use `FormatColumnRule` instead
45
36
  */
46
37
  export declare type ConditionalStyleRule = XOR<{
47
38
  Predicate: ConditionalStylePredicate;
@@ -5,7 +5,7 @@ import { AdaptableScope } from './Common/AdaptableScope';
5
5
  import { SuspendableObject } from './Common/SuspendableObject';
6
6
  import { XOR } from '../Utilities/Extensions/TypeExtensions';
7
7
  import { TypeHint } from './Common/Types';
8
- import { AdaptableBooleanQuery, AdaptablePredicate } from '../types';
8
+ import { AdaptableBooleanQuery, AdaptablePredicate, GradientStyle, PercentBarStyle } from '../types';
9
9
  /**
10
10
  * Predefined Configuration for Format Column Module
11
11
  */
@@ -33,7 +33,7 @@ export interface FormatColumn extends SuspendableObject {
33
33
  */
34
34
  Style?: AdaptableStyle;
35
35
  /**
36
- * Applies Gradient, Percent Bar or CheckBox style to a Column
36
+ * @deprecated now in StyledColumn Module
37
37
  */
38
38
  ColumnStyle?: ColumnStyle;
39
39
  /**
@@ -44,12 +44,6 @@ export interface FormatColumn extends SuspendableObject {
44
44
  * Aligns cells 'Left' or 'Right' or 'Center'
45
45
  */
46
46
  CellAlignment?: 'Left' | 'Right' | 'Center';
47
- /**
48
- * Text to display in Column Header (doesn't change ColumnId)
49
- *
50
- * @deprecated use `Layout.ColumnHeadersMap` instead
51
- */
52
- HeaderName?: string;
53
47
  /**
54
48
  * Whether to Format the Column in Grouped Rows
55
49
  * @defaultValue false
@@ -57,7 +51,7 @@ export interface FormatColumn extends SuspendableObject {
57
51
  IncludeGroupedRows?: boolean;
58
52
  }
59
53
  /**
60
- * The Format Column Rule - can be either a Predicate or an Expression
54
+ * The Format Column Rule - can be either a Predicate or a BooleanExpression
61
55
  */
62
56
  export declare type FormatColumnRule = XOR<{
63
57
  Predicate: FormatColumnPredicate;
@@ -65,9 +59,11 @@ export declare type FormatColumnRule = XOR<{
65
59
  export interface FormatColumnPredicate extends AdaptablePredicate {
66
60
  PredicateId: TypeHint<string, SystemFormatColumnPredicateId>;
67
61
  }
68
- declare type SystemFormatColumnPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False';
62
+ export declare type SystemFormatColumnPredicateId = 'Blanks' | 'NonBlanks' | 'Equals' | 'NotEquals' | 'GreaterThan' | 'LessThan' | 'Positive' | 'Negative' | 'Zero' | 'Between' | 'NotBetween' | 'Is' | 'IsNot' | 'Contains' | 'NotContains' | 'StartsWith' | 'EndsWith' | 'Regex' | 'Today' | 'Yesterday' | 'Tomorrow' | 'ThisWeek' | 'ThisMonth' | 'ThisQuarter' | 'ThisYear' | 'InPast' | 'InFuture' | 'Before' | 'After' | 'On' | 'NotOn' | 'NextWorkDay' | 'LastWorkDay' | 'True' | 'False';
69
63
  /**
70
64
  * Special Style used when Formatting Columns: Gradient, PercentBar or CheckBox
65
+ *
66
+ * @deprecated use StyledColumn instead
71
67
  */
72
68
  export interface ColumnStyle {
73
69
  /**
@@ -83,89 +79,3 @@ export interface ColumnStyle {
83
79
  */
84
80
  CheckBoxStyle?: boolean;
85
81
  }
86
- /**
87
- * Style used to display Percent Bars in Format Column
88
- */
89
- export interface PercentBarStyle {
90
- /**
91
- * Ranges (e.g. to allow a traffic light effect)
92
- */
93
- CellRanges?: CellColorRange[];
94
- /**
95
- * Compares cell values to another Column
96
- */
97
- ColumnComparison?: ColumnComparison;
98
- /**
99
- * Whether Cell shows Cell Value, Percent Value, both or none
100
- */
101
- CellText?: CellTextOptions;
102
- /**
103
- * Whether Tooltip shows Cell Value, Percent Value, both or none
104
- */
105
- ToolTipText?: CellTextOptions;
106
- /**
107
- * Back colour - only used for 'Percent Bar' Numeric style; leave unset if none required
108
- * @defaultValue Gray
109
- */
110
- BackColor?: string;
111
- }
112
- /**
113
- * Used to display Gradient Styles in Format Column
114
- */
115
- export interface GradientStyle {
116
- /**
117
- * Ranges (e.g. to allow a traffic light effect)
118
- */
119
- CellRanges?: CellColorRange[];
120
- /**
121
- * Compares cell values to another Column
122
- */
123
- ColumnComparison?: ColumnComparison;
124
- }
125
- /**
126
- * Defines which Colours to show in Gradient and Percent Bar Styles
127
- */
128
- export interface CellColorRange {
129
- /**
130
- * Start number of Range
131
- */
132
- Min: number | 'Col-Min';
133
- /**
134
- * End number of Range
135
- */
136
- Max: number | 'Col-Max';
137
- /**
138
- * Cell colour to use for values that fall inside Range
139
- */
140
- Color: string;
141
- /**
142
- * Reverses the Gradient so the lower the cell value the darker the colour
143
- */
144
- ReverseGradient?: boolean;
145
- }
146
- /**
147
- * Enables a Percent Bar or Gradient Style to use another column in its calculations
148
- */
149
- export interface ColumnComparison {
150
- /**
151
- * Start value - either numeric or Column name
152
- */
153
- MinValue: number | string;
154
- /**
155
- * End value - either numeric or Column name
156
- */
157
- MaxValue: number | string;
158
- /**
159
- * Colour to use for the Comparison
160
- */
161
- Color: string;
162
- }
163
- /**
164
- * Array of CellTextOption available in Format Columns
165
- */
166
- export declare type CellTextOptions = CellTextOption[];
167
- /**
168
- * Text optionally to show in a Format Column special style: 'CellValue' or 'PercentageValue'
169
- */
170
- export declare type CellTextOption = 'CellValue' | 'PercentageValue';
171
- export {};
@@ -18,6 +18,7 @@ import { ToolPanelState } from './ToolPanelState';
18
18
  import { QueryState } from './QueryState';
19
19
  import { StatusBarState } from './StatusBarState';
20
20
  import { ChartingState } from './ChartingState';
21
+ import { StyledColumnState } from './StyledColumnState';
21
22
  /**
22
23
  * This is the main Predefined Config interface which developers will populate at design-time
23
24
  */
@@ -87,6 +88,10 @@ export interface PredefinedConfig {
87
88
  * Supplies a collection of *Shortcut* objects to aid data entry and prevent 'fat finger' issues
88
89
  */
89
90
  Shortcut?: ShortcutState;
91
+ /**
92
+ * Supplies a collection of Special Column Styles
93
+ */
94
+ StyledColumn?: StyledColumnState;
90
95
  /**
91
96
  * Configures the Adaptable Status Bar
92
97
  */