@adaptabletools/adaptable 13.0.0-canary.0 → 13.0.0-canary.10

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 (169) hide show
  1. package/agGrid.d.ts +23 -1
  2. package/agGrid.js +23 -1
  3. package/base.css +1 -0
  4. package/bundle.cjs.js +169 -169
  5. package/index.css +1 -0
  6. package/package.json +3 -3
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +7 -3
  10. package/src/AdaptableOptions/AdaptableOptions.d.ts +0 -2
  11. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +108 -23
  12. package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +32 -0
  13. package/src/AdaptableOptions/FinsemblePluginOptions.js +2 -0
  14. package/src/AdaptableOptions/GeneralOptions.d.ts +5 -0
  15. package/src/Api/ConditionalStyleApi.d.ts +20 -42
  16. package/src/Api/ConfigApi.d.ts +1 -2
  17. package/src/Api/FinsembleApi.d.ts +10 -0
  18. package/src/Api/FinsembleApi.js +2 -0
  19. package/src/Api/FormatColumnApi.d.ts +47 -3
  20. package/src/Api/Implementation/ColumnApiImpl.js +3 -3
  21. package/src/Api/Implementation/DashboardApiImpl.js +2 -3
  22. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +18 -1
  23. package/src/Api/Implementation/FormatColumnApiImpl.js +97 -14
  24. package/src/Api/Implementation/InternalApiImpl.d.ts +1 -0
  25. package/src/Api/Implementation/InternalApiImpl.js +4 -0
  26. package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -0
  27. package/src/Api/Implementation/PluginsApiImpl.js +6 -0
  28. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +0 -2
  29. package/src/Api/Implementation/QueryLanguageApiImpl.js +0 -3
  30. package/src/Api/Implementation/SystemStatusApiImpl.js +1 -2
  31. package/src/Api/Implementation/ToolPanelApiImpl.d.ts +3 -1
  32. package/src/Api/Implementation/ToolPanelApiImpl.js +8 -0
  33. package/src/Api/InternalApi.d.ts +1 -0
  34. package/src/Api/PluginsApi.d.ts +5 -0
  35. package/src/Api/QueryLanguageApi.d.ts +0 -5
  36. package/src/Api/ToolPanelApi.d.ts +10 -1
  37. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
  38. package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
  39. package/src/PredefinedConfig/ConditionalStyleState.d.ts +10 -19
  40. package/src/PredefinedConfig/FormatColumnState.d.ts +19 -6
  41. package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -0
  42. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
  43. package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
  44. package/src/Redux/Store/AdaptableStore.js +2 -0
  45. package/src/Strategy/ConditionalStyleModule.d.ts +2 -0
  46. package/src/Strategy/ConditionalStyleModule.js +6 -0
  47. package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
  48. package/src/Strategy/DataChangeHistoryModule.js +12 -0
  49. package/src/Strategy/FormatColumnModule.d.ts +4 -9
  50. package/src/Strategy/FormatColumnModule.js +52 -2
  51. package/src/Strategy/Interface/IModule.d.ts +11 -10
  52. package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.d.ts +2 -2
  53. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.d.ts +1 -1
  54. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +3 -4
  55. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -10
  56. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
  57. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -1
  58. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
  59. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +3 -1
  60. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
  61. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -1
  62. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -0
  63. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -1
  64. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
  65. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -1
  66. package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
  67. package/src/Utilities/Extensions/TypeExtensions.js +5 -0
  68. package/src/Utilities/ObjectFactory.js +0 -1
  69. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
  70. package/src/Utilities/Services/{LicenseService.d.ts → LicenseService/index.d.ts} +3 -3
  71. package/src/Utilities/Services/LicenseService/index.js +1 -0
  72. package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.d.ts +1 -0
  73. package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +15 -0
  74. package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
  75. package/src/Utilities/Services/QueryLanguageService.js +88 -39
  76. package/src/Utilities/license/LicenseDetails.d.ts +1 -1
  77. package/src/Utilities/license/decode.d.ts +1 -0
  78. package/src/Utilities/license/decode.js +1 -1
  79. package/src/View/AdaptablePopover/index.d.ts +2 -2
  80. package/src/View/AdaptableView.d.ts +3 -3
  81. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +1 -1
  82. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +1 -1
  83. package/src/View/AdaptableWizardView/index.d.ts +1 -1
  84. package/src/View/ColorPicker.d.ts +1 -5
  85. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  86. package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -1
  87. package/src/View/Components/EntityRulesEditor/index.d.ts +2 -1
  88. package/src/View/Components/EntityRulesEditor/index.js +29 -19
  89. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +1 -1
  90. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +2 -2
  91. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +1 -1
  92. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -0
  93. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -1
  94. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +1 -1
  95. package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +1 -1
  96. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +1 -1
  97. package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +4 -0
  98. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +5 -2
  99. package/src/View/ConditionalStyle/ConditionalStylePopupHeader.d.ts +2 -0
  100. package/src/View/ConditionalStyle/ConditionalStylePopupHeader.js +18 -0
  101. package/src/View/FormatColumn/MoveFormatColumn.d.ts +7 -0
  102. package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
  103. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  104. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +8 -0
  105. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +29 -0
  106. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +20 -2
  107. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +0 -22
  108. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
  109. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +13 -0
  110. package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
  111. package/src/View/FormatColumn/Wizard/constants.js +4 -0
  112. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  113. package/src/View/Layout/Wizard/sections/SettingsSection.d.ts +2 -2
  114. package/src/View/License/LicenseWatermark.d.ts +1 -1
  115. package/src/View/StateManagement/components/ClearButton.d.ts +1 -1
  116. package/src/View/StateManagement/components/LoadButton.d.ts +1 -1
  117. package/src/View/StatusBar/StatusBarPanel.d.ts +4 -4
  118. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +3 -3
  119. package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
  120. package/src/View/Wizard/OnePageWizards.d.ts +3 -3
  121. package/src/View/Wizard/OnePageWizards.js +2 -2
  122. package/src/agGrid/ActionColumnRenderer.d.ts +1 -0
  123. package/src/agGrid/ActionColumnRenderer.js +5 -5
  124. package/src/agGrid/Adaptable.d.ts +13 -2
  125. package/src/agGrid/Adaptable.js +142 -85
  126. package/src/agGrid/FilterWrapper.js +5 -5
  127. package/src/agGrid/FloatingFilterWrapper.js +3 -4
  128. package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -0
  129. package/src/agGrid/createAgStatusPanelComponent.js +3 -3
  130. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -0
  131. package/src/agGrid/editors/AdaptableDateEditor/index.js +3 -3
  132. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
  133. package/src/agGrid/editors/AdaptableNumberEditor/index.js +3 -3
  134. package/src/components/CheckBox/index.d.ts +1 -1
  135. package/src/components/Datepicker/index.d.ts +1 -1
  136. package/src/components/Dialog/index.d.ts +4 -2
  137. package/src/components/Dialog/index.js +2 -2
  138. package/src/components/DropdownButton/index.d.ts +21 -4
  139. package/src/components/DropdownButton/index.js +5 -6
  140. package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -1
  141. package/src/components/ExpressionEditor/EditorInput.js +1 -1
  142. package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
  143. package/src/components/Input/index.d.ts +1 -1
  144. package/src/components/List/ListGroupItem/index.d.ts +4 -2
  145. package/src/components/Loader/Loader.d.ts +2 -2
  146. package/src/components/Logo/index.d.ts +1 -1
  147. package/src/components/Modal/index.d.ts +1 -1
  148. package/src/components/PopupWithFooter.d.ts +2 -2
  149. package/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
  150. package/src/components/SelectList.d.ts +1 -1
  151. package/src/components/SimpleButton/index.d.ts +4 -5
  152. package/src/components/SimpleButton/index.js +3 -2
  153. package/src/components/StylePreview.d.ts +1 -1
  154. package/src/components/Tag/Tag.d.ts +1 -1
  155. package/src/components/Textarea/index.d.ts +6 -4
  156. package/src/components/ToggleButton/index.d.ts +1 -1
  157. package/src/components/WindowModal/WindowModal.d.ts +1 -1
  158. package/src/components/icons/index.d.ts +3 -2
  159. package/src/components/icons/layout.d.ts +2 -1
  160. package/src/components/utils/useContainerScrollObserver/index.d.ts +1 -1
  161. package/src/metamodel/adaptable.metamodel.d.ts +100 -64
  162. package/src/metamodel/adaptable.metamodel.js +1 -1
  163. package/src/parser/src/types.d.ts +6 -3
  164. package/src/renderReactRoot.d.ts +3 -0
  165. package/src/renderReactRoot.js +54 -0
  166. package/src/types.d.ts +4 -2
  167. package/version.d.ts +1 -1
  168. package/version.js +1 -1
  169. package/src/Utilities/Services/LicenseService.js +0 -1
@@ -110,6 +110,18 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
110
110
  const formatColumns = this.getAllActiveFormatColumn();
111
111
  return this.getAppropriateFormatColumn(formatColumns, column);
112
112
  }
113
+ getColumnFormatColumnsWithStyle(column) {
114
+ const formatColumns = this.getAllFormatColumnWithStyle();
115
+ return this.getFormatColumnInColumnScope(formatColumns, column).filter((scopedFormatColumn) => {
116
+ return (!this.adaptable.api.scopeApi.scopeIsAll(scopedFormatColumn.Scope) &&
117
+ this.adaptable.api.scopeApi.isColumnInScope(column, scopedFormatColumn.Scope));
118
+ });
119
+ }
120
+ getRowFormatColumnsWithStyle() {
121
+ return this.getAllFormatColumnWithStyle().filter((formatColumn) => {
122
+ return this.adaptable.api.scopeApi.scopeIsAll(formatColumn.Scope);
123
+ });
124
+ }
113
125
  getFormatColumnForColumn(column) {
114
126
  const formatColumns = this.getAllFormatColumn();
115
127
  return this.getAppropriateFormatColumn(formatColumns, column);
@@ -126,8 +138,7 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
126
138
  return this.getAppropriateFormatColumn(formatColumns, column);
127
139
  }
128
140
  getFormatColumnWithStyleClassNameForColumn(column) {
129
- const formatColumns = this.getAllFormatColumnWithStyle().filter((fc) => StringExtensions_1.default.IsNotNullOrEmpty(fc.Style.ClassName));
130
- return this.getAppropriateFormatColumn(formatColumns, column);
141
+ return this.getColumnFormatColumnsWithStyle(column).filter((fc) => StringExtensions_1.default.IsNotNullOrEmpty(fc.Style.ClassName));
131
142
  }
132
143
  getFormatColumnWithDisplayFormatForColumn(column) {
133
144
  const formatColumns = this.getAllFormatColumnWithDisplayFormat().concat(this.getAllFormatColumnWithCellAlignment());
@@ -150,20 +161,14 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
150
161
  });
151
162
  return returnFormatColumn;
152
163
  }
153
- getAppropriateFormatColumn(formatColumns, column) {
154
- let scopedFormatColumns = this.getFormatColumnsWithColumnScope(formatColumns)
164
+ getFormatColumnInColumnScope(formatColumns, column) {
165
+ return this.getFormatColumnsWithColumnScope(formatColumns)
155
166
  .concat(this.getFormatColumnsWithDataTypeScope(formatColumns))
156
167
  .concat(this.getFormatColumnsWithAllScope(formatColumns));
157
- let returnFormatColumn = undefined;
158
- scopedFormatColumns.forEach((fc) => {
159
- // we just do one and then return
160
- if (returnFormatColumn == undefined) {
161
- if (this.adaptable.api.scopeApi.isColumnInScope(column, fc.Scope)) {
162
- returnFormatColumn = fc;
163
- }
164
- }
165
- });
166
- return returnFormatColumn;
168
+ }
169
+ getAppropriateFormatColumn(formatColumns, column) {
170
+ return this.getFormatColumnInColumnScope(formatColumns, column).find((scopedFormatColumn) => !this.adaptable.api.scopeApi.scopeIsAll(scopedFormatColumn.Scope) &&
171
+ this.adaptable.api.scopeApi.isColumnInScope(column, scopedFormatColumn.Scope));
167
172
  }
168
173
  hasStyleFormatColumns() {
169
174
  return ArrayExtensions_1.default.IsNotNullOrEmpty(this.getAllFormatColumnWithStyle());
@@ -355,5 +360,83 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
355
360
  }
356
361
  return true;
357
362
  }
363
+ getFormatColumnPredicateDefs() {
364
+ return this.adaptable.api.predicateApi.getPredicateDefsByModuleScope('formatColumn');
365
+ }
366
+ getFormatColumnDefsForScope(scope) {
367
+ return this.getFormatColumnPredicateDefs().filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
368
+ }
369
+ isFormatColumnActiveForRow(formatColumn, params) {
370
+ // suspedned is important to be first
371
+ if (formatColumn.IsSuspended) {
372
+ return false;
373
+ }
374
+ if (!formatColumn.Rule) {
375
+ return true;
376
+ }
377
+ if (this.shouldRunStyle(formatColumn, params.node) &&
378
+ formatColumn.Rule.BooleanExpression &&
379
+ this.evaluateExpression(formatColumn, params.node)) {
380
+ return true;
381
+ }
382
+ // nothing has passed then return false
383
+ return false;
384
+ }
385
+ isFormatColumnActiveForColumn(formatColumn, column, params) {
386
+ // suspedned is important to be first
387
+ if (formatColumn.IsSuspended) {
388
+ return false;
389
+ }
390
+ if (!formatColumn.Rule) {
391
+ return true;
392
+ }
393
+ if (this.shouldRunStyle(formatColumn, params.node)) {
394
+ // first run the predicate
395
+ if (formatColumn.Rule.Predicate && formatColumn.Rule.Predicate.PredicateId) {
396
+ if (this.evaluatePredicate({
397
+ formatColumn,
398
+ column,
399
+ value: params.value,
400
+ node: params.node,
401
+ })) {
402
+ return true;
403
+ }
404
+ }
405
+ else if (formatColumn.Rule.BooleanExpression) {
406
+ if (this.evaluateExpression(formatColumn, params.node)) {
407
+ return true;
408
+ }
409
+ }
410
+ // nothing has passed then return false
411
+ return false;
412
+ }
413
+ }
414
+ evaluatePredicate({ formatColumn, column, value, node, }) {
415
+ const params = {
416
+ value: value,
417
+ oldValue: null,
418
+ displayValue: value,
419
+ node: node,
420
+ column: column,
421
+ };
422
+ const result = this.adaptable.api.predicateApi.handlePredicate(formatColumn.Rule.Predicate, params, false);
423
+ return result;
424
+ }
425
+ shouldRunStyle(formatColumn, node) {
426
+ if (!formatColumn.IncludeGroupedRows && this.adaptable.api.gridApi.isGroupRowNode(node)) {
427
+ return false;
428
+ }
429
+ return true;
430
+ }
431
+ evaluateExpression(formatColumn, node) {
432
+ const isValidExpression = this.adaptable.api.queryLanguageApi.isValidBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, `Invalid format column rule '${formatColumn.Rule.BooleanExpression}'`);
433
+ return (isValidExpression &&
434
+ this.adaptable.api.internalApi
435
+ .getQueryLanguageService()
436
+ .evaluateBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, node));
437
+ }
438
+ getFormatColumnsWithExpression() {
439
+ return this.getAllFormatColumn().filter((fc) => { var _a; return !!((_a = fc.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression); });
440
+ }
358
441
  }
359
442
  exports.FormatColumnApiImpl = FormatColumnApiImpl;
@@ -142,4 +142,5 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
142
142
  getValueForTag(adaptableObjectTag: AdaptableObjectTag): string | number;
143
143
  getEditLookUpValuesForColumn(editLookUpItem: EditLookUpPermittedValues, column: AdaptableColumn, gridCell?: GridCell): any[] | undefined;
144
144
  getAdaptableQueryExpressionText(query: Partial<AdaptableQuery>): string;
145
+ shouldKeepDeprecatedConditionalStyles(): boolean;
145
146
  }
@@ -650,5 +650,9 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
650
650
  ? this.adaptable.api.queryLanguageApi.getAdaptableQueryExpressionWithColumnFriendlyNames(query)
651
651
  : this.adaptable.api.queryLanguageApi.getAdaptableQueryExpression(query);
652
652
  }
653
+ shouldKeepDeprecatedConditionalStyles() {
654
+ var _a, _b;
655
+ return (_b = (_a = this.getOptions()) === null || _a === void 0 ? void 0 : _a.generalOptions) === null || _b === void 0 ? void 0 : _b.keepDeprecatedConditionalStyles;
656
+ }
653
657
  }
654
658
  exports.InternalApiImpl = InternalApiImpl;
@@ -5,6 +5,7 @@ import { IPushPullApi } from '../IPushPullApi';
5
5
  import { Glue42Api } from '../Glue42Api';
6
6
  import { OpenFinApi } from '../OpenFinApi';
7
7
  import { FinanceApi } from '../FinanceApi';
8
+ import { FinsembleApi } from '../FinsembleApi';
8
9
  export declare class PluginsApiImpl extends ApiBase implements PluginsApi {
9
10
  getPluginsState(): PluginsState;
10
11
  getPluginState(pluginId: string): any;
@@ -15,4 +16,5 @@ export declare class PluginsApiImpl extends ApiBase implements PluginsApi {
15
16
  getGlue42PluginApi(): Glue42Api;
16
17
  getOpenFinPluginApi(): OpenFinApi;
17
18
  getFinancePluginApi(): FinanceApi;
19
+ getFinsemblePluginApi(): FinsembleApi;
18
20
  }
@@ -32,6 +32,9 @@ class PluginsApiImpl extends ApiBase_1.ApiBase {
32
32
  if (pluginId === 'openfin') {
33
33
  return api;
34
34
  }
35
+ if (pluginId === 'finsemble') {
36
+ return api;
37
+ }
35
38
  return api;
36
39
  }
37
40
  catch (ex) {
@@ -50,5 +53,8 @@ class PluginsApiImpl extends ApiBase_1.ApiBase {
50
53
  getFinancePluginApi() {
51
54
  return this.getPluginApi('finance');
52
55
  }
56
+ getFinsemblePluginApi() {
57
+ return this.getPluginApi('finsemble');
58
+ }
53
59
  }
54
60
  exports.PluginsApiImpl = PluginsApiImpl;
@@ -1,7 +1,6 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
3
3
  import { QueryLanguageApi } from '../QueryLanguageApi';
4
- import { ExpressionFunctionMap } from '../../types';
5
4
  import { AdaptableQuery } from '../../PredefinedConfig/Common/AdaptableQuery';
6
5
  export declare class QueryLanguageApiImpl extends ApiBase implements QueryLanguageApi {
7
6
  isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
@@ -11,7 +10,6 @@ export declare class QueryLanguageApiImpl extends ApiBase implements QueryLangua
11
10
  getASTForExpression(query: string): any;
12
11
  getColumnsFromExpression(expression: string): string[];
13
12
  getQueryableColumnIds(): string[] | undefined;
14
- getModuleExpressionFunctionMap(): ExpressionFunctionMap;
15
13
  getAdaptableQueryExpression(query: Partial<AdaptableQuery>): string | undefined;
16
14
  getAdaptableQueryExpressionWithColumnFriendlyNames(query: Partial<AdaptableQuery>): string | undefined;
17
15
  }
@@ -83,9 +83,6 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
83
83
  }
84
84
  }
85
85
  }
86
- getModuleExpressionFunctionMap() {
87
- return this.getExpressionOptions().moduleExpressionFunctions;
88
- }
89
86
  getAdaptableQueryExpression(query) {
90
87
  var _a, _b, _c, _d;
91
88
  return ((_d = (_c = (_b = (_a = query.BooleanExpression) !== null && _a !== void 0 ? _a : query.ScalarExpression) !== null && _b !== void 0 ? _b : query.ObservableExpression) !== null && _c !== void 0 ? _c : query.AggregatedBooleanExpression) !== null && _d !== void 0 ? _d : query.AggregatedScalarExpression);
@@ -7,7 +7,6 @@ const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Sy
7
7
  const ApiBase_1 = require("./ApiBase");
8
8
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
9
9
  const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
10
- const react_dom_1 = require("react-dom");
11
10
  const react_1 = require("react");
12
11
  const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
13
12
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
@@ -57,7 +56,7 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
57
56
  statusMessage += statusFurtherInformation;
58
57
  }
59
58
  const foreColor = messageType ? UIHelper_1.default.getColorByMessageType(messageType) : 'black';
60
- (0, react_dom_1.render)((0, react_1.createElement)('span', { style: { color: foreColor } }, statusMessage), this.systemStatusDiv);
59
+ this.adaptable.renderReactRoot((0, react_1.createElement)('span', { style: { color: foreColor } }, statusMessage), this.systemStatusDiv);
61
60
  }
62
61
  }
63
62
  setErrorSystemStatus(statusMessage, statusFurtherInformation) {
@@ -3,7 +3,7 @@ import { ToolPanelApi } from '../ToolPanelApi';
3
3
  import { ToolPanelState, ToolPanelVisibilityMode } from '../../PredefinedConfig/ToolPanelState';
4
4
  import { CustomToolPanel, ToolPanelButtonContext } from '../../AdaptableOptions/ToolPanelOptions';
5
5
  import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
6
- import { AdaptableToolPanel } from '../../PredefinedConfig/Common/Types';
6
+ import { AdaptableModuleButtons, AdaptableToolPanel } from '../../PredefinedConfig/Common/Types';
7
7
  export declare class ToolPanelApiImpl extends ApiBase implements ToolPanelApi {
8
8
  getToolPanelState(): ToolPanelState;
9
9
  showToolPanelPopup(): void;
@@ -14,6 +14,8 @@ export declare class ToolPanelApiImpl extends ApiBase implements ToolPanelApi {
14
14
  getCustomToolPanelByName(name: string): CustomToolPanel | undefined;
15
15
  setAdaptableToolPanelVisibilityMode(adaptableToolPanel: AdaptableToolPanel, visibilityMode: ToolPanelVisibilityMode): void;
16
16
  setCustomToolPanelVisibilityMode(customToolPanelName: string, visibilityMode: ToolPanelVisibilityMode): void;
17
+ setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
18
+ getModuleButtons(): AdaptableModuleButtons;
17
19
  private setExpandedToolPanelVisibility;
18
20
  private setCollapsedToolPanelVisibility;
19
21
  }
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const ApiBase_1 = require("./ApiBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
7
7
  const ToolPanelRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ToolPanelRedux"));
8
+ const ToolPanelRedux_1 = require("../../Redux/ActionsReducers/ToolPanelRedux");
8
9
  class ToolPanelApiImpl extends ApiBase_1.ApiBase {
9
10
  getToolPanelState() {
10
11
  return this.getAdaptableState().ToolPanel;
@@ -51,6 +52,13 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
51
52
  this.setCollapsedToolPanelVisibility(customToolPanelName);
52
53
  }
53
54
  }
55
+ setModuleButtons(moduleButtons) {
56
+ this.dispatchAction((0, ToolPanelRedux_1.ToolPanelSetModuleButtons)(moduleButtons));
57
+ }
58
+ getModuleButtons() {
59
+ var _a, _b;
60
+ return (_b = (_a = this.getToolPanelState()) === null || _a === void 0 ? void 0 : _a.ModuleButtons) !== null && _b !== void 0 ? _b : [];
61
+ }
54
62
  setExpandedToolPanelVisibility(toolPanelName) {
55
63
  this.dispatchAction(ToolPanelRedux.ToolPanelExpandToolPanel(toolPanelName));
56
64
  }
@@ -144,4 +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
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,4 @@
1
1
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
2
- import { ExpressionFunctionMap } from '../types';
3
2
  import { AdaptableQuery } from '../PredefinedConfig/Common/AdaptableQuery';
4
3
  /**
5
4
  * Functions related to AdapTableQL (the Adaptable Query Language)
@@ -42,10 +41,6 @@ export interface QueryLanguageApi {
42
41
  * Returns all columns that can be used in an Expression
43
42
  */
44
43
  getQueryableColumnIds(): string[];
45
- /**
46
- * Returns the current Module Expression Map
47
- */
48
- getModuleExpressionFunctionMap(): ExpressionFunctionMap;
49
44
  /**
50
45
  * Runs the AST that AdapTableQL creates for an Expression - useful when evaluating remotely
51
46
  * @param expression expression to be run
@@ -1,7 +1,7 @@
1
1
  import { ToolPanelState, ToolPanelVisibilityMode } from '../PredefinedConfig/ToolPanelState';
2
2
  import { CustomToolPanel, ToolPanelButtonContext } from '../AdaptableOptions/ToolPanelOptions';
3
3
  import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
4
- import { AdaptableToolPanel } from '../PredefinedConfig/Common/Types';
4
+ import { AdaptableModuleButtons, AdaptableToolPanel } from '../PredefinedConfig/Common/Types';
5
5
  /**
6
6
  * Functions for managing the AdapTable ToolPanel Component (at side of grid)
7
7
  */
@@ -47,4 +47,13 @@ export interface ToolPanelApi {
47
47
  * @param visibilityMode
48
48
  */
49
49
  setCustomToolPanelVisibilityMode(customToolPanelName: string, visibilityMode: ToolPanelVisibilityMode): void;
50
+ /**
51
+ * Sets the Module buttons in the Adaptable ToolPanel
52
+ * @param moduleButtons the module buttons
53
+ */
54
+ setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
55
+ /**
56
+ * Sets the Module buttons from the Adaptable ToolPanel
57
+ */
58
+ getModuleButtons(): AdaptableModuleButtons;
50
59
  }
@@ -103,7 +103,7 @@ export interface PredicateDefHandlerParams {
103
103
  export interface PredicateDefToStringParams {
104
104
  inputs: any[];
105
105
  }
106
- export declare type ModuleScope = 'filter' | 'alert' | 'conditionalstyle' | 'flashingcell';
106
+ export declare type ModuleScope = 'filter' | 'alert' | 'conditionalstyle' | 'flashingcell' | 'formatColumn';
107
107
  /**
108
108
  * Array of Predicate Defs which are shipped by AdapTable
109
109
  */