@adaptabletools/adaptable 13.0.0-canary.2 → 13.0.0-canary.20

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 +23 -1
  2. package/agGrid.js +23 -1
  3. package/base.css +1232 -733
  4. package/base.css.map +1 -0
  5. package/bundle.cjs.js +191 -174
  6. package/index.css +1250 -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 +136 -27
  14. package/src/AdaptableOptions/ExportOptions.d.ts +2 -2
  15. package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +32 -0
  16. package/src/AdaptableOptions/FinsemblePluginOptions.js +2 -0
  17. package/src/AdaptableOptions/LayoutOptions.d.ts +2 -1
  18. package/src/Api/AdaptableApi.d.ts +2 -0
  19. package/src/Api/ColumnApi.d.ts +8 -2
  20. package/src/Api/ConditionalStyleApi.d.ts +20 -42
  21. package/src/Api/ConfigApi.d.ts +1 -2
  22. package/src/Api/ExportApi.d.ts +6 -6
  23. package/src/Api/FinsembleApi.d.ts +10 -0
  24. package/src/Api/FinsembleApi.js +2 -0
  25. package/src/Api/FormatColumnApi.d.ts +76 -59
  26. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  27. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  28. package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
  29. package/src/Api/Implementation/ColumnApiImpl.js +18 -14
  30. package/src/Api/Implementation/ExportApiImpl.d.ts +4 -4
  31. package/src/Api/Implementation/ExportApiImpl.js +14 -14
  32. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +36 -17
  33. package/src/Api/Implementation/FormatColumnApiImpl.js +101 -185
  34. package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -0
  35. package/src/Api/Implementation/PluginsApiImpl.js +6 -0
  36. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -3
  37. package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -18
  38. package/src/Api/Implementation/ScopeApiImpl.d.ts +1 -1
  39. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +25 -0
  40. package/src/Api/Implementation/StyledColumnApiImpl.js +193 -0
  41. package/src/Api/Implementation/SystemStatusApiImpl.js +1 -2
  42. package/src/Api/Implementation/ToolPanelApiImpl.d.ts +3 -1
  43. package/src/Api/Implementation/ToolPanelApiImpl.js +8 -0
  44. package/src/Api/PluginsApi.d.ts +5 -0
  45. package/src/Api/QueryLanguageApi.d.ts +3 -7
  46. package/src/Api/ScopeApi.d.ts +1 -1
  47. package/src/Api/StyledColumnApi.d.ts +106 -0
  48. package/src/Api/StyledColumnApi.js +2 -0
  49. package/src/Api/ToolPanelApi.d.ts +10 -1
  50. package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
  51. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  52. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
  53. package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
  54. package/src/PredefinedConfig/Common/Types.d.ts +3 -3
  55. package/src/PredefinedConfig/Common/Types.js +1 -0
  56. package/src/PredefinedConfig/ConditionalStyleState.d.ts +10 -19
  57. package/src/PredefinedConfig/FormatColumnState.d.ts +21 -92
  58. package/src/PredefinedConfig/PredefinedConfig.d.ts +6 -0
  59. package/src/PredefinedConfig/StyledColumnState.d.ts +119 -0
  60. package/src/PredefinedConfig/StyledColumnState.js +2 -0
  61. package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +0 -18
  62. package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +0 -18
  63. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
  64. package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
  65. package/src/Redux/ActionsReducers/PluginsRedux.d.ts +4 -4
  66. package/src/Redux/ActionsReducers/PluginsRedux.js +5 -5
  67. package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +49 -0
  68. package/src/Redux/ActionsReducers/StyledColumnRedux.js +92 -0
  69. package/src/Redux/Store/AdaptableStore.js +9 -0
  70. package/src/Strategy/ConditionalStyleModule.d.ts +0 -2
  71. package/src/Strategy/ConditionalStyleModule.js +3 -27
  72. package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
  73. package/src/Strategy/DataChangeHistoryModule.js +12 -0
  74. package/src/Strategy/FormatColumnModule.d.ts +3 -10
  75. package/src/Strategy/FormatColumnModule.js +42 -183
  76. package/src/Strategy/Interface/IModule.d.ts +1 -0
  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 -12
  86. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
  87. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
  88. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -1
  89. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
  90. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +3 -1
  91. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
  92. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -1
  93. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +2 -4
  94. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -1
  95. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
  96. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -1
  97. package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
  98. package/src/Utilities/Extensions/TypeExtensions.js +5 -0
  99. package/src/Utilities/ObjectFactory.d.ts +5 -2
  100. package/src/Utilities/ObjectFactory.js +14 -7
  101. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
  102. package/src/Utilities/Services/{LicenseService.d.ts → LicenseService/index.d.ts} +3 -3
  103. package/src/Utilities/Services/LicenseService/index.js +1 -0
  104. package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.d.ts +1 -0
  105. package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +15 -0
  106. package/src/Utilities/Services/ModuleService.js +2 -0
  107. package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
  108. package/src/Utilities/Services/QueryLanguageService.js +88 -39
  109. package/src/Utilities/Services/ReportService.js +6 -6
  110. package/src/Utilities/license/LicenseDetails.d.ts +1 -1
  111. package/src/Utilities/license/decode.d.ts +1 -0
  112. package/src/Utilities/license/decode.js +1 -1
  113. package/src/View/AdaptablePopover/index.js +1 -1
  114. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +9 -9
  115. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -5
  116. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -3
  117. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -3
  118. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  119. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
  120. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
  121. package/src/View/Components/AdaptableObjectRow/index.js +1 -6
  122. package/src/View/Components/Buttons/ButtonInfo.d.ts +1 -3
  123. package/src/View/Components/Buttons/ButtonInfo.js +3 -5
  124. package/src/View/Components/EntityRulesEditor/index.d.ts +2 -1
  125. package/src/View/Components/EntityRulesEditor/index.js +36 -35
  126. package/src/View/Components/FilterForm/FilterForm.js +11 -16
  127. package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
  128. package/src/View/Components/FilterForm/QuickFilterForm.js +7 -13
  129. package/src/View/Components/NewScopeComponent.js +3 -3
  130. package/src/View/Components/Panels/PanelWithButton.js +1 -5
  131. package/src/View/Components/Panels/PanelWithImage.js +1 -5
  132. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -2
  133. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -0
  134. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +3 -16
  135. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -0
  136. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
  137. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +5 -5
  138. package/src/View/Components/RangesComponent.d.ts +8 -1
  139. package/src/View/Components/RangesComponent.js +60 -24
  140. package/src/View/Components/ScopeComponent.js +6 -6
  141. package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
  142. package/src/View/Components/Selectors/ColumnSelector.js +2 -1
  143. package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
  144. package/src/View/Components/StyleComponent.js +14 -19
  145. package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +3 -9
  146. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +25 -10
  147. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  148. package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
  149. package/src/View/ConditionalStyle/ConditionalStylePopupHeader.d.ts +2 -0
  150. package/src/View/ConditionalStyle/ConditionalStylePopupHeader.js +18 -0
  151. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +3 -3
  152. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
  153. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +1 -11
  154. package/src/View/DataSet/DataSetSelector.js +1 -1
  155. package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
  156. package/src/View/Export/ExportViewPanel.d.ts +1 -1
  157. package/src/View/Export/ExportViewPanel.js +4 -4
  158. package/src/View/Export/ReportExportDropdown.js +1 -1
  159. package/src/View/Export/Wizard/ReportNameWizardSection.js +10 -11
  160. package/src/View/Filter/FilterSummary.d.ts +1 -1
  161. package/src/View/Filter/FilterViewPanel.d.ts +1 -1
  162. package/src/View/FlashingCell/FlashingCellStyle.js +3 -3
  163. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +3 -3
  164. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +6 -6
  165. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -4
  166. package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
  167. package/src/View/FormatColumn/MoveFormatColumn.d.ts +7 -0
  168. package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
  169. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +28 -28
  170. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +8 -0
  171. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +28 -0
  172. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +21 -3
  173. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +2 -28
  174. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +3 -3
  175. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +6 -300
  176. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +15 -9
  177. package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
  178. package/src/View/FormatColumn/Wizard/constants.js +4 -0
  179. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
  180. package/src/View/Layout/LayoutRadioSelector.js +1 -1
  181. package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
  182. package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
  183. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  184. package/src/View/Layout/Wizard/sections/ColumnsSection.js +7 -6
  185. package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
  186. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +1 -1
  187. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
  188. package/src/View/Query/QueryViewPanel.d.ts +1 -1
  189. package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
  190. package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
  191. package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
  192. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -5
  193. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +1 -1
  194. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +5 -5
  195. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
  196. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -5
  197. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -2
  198. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +3 -3
  199. package/src/View/SmartEdit/SmartEditPopup.js +3 -3
  200. package/src/View/SpecialColumnSettingsWizardStep.js +10 -10
  201. package/src/View/StateManagement/StateManagementPopup.js +4 -4
  202. package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +7 -0
  203. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +77 -0
  204. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +9 -0
  205. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +65 -0
  206. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.d.ts +9 -0
  207. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection.js +234 -0
  208. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.d.ts +7 -0
  209. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +59 -0
  210. package/src/View/SystemStatus/SystemStatusEntityRow.js +4 -6
  211. package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
  212. package/src/View/TeamSharing/SharedEntityObjectView.js +1 -1
  213. package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
  214. package/src/View/Theme/ThemePopup.js +1 -1
  215. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
  216. package/src/View/Wizard/OnePageAdaptableWizard.js +1 -2
  217. package/src/agGrid/ActionColumnRenderer.d.ts +3 -0
  218. package/src/agGrid/ActionColumnRenderer.js +96 -64
  219. package/src/agGrid/Adaptable.d.ts +13 -9
  220. package/src/agGrid/Adaptable.js +207 -221
  221. package/src/agGrid/CheckboxRenderer.js +1 -1
  222. package/src/agGrid/FilterWrapper.js +60 -16
  223. package/src/agGrid/FloatingFilterWrapper.d.ts +2 -2
  224. package/src/agGrid/FloatingFilterWrapper.js +71 -32
  225. package/src/agGrid/PercentBarRenderer.d.ts +6 -2
  226. package/src/agGrid/PercentBarRenderer.js +19 -17
  227. package/src/agGrid/agGridHelper.d.ts +6 -2
  228. package/src/agGrid/agGridHelper.js +16 -15
  229. package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
  230. package/src/agGrid/createAgStatusPanelComponent.js +17 -0
  231. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +5 -1
  232. package/src/agGrid/editors/AdaptableDateEditor/index.js +87 -20
  233. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
  234. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -3
  235. package/src/agGrid/editors/AdaptableNumberEditor/index.js +81 -30
  236. package/src/agGrid/weightedAverage.js +19 -11
  237. package/src/components/CheckBox/index.js +7 -2
  238. package/src/components/Datepicker/index.d.ts +1 -1
  239. package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -1
  240. package/src/components/ExpressionEditor/BaseEditorInput.js +13 -32
  241. package/src/components/ExpressionEditor/EditorInput.js +1 -1
  242. package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
  243. package/src/components/ExpressionEditor/index.js +9 -17
  244. package/src/components/FormLayout/index.js +1 -1
  245. package/src/components/StylePreview.js +2 -1
  246. package/src/components/icons/brush.d.ts +3 -0
  247. package/src/components/icons/brush.js +7 -0
  248. package/src/components/icons/index.js +2 -0
  249. package/src/metamodel/adaptable.metamodel.d.ts +191 -95
  250. package/src/metamodel/adaptable.metamodel.js +1 -1
  251. package/src/parser/src/types.d.ts +6 -3
  252. package/src/renderReactRoot.d.ts +2 -0
  253. package/src/renderReactRoot.js +11 -9
  254. package/src/types.d.ts +8 -4
  255. package/themes/dark.css +8 -4
  256. package/themes/dark.css.map +1 -0
  257. package/themes/light.css +4 -1
  258. package/themes/light.css.map +1 -0
  259. package/version.d.ts +1 -1
  260. package/version.js +1 -1
  261. package/src/AdaptableComponents.d.ts +0 -1
  262. package/src/AdaptableComponents.js +0 -5
  263. package/src/Utilities/Services/LicenseService.js +0 -1
@@ -2,107 +2,85 @@ import { ConditionalStyleState, ConditionalStyle } from '../PredefinedConfig/Con
2
2
  import { AdaptableColumn, AdaptableScope } from '../types';
3
3
  import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
4
4
  /**
5
- * Provides run-time access to Conditional Style Module and state
5
+ * Deprecated API section - use `FormatColumnAPI` instead
6
6
  */
7
7
  export interface ConditionalStyleApi {
8
8
  /**
9
- * Retrieves Conditional Style section from Adaptable State
9
+ * @deprecated use `FormatColumnָAPI` instead
10
10
  */
11
11
  getConditionalStyleState(): ConditionalStyleState;
12
12
  /**
13
- * Gets all Conditional Styles in Adaptable State
13
+ * @deprecated use `FormatColumnָAPI` instead
14
14
  */
15
15
  getAllConditionalStyle(config?: {
16
16
  includeLayoutNotAssociatedObjects?: boolean;
17
17
  }): ConditionalStyle[];
18
18
  /**
19
- * Get conditional style by id
20
- * @param id conditional style id
21
- * @returns conditional style
19
+ * @deprecated use `FormatColumnָAPI` instead
22
20
  */
23
21
  getConditionalStyleById(id: ConditionalStyle['Uuid']): ConditionalStyle;
24
22
  /**
25
- * Gets all Conditional Styles that are active (not-suspended) in Adaptable State
26
- * @returns conditional styles
23
+ * @deprecated use `FormatColumnָAPI` instead
27
24
  */
28
25
  getAllActiveConditionalStyle(): ConditionalStyle[];
29
26
  /**
30
- * Gets all Conditional Styles that are suspended in Adaptable State
31
- * @returns conditional styles
27
+ * @deprecated use `FormatColumnָAPI` instead
32
28
  */
33
29
  getAllSuspendedConditionalStyle(): ConditionalStyle[];
34
30
  /**
35
- * Opens Settings Panel with Conditional Style section selected and visible
31
+ * @deprecated use `FormatColumnָAPI` instead
36
32
  */
37
33
  showConditionalStylePopup(): void;
38
34
  /**
39
- * Retrieves all Conditional Styles that style whole row
40
- * @returns conditional styles
35
+ * @deprecated use `FormatColumnָAPI` instead
41
36
  */
42
37
  getRowConditionalStyles(): ConditionalStyle[] | undefined;
43
38
  /**
44
- * Retrieves all Conditional Styles which have an Expression
45
- * @returns conditional styles
39
+ * @deprecated use `FormatColumnָAPI` instead
46
40
  */
47
41
  getConditionalStylesWithExpression(): ConditionalStyle[] | undefined;
48
42
  /**
49
- * Gets all Conditional Styles that style a given Column
50
- * @param column Column to check
51
- * @returns conditional styles
43
+ * @deprecated use `FormatColumnָAPI` instead
52
44
  */
53
45
  getConditionalStylesForColumn(column: AdaptableColumn): ConditionalStyle[] | undefined;
54
46
  /**
55
- * Returns all Predicates usable in Conditional Styles
47
+ * @deprecated use `FormatColumnָAPI` instead
56
48
  */
57
49
  getConditionalStylePredicateDefs(): AdaptablePredicateDef[];
58
50
  /**
59
- * Returns all Predicates appropriate for the given Scope
60
- * @param scope Scope to check
51
+ * @deprecated use `FormatColumnָAPI` instead
61
52
  */
62
53
  getCondStylePredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
63
54
  /**
64
- * Retrieves all Conditional Styles ordered by Column then Row
65
- * @returns conditional style
55
+ * @deprecated use `FormatColumnָAPI` instead
66
56
  */
67
57
  getOrderedConditionalStyles(): ConditionalStyle[] | undefined;
68
58
  /**
69
- * Replaces Conditional Style in State with given one
70
- * @param conditionalStyle Conditional Style to edit
71
- * @returns conditional style
59
+ * @deprecated use `FormatColumnָAPI` instead
72
60
  */
73
61
  editConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
74
62
  /**
75
- * Replaces Conditional Styles in State with given ones
76
- * @param conditionalStyles Conditional Styles to edit
77
- * @returns conditional styles
63
+ * @deprecated use `FormatColumnָAPI` instead
78
64
  */
79
65
  editConditionalStyles(conditionalStyles: ConditionalStyle[]): ConditionalStyle[];
80
66
  /**
81
- * Deletes a Conditional Style
82
- * @param conditionalStyle Conditional Style to delete
67
+ * @deprecated use `FormatColumnָAPI` instead
83
68
  */
84
69
  deleteConditionalStyle(conditionalStyle: ConditionalStyle): void;
85
70
  /**
86
- * Deletes Conditional Styles
87
- * @param conditionalStyles Conditional Styles to delete
71
+ * @deprecated use `FormatColumnָAPI` instead
88
72
  */
89
73
  deleteConditionalStyles(conditionalStyles: ConditionalStyle[]): void;
90
74
  /**
91
- * Adds new Conditional Style to State
92
- * @param conditionalStyle Conditional Style to add
93
- * @returns conditional style
75
+ * @deprecated use `FormatColumnָAPI` instead
94
76
  */
95
77
  addConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
96
78
  /**
97
- * Suspends conditional style, a readonly object cannot be suspended
98
- * @param conditionalStyle Conditional Style to suspend
99
- * @returns conditional style
79
+ * @deprecated use `FormatColumnָAPI` instead
100
80
  */
101
81
  suspendConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
102
82
  /**
103
- * Un-suspends or activates a suspended conditional style
104
- * @param conditionalStyle Conditional Style to suspend
105
- * @returns conditional style
83
+ * @deprecated use `FormatColumnָAPI` instead
106
84
  */
107
85
  unSuspendConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
108
86
  }
@@ -116,8 +116,7 @@ export interface ConfigApi {
116
116
  */
117
117
  getCalculatedColumnState(returnJson: boolean): CalculatedColumnState;
118
118
  /**
119
- * Returns Conditional Style section of Adaptable State
120
- * @param returnJson return as JSON rather than object
119
+ * @deprecated use `getFormatColumnState` instead
121
120
  */
122
121
  getConditionalStyleState(returnJson: boolean): ConditionalStyleState;
123
122
  /**
@@ -1,7 +1,7 @@
1
1
  import { AdaptableForm } from '../PredefinedConfig/Common/AdaptableForm';
2
2
  import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } from '../PredefinedConfig/ExportState';
3
3
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
4
- import { CustomDestination, CustomReport, ExportFormContext } from '../AdaptableOptions/ExportOptions';
4
+ import { CustomDestination, ServerReport, ExportFormContext } from '../AdaptableOptions/ExportOptions';
5
5
  import { ExportDestination } from '../PredefinedConfig/Common/Enums';
6
6
  /**
7
7
  * Provides run-time access to the Export Module and Report state
@@ -50,7 +50,7 @@ export interface ExportApi {
50
50
  /**
51
51
  * Returns any Custom Reports that have been provided to Export Options
52
52
  */
53
- getAllCustomReports(): CustomReport[] | undefined;
53
+ getAllServerReports(): ServerReport[] | undefined;
54
54
  /**
55
55
  * Retrieves System Reports section of Export State
56
56
  */
@@ -139,14 +139,14 @@ export interface ExportApi {
139
139
  exportVisualDataToExcel(): void;
140
140
  /**
141
141
  * Whether a Report is a Custom Report
142
- * @param customReportName Report to Check
142
+ * @param report Report to Check
143
143
  */
144
- isCustomReport(report: Report): boolean;
144
+ isServerReport(report: Report): boolean;
145
145
  /**
146
- * Runs the report function of the CustomReport with the given reportName
146
+ * Runs the report function of the ServerReport with the given reportName
147
147
  * @param reportName custom report name
148
148
  */
149
- runCustomReport(reportName: string): ReportData | undefined;
149
+ runServerReport(reportName: string): ReportData | undefined;
150
150
  /**
151
151
  * Returns the ReportData for the Report with the given name
152
152
  * @param reportName - the name of the report
@@ -0,0 +1,10 @@
1
+ import { FinsemblePluginOptions } from '../AdaptableOptions/FinsemblePluginOptions';
2
+ /**
3
+ * Provides run-time access to the Finsemble Plugin
4
+ */
5
+ export interface FinsembleApi {
6
+ /**
7
+ * Retrieves the FinsemblePlugOptions provided in Finsemble Plugin
8
+ */
9
+ getPluginOptions(): FinsemblePluginOptions;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
- import { FormatColumnState, FormatColumn, ColumnStyle, ColumnComparison, CellColorRange } from '../PredefinedConfig/FormatColumnState';
2
- import { AdaptableColumn, AdaptableFormat } from '../types';
1
+ import { FormatColumnState, FormatColumn } from '../PredefinedConfig/FormatColumnState';
2
+ import { AdaptableColumn, AdaptableFormat, AdaptablePredicateDef, AdaptableScope } from '../types';
3
3
  import { RowNode } from '@ag-grid-community/core';
4
4
  /**
5
5
  * Provides run-time access to the Format Column Module and associated state
@@ -38,15 +38,10 @@ export interface FormatColumnApi {
38
38
  */
39
39
  getAllFormatColumnWithStyle(): FormatColumn[];
40
40
  /**
41
- * Retrieves the ColumnComparison property, if there, from a Format Column (Column Style)
42
- * @param formatColumn Format Column to Add
43
- */
44
- getColumnComparisonForFormatColumn(formatColumn: FormatColumn): ColumnComparison | undefined;
45
- /**
46
- * Returns any ColumnIds referenced in a Column Comparison
47
- * @param columnComparision Column Comparison to check
41
+ * Retrieves all Format Columns in Adaptable State with the `Style` or the `CellAlignment` property set
42
+ * @returns format columns
48
43
  */
49
- getColumnIdsFromColumnComparison(columnComparision: ColumnComparison): string[];
44
+ getAllFormatColumnWithStyleAndCellAlignment(): FormatColumn[];
50
45
  /**
51
46
  * Retrieves all Format Columns in Adaptable State with `DisplayFormat` property set
52
47
  * @returns format columns
@@ -105,23 +100,21 @@ export interface FormatColumnApi {
105
100
  */
106
101
  showFormatColumnPopup(): void;
107
102
  /**
108
- * Gets an active Format Column, if any, for given Column
109
- * @param column The Column for which to retrieve the Format Column
110
- * @returns format column
111
- */
112
- getActiveFormatColumnForColumn(column: AdaptableColumn): FormatColumn | undefined;
113
- /**
114
- * Gets Format Column, if any, for given Column
103
+ * Gets all FormatColumns which are defined for the given column
115
104
  * @param column The Column for which to retrieve the Format Column
116
105
  * @returns format column
117
106
  */
118
- getFormatColumnForColumn(column: AdaptableColumn): FormatColumn | undefined;
107
+ getFormatColumnsForColumn(column: AdaptableColumn, config?: {
108
+ includeSuspended?: boolean;
109
+ }): FormatColumn[];
119
110
  /**
120
- * Gets Format Column, if any, for given ColumnId
111
+ * Gets all FormatColumns which are defined for the column with the given columnId
121
112
  * @param columnId ColumnId for which to retrieve the Format Column
122
113
  * @returns format column
123
114
  */
124
- getFormatColumnForColumnId(columnId: string): FormatColumn | undefined;
115
+ getFormatColumnsForColumnId(columnId: string, config?: {
116
+ includeSuspended?: boolean;
117
+ }): FormatColumn[];
125
118
  /**
126
119
  * Get Format Column which has Scope of Single Column, if any, for given ColumnId
127
120
  * @param columnId ColumnId for which to retrieve the Format Column
@@ -129,57 +122,35 @@ export interface FormatColumnApi {
129
122
  */
130
123
  getFormatColumnWithSingleColumnScope(columnId: string): FormatColumn | undefined;
131
124
  /**
132
- * Gets Format Column if any for given Column which includes Style element
133
- * @param column The Column for which to retrieve the Format Column
134
- * @returns format column
125
+ * Get all FormatColumns which are defined for this column and have a custom AdaptableStyle
126
+ * @param column
127
+ * @param config
128
+ * @returns list of FormatColumn
135
129
  */
136
- getFormatColumnWithStyleForColumn(column: AdaptableColumn): FormatColumn | undefined;
130
+ getFormatColumnsWithStyleForColumn(column: AdaptableColumn, config?: {
131
+ includeSuspended?: boolean;
132
+ }): FormatColumn[];
137
133
  /**
138
134
  * Gets Format Column if any for given Column which includes Style element with ClassName
139
135
  * @param column The Column for which to retrieve the Format Column
140
- * @returns format column
136
+ * @returns format columns
141
137
  */
142
- getFormatColumnWithStyleClassNameForColumn(column: AdaptableColumn): FormatColumn | undefined;
138
+ getFormatColumnWithStyleClassNameForColumn(column: AdaptableColumn, config?: {
139
+ includeSuspended?: boolean;
140
+ }): FormatColumn[];
143
141
  /**
144
- * Will get the most appropriate one i.e. first named Column, then DataType, then All
142
+ * Get all FormatColumns which are defined for this column and have a custom DisplayFormat
145
143
  * @param column
146
- * @returns format column
144
+ * @param config
145
+ * @returns list of FormatColumn
147
146
  */
148
- getFormatColumnWithDisplayFormatForColumn(column: AdaptableColumn): FormatColumn | undefined;
147
+ getFormatColumnsWithDisplayFormatForColumn(column: AdaptableColumn, config?: {
148
+ includeSuspended?: boolean;
149
+ }): FormatColumn[];
149
150
  /**
150
151
  * Returns true if Format State includes Format Columns with a Style property
151
152
  */
152
153
  hasStyleFormatColumns(): boolean;
153
- /**
154
- * Gets the Minimum Value to display for a Numeric Style
155
- * @param numericStyle Numeric Style to check
156
- * @param rowNode current Row Node
157
- * @param cellValue current Cell Value
158
- */
159
- getNumericStyleMinValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
160
- /**
161
- * Gets the Maximum Value to display for a Numeric Style
162
- * @param numericStyle Numeric Style to check
163
- * @param rowNode current Row Node
164
- * @param cellValue current Cell Value
165
- */
166
- getNumericStyleMaxValue(numericStyle: ColumnStyle, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
167
- getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
168
- getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn): number | undefined;
169
- /**
170
- * Returns first Format Column that contains checkbox style
171
- * @param columnId column to check
172
- */
173
- getCheckBoxStyleFormatColumn(column: AdaptableColumn): FormatColumn | undefined;
174
- /**
175
- * Whether given column is a (boolean) checkbox column
176
- * @param columnId column to check
177
- */
178
- isCheckBoxStyleFormatColumn(column: AdaptableColumn): boolean;
179
- /**
180
- * Publishes the CheckboxColumnClickedEvent - when the checkbox in an Checkbox Column is clicked
181
- */
182
- fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
183
154
  /**
184
155
  * Format value according to format options.
185
156
  *
@@ -206,4 +177,50 @@ export interface FormatColumnApi {
206
177
  * @param formatColumn Format Column
207
178
  */
208
179
  hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
180
+ /**
181
+ * Returns all Predicates usable in Format Columns
182
+ */
183
+ getFormatColumnPredicateDefs(): AdaptablePredicateDef[];
184
+ /**
185
+ * Returns all Predicates appropriate for the given Scope
186
+ * @param scope Scope to check
187
+ */
188
+ getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
189
+ /**
190
+ * Checks if format column is relevant for a given cell (intersection of given AdaptableColumn and RowNode)
191
+ *
192
+ * @param formatColumn
193
+ * @param column
194
+ * @param params
195
+ */
196
+ isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
197
+ node: RowNode;
198
+ value: any;
199
+ }): boolean;
200
+ /**
201
+ * Extract from the given FormatColumns only the ones which are relevant for a given cell (intersection of given AdaptableColumn and RowNode)
202
+ *
203
+ * @param formatColumns
204
+ * @param column
205
+ * @param params
206
+ */
207
+ getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
208
+ node: RowNode;
209
+ value: any;
210
+ }): FormatColumn[];
211
+ /**
212
+ * Retrieves all Format Columns which have an Expression
213
+ * @returns Format Columns with Expression
214
+ */
215
+ getFormatColumnsWithExpression(): FormatColumn[] | undefined;
216
+ /**
217
+ * Increment the precedence of the given FormatColumn
218
+ * @param formatColumn
219
+ */
220
+ incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
221
+ /**
222
+ * Decrement the precedence of the given FormatColumn
223
+ * @param formatColumn
224
+ */
225
+ decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
209
226
  }
@@ -39,6 +39,7 @@ import { FlashingCellApi } from '../FlashingCellApi';
39
39
  import { ChartingApi } from '../ChartingApi';
40
40
  import { StatusBarApi } from '../StatusBarApi';
41
41
  import { ActionApi } from '../../../types';
42
+ import { StyledColumnApi } from '../StyledColumnApi';
42
43
  export declare class AdaptableApiImpl implements AdaptableApi {
43
44
  protected adaptable: IAdaptable;
44
45
  actionApi: ActionApi;
@@ -75,6 +76,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
75
76
  queryApi: QueryApi;
76
77
  queryLanguageApi: QueryLanguageApi;
77
78
  settingsPanelApi: SettingsPanelApi;
79
+ styledColumnApi: StyledColumnApi;
78
80
  toolPanelApi: ToolPanelApi;
79
81
  teamSharingApi: TeamSharingApi;
80
82
  scopeApi: ScopeApi;
@@ -41,6 +41,7 @@ const FlashingCellApiImpl_1 = require("./FlashingCellApiImpl");
41
41
  const ChartingApiImpl_1 = require("./ChartingApiImpl");
42
42
  const SettingsPanelApiImpl_1 = require("./SettingsPanelApiImpl");
43
43
  const ActionApiImpl_1 = require("./ActionApiImpl");
44
+ const StyledColumnApiImpl_1 = require("./StyledColumnApiImpl");
44
45
  class AdaptableApiImpl {
45
46
  constructor(adaptable) {
46
47
  this.adaptable = adaptable;
@@ -79,6 +80,7 @@ class AdaptableApiImpl {
79
80
  this.userInterfaceApi = new UserInterfaceApiImpl_1.UserInterfaceApiImpl(adaptable);
80
81
  this.queryApi = new QueryApiImpl_1.QueryApiImpl(adaptable);
81
82
  this.queryLanguageApi = new QueryLanguageApiImpl_1.QueryLanguageApiImpl(adaptable);
83
+ this.styledColumnApi = new StyledColumnApiImpl_1.StyledColumnApiImpl(adaptable);
82
84
  this.toolPanelApi = new ToolPanelApiImpl_1.ToolPanelApiImpl(adaptable);
83
85
  this.teamSharingApi = new TeamSharingApiImpl_1.TeamSharingApiImpl(adaptable);
84
86
  this.scopeApi = new ScopeApiImpl_1.ScopeApiImpl(adaptable);
@@ -22,7 +22,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
22
22
  isCalculatedColumn(columnId: string): boolean;
23
23
  isFreeTextColumn(columnId: string): boolean;
24
24
  isActionColumn(columnId: string): boolean;
25
- isFormatNumericStyleColumn(column: AdaptableColumn): boolean;
25
+ isStyledNumericColumn(column: AdaptableColumn): boolean;
26
26
  isNumericColumn(column: AdaptableColumn): boolean;
27
27
  isBooleanColumn(column: AdaptableColumn): boolean;
28
28
  isDateColumn(column: AdaptableColumn): boolean;
@@ -61,6 +61,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
61
61
  getDistinctBulkUpdateDisplayValuesForColumn(columnId: string, selectedGridCells: GridCell[]): Promise<any[]>;
62
62
  getDistinctVisibleDisplayValuesForColumn(columnId: string): any[];
63
63
  getDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
64
+ getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
64
65
  getDistinctVisibleRawValuesForColumn(columnId: string): any[];
65
66
  private sortDistinctValues;
66
67
  getPrimaryKeyColumn(): AdaptableColumn;
@@ -79,23 +79,23 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
79
79
  return (((_a = this.adaptable.api.actionApi.getAllActionColumn()) === null || _a === void 0 ? void 0 : _a.find((cc) => cc.columnId == columnId)) !=
80
80
  null);
81
81
  }
82
- isFormatNumericStyleColumn(column) {
82
+ isStyledNumericColumn(column) {
83
83
  if (column) {
84
- return this.adaptable.api.formatColumnApi
85
- .getAllFormatColumn()
86
- .filter((fc) => { var _a, _b; return ((_a = fc.ColumnStyle) === null || _a === void 0 ? void 0 : _a.GradientStyle) || ((_b = fc.ColumnStyle) === null || _b === void 0 ? void 0 : _b.PercentBarStyle); })
87
- .some((formatColumn) => this.adaptable.api.scopeApi.isColumnInScope(column, formatColumn.Scope));
84
+ const styledColmn = this.adaptable.api.styledColumnApi
85
+ .getAllActiveStyledColumn()
86
+ .find((sc) => !sc.CheckBoxStyle && sc.ColumnId == column.columnId);
87
+ return styledColmn != null;
88
88
  }
89
89
  return false;
90
90
  }
91
91
  isNumericColumn(column) {
92
- return column.dataType == 'Number';
92
+ return (column === null || column === void 0 ? void 0 : column.dataType) == 'Number';
93
93
  }
94
94
  isBooleanColumn(column) {
95
- return column.dataType == 'Boolean';
95
+ return (column === null || column === void 0 ? void 0 : column.dataType) == 'Boolean';
96
96
  }
97
97
  isDateColumn(column) {
98
- return column.dataType == 'Date';
98
+ return (column === null || column === void 0 ? void 0 : column.dataType) == 'Date';
99
99
  }
100
100
  getColumnDataTypeFromColumnId(columnId) {
101
101
  const column = this.getColumnFromId(columnId); // this.getColumns().find(c => c.ColumnId == columnId);
@@ -343,11 +343,17 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
343
343
  if (abColumn == undefined) {
344
344
  return [];
345
345
  }
346
- const returnValues = this.adaptable.getDistinctValuesForColumn(abColumn, false, skipRowNode);
347
- return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
346
+ return this.sortDistinctValues(this.getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode), abColumn).map((cv) => {
348
347
  return cv.rawValue;
349
348
  });
350
349
  }
350
+ getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode) {
351
+ const abColumn = this.getColumnFromId(columnId);
352
+ if (abColumn == undefined) {
353
+ return [];
354
+ }
355
+ return this.adaptable.getDistinctValuesForColumn(abColumn, false, skipRowNode);
356
+ }
351
357
  getDistinctVisibleRawValuesForColumn(columnId) {
352
358
  const abColumn = this.getColumnFromId(columnId);
353
359
  if (abColumn == undefined) {
@@ -424,15 +430,13 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
424
430
  if (column.dataType !== 'Number') {
425
431
  return undefined;
426
432
  }
427
- // can we cache this in some way?
428
- return Math.min(...this.getDistinctRawValuesForColumn(column.columnId));
433
+ return this.adaptable.getMinMaxCachedValueForColumn(column, 'min');
429
434
  }
430
435
  getMaxValueForNumericColumn(column) {
431
436
  if (column.dataType !== 'Number') {
432
437
  return undefined;
433
438
  }
434
- // can we cache this in some way?
435
- return Math.max(...this.getDistinctRawValuesForColumn(column.columnId));
439
+ return this.adaptable.getMinMaxCachedValueForColumn(column, 'max');
436
440
  }
437
441
  getTypesForColumn(columnId) {
438
442
  var _a;
@@ -3,7 +3,7 @@ import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } fr
3
3
  import { ApiBase } from './ApiBase';
4
4
  import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
5
5
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
6
- import { CustomDestination, CustomReport, ExportFormContext } from '../../AdaptableOptions/ExportOptions';
6
+ import { CustomDestination, ServerReport, ExportFormContext } from '../../AdaptableOptions/ExportOptions';
7
7
  import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
8
8
  export declare class ExportApiImpl extends ApiBase implements ExportApi {
9
9
  getExportState(): ExportState;
@@ -30,8 +30,8 @@ export declare class ExportApiImpl extends ApiBase implements ExportApi {
30
30
  editReports(reports: Report[]): Report[];
31
31
  isDataChangeInReport(cellDataChangedInfo: CellDataChangedInfo, report: Report): boolean;
32
32
  exportVisualDataToExcel(): void;
33
- getAllCustomReports(): CustomReport[] | undefined;
34
- isCustomReport(report: Report): boolean;
35
- runCustomReport(customReportName: string): ReportData | undefined;
33
+ getAllServerReports(): ServerReport[] | undefined;
34
+ isServerReport(report: Report): boolean;
35
+ runServerReport(serverReportName: string): ReportData | undefined;
36
36
  getReportDataForReport(reportName: string): ReportData | undefined;
37
37
  }
@@ -61,10 +61,10 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
61
61
  const reports = this.getAvailableSystemReports()
62
62
  .map((s) => this.getReportByName(s))
63
63
  .concat(this.getExportState().Reports);
64
- const customReports = this.getAllCustomReports();
65
- if (ArrayExtensions_1.default.IsNotNullOrEmpty(customReports)) {
66
- reports.push(...customReports.map((c) => {
67
- return ObjectFactory_1.default.CreateCustomReport(c.name);
64
+ const serverReports = this.getAllServerReports();
65
+ if (ArrayExtensions_1.default.IsNotNullOrEmpty(serverReports)) {
66
+ reports.push(...serverReports.map((c) => {
67
+ return ObjectFactory_1.default.CreateServerReport(c.name);
68
68
  }));
69
69
  }
70
70
  return reports;
@@ -120,7 +120,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
120
120
  return true;
121
121
  }
122
122
  // if its a Custom Report then the User has to run it so we just ignore completely
123
- if (this.isCustomReport(report)) {
123
+ if (this.isServerReport(report)) {
124
124
  return false;
125
125
  }
126
126
  // Start with the DataChanged Column and go through all possibilities
@@ -178,21 +178,21 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
178
178
  exportVisualDataToExcel() {
179
179
  this.adaptable.exportVisualDataToExcel();
180
180
  }
181
- getAllCustomReports() {
182
- return this.getExportOptions().customReports;
181
+ getAllServerReports() {
182
+ return this.getExportOptions().serverReports;
183
183
  }
184
- isCustomReport(report) {
184
+ isServerReport(report) {
185
185
  var _a;
186
- return ((_a = this.getAllCustomReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == report.Name)) != null;
186
+ return ((_a = this.getAllServerReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == report.Name)) != null;
187
187
  }
188
- runCustomReport(customReportName) {
188
+ runServerReport(serverReportName) {
189
189
  var _a;
190
- const customReport = (_a = this.getAllCustomReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == customReportName);
191
- if (!customReport) {
192
- (0, LoggingHelper_1.LogAdaptableWarning)(`Custom Report '${customReportName}' not found!`);
190
+ const serverReport = (_a = this.getAllServerReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == serverReportName);
191
+ if (!serverReport) {
192
+ (0, LoggingHelper_1.LogAdaptableWarning)(`Server Report '${serverReportName}' not found!`);
193
193
  return undefined;
194
194
  }
195
- return customReport.onRunReport();
195
+ return serverReport.onRunReport();
196
196
  }
197
197
  getReportDataForReport(reportName) {
198
198
  const report = this.getReportByName(reportName);