@adaptabletools/adaptable 14.0.2 → 14.0.4

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 (216) hide show
  1. package/base.css +7 -1
  2. package/base.css.map +1 -1
  3. package/bundle.cjs.js +170 -169
  4. package/index.css +76 -62
  5. package/index.css.map +1 -1
  6. package/package.json +2 -2
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableOptions/ActionOptions.d.ts +3 -0
  10. package/src/AdaptableOptions/AdaptablePlugin.d.ts +3 -0
  11. package/src/AdaptableOptions/AdaptablePlugin.js +3 -0
  12. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +6 -5
  13. package/src/AdaptableOptions/ChartingOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +26 -26
  15. package/src/AdaptableOptions/ExportOptions.d.ts +17 -3
  16. package/src/AdaptableOptions/ExpressionOptions.d.ts +18 -18
  17. package/src/AdaptableOptions/PredicateOptions.d.ts +4 -4
  18. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -3
  19. package/src/Api/ActionApi.d.ts +2 -2
  20. package/src/Api/CalculatedColumnApi.d.ts +9 -0
  21. package/src/Api/ChartingApi.d.ts +41 -14
  22. package/src/Api/ColumnApi.d.ts +4 -0
  23. package/src/Api/DataSetApi.d.ts +2 -2
  24. package/src/Api/EventApi.d.ts +15 -1
  25. package/src/Api/Events/ChartStateChangeInfo.d.ts +5 -0
  26. package/src/Api/Events/ChartStateChangeInfo.js +2 -0
  27. package/src/Api/ExportApi.d.ts +5 -0
  28. package/src/Api/FilterApi.d.ts +10 -8
  29. package/src/Api/Implementation/ActionApiImpl.d.ts +1 -1
  30. package/src/Api/Implementation/ActionApiImpl.js +3 -3
  31. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +2 -0
  32. package/src/Api/Implementation/CalculatedColumnApiImpl.js +24 -0
  33. package/src/Api/Implementation/ChartingApiImpl.d.ts +16 -2
  34. package/src/Api/Implementation/ChartingApiImpl.js +54 -2
  35. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  36. package/src/Api/Implementation/ColumnApiImpl.js +3 -0
  37. package/src/Api/Implementation/ExportApiImpl.d.ts +2 -0
  38. package/src/Api/Implementation/ExportApiImpl.js +10 -0
  39. package/src/Api/Implementation/FilterApiImpl.js +0 -2
  40. package/src/Api/Implementation/PredicateApiImpl.d.ts +6 -4
  41. package/src/Api/Implementation/PredicateApiImpl.js +20 -1
  42. package/src/Api/Implementation/QueryApiImpl.js +8 -2
  43. package/src/Api/Internal/AdaptableInternalApi.d.ts +7 -1
  44. package/src/Api/Internal/AdaptableInternalApi.js +2 -1
  45. package/src/Api/Internal/AlertInternalApi.js +1 -1
  46. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  47. package/src/Api/Internal/CalculatedColumnInternalApi.js +9 -0
  48. package/src/Api/Internal/ChartingInternalApi.d.ts +6 -0
  49. package/src/Api/Internal/ChartingInternalApi.js +24 -0
  50. package/src/Api/Internal/FormatColumnInternalApi.d.ts +5 -0
  51. package/src/Api/Internal/FormatColumnInternalApi.js +25 -1
  52. package/src/Api/PredicateApi.d.ts +17 -1
  53. package/src/PredefinedConfig/AlertState.d.ts +5 -2
  54. package/src/PredefinedConfig/Common/AdaptableAlert.d.ts +6 -0
  55. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +15 -11
  56. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +6 -0
  57. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  58. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +6 -0
  59. package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +15 -0
  60. package/src/PredefinedConfig/Common/Enums.d.ts +2 -1
  61. package/src/PredefinedConfig/Common/Enums.js +1 -0
  62. package/src/PredefinedConfig/Common/FDC3Context.d.ts +3 -0
  63. package/src/PredefinedConfig/Common/Types.d.ts +21 -6
  64. package/src/PredefinedConfig/Common/Types.js +1 -3
  65. package/src/PredefinedConfig/ExportState.d.ts +2 -2
  66. package/src/PredefinedConfig/FlashingCellState.d.ts +2 -2
  67. package/src/PredefinedConfig/FormatColumnState.d.ts +3 -2
  68. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  69. package/src/PredefinedConfig/PredefinedConfig.d.ts +4 -4
  70. package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
  71. package/src/PredefinedConfig/ThemeState.d.ts +0 -4
  72. package/src/Redux/ActionsReducers/PopupRedux.d.ts +2 -0
  73. package/src/Redux/ActionsReducers/PopupRedux.js +2 -0
  74. package/src/Redux/ActionsReducers/StatusBarRedux.d.ts +2 -2
  75. package/src/Redux/ActionsReducers/StatusBarRedux.js +4 -4
  76. package/src/Redux/Store/AdaptableStore.js +1 -11
  77. package/src/Strategy/AlertModule.js +7 -3
  78. package/src/Strategy/ChartingModule.js +5 -3
  79. package/src/Strategy/ExportModule.d.ts +1 -0
  80. package/src/Strategy/ExportModule.js +43 -0
  81. package/src/Strategy/FlashingCellModule.js +1 -1
  82. package/src/Strategy/FormatColumnModule.js +7 -2
  83. package/src/Strategy/Interface/IModule.d.ts +1 -1
  84. package/src/Strategy/LayoutModule.js +8 -1
  85. package/src/Strategy/StyledColumnModule.js +5 -0
  86. package/src/Strategy/ThemeModule.js +8 -2
  87. package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.js +2 -2
  88. package/src/Strategy/Utilities/Alert/getAlertTypeViewItems.d.ts +5 -0
  89. package/src/Strategy/Utilities/Alert/getAlertTypeViewItems.js +13 -0
  90. package/src/Strategy/Utilities/getObjectTagsViewItems.js +3 -3
  91. package/src/Utilities/Constants/ModuleConstants.d.ts +0 -3
  92. package/src/Utilities/Constants/ModuleConstants.js +2 -5
  93. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
  94. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +1 -1
  95. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -1
  96. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
  97. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +64 -3
  98. package/src/Utilities/Interface/MessagePopups.d.ts +1 -0
  99. package/src/Utilities/Services/AggregatedScalarLiveValue.js +13 -0
  100. package/src/Utilities/Services/ChartingService.d.ts +8 -0
  101. package/src/Utilities/Services/ChartingService.js +15 -0
  102. package/src/Utilities/Services/ReportService.js +1 -1
  103. package/src/View/AdaptableViewFactory.js +1 -1
  104. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +5 -4
  105. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +1 -1
  106. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +6 -5
  107. package/src/View/Alert/Utilities/getAlertType.d.ts +15 -0
  108. package/src/View/Alert/Utilities/getAlertType.js +58 -0
  109. package/src/View/Alert/Utilities/getAvailablePredicates.d.ts +3 -0
  110. package/src/View/Alert/Utilities/getAvailablePredicates.js +19 -0
  111. package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +37 -0
  112. package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +32 -0
  113. package/src/View/Alert/Utilities/mapAlertDefinition.d.ts +2 -0
  114. package/src/View/Alert/Utilities/mapAlertDefinition.js +38 -0
  115. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +4 -2
  116. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +18 -11
  117. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +2 -0
  118. package/src/View/Alert/Wizard/AlertButtonsEditor.js +15 -6
  119. package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +10 -0
  120. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +57 -0
  121. package/src/View/Alert/Wizard/{AlertDisplayWizardSection.d.ts → AlertNotificationWizardSection.d.ts} +7 -5
  122. package/src/View/Alert/Wizard/{AlertDisplayWizardSection.js → AlertNotificationWizardSection.js} +12 -50
  123. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +7 -4
  124. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +66 -6
  125. package/src/View/Alert/Wizard/AlertScopeWizardSection.d.ts +2 -0
  126. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +41 -2
  127. package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +9 -0
  128. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +27 -0
  129. package/src/View/Alert/Wizard/AlertWizard.js +53 -98
  130. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +1 -6
  131. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +4 -39
  132. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
  133. package/src/View/{Components/Charting → Charting}/ChartingStatusBarPopover.d.ts +0 -0
  134. package/src/View/{Components/Charting → Charting}/ChartingStatusBarPopover.js +2 -2
  135. package/src/View/{Components/Charting → Charting}/ChartingViewPanel.d.ts +1 -1
  136. package/src/View/{Components/Charting → Charting}/ChartingViewPanel.js +0 -0
  137. package/src/View/{Components/Charting → Charting}/ChartingWizard/ChartingWizard.d.ts +2 -2
  138. package/src/View/{Components/Charting → Charting}/ChartingWizard/ChartingWizard.js +12 -2
  139. package/src/View/{Components/Charting → Charting}/ChartingWizard/PreviewChartSection.d.ts +1 -1
  140. package/src/View/{Components/Charting → Charting}/ChartingWizard/PreviewChartSection.js +2 -2
  141. package/src/View/{Components/Charting → Charting}/ChartingWizard/SettingsSection.d.ts +1 -1
  142. package/src/View/{Components/Charting → Charting}/ChartingWizard/SettingsSection.js +4 -4
  143. package/src/View/{Components/Charting → Charting}/DeleteChartButton.d.ts +1 -1
  144. package/src/View/{Components/Charting → Charting}/DeleteChartButton.js +3 -3
  145. package/src/View/{Components/Charting → Charting}/EditChartButton.d.ts +1 -1
  146. package/src/View/{Components/Charting → Charting}/EditChartButton.js +3 -3
  147. package/src/View/{Components/Charting → Charting}/ShowChartButton.d.ts +1 -1
  148. package/src/View/{Components/Charting → Charting}/ShowChartButton.js +5 -5
  149. package/src/View/{Components/Charting → Charting}/useChartState.d.ts +1 -1
  150. package/src/View/{Components/Charting → Charting}/useChartState.js +5 -5
  151. package/src/View/{Components/Charting → Charting}/useChartingElements.d.ts +1 -1
  152. package/src/View/{Components/Charting → Charting}/useChartingElements.js +6 -6
  153. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.d.ts +12 -0
  154. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +85 -0
  155. package/src/View/Components/EntityRulesEditor/{PredicatesEditor.d.ts → EntityRulePredicatesEditor/EntityRulePredicatesEditor.d.ts} +6 -4
  156. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +87 -0
  157. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/index.d.ts +1 -0
  158. package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/index.js +5 -0
  159. package/src/View/Components/EntityRulesEditor/Utilities.js +7 -1
  160. package/src/View/Components/EntityRulesEditor/index.d.ts +4 -2
  161. package/src/View/Components/EntityRulesEditor/index.js +27 -10
  162. package/src/View/Components/FilterForm/FilterForm.js +6 -7
  163. package/src/View/Components/FilterForm/QuickFilterForm.js +13 -9
  164. package/src/View/Components/NewScopeComponent.d.ts +9 -5
  165. package/src/View/Components/NewScopeComponent.js +19 -10
  166. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +2 -2
  167. package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
  168. package/src/View/Components/Popups/WindowPopups/windowFactory.js +4 -1
  169. package/src/View/Components/PredicateEditor/PredicateEditor.js +16 -5
  170. package/src/View/Components/PreviewResultsPanel.js +30 -3
  171. package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
  172. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -0
  173. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +1 -1
  174. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
  175. package/src/View/Export/ExportTablePopup.d.ts +3 -0
  176. package/src/View/Export/ExportTablePopup.js +59 -0
  177. package/src/View/Export/Wizard/NewReportWizard.js +1 -1
  178. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +1 -1
  179. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +1 -1
  180. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -2
  181. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -1
  182. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
  183. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
  184. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +1 -1
  185. package/src/View/GridInfo/GridInfoPopup.js +4 -4
  186. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +1 -1
  187. package/src/View/Query/Wizard/NamedQueryWizard.js +1 -1
  188. package/src/View/Schedule/Wizard/ScheduleWizard.js +1 -1
  189. package/src/View/Shortcut/Wizard/ShortcutWizard.js +1 -1
  190. package/src/View/StatusBar/StatusBarPanel.d.ts +3 -4
  191. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +7 -4
  192. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +5 -5
  193. package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
  194. package/src/View/Theme/ThemeStatusPanelPopover.js +10 -2
  195. package/src/View/Wizard/TypeRadio.d.ts +7 -0
  196. package/src/View/Wizard/TypeRadio.js +12 -0
  197. package/src/agGrid/Adaptable.d.ts +3 -1
  198. package/src/agGrid/Adaptable.js +28 -4
  199. package/src/agGrid/agGridHelper.d.ts +1 -0
  200. package/src/agGrid/agGridHelper.js +15 -0
  201. package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +4 -0
  202. package/src/components/ExpressionEditor/editorButtonsAggregatedBoolean.js +5 -0
  203. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -0
  204. package/src/components/icons/index.js +4 -0
  205. package/src/components/icons/visibility-off.d.ts +3 -0
  206. package/src/components/icons/visibility-off.js +7 -0
  207. package/src/components/icons/visibility.d.ts +3 -0
  208. package/src/components/icons/visibility.js +8 -0
  209. package/src/metamodel/adaptable.metamodel.d.ts +139 -0
  210. package/src/metamodel/adaptable.metamodel.js +1 -1
  211. package/src/types.d.ts +4 -4
  212. package/version.d.ts +1 -1
  213. package/version.js +1 -1
  214. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +0 -9
  215. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +0 -30
  216. package/src/View/Components/EntityRulesEditor/PredicatesEditor.js +0 -86
@@ -7,7 +7,13 @@ const ChartingRedux = tslib_1.__importStar(require("./../../Redux/ActionsReducer
7
7
  const ChartingRedux_1 = require("./../../Redux/ActionsReducers/ChartingRedux");
8
8
  const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
9
9
  const logDeprecation_1 = require("../../Utilities/logDeprecation");
10
+ const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
11
+ const ChartingInternalApi_1 = require("../Internal/ChartingInternalApi");
10
12
  class ChartingApiImpl extends ApiBase_1.ApiBase {
13
+ constructor(adaptable) {
14
+ super(adaptable);
15
+ this.internalApi = new ChartingInternalApi_1.ChartingInternalApi(adaptable);
16
+ }
11
17
  isChartingEnabled() {
12
18
  return this.adaptable.canGenerateCharts();
13
19
  }
@@ -39,24 +45,70 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
39
45
  getChartDefinitionByUuid(uuid) {
40
46
  return this.getChartDefinitions().find((c) => c.Uuid == uuid);
41
47
  }
48
+ getChartDefinitionByName(name) {
49
+ if (StringExtensions_1.default.IsNotNullOrEmpty(name)) {
50
+ let chartDefinition = this.getChartDefinitions().find((c) => c.Name == name);
51
+ if (this.checkItemExists(chartDefinition, name, 'Chart')) {
52
+ return chartDefinition;
53
+ }
54
+ }
55
+ }
42
56
  showPersistedCharts() {
43
57
  return this.adaptable.showCharts(this.getChartDefinitions());
44
58
  }
45
59
  showChartDefinition(chartDefiniton, container) {
46
- return this.adaptable.showChart(chartDefiniton, container);
60
+ let containerElement = container;
61
+ if (typeof containerElement === 'string') {
62
+ containerElement = this.internalApi.getContainerElemetnByName(containerElement);
63
+ }
64
+ return this.adaptable.showChart(chartDefiniton, containerElement);
47
65
  }
48
66
  showChartDefinitionOnce(chartDefinition, container) {
49
- const chartRef = this.adaptable.api.chartingApi.getChartRef(chartDefinition.Model.chartId);
67
+ var _a;
68
+ const chartRef = this.adaptable.api.chartingApi.getChartRef((_a = chartDefinition === null || chartDefinition === void 0 ? void 0 : chartDefinition.Model) === null || _a === void 0 ? void 0 : _a.chartId);
50
69
  if (chartRef) {
51
70
  return;
52
71
  }
53
72
  return this.showChartDefinition(chartDefinition, container);
54
73
  }
74
+ closeChartDefinition(chartDefinition) {
75
+ const chartRef = this.getChartRef(chartDefinition.Model.chartId);
76
+ if (chartRef) {
77
+ chartRef.destroyChart();
78
+ }
79
+ }
55
80
  editChartDefinition(editedChartDefinition) {
56
81
  this.dispatchAction(ChartingRedux.ChartingEditChart(editedChartDefinition));
57
82
  }
58
83
  addChartDefinition(chart) {
59
84
  this.dispatchAction(ChartingRedux.ChartingAddChart(chart));
60
85
  }
86
+ getChartingOpenState() {
87
+ return {
88
+ charts: this.getChartDefinitions().map((chartDefinition) => {
89
+ var _a, _b;
90
+ return {
91
+ chartDefinition,
92
+ isOpen: this.getChartRef((_a = chartDefinition === null || chartDefinition === void 0 ? void 0 : chartDefinition.Model) === null || _a === void 0 ? void 0 : _a.chartId) != null,
93
+ containerName: (_b = this.getOpenChartContainer(chartDefinition)) === null || _b === void 0 ? void 0 : _b.name,
94
+ };
95
+ }),
96
+ };
97
+ }
98
+ getOpenChartContainer(chartDefinition) {
99
+ var _a, _b, _c;
100
+ const containerOptions = (_b = (_a = this.adaptable.api.optionsApi.getAdaptableOptions()) === null || _a === void 0 ? void 0 : _a.chartingOptions) === null || _b === void 0 ? void 0 : _b.chartContainers;
101
+ if (!containerOptions || !containerOptions.length) {
102
+ return null;
103
+ }
104
+ return ((_c = containerOptions.find((container) => {
105
+ const chartRef = this.getChartRef(chartDefinition.Model.chartId);
106
+ const containerElement = this.internalApi.getContainerElement(container);
107
+ if (!(chartRef === null || chartRef === void 0 ? void 0 : chartRef.chartElement) || !containerElement) {
108
+ return false;
109
+ }
110
+ return containerElement.contains(chartRef.chartElement);
111
+ })) !== null && _c !== void 0 ? _c : null);
112
+ }
61
113
  }
62
114
  exports.ChartingApiImpl = ChartingApiImpl;
@@ -72,6 +72,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
72
72
  getPivotableColumns(): AdaptableColumn[];
73
73
  getAggregatableColumns(): AdaptableColumn[];
74
74
  getQueryableColumns(): AdaptableColumn[];
75
+ getExportableColumns(): AdaptableColumn[];
75
76
  private logMissingColumnWarning;
76
77
  getDistinctDisplayValuesForColumn(columnId: string): any[];
77
78
  getDistinctFilterDisplayValuesForColumn(columnId: string, filter: string, showFilteredRowsOnly: boolean): Promise<{
@@ -367,6 +367,9 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
367
367
  getQueryableColumns() {
368
368
  return this.getColumns().filter((c) => c.queryable);
369
369
  }
370
+ getExportableColumns() {
371
+ return this.getColumns().filter((c) => c.exportable);
372
+ }
370
373
  logMissingColumnWarning(columnId) {
371
374
  if (this.adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning === true) {
372
375
  if (!this.isAutoRowGroupColumn(columnId) &&
@@ -7,6 +7,7 @@ import { CustomDestination, ExportFormContext, ServerReport } from '../../Adapta
7
7
  import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
8
8
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
9
9
  import { ExportInternalApi } from '../Internal/ExportInternalApi';
10
+ import { AdaptableColumnBase } from '../../types';
10
11
  export declare class ExportApiImpl extends ApiBase implements ExportApi {
11
12
  internalApi: ExportInternalApi;
12
13
  constructor(adaptable: IAdaptable);
@@ -42,4 +43,5 @@ export declare class ExportApiImpl extends ApiBase implements ExportApi {
42
43
  isServerReport(report: Report): boolean;
43
44
  runServerReport(serverReportName: string): ReportData | undefined;
44
45
  getReportDataForReport(reportName: string): ReportData | undefined;
46
+ isColumnExportable(adaptableColumn: AdaptableColumnBase): boolean;
45
47
  }
@@ -168,5 +168,15 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
168
168
  }
169
169
  return this.adaptable.api.internalApi.getReportService().getReportData(report);
170
170
  }
171
+ isColumnExportable(adaptableColumn) {
172
+ const isExportableFn = this.getExportOptions().isColumnExportable;
173
+ if (typeof isExportableFn === 'function') {
174
+ return isExportableFn({
175
+ adaptableApi: this.adaptable.api,
176
+ adaptableColumn,
177
+ });
178
+ }
179
+ return true;
180
+ }
171
181
  }
172
182
  exports.ExportApiImpl = ExportApiImpl;
@@ -137,11 +137,9 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
137
137
  return this.internalApi.createEqualityColumnFilterForCell(gridCell);
138
138
  }
139
139
  columnFilterToString(columnFilter) {
140
- (0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'columnFilterToString');
141
140
  return this.internalApi.columnFilterToString(columnFilter);
142
141
  }
143
142
  columnFiltersToString(columnFilters) {
144
- (0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'columnFiltersToString');
145
143
  return this.internalApi.columnFiltersToString(columnFilters);
146
144
  }
147
145
  evaluateColumnFilter(columnFilter, node) {
@@ -1,7 +1,7 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { PredicateApi } from '../PredicateApi';
3
- import { AdaptablePredicate, AdaptablePredicateDef, PredicateDefHandlerParams, PredicateModuleScope } from '../../PredefinedConfig/Common/AdaptablePredicate';
4
- import { AdaptableColumnDataType, SystemFilterPredicateId } from '../../types';
3
+ import { PredicateDefHandlerParams, PredicateModuleScope } from '../../PredefinedConfig/Common/AdaptablePredicate';
4
+ import { AdaptablePredicate, AdaptablePredicateDef, AdaptableColumnDataType, AdaptableColumnPredicate, SystemFilterPredicateId } from '../../types';
5
5
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
6
6
  import { PredicateInternalApi } from '../Internal/PredicateInternalApi';
7
7
  export declare class PredicateApiImpl extends ApiBase implements PredicateApi {
@@ -14,10 +14,12 @@ export declare class PredicateApiImpl extends ApiBase implements PredicateApi {
14
14
  getPredicateDefById(predicateId: string): AdaptablePredicateDef;
15
15
  getSystemPredicateDefById(predicateId: string): AdaptablePredicateDef;
16
16
  getCustomPredicateDefById(predicateId: string): AdaptablePredicateDef;
17
- predicateToString(predicate: AdaptablePredicate): string | undefined;
18
- isValidPredicate(predicate: AdaptablePredicate | undefined): boolean;
17
+ predicateToString(predicate: AdaptableColumnPredicate): string | undefined;
18
+ isValidPredicate(predicate: AdaptableColumnPredicate | undefined): boolean;
19
19
  arePredicatesValid(predicates: AdaptablePredicate[]): boolean;
20
20
  isEveryPredicateValid(predicates: AdaptablePredicate[]): boolean;
21
+ handleColumnPredicate(predicate: AdaptableColumnPredicate | undefined, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
22
+ handleColumnPredicates(predicates: AdaptableColumnPredicate[], params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
21
23
  handlePredicate(predicate: AdaptablePredicate | undefined, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
22
24
  handlePredicates(predicates: AdaptablePredicate[], params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
23
25
  getEqualityPredicateForDataType(dataType: AdaptableColumnDataType): SystemFilterPredicateId;
@@ -42,9 +42,13 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
42
42
  (0, LoggingHelper_1.LogAdaptableWarning)('Cannot find Predicate with Id:' + predicate.PredicateId);
43
43
  return '[Predicate Not found]';
44
44
  }
45
- return predicateDef.hasOwnProperty('toString')
45
+ let strPredicate = predicateDef.hasOwnProperty('toString')
46
46
  ? predicateDef.toString({ inputs: predicate.Inputs })
47
47
  : predicateDef.label;
48
+ if ('ColumnId' in predicate) {
49
+ strPredicate = `[${predicate.ColumnId}] ${strPredicate}`;
50
+ }
51
+ return strPredicate;
48
52
  }
49
53
  isValidPredicate(predicate) {
50
54
  if (!predicate) {
@@ -71,6 +75,21 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
71
75
  isEveryPredicateValid(predicates) {
72
76
  return predicates.every((predicate) => this.isValidPredicate(predicate));
73
77
  }
78
+ handleColumnPredicate(predicate, params, defaultReturn) {
79
+ if (!predicate.ColumnId) {
80
+ return this.handlePredicate(predicate, params, defaultReturn);
81
+ }
82
+ const paramsForColumn = Object.assign(Object.assign({}, params), { column: this.adaptable.api.columnApi.getColumnWithColumnId(predicate.ColumnId),
83
+ // value: params?.node?.data?.[predicate.ColumnId],
84
+ value: this.adaptable.api.gridApi.getRawValueFromRowNode(params.node, predicate.ColumnId) });
85
+ if ('oldValue' in paramsForColumn) {
86
+ delete paramsForColumn.oldValue;
87
+ }
88
+ return this.handlePredicate(predicate, paramsForColumn, defaultReturn);
89
+ }
90
+ handleColumnPredicates(predicates, params, defaultReturn) {
91
+ return predicates.every((predicate) => this.handleColumnPredicate(predicate, params, defaultReturn));
92
+ }
74
93
  handlePredicate(predicate, params, defaultReturn) {
75
94
  var _a;
76
95
  if (!predicate) {
@@ -67,8 +67,14 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
67
67
  }
68
68
  expandCurrentQuery(query) {
69
69
  const preparedQuery = query !== null && query !== void 0 ? query : this.getCurrentQuery();
70
- this.getAdaptableApi().internalApi.showPopupWindow(windowFactory_1.WINDOW_QUERY_EDITOR, 'Current Query', 'query', {
71
- value: preparedQuery,
70
+ this.getAdaptableApi().internalApi.showPopupWindow({
71
+ id: windowFactory_1.WINDOW_QUERY_EDITOR,
72
+ title: 'Current Query',
73
+ icon: 'query',
74
+ factoryId: windowFactory_1.WINDOW_QUERY_EDITOR,
75
+ popupProps: {
76
+ value: preparedQuery,
77
+ },
72
78
  });
73
79
  }
74
80
  fireQueryRunEvent() {
@@ -34,7 +34,13 @@ export declare class AdaptableInternalApi extends ApiBase {
34
34
  showPopupScreen(module: AdaptableModule, componentName: string, popupParams?: ModuleParams, popupProps?: {
35
35
  [key: string]: any;
36
36
  }): void;
37
- showPopupWindow(id: string, title: string, icon: string, popupProps: any): void;
37
+ showPopupWindow({ id, title, icon, popupProps, factoryId, }: {
38
+ id: string;
39
+ title: string;
40
+ icon?: string;
41
+ popupProps: any;
42
+ factoryId: string;
43
+ }): void;
38
44
  hidePopupScreen(): void;
39
45
  setSettingPanelModuleMenuItems(menuItems: AdaptableMenuItem[]): void;
40
46
  setModuleButtonMenuItems(menuItems: AdaptableMenuItem[]): void;
@@ -30,12 +30,13 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
30
30
  showPopupScreen(module, componentName, popupParams, popupProps) {
31
31
  this.dispatchAction(PopupRedux.PopupShowScreen(module, componentName, popupParams, popupProps));
32
32
  }
33
- showPopupWindow(id, title, icon, popupProps) {
33
+ showPopupWindow({ id, title, icon, popupProps, factoryId, }) {
34
34
  this.dispatchAction(PopupRedux.PopupShowWindow({
35
35
  Id: id,
36
36
  Title: title,
37
37
  Icon: icon,
38
38
  PopupProps: popupProps,
39
+ FactoryId: factoryId,
39
40
  }));
40
41
  }
41
42
  hidePopupScreen() {
@@ -461,7 +461,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
461
461
  }
462
462
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
463
463
  var _a;
464
- return this.getAdaptableApi().predicateApi.handlePredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, {
464
+ return this.getAdaptableApi().predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, {
465
465
  value: dataChangedEvent.newValue,
466
466
  oldValue: dataChangedEvent.oldValue,
467
467
  // TODO send real display value
@@ -1,5 +1,6 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { CalculatedColumn } from '../../PredefinedConfig/CalculatedColumnState';
3
+ import { AdaptableColumn } from '../../types';
3
4
  export declare class CalculatedColumnInternalApi extends ApiBase {
4
5
  /**
5
6
  * Returns all the references in the AdaptableState of the given CalculatedColumn
@@ -21,4 +22,5 @@ export declare class CalculatedColumnInternalApi extends ApiBase {
21
22
  * @param calculatedColumnId CalculatedColumnId to check
22
23
  */
23
24
  getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId: string): string[];
25
+ getCalculatedColumnsDependentOnColumn(column: AdaptableColumn): string[];
24
26
  }
@@ -53,5 +53,14 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
53
53
  return this.getReferencedColumnIdsForCalculatedColumn(calculatedColumn);
54
54
  }
55
55
  }
56
+ getCalculatedColumnsDependentOnColumn(column) {
57
+ const calculatedColumns = this.adaptable.api.calculatedColumnApi.getCalculatedColumns();
58
+ return calculatedColumns
59
+ .filter((calculatedColumn) => {
60
+ const dependentColumns = this.getReferencedColumnIdsForCalculatedColumnId(calculatedColumn.ColumnId);
61
+ return dependentColumns.includes(column.columnId);
62
+ })
63
+ .map((calculatedColumn) => calculatedColumn.ColumnId);
64
+ }
56
65
  }
57
66
  exports.CalculatedColumnInternalApi = CalculatedColumnInternalApi;
@@ -0,0 +1,6 @@
1
+ import { ApiBase } from '../Implementation/ApiBase';
2
+ import { ChartContainer } from '../../types';
3
+ export declare class ChartingInternalApi extends ApiBase {
4
+ getContainerElement(chartContainer: ChartContainer): HTMLElement | null;
5
+ getContainerElemetnByName(containerName: string): HTMLElement | null;
6
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChartingInternalApi = void 0;
4
+ const ApiBase_1 = require("../Implementation/ApiBase");
5
+ const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
6
+ class ChartingInternalApi extends ApiBase_1.ApiBase {
7
+ getContainerElement(chartContainer) {
8
+ const element = typeof (chartContainer === null || chartContainer === void 0 ? void 0 : chartContainer.element) === 'string'
9
+ ? document.querySelector(chartContainer.element)
10
+ : chartContainer === null || chartContainer === void 0 ? void 0 : chartContainer.element;
11
+ if (!element && typeof (chartContainer === null || chartContainer === void 0 ? void 0 : chartContainer.element) === 'string') {
12
+ (0, LoggingHelper_1.ConsoleLogByMessageType)(`Chart container element not found: ${chartContainer.element}`, 'Error');
13
+ return null;
14
+ }
15
+ return element;
16
+ }
17
+ getContainerElemetnByName(containerName) {
18
+ var _a, _b, _c;
19
+ const chartContainers = (_c = (_b = (_a = this.adaptable.api.optionsApi.getAdaptableOptions()) === null || _a === void 0 ? void 0 : _a.chartingOptions) === null || _b === void 0 ? void 0 : _b.chartContainers) !== null && _c !== void 0 ? _c : [];
20
+ const chartContainer = chartContainers.find((container) => container.name === containerName);
21
+ return this.getContainerElement(chartContainer);
22
+ }
23
+ }
24
+ exports.ChartingInternalApi = ChartingInternalApi;
@@ -117,4 +117,9 @@ export declare class FormatColumnInternalApi extends ApiBase {
117
117
  * @returns Format Columns with Expression
118
118
  */
119
119
  getFormatColumnsWithExpression(): FormatColumn[];
120
+ getFormatColumnsDependentOnColumns(columnSet: Set<string>): FormatColumn[];
121
+ /**
122
+ * Retrieves the columns that need rerendering based on format column predicates.
123
+ */
124
+ getFormatColumnColumnsDependentOnColumnChange(column: AdaptableColumn): string[];
120
125
  }
@@ -193,7 +193,7 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
193
193
  node: node,
194
194
  column: column,
195
195
  };
196
- return this.adaptable.api.predicateApi.handlePredicates((_a = formatColumn.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, params, false);
196
+ return this.adaptable.api.predicateApi.handleColumnPredicates((_a = formatColumn.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, params, false);
197
197
  }
198
198
  evaluateExpression(formatColumn, node) {
199
199
  const isValidExpression = this.adaptable.api.queryLanguageApi.isValidBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, `Invalid format column rule '${formatColumn.Rule.BooleanExpression}'`);
@@ -231,5 +231,29 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
231
231
  .getFormatColumns()
232
232
  .filter((fc) => { var _a; return !!((_a = fc.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression); });
233
233
  }
234
+ getFormatColumnsDependentOnColumns(columnSet) {
235
+ return this.getFormatColumnApi()
236
+ .getFormatColumns()
237
+ .filter((fc) => { var _a, _b; return (_b = (_a = fc.Rule) === null || _a === void 0 ? void 0 : _a.Predicates) === null || _b === void 0 ? void 0 : _b.some((p) => columnSet.has(p.ColumnId)); });
238
+ }
239
+ /**
240
+ * Retrieves the columns that need rerendering based on format column predicates.
241
+ */
242
+ getFormatColumnColumnsDependentOnColumnChange(column) {
243
+ const impactedColumnIds = new Set();
244
+ impactedColumnIds.add(column.columnId);
245
+ this.getCalculatedColumnApi()
246
+ .internalApi.getCalculatedColumnsDependentOnColumn(column)
247
+ .forEach((calculatedColumnId) => {
248
+ impactedColumnIds.add(calculatedColumnId);
249
+ });
250
+ const columnsThatNeedRefresh = new Set();
251
+ this.getFormatColumnsDependentOnColumns(impactedColumnIds).forEach((formatColumn) => {
252
+ this.adaptable.api.scopeApi.getColumnsForScope(formatColumn.Scope).forEach((col) => {
253
+ columnsThatNeedRefresh.add(col.columnId);
254
+ });
255
+ });
256
+ return [...columnsThatNeedRefresh];
257
+ }
234
258
  }
235
259
  exports.FormatColumnInternalApi = FormatColumnInternalApi;
@@ -1,4 +1,4 @@
1
- import { AdaptableColumnDataType, SystemFilterPredicateId } from '../../types';
1
+ import { AdaptableColumnDataType, AdaptableColumnPredicate, SystemFilterPredicateId } from '../../types';
2
2
  import { AdaptablePredicateDef, AdaptablePredicate, PredicateDefHandlerParams, PredicateModuleScope } from '../PredefinedConfig/Common/AdaptablePredicate';
3
3
  /**
4
4
  * Functions which manage the Predicate object in AdapTable
@@ -51,6 +51,22 @@ export interface PredicateApi {
51
51
  * @param predicates Predicates Definitions to check
52
52
  */
53
53
  isEveryPredicateValid(predicates: AdaptablePredicate[]): boolean;
54
+ /**
55
+ * Same has handle predicate but it tales into account predicate column id.
56
+ *
57
+ * @param predicate
58
+ * @param params
59
+ * @param defaultReturn
60
+ */
61
+ handleColumnPredicate(predicate: AdaptableColumnPredicate, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
62
+ /**
63
+ * Same has handle predicates but it tales into account predicate column id.
64
+ *
65
+ * @param predicate
66
+ * @param params
67
+ * @param defaultReturn
68
+ */
69
+ handleColumnPredicates(predicate: AdaptableColumnPredicate[], params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
54
70
  /**
55
71
  * Main Handler function for a Predicate Definition - used by AdapTableQL
56
72
  * @param predicate Predicate to handle
@@ -1,6 +1,6 @@
1
1
  import { ConfigState } from './ConfigState';
2
2
  import { AdaptableScope } from './Common/AdaptableScope';
3
- import { AdaptablePredicate } from './Common/AdaptablePredicate';
3
+ import { AdaptableColumnPredicate } from './Common/AdaptablePredicate';
4
4
  import { TypeHint } from './Common/Types';
5
5
  import { AdaptableMessageType } from './Common/AdaptableMessageType';
6
6
  import { AdaptableForm } from './Common/AdaptableForm';
@@ -56,7 +56,7 @@ export interface AlertDefinition extends SuspendableObject {
56
56
  export declare type AlertButtonForm = Omit<AdaptableForm<AlertFormContext>, 'title' | 'buttons' | 'description'> & {
57
57
  Buttons?: AlertButton<AlertFormContext>[];
58
58
  };
59
- export interface AlertDefinitionPredicate extends AdaptablePredicate {
59
+ export interface AlertDefinitionPredicate extends AdaptableColumnPredicate {
60
60
  PredicateId: TypeHint<string, SystemAlertPredicateId>;
61
61
  }
62
62
  /**
@@ -69,6 +69,9 @@ export declare type AlertRule = XOR<{
69
69
  * Alert Query which may be either a Boolean, Observable or AggregatedBoolean Expression
70
70
  */
71
71
  export declare type AdaptableAlertQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableObservableQuery, AdaptableAggregatedBooleanQuery>>;
72
+ /**
73
+ * Actions available in an Alert
74
+ */
72
75
  export declare type AdaptableAlertAction = 'highlight-cell' | 'highlight-row' | 'jump-to-cell' | 'jump-to-row' | 'jump-to-column' | 'suspend' | 'undo';
73
76
  /**
74
77
  * Defines a button that appears in an Alert Form
@@ -6,7 +6,13 @@ import { AlertDefinition } from '../AlertState';
6
6
  * Defines an Alert fired by AdapTable
7
7
  */
8
8
  export declare type AdaptableAlert = AdaptableCellChangedAlert | AdaptableRowChangedAlert | AdaptableGenericAlert;
9
+ /**
10
+ * Type of AdapTable Alert: generic, cellChange or rowChange
11
+ */
9
12
  export declare type AdaptableAlertType = 'generic' | 'cellChange' | 'rowChange';
13
+ /**
14
+ * Defines a generic AdapTable Alert
15
+ */
10
16
  export interface AdaptableGenericAlert extends AdaptableAlertBase<'generic'> {
11
17
  }
12
18
  /**
@@ -16,7 +16,7 @@ export interface AdaptableColumnBase extends AdaptableObject {
16
16
  */
17
17
  friendlyName: string;
18
18
  /**
19
- * DataType of the column
19
+ * DataType of the Column
20
20
  */
21
21
  dataType: AdaptableColumnDataType;
22
22
  }
@@ -34,15 +34,15 @@ export interface AdaptableColumnGroup {
34
34
  groupCount: number;
35
35
  }
36
36
  /**
37
- * Defines an Adaptable Column - created at run-time based on AG Grid column definition
37
+ * Defines an Adaptable Column - created at run-time based on AG Grid ColDef
38
38
  */
39
39
  export interface AdaptableColumn extends AdaptableColumnBase {
40
40
  /**
41
- * Is the field of the row to get the cell data from
41
+ * Field in the row to get cell data from
42
42
  */
43
43
  field?: string;
44
44
  /**
45
- * Is this the Primary Key column
45
+ * Is this the Primary Key Column
46
46
  */
47
47
  isPrimaryKey: boolean;
48
48
  /**
@@ -50,11 +50,11 @@ export interface AdaptableColumn extends AdaptableColumnBase {
50
50
  */
51
51
  width?: number;
52
52
  /**
53
- * Flex details of the column
53
+ * Flex details of the Column
54
54
  */
55
55
  flex?: number;
56
56
  /**
57
- * Is the column editable; returns FALSE if the column has conditional/dynamic editability, assuming some rows are editable
57
+ * Is Column editable; returns FALSE if Column has conditional/dynamic editability, assuming some rows are editable
58
58
  */
59
59
  readOnly: boolean;
60
60
  /**
@@ -94,15 +94,19 @@ export interface AdaptableColumn extends AdaptableColumnBase {
94
94
  */
95
95
  queryable: boolean;
96
96
  /**
97
- * Available aggregations for the Column
97
+ * Whether the Column can be included in Reports
98
+ */
99
+ exportable: boolean;
100
+ /**
101
+ * Available Aggregations for the Column
98
102
  */
99
103
  availableAggregationFunctions?: string[];
100
104
  /**
101
- * Custom aggregation function for the Column
105
+ * Custom Aggregation function for the Column
102
106
  */
103
107
  aggregationFunction?: string;
104
108
  /**
105
- * Is Column currently grouped
109
+ * Is Column currently Row-Grouped
106
110
  */
107
111
  isGrouped: boolean;
108
112
  /**
@@ -110,7 +114,7 @@ export interface AdaptableColumn extends AdaptableColumnBase {
110
114
  */
111
115
  isFixed: boolean;
112
116
  /**
113
- * The pinned position of the column
117
+ * The pinned position of the Column
114
118
  */
115
119
  pinned: 'left' | 'right' | false;
116
120
  /**
@@ -122,7 +126,7 @@ export interface AdaptableColumn extends AdaptableColumnBase {
122
126
  */
123
127
  isExcludedFromQuickSearch: boolean;
124
128
  /**
125
- * The parent column group, if the column belongs to one
129
+ * The parent Column group (if Column belongs to one)
126
130
  */
127
131
  columnGroup?: AdaptableColumnGroup;
128
132
  }
@@ -1,5 +1,8 @@
1
1
  import { AdaptableButton } from './AdaptableButton';
2
2
  import { BaseContext } from '../../types';
3
+ /**
4
+ * Data which appears in an AdapTable Form
5
+ */
3
6
  export declare type AdaptableFormData = Record<string, any>;
4
7
  /**
5
8
  * Defines a form which appears dynamically; used by Alerts & Export Custom Destinations
@@ -50,5 +53,8 @@ export interface AdaptableFormField {
50
53
  label: string;
51
54
  }[];
52
55
  }
56
+ /**
57
+ * Types of Controls used in an AdapTable Form
58
+ */
53
59
  export declare type AdaptableFormFieldType = 'text' | 'select' | 'date' | 'number' | 'checkbox' | 'textOutput';
54
60
  export declare function getDefaultAdaptableFormData<T extends BaseContext = BaseContext>(formDef?: AdaptableForm<T>): AdaptableFormData;
@@ -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' | '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' | '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' | 'open-in-new' | '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' | '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' | 'open-in-new' | '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' | 'visibility' | 'visibility-off';
@@ -15,6 +15,12 @@ export interface AdaptablePredicate {
15
15
  */
16
16
  Inputs?: any[];
17
17
  }
18
+ export interface AdaptableColumnPredicate extends AdaptablePredicate {
19
+ /**
20
+ * If specified, ColumnId restricts the predicate evaluation to the given column
21
+ */
22
+ ColumnId?: string;
23
+ }
18
24
  /**
19
25
  * Defines a Predicate - include where it can run and what it does
20
26
  */
@@ -1,16 +1,31 @@
1
1
  import { XOR } from '../../Utilities/Extensions/TypeExtensions';
2
+ /**
3
+ * Wraps an AdapTableQL Boolean Expression
4
+ */
2
5
  export interface AdaptableBooleanQuery {
3
6
  BooleanExpression: string;
4
7
  }
8
+ /**
9
+ * Wraps an AdapTableQL Scalar Expression
10
+ */
5
11
  export interface AdaptableScalarQuery {
6
12
  ScalarExpression: string;
7
13
  }
14
+ /**
15
+ * Wraps an AdapTableQL Observable Expression
16
+ */
8
17
  export interface AdaptableObservableQuery {
9
18
  ObservableExpression: string;
10
19
  }
20
+ /**
21
+ * Wraps an AdapTableQL Aggregated Boolean Expression
22
+ */
11
23
  export interface AdaptableAggregatedBooleanQuery {
12
24
  AggregatedBooleanExpression: string;
13
25
  }
26
+ /**
27
+ * Wraps an AdapTableQL Aggregated Scalar Expression
28
+ */
14
29
  export interface AdaptableAggregatedScalarQuery {
15
30
  AggregatedScalarExpression: string;
16
31
  }
@@ -8,7 +8,8 @@ export declare enum ExportDestination {
8
8
  Excel = "Excel",
9
9
  CSV = "CSV",
10
10
  Clipboard = "Clipboard",
11
- JSON = "JSON"
11
+ JSON = "JSON",
12
+ Table = "Table"
12
13
  }
13
14
  export declare enum ScheduleType {
14
15
  Report = "Report",