@adaptabletools/adaptable 16.0.9 → 16.0.10-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/base.css +14 -14
  2. package/base.css.map +1 -1
  3. package/bundle.cjs.js +169 -169
  4. package/index.css +14 -14
  5. package/index.css.map +1 -1
  6. package/package.json +1 -1
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -2
  10. package/src/AdaptableOptions/ChartingOptions.d.ts +40 -0
  11. package/src/AdaptableOptions/ColumnOptions.d.ts +17 -0
  12. package/src/AdaptableOptions/NotesOptions.d.ts +23 -0
  13. package/src/AdaptableOptions/QuickSearchOptions.d.ts +8 -0
  14. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -0
  15. package/src/Api/AdaptableApi.d.ts +3 -3
  16. package/src/Api/ChartingApi.d.ts +30 -0
  17. package/src/Api/ColumnApi.d.ts +5 -0
  18. package/src/Api/ConfigApi.d.ts +4 -3
  19. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  20. package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
  21. package/src/Api/Implementation/ApiBase.d.ts +2 -2
  22. package/src/Api/Implementation/ApiBase.js +2 -2
  23. package/src/Api/Implementation/ChartingApiImpl.d.ts +8 -2
  24. package/src/Api/Implementation/ChartingApiImpl.js +64 -0
  25. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  26. package/src/Api/Implementation/ColumnApiImpl.js +4 -0
  27. package/src/Api/Implementation/ConfigApiImpl.d.ts +3 -2
  28. package/src/Api/Implementation/ConfigApiImpl.js +9 -9
  29. package/src/Api/Implementation/NotesApiImpl.d.ts +20 -0
  30. package/src/Api/Implementation/NotesApiImpl.js +58 -0
  31. package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -2
  32. package/src/Api/Implementation/OptionsApiImpl.js +2 -2
  33. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -0
  34. package/src/Api/Implementation/UserInterfaceApiImpl.js +8 -0
  35. package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
  36. package/src/Api/Internal/AdaptableInternalApi.js +0 -6
  37. package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
  38. package/src/Api/Internal/CalculatedColumnInternalApi.js +12 -0
  39. package/src/Api/Internal/ChartingInternalApi.d.ts +7 -0
  40. package/src/Api/Internal/ChartingInternalApi.js +45 -0
  41. package/src/Api/Internal/ColumnInternalApi.d.ts +3 -0
  42. package/src/Api/Internal/ColumnInternalApi.js +3 -0
  43. package/src/Api/NotesAPi.d.ts +50 -0
  44. package/src/Api/OptionsApi.d.ts +3 -3
  45. package/src/Api/UserInterfaceApi.d.ts +8 -0
  46. package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
  47. package/src/PredefinedConfig/ChartingState.d.ts +22 -0
  48. package/src/PredefinedConfig/ChartingState.js +9 -0
  49. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +12 -0
  50. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  51. package/src/PredefinedConfig/Common/Menu.d.ts +1 -1
  52. package/src/PredefinedConfig/Common/Types.d.ts +2 -2
  53. package/src/PredefinedConfig/Common/Types.js +1 -1
  54. package/src/PredefinedConfig/NotesState.d.ts +59 -0
  55. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
  56. package/src/PredefinedConfig/SystemState.d.ts +5 -3
  57. package/src/Redux/ActionsReducers/ChartingRedux.d.ts +28 -3
  58. package/src/Redux/ActionsReducers/ChartingRedux.js +52 -5
  59. package/src/Redux/ActionsReducers/NotesRedux.d.ts +39 -0
  60. package/src/Redux/ActionsReducers/NotesRedux.js +88 -0
  61. package/src/Redux/ActionsReducers/SystemRedux.d.ts +10 -10
  62. package/src/Redux/ActionsReducers/SystemRedux.js +23 -22
  63. package/src/Redux/Store/AdaptableStore.js +19 -11
  64. package/src/Strategy/ChartingModule.d.ts +5 -2
  65. package/src/Strategy/ChartingModule.js +28 -7
  66. package/src/Strategy/ColumnInfoModule.d.ts +11 -0
  67. package/src/Strategy/ColumnInfoModule.js +47 -0
  68. package/src/Strategy/DataSetModule.js +1 -0
  69. package/src/Strategy/FilterModule.js +5 -0
  70. package/src/Strategy/GridInfoModule.js +13 -82
  71. package/src/Strategy/Interface/IModule.d.ts +2 -0
  72. package/src/Strategy/{CommentsModule.d.ts → NotesModule.d.ts} +6 -6
  73. package/src/Strategy/{CommentsModule.js → NotesModule.js} +41 -41
  74. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.d.ts +2 -0
  75. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +20 -18
  76. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  77. package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
  78. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -3
  79. package/src/Utilities/Constants/ModuleConstants.js +8 -5
  80. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -1
  81. package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -1
  82. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
  83. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +36 -10
  84. package/src/Utilities/Extensions/ObjectExtensions.d.ts +1 -0
  85. package/src/Utilities/Extensions/ObjectExtensions.js +5 -1
  86. package/src/Utilities/ObjectFactory.d.ts +2 -1
  87. package/src/Utilities/ObjectFactory.js +10 -2
  88. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +4 -0
  89. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
  90. package/src/Utilities/Services/QueryLanguageService.d.ts +1 -2
  91. package/src/Utilities/Services/QueryLanguageService.js +1 -6
  92. package/src/Utilities/Services/ValidationService.js +15 -5
  93. package/src/View/AdaptableView.js +2 -2
  94. package/src/View/AdaptableViewFactory.js +5 -3
  95. package/src/View/Alert/Wizard/AlertButtonsEditor.js +20 -4
  96. package/src/View/Alert/Wizard/AlertWizard.js +14 -7
  97. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
  98. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +2 -0
  99. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +25 -46
  100. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +8 -0
  101. package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +19 -0
  102. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +2 -0
  103. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +44 -3
  104. package/src/View/CalculatedColumn/utils.d.ts +2 -0
  105. package/src/View/CalculatedColumn/utils.js +14 -0
  106. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.d.ts +6 -0
  107. package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +47 -0
  108. package/src/View/Charting/ChartingWizard/{PreviewChartSection.d.ts → AgChargingWizard/PreviewChartSection.d.ts} +1 -1
  109. package/src/View/Charting/ChartingWizard/{PreviewChartSection.js → AgChargingWizard/PreviewChartSection.js} +2 -2
  110. package/src/View/Charting/ChartingWizard/{SettingsSection.d.ts → AgChargingWizard/SettingsSection.d.ts} +1 -1
  111. package/src/View/Charting/ChartingWizard/{SettingsSection.js → AgChargingWizard/SettingsSection.js} +4 -4
  112. package/src/View/Charting/ChartingWizard/AgChargingWizard/index.d.ts +1 -0
  113. package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +4 -0
  114. package/src/View/Charting/ChartingWizard/ChartingWizard.d.ts +4 -3
  115. package/src/View/Charting/ChartingWizard/ChartingWizard.js +12 -39
  116. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.d.ts +6 -0
  117. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +59 -0
  118. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +9 -0
  119. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +25 -0
  120. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.d.ts +1 -0
  121. package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +4 -0
  122. package/src/View/Charting/ChartingWizard/index.d.ts +1 -0
  123. package/src/View/Charting/ChartingWizard/index.js +4 -0
  124. package/src/View/Charting/DeleteChartButton.d.ts +2 -1
  125. package/src/View/Charting/DeleteChartButton.js +4 -2
  126. package/src/View/Charting/EditChartButton.d.ts +2 -1
  127. package/src/View/Charting/ShowChartButton.js +47 -16
  128. package/src/View/Charting/{useChartState.d.ts → useAgChartState.d.ts} +1 -1
  129. package/src/View/Charting/{useChartState.js → useAgChartState.js} +7 -7
  130. package/src/View/Charting/useChartingElements.d.ts +2 -1
  131. package/src/View/Charting/useChartingElements.js +36 -26
  132. package/src/View/Charting/useExternalChartState.d.ts +7 -0
  133. package/src/View/Charting/useExternalChartState.js +56 -0
  134. package/src/View/ColumnInfo/ColumnInfo.d.ts +5 -0
  135. package/src/View/ColumnInfo/ColumnInfo.js +185 -0
  136. package/src/View/ColumnInfo/ColumnInfoPopup.d.ts +3 -0
  137. package/src/View/ColumnInfo/ColumnInfoPopup.js +15 -0
  138. package/src/View/Components/AdaptableIconSelector/index.d.ts +1 -1
  139. package/src/View/Components/Selectors/ColumnSelector.js +1 -1
  140. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +6 -1
  141. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
  142. package/src/View/GridInfo/{AdaptableObjectsSummary.js → GridInfoPopup/AdaptableObjectsSummary.js} +2 -2
  143. package/src/View/GridInfo/{AdaptableOptionsComponent.d.ts → GridInfoPopup/AdaptableOptionsComponent.d.ts} +1 -1
  144. package/src/View/GridInfo/{AdaptableOptionsComponent.js → GridInfoPopup/AdaptableOptionsComponent.js} +6 -6
  145. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.d.ts +6 -0
  146. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +82 -0
  147. package/src/View/GridInfo/GridInfoPopup/index.d.ts +1 -0
  148. package/src/View/GridInfo/GridInfoPopup/index.js +4 -0
  149. package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
  150. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  151. package/src/View/Notes/NotesListing.d.ts +2 -0
  152. package/src/View/{Comments/CommentListing.js → Notes/NotesListing.js} +13 -14
  153. package/src/View/Notes/NotesPopup.d.ts +2 -0
  154. package/src/View/{Comments/CommentPopup.js → Notes/NotesPopup.js} +21 -21
  155. package/src/View/Shortcut/Wizard/ShortcutWizard.js +6 -1
  156. package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +14 -0
  157. package/src/agGrid/Adaptable.d.ts +1 -1
  158. package/src/agGrid/Adaptable.js +28 -16
  159. package/src/agGrid/agGridHelper.d.ts +3 -3
  160. package/src/agGrid/agGridHelper.js +56 -30
  161. package/src/agGrid/agGridMenuHelper.js +4 -2
  162. package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
  163. package/src/components/ExpressionEditor/EditorInput.js +15 -6
  164. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -10
  165. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +5 -5
  166. package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.d.ts +2 -0
  167. package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +25 -0
  168. package/src/components/ExpressionEditor/index.d.ts +1 -1
  169. package/src/components/ExpressionEditor/index.js +2 -1
  170. package/src/components/icons/index.js +2 -0
  171. package/src/components/icons/note.d.ts +3 -0
  172. package/src/components/icons/note.js +7 -0
  173. package/src/metamodel/adaptable.metamodel.d.ts +72 -59
  174. package/src/metamodel/adaptable.metamodel.js +1 -1
  175. package/src/types.d.ts +4 -4
  176. package/version.d.ts +1 -1
  177. package/version.js +1 -1
  178. package/src/AdaptableOptions/CommentsOptions.d.ts +0 -23
  179. package/src/Api/CommentsApi.d.ts +0 -50
  180. package/src/Api/Implementation/CommentsApiImpl.d.ts +0 -20
  181. package/src/Api/Implementation/CommentsApiImpl.js +0 -58
  182. package/src/PredefinedConfig/CommentsState.d.ts +0 -59
  183. package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -39
  184. package/src/Redux/ActionsReducers/CommentsRedux.js +0 -92
  185. package/src/View/Comments/CommentListing.d.ts +0 -2
  186. package/src/View/Comments/CommentPopup.d.ts +0 -2
  187. package/src/View/GridInfo/ColumnInfoComponent.d.ts +0 -20
  188. package/src/View/GridInfo/ColumnInfoComponent.js +0 -176
  189. package/src/View/GridInfo/GridInfoPopup.d.ts +0 -16
  190. package/src/View/GridInfo/GridInfoPopup.js +0 -117
  191. package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -16
  192. package/src/View/GridInfo/GridOptionsComponent.js +0 -36
  193. /package/src/AdaptableOptions/{CommentsOptions.js → NotesOptions.js} +0 -0
  194. /package/src/Api/{CommentsApi.js → NotesAPi.js} +0 -0
  195. /package/src/PredefinedConfig/{CommentsState.js → NotesState.js} +0 -0
  196. /package/src/View/GridInfo/{AdaptableObjectsSummary.d.ts → GridInfoPopup/AdaptableObjectsSummary.d.ts} +0 -0
@@ -20,7 +20,7 @@ import { ExpressionApi } from '../ExpressionApi';
20
20
  import { CalendarOptions } from '../../AdaptableOptions/CalendarOptions';
21
21
  import { Fdc3Api } from '../Fdc3Api';
22
22
  import { Fdc3Options } from '../../AdaptableOptions/Fdc3Options';
23
- import { CommentOptions } from '../../AdaptableOptions/CommentsOptions';
23
+ import { NotesOptions } from '../../AdaptableOptions/NotesOptions';
24
24
  export declare abstract class ApiBase {
25
25
  protected adaptable: IAdaptable;
26
26
  /**
@@ -64,7 +64,7 @@ export declare abstract class ApiBase {
64
64
  protected getActionColumnOptions(): ActionColumnOptions;
65
65
  protected getActionRowOptions(): ActionRowOptions;
66
66
  protected getColumnOptions(): ColumnOptions;
67
- protected getCommentOptions(): CommentOptions;
67
+ protected getNotesOptions(): NotesOptions;
68
68
  protected getCustomSortOptions(): CustomSortOptions;
69
69
  protected getDataSetOptions(): DataSetOptions;
70
70
  protected getCalendarOptions(): CalendarOptions;
@@ -102,8 +102,8 @@ class ApiBase {
102
102
  getColumnOptions() {
103
103
  return this.getOptions().columnOptions;
104
104
  }
105
- getCommentOptions() {
106
- return this.getOptions().commentOptions;
105
+ getNotesOptions() {
106
+ return this.getOptions().notesOptions;
107
107
  }
108
108
  getCustomSortOptions() {
109
109
  return this.getOptions().customSortOptions;
@@ -2,10 +2,9 @@ import { ChartModel, ChartRef } from '@ag-grid-community/core';
2
2
  import { ChartingApi } from '../ChartingApi';
3
3
  import { ApiBase } from './ApiBase';
4
4
  import { ChartContainer, ChartDefinition } from '../../types';
5
- import { ChartingInternalApi } from '../Internal/ChartingInternalApi';
6
5
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
6
+ import { ExternalChartDefinition } from '../../PredefinedConfig/ChartingState';
7
7
  export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
8
- internalApi: ChartingInternalApi;
9
8
  constructor(adaptable: IAdaptable);
10
9
  isChartingEnabled(): boolean;
11
10
  getCurrentChartModels(): ChartModel[];
@@ -32,4 +31,11 @@ export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
32
31
  getOpenChartContainer(chartDefinition: ChartDefinition): ChartContainer | null;
33
32
  setChartReadOnly(chartDefinition: ChartDefinition): void;
34
33
  setChartEditable(chartDefinition: ChartDefinition): void;
34
+ addExternalChartDefinition(chartDefinition: ExternalChartDefinition, options: {
35
+ saveStrategy: 'auto' | 'manual';
36
+ }): void;
37
+ editExternalChartDefinition(chartDefinition: ExternalChartDefinition): void;
38
+ deleteExternalChartDefinition(chartDefinition: ExternalChartDefinition): void;
39
+ getExternalChartDefinitions(): ExternalChartDefinition<unknown>[];
40
+ getExternalChartDefinitionByName(name: string): ExternalChartDefinition | undefined;
35
41
  }
@@ -115,5 +115,69 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
115
115
  setChartEditable(chartDefinition) {
116
116
  this.dispatchAction(ChartingRedux.ChartingEditChart(Object.assign(Object.assign({}, chartDefinition), { IsReadOnly: false })));
117
117
  }
118
+ addExternalChartDefinition(chartDefinition, options) {
119
+ var _a, _b, _c;
120
+ const saveStrategy = (_a = options === null || options === void 0 ? void 0 : options.saveStrategy) !== null && _a !== void 0 ? _a : 'manual';
121
+ if (saveStrategy === 'auto') {
122
+ this.dispatchAction(ChartingRedux.ChartingAddExternalChart(Object.assign(Object.assign({}, chartDefinition), { Name: (_b = chartDefinition.Name) !== null && _b !== void 0 ? _b : this.internalApi.getUniqueChartName() })));
123
+ }
124
+ else {
125
+ const alert = {
126
+ alertType: 'generic',
127
+ header: 'Save chart',
128
+ message: 'Do you want to save this Chart?',
129
+ alertDefinition: Object.assign(Object.assign({}, ObjectFactory_1.default.CreateEmptyAlertDefinition()), { MessageType: 'Info', AlertProperties: {
130
+ DisplayNotification: true,
131
+ NotificationDuration: 'always',
132
+ }, AlertForm: {
133
+ Buttons: [
134
+ {
135
+ Label: 'Save',
136
+ Action: (context) => {
137
+ this.dispatchAction(ChartingRedux.ChartingAddExternalChart(Object.assign(Object.assign({}, chartDefinition), { Name: context.formData.name || this.internalApi.getUniqueChartName() })));
138
+ },
139
+ ButtonStyle: {
140
+ tone: 'info',
141
+ variant: 'raised',
142
+ },
143
+ },
144
+ {
145
+ Label: 'Dismiss',
146
+ ButtonStyle: {
147
+ tone: 'neutral',
148
+ variant: 'raised',
149
+ },
150
+ },
151
+ ],
152
+ fields: [
153
+ {
154
+ name: 'name',
155
+ label: 'Name',
156
+ fieldType: 'text',
157
+ defaultValue: (_c = chartDefinition.Name) !== null && _c !== void 0 ? _c : '',
158
+ },
159
+ ],
160
+ } }),
161
+ };
162
+ this.adaptable.api.alertApi.showAdaptableAlert(alert);
163
+ }
164
+ }
165
+ editExternalChartDefinition(chartDefinition) {
166
+ this.dispatchAction(ChartingRedux.ChartingEditExternalChart(chartDefinition));
167
+ }
168
+ deleteExternalChartDefinition(chartDefinition) {
169
+ this.dispatchAction(ChartingRedux.ChartingDeleteExternalChart(chartDefinition));
170
+ }
171
+ getExternalChartDefinitions() {
172
+ return this.getAdaptableState().Charting.ExternalChartDefinitions;
173
+ }
174
+ getExternalChartDefinitionByName(name) {
175
+ if (StringExtensions_1.default.IsNotNullOrEmpty(name)) {
176
+ let chartDefinition = this.getExternalChartDefinitions().find((c) => c.Name == name);
177
+ if (this.checkItemExists(chartDefinition, name, 'Chart')) {
178
+ return chartDefinition;
179
+ }
180
+ }
181
+ }
118
182
  }
119
183
  exports.ChartingApiImpl = ChartingApiImpl;
@@ -32,6 +32,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
32
32
  hasDateDataType(columnId: string): boolean;
33
33
  getColumnDataTypeForColumnId(columnId: string): AdaptableColumnDataType | undefined;
34
34
  getFriendlyNameForColumnId(columnId: string): string;
35
+ doesColumnExist(columnId: string): boolean;
35
36
  getFriendlyNamesForColumnIds(columnIds: string[]): string[];
36
37
  getColumnIdForFriendlyName(friendlyName: string): string;
37
38
  getColumnIdsForFriendlyNames(friendlyNames: string[]): string[];
@@ -164,6 +164,10 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
164
164
  this.logMissingColumnWarning(columnId);
165
165
  return result;
166
166
  }
167
+ doesColumnExist(columnId) {
168
+ const foundColumn = this.getColumns().find((c) => c.columnId == columnId);
169
+ return foundColumn ? true : false;
170
+ }
167
171
  getFriendlyNamesForColumnIds(columnIds) {
168
172
  const friendlyNames = [];
169
173
  if (ArrayExtensions_1.default.IsNullOrEmpty(columnIds)) {
@@ -17,10 +17,11 @@ import { FreeTextColumnState } from '../../PredefinedConfig/FreeTextColumnState'
17
17
  import { ToolPanelState } from '../../PredefinedConfig/ToolPanelState';
18
18
  import { ConfigApi } from '../ConfigApi';
19
19
  import { AdaptableModule, AdaptableStateKey } from '../../PredefinedConfig/Common/Types';
20
- import { AdaptableOptions, AdaptableSearchState, AdaptableSortState, CommentsState, ScheduleState } from '../../types';
20
+ import { AdaptableOptions, AdaptableSearchState, AdaptableSortState, ScheduleState } from '../../types';
21
21
  import { QueryState } from '../../PredefinedConfig/QueryState';
22
22
  import { PredefinedConfig } from '../../PredefinedConfig/PredefinedConfig';
23
23
  import { ChartingState } from '../../PredefinedConfig/ChartingState';
24
+ import { NotesState } from '../../PredefinedConfig/NotesState';
24
25
  export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
25
26
  configInit(): void;
26
27
  copyAllStateToClipboard(): void;
@@ -48,7 +49,7 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
48
49
  getApplicationState(returnJson?: boolean): ApplicationState;
49
50
  getCalculatedColumnState(returnJson?: boolean): CalculatedColumnState;
50
51
  getChartingState(returnJson?: boolean): ChartingState;
51
- getCommentsState(returnJson?: boolean): CommentsState;
52
+ getNotesState(returnJson?: boolean): NotesState;
52
53
  getCustomSortState(returnJson?: boolean): CustomSortState;
53
54
  getDashboardState(returnJson?: boolean): DashboardState;
54
55
  getExportState(returnJson?: boolean): ExportState;
@@ -12,7 +12,7 @@ const AlertRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Ale
12
12
  const BulkUpdateRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/BulkUpdateRedux"));
13
13
  const CalculatedColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CalculatedColumnRedux"));
14
14
  const ChartingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ChartingRedux"));
15
- const CommentsRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CommentsRedux"));
15
+ const NotesRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NotesRedux"));
16
16
  const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CustomSortRedux"));
17
17
  const ExportRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ExportRedux"));
18
18
  const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
@@ -137,7 +137,7 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
137
137
  promise
138
138
  .then(() => {
139
139
  this.adaptable.prepareGrid();
140
- this.adaptable.api.internalApi.hideLoadingScreen();
140
+ this.adaptable.api.userInterfaceApi.hideLoadingScreen();
141
141
  })
142
142
  .then(() => {
143
143
  // resolve main(result) promise
@@ -174,10 +174,10 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
174
174
  return returnJson
175
175
  ? JSON.stringify(this.getAdaptableState().Charting)
176
176
  : this.getAdaptableState().Charting;
177
- case 'Comments':
177
+ case 'Notes':
178
178
  return returnJson
179
- ? JSON.stringify(this.getAdaptableState().Comments)
180
- : this.getAdaptableState().Comments;
179
+ ? JSON.stringify(this.getAdaptableState().Notes)
180
+ : this.getAdaptableState().Notes;
181
181
  case 'CustomSort':
182
182
  return returnJson
183
183
  ? JSON.stringify(this.getAdaptableState().CustomSort)
@@ -254,8 +254,8 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
254
254
  getChartingState(returnJson = false) {
255
255
  return this.getUserStateByStateKey('Charting', returnJson);
256
256
  }
257
- getCommentsState(returnJson = false) {
258
- return this.getUserStateByStateKey('Comments', returnJson);
257
+ getNotesState(returnJson = false) {
258
+ return this.getUserStateByStateKey('Notes', returnJson);
259
259
  }
260
260
  getCustomSortState(returnJson = false) {
261
261
  return this.getUserStateByStateKey('CustomSort', returnJson);
@@ -310,8 +310,8 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
310
310
  case 'Charting':
311
311
  this.dispatchAction(ChartingRedux.ChartingReady(this.getChartingState()));
312
312
  break;
313
- case 'Comments':
314
- this.dispatchAction(CommentsRedux.CommentsReady(this.getCommentsState()));
313
+ case 'Notes':
314
+ this.dispatchAction(NotesRedux.NotesReady(this.getNotesState()));
315
315
  break;
316
316
  case 'CustomSort':
317
317
  this.dispatchAction(CustomSortRedux.CustomSortReady(this.getCustomSortState()));
@@ -0,0 +1,20 @@
1
+ import { ApiBase } from './ApiBase';
2
+ import { NotesApi } from '../NotesAPi';
3
+ import { AdaptableNote, AdaptableNotes, NoteGridCell, NotesState } from '../../PredefinedConfig/NotesState';
4
+ export declare class NotesApiImpl extends ApiBase implements NotesApi {
5
+ addNote(noteStr: string, primaryKeyValue: any, columnId: string): void;
6
+ editNote(note: AdaptableNote): void;
7
+ updateNoteText(noteStr: string, note: AdaptableNote): void;
8
+ deleteNote(note: AdaptableNote): void;
9
+ getNotesState(): NotesState;
10
+ getAllNotes(): AdaptableNotes;
11
+ getCellNotes(config: {
12
+ PrimaryKeyValue: string | number;
13
+ ColumnId: string;
14
+ }): AdaptableNotes;
15
+ getNoteByUuid(uuid: string): AdaptableNote | undefined;
16
+ showNotes(noteGridCell: NoteGridCell, editMode?: boolean): void;
17
+ hideNote(): void;
18
+ getOpenNoteGridCell(): NoteGridCell | undefined;
19
+ getNotePopupEditMode(): boolean;
20
+ }
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotesApiImpl = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ApiBase_1 = require("./ApiBase");
6
+ const NotesRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NotesRedux"));
7
+ const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
8
+ class NotesApiImpl extends ApiBase_1.ApiBase {
9
+ addNote(noteStr, primaryKeyValue, columnId) {
10
+ const note = {
11
+ Value: noteStr,
12
+ PrimaryKeyValue: primaryKeyValue,
13
+ ColumnId: columnId,
14
+ AdaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
15
+ Author: {
16
+ UserName: this.adaptable.api.optionsApi.getUserName(),
17
+ },
18
+ Timestamp: Date.now(),
19
+ };
20
+ this.dispatchAction(NotesRedux.NotesAdd(note));
21
+ }
22
+ editNote(note) {
23
+ note.Timestamp = Date.now();
24
+ this.dispatchAction(NotesRedux.NotesEdit(note));
25
+ }
26
+ updateNoteText(noteStr, note) {
27
+ note.Value = noteStr;
28
+ this.editNote(note);
29
+ }
30
+ deleteNote(note) {
31
+ this.dispatchAction(NotesRedux.NotesDelete(note));
32
+ }
33
+ getNotesState() {
34
+ return this.getAdaptableState().Notes;
35
+ }
36
+ getAllNotes() {
37
+ return this.getNotesState().Notes;
38
+ }
39
+ getCellNotes(config) {
40
+ return NotesRedux.GetNotesSelector(this.getAdaptableState().Notes, config);
41
+ }
42
+ getNoteByUuid(uuid) {
43
+ return this.getAllNotes().find((note) => note.Uuid === uuid);
44
+ }
45
+ showNotes(noteGridCell, editMode) {
46
+ this.dispatchAction(SystemRedux.SystemNotesShow(noteGridCell, editMode));
47
+ }
48
+ hideNote() {
49
+ this.dispatchAction(SystemRedux.SystemNoteHide());
50
+ }
51
+ getOpenNoteGridCell() {
52
+ return SystemRedux.SystemNotesSelector(this.getAdaptableState().System);
53
+ }
54
+ getNotePopupEditMode() {
55
+ return SystemRedux.SystemNotesEditModeSelector(this.getAdaptableState().System);
56
+ }
57
+ }
58
+ exports.NotesApiImpl = NotesApiImpl;
@@ -1,5 +1,5 @@
1
1
  import { ApiBase } from './ApiBase';
2
- import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, CommentOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../../types';
2
+ import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, NotesOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../../types';
3
3
  import { GroupingOptions } from '../../AdaptableOptions/GroupingOptions';
4
4
  import { CustomSortOptions } from '../../AdaptableOptions/CustomSortOptions';
5
5
  import { Fdc3Options } from '../../AdaptableOptions/Fdc3Options';
@@ -17,7 +17,7 @@ export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
17
17
  getCellSummaryOptions(): CellSummaryOptions;
18
18
  getCalendarOptions(): CalendarOptions;
19
19
  getColumnOptions(): ColumnOptions;
20
- getCommentOptions(): CommentOptions;
20
+ getNotesOptions(): NotesOptions;
21
21
  getCustomSortOptions(): CustomSortOptions;
22
22
  getContainerOptions(): ContainerOptions;
23
23
  getDataSetOptions(): DataSetOptions;
@@ -39,8 +39,8 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
39
39
  getColumnOptions() {
40
40
  return this.getOptions().columnOptions;
41
41
  }
42
- getCommentOptions() {
43
- return this.getOptions().commentOptions;
42
+ getNotesOptions() {
43
+ return this.getOptions().notesOptions;
44
44
  }
45
45
  getCustomSortOptions() {
46
46
  return this.getOptions().customSortOptions;
@@ -30,4 +30,6 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
30
30
  getReadOnlyCellStyle(): AdaptableStyle | undefined;
31
31
  getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
32
32
  getCustomIconDefinition(iconName: string): import("../../types").AdaptableIcon | import("../../types").CustomIcon;
33
+ showLoadingScreen(): void;
34
+ hideLoadingScreen(): void;
33
35
  }
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserInterfaceApiImpl = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  const ApiBase_1 = require("./ApiBase");
6
+ const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
5
7
  const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
6
8
  const UserInterfaceInternalApi_1 = require("../Internal/UserInterfaceInternalApi");
7
9
  class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
@@ -183,5 +185,11 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
183
185
  }
184
186
  return customIcon;
185
187
  }
188
+ showLoadingScreen() {
189
+ this.dispatchAction(PopupRedux.PopupShowLoading());
190
+ }
191
+ hideLoadingScreen() {
192
+ this.dispatchAction(PopupRedux.PopupHideLoading());
193
+ }
186
194
  }
187
195
  exports.UserInterfaceApiImpl = UserInterfaceApiImpl;
@@ -30,8 +30,6 @@ import { ColDef } from '@ag-grid-community/core/dist/esm/es6/entities/colDef';
30
30
  export declare class AdaptableInternalApi extends ApiBase {
31
31
  getSystemState(): SystemState;
32
32
  showPopupConfirmation(confirmation: UIConfirmation): void;
33
- showLoadingScreen(): void;
34
- hideLoadingScreen(): void;
35
33
  showPopupScreen(module: AdaptableModule, componentName: string, popupParams?: ModuleParams, popupProps?: {
36
34
  [key: string]: any;
37
35
  }): void;
@@ -21,12 +21,6 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
21
21
  showPopupConfirmation(confirmation) {
22
22
  this.dispatchAction(PopupRedux.PopupShowConfirmation(confirmation));
23
23
  }
24
- showLoadingScreen() {
25
- this.dispatchAction(PopupRedux.PopupShowLoading());
26
- }
27
- hideLoadingScreen() {
28
- this.dispatchAction(PopupRedux.PopupHideLoading());
29
- }
30
24
  showPopupScreen(module, componentName, popupParams, popupProps) {
31
25
  this.dispatchAction(PopupRedux.PopupShowScreen(module, componentName, popupParams, popupProps));
32
26
  }
@@ -23,4 +23,6 @@ export declare class CalculatedColumnInternalApi extends ApiBase {
23
23
  */
24
24
  getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId: string): string[];
25
25
  getCalculatedColumnsDependentOnColumn(column: AdaptableColumn): string[];
26
+ isCumulativeAggregatedExpression(input: string): boolean;
27
+ isQuantileAggregatedExpression(input: string): boolean;
26
28
  }
@@ -62,5 +62,17 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
62
62
  })
63
63
  .map((calculatedColumn) => calculatedColumn.ColumnId);
64
64
  }
65
+ isCumulativeAggregatedExpression(input) {
66
+ var _a;
67
+ return !!((_a = this.getAdaptableApi()
68
+ .internalApi.getQueryLanguageService()
69
+ .getNodesFromExpression(input, 'CUMUL')) === null || _a === void 0 ? void 0 : _a.length);
70
+ }
71
+ isQuantileAggregatedExpression(input) {
72
+ var _a;
73
+ return !!((_a = this.getAdaptableApi()
74
+ .internalApi.getQueryLanguageService()
75
+ .getNodesFromExpression(input, 'QUANT')) === null || _a === void 0 ? void 0 : _a.length);
76
+ }
65
77
  }
66
78
  exports.CalculatedColumnInternalApi = CalculatedColumnInternalApi;
@@ -1,6 +1,13 @@
1
1
  import { ApiBase } from '../Implementation/ApiBase';
2
2
  import { ChartContainer } from '../../types';
3
+ import { ExternalChartDefinition } from '../../PredefinedConfig/ChartingState';
3
4
  export declare class ChartingInternalApi extends ApiBase {
4
5
  getContainerElement(chartContainer: ChartContainer): HTMLElement | null;
5
6
  getContainerElemetnByName(containerName: string): HTMLElement | null;
7
+ getUniqueChartName(): string;
8
+ isExternalChartOpened(chartDefinition: ExternalChartDefinition): boolean;
9
+ onHideExternalChart(chartDefinition: ExternalChartDefinition): void;
10
+ onShowExternalChart(chartDefinition: ExternalChartDefinition, container: ChartContainer): void;
11
+ onPreviewExternalChart(chartDefinition: ExternalChartDefinition, container: ChartContainer): ExternalChartDefinition<unknown>;
12
+ onDeleteExternalChart(chartDefinition: ExternalChartDefinition): void;
6
13
  }
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChartingInternalApi = void 0;
4
4
  const ApiBase_1 = require("../Implementation/ApiBase");
5
+ const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
5
6
  class ChartingInternalApi extends ApiBase_1.ApiBase {
6
7
  getContainerElement(chartContainer) {
7
8
  const element = typeof (chartContainer === null || chartContainer === void 0 ? void 0 : chartContainer.element) === 'string'
@@ -19,5 +20,49 @@ class ChartingInternalApi extends ApiBase_1.ApiBase {
19
20
  const chartContainer = chartContainers.find((container) => container.name === containerName);
20
21
  return this.getContainerElement(chartContainer);
21
22
  }
23
+ getUniqueChartName() {
24
+ const charts = this.adaptable.api.chartingApi.getChartDefinitions();
25
+ const externalCharts = this.adaptable.api.chartingApi.getExternalChartDefinitions();
26
+ return `Chart ${charts.length + externalCharts.length + 1}`;
27
+ }
28
+ // External lib charting service
29
+ isExternalChartOpened(chartDefinition) {
30
+ const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
31
+ if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.isChartOpened)) {
32
+ return false;
33
+ }
34
+ if (!chartDefinition) {
35
+ return false;
36
+ }
37
+ return externalChartingOptions.externalCharting.isChartOpened(Object.assign({ chartDefinition: chartDefinition }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
38
+ }
39
+ onHideExternalChart(chartDefinition) {
40
+ const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
41
+ if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.onHideChart)) {
42
+ return;
43
+ }
44
+ externalChartingOptions.externalCharting.onHideChart(Object.assign({ chartDefinition: chartDefinition }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
45
+ }
46
+ onShowExternalChart(chartDefinition, container) {
47
+ const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
48
+ if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.onShowChart)) {
49
+ return;
50
+ }
51
+ externalChartingOptions.externalCharting.onShowChart(Object.assign({ chartDefinition: chartDefinition, container: container }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
52
+ }
53
+ onPreviewExternalChart(chartDefinition, container) {
54
+ const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
55
+ if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.onPreviewChart)) {
56
+ return;
57
+ }
58
+ return externalChartingOptions.externalCharting.onPreviewChart(Object.assign({ chartDefinition: chartDefinition, container: container }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
59
+ }
60
+ onDeleteExternalChart(chartDefinition) {
61
+ const externalChartingOptions = this.adaptable.api.optionsApi.getChartingOptions();
62
+ if (!(externalChartingOptions === null || externalChartingOptions === void 0 ? void 0 : externalChartingOptions.externalCharting.onDeleteChart)) {
63
+ return;
64
+ }
65
+ externalChartingOptions.externalCharting.onDeleteChart(Object.assign({ chartDefinition: chartDefinition }, (0, ObjectFactory_1.createBaseContext)(this.adaptable.api)));
66
+ }
22
67
  }
23
68
  exports.ChartingInternalApi = ChartingInternalApi;
@@ -3,6 +3,9 @@ import { Column } from '@ag-grid-community/core';
3
3
  export declare class ColumnInternalApi extends ApiBase {
4
4
  /**
5
5
  * Retrieves 'ColumnType' property for a given Column
6
+ * isCumulativeAggregate(input: string): boolean {
7
+ * return !!this.getNodesFromExpression(input, 'CUMUL')?.length;
8
+ * }
6
9
  * @param columnId Column to use
7
10
  */
8
11
  getAgGridColumnType(columnId: string): string | string[];
@@ -6,6 +6,9 @@ const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants")
6
6
  class ColumnInternalApi extends ApiBase_1.ApiBase {
7
7
  /**
8
8
  * Retrieves 'ColumnType' property for a given Column
9
+ * isCumulativeAggregate(input: string): boolean {
10
+ * return !!this.getNodesFromExpression(input, 'CUMUL')?.length;
11
+ * }
9
12
  * @param columnId Column to use
10
13
  */
11
14
  getAgGridColumnType(columnId) {
@@ -0,0 +1,50 @@
1
+ import { AdaptableNote, AdaptableNotes, NoteGridCell, NotesState } from '../PredefinedConfig/NotesState';
2
+ /**
3
+ * Provides run-time access to Notes Module and related State
4
+ */
5
+ export interface NotesApi {
6
+ /**
7
+ *
8
+ * @param note
9
+ * @param primaryKeyValue
10
+ * @param columnId
11
+ */
12
+ addNote(note: string, primaryKeyValue: any, columnId: string): void;
13
+ editNote(note: AdaptableNote): void;
14
+ updateNoteText(noteStr: string, note: AdaptableNote): void;
15
+ /**
16
+ *
17
+ * @param note
18
+ */
19
+ deleteNote(note: AdaptableNote): void;
20
+ getNotesState(): NotesState;
21
+ getAllNotes(): AdaptableNotes;
22
+ /**
23
+ * Gets all notes for a cell
24
+ * @param noteGridCell note position
25
+ */
26
+ getCellNotes(noteGridCell: NoteGridCell): AdaptableNote[];
27
+ /**
28
+ * Returns a note by uuid
29
+ * @param uuid note uuid
30
+ */
31
+ getNoteByUuid(uuid: string): AdaptableNote | undefined;
32
+ /**
33
+ * Gets all note for a cell
34
+ * @param noteGridCell note position
35
+ * @param editMode whether to show the note in edit mode
36
+ */
37
+ showNotes(noteGridCell: NoteGridCell, editMode?: boolean): void;
38
+ /**
39
+ * Hides the note popup
40
+ */
41
+ hideNote(): void;
42
+ /**
43
+ * Gets the note position of the currently open note popup
44
+ */
45
+ getOpenNoteGridCell(): NoteGridCell | null;
46
+ /**
47
+ * Gets the note edit mode
48
+ */
49
+ getNotePopupEditMode(): boolean;
50
+ }
@@ -1,7 +1,7 @@
1
1
  import { CustomSortOptions } from '../AdaptableOptions/CustomSortOptions';
2
2
  import { DataSetOptions } from '../AdaptableOptions/DataSetOptions';
3
3
  import { GroupingOptions } from '../AdaptableOptions/GroupingOptions';
4
- import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, CommentOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
4
+ import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotesOptions, NotificationsOptions, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../types';
5
5
  import { Fdc3Options } from '../AdaptableOptions/Fdc3Options';
6
6
  import { ExpressionOptions } from '../AdaptableOptions/ExpressionOptions';
7
7
  /**
@@ -73,9 +73,9 @@ export interface OptionsApi {
73
73
  */
74
74
  getColumnOptions(): Readonly<ColumnOptions>;
75
75
  /**
76
- * Returns `AdaptableOptions.commentOptions`
76
+ * Returns `AdaptableOptions.noteOptions`
77
77
  */
78
- getCommentOptions(): Readonly<CommentOptions>;
78
+ getNotesOptions(): Readonly<NotesOptions>;
79
79
  /**
80
80
  * Returns `AdaptableOptions.customSortOptions`
81
81
  */
@@ -80,4 +80,12 @@ export interface UserInterfaceApi {
80
80
  * @param name name of Icon
81
81
  */
82
82
  getCustomIconDefinition(name: string): AdaptableIcon | undefined;
83
+ /**
84
+ * Displays the popup that says getting data and initialising grid
85
+ */
86
+ showLoadingScreen(): void;
87
+ /**
88
+ * Hides the popup that says getting data and initialising grid
89
+ */
90
+ hideLoadingScreen(): void;
83
91
  }
@@ -23,7 +23,7 @@ import { FlashingCellState } from './FlashingCellState';
23
23
  import { StatusBarState } from './StatusBarState';
24
24
  import { ChartingState } from './ChartingState';
25
25
  import { StyledColumnState } from './StyledColumnState';
26
- import { CommentsState } from './CommentsState';
26
+ import { NotesState } from './NotesState';
27
27
  /**
28
28
  * The main state object of Adaptable
29
29
  */
@@ -55,7 +55,7 @@ export interface AdaptablePersistentState {
55
55
  Theme: ThemeState;
56
56
  ToolPanel: ToolPanelState;
57
57
  Charting: ChartingState;
58
- Comments: CommentsState;
58
+ Notes: NotesState;
59
59
  }
60
60
  /**
61
61
  * The state which is available in the internal Redux store but never persisted