@adaptabletools/adaptable 15.0.0-canary.0 → 15.0.0-canary.2

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 (108) hide show
  1. package/bundle.cjs.js +247 -262
  2. package/package.json +2 -2
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +42 -42
  6. package/src/AdaptableOptions/ActionOptions.d.ts +31 -31
  7. package/src/AdaptableOptions/AdaptableOptions.d.ts +13 -13
  8. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +4 -4
  9. package/src/AdaptableOptions/AlertOptions.d.ts +14 -14
  10. package/src/AdaptableOptions/ChartingOptions.d.ts +2 -3
  11. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -6
  12. package/src/AdaptableOptions/EditOptions.d.ts +8 -8
  13. package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/ExpressionOptions.d.ts +1 -1
  15. package/src/AdaptableOptions/FilterOptions.d.ts +3 -3
  16. package/src/AdaptableOptions/GeneralOptions.d.ts +9 -9
  17. package/src/AdaptableOptions/MenuOptions.d.ts +3 -3
  18. package/src/AdaptableOptions/PredicateOptions.d.ts +1 -1
  19. package/src/AdaptableOptions/SearchOptions.d.ts +2 -2
  20. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +25 -25
  21. package/src/Api/ChartingApi.d.ts +22 -18
  22. package/src/Api/ColumnApi.d.ts +3 -3
  23. package/src/Api/EventApi.d.ts +13 -1
  24. package/src/Api/Events/ActionRowSubmitted.d.ts +8 -8
  25. package/src/Api/Events/GridDataChanged.d.ts +4 -4
  26. package/src/Api/Events/ThemeChanged.d.ts +6 -0
  27. package/src/Api/FilterApi.d.ts +2 -2
  28. package/src/Api/FinanceApi.d.ts +9 -9
  29. package/src/Api/FormatColumnApi.d.ts +6 -6
  30. package/src/Api/FreeTextColumnApi.d.ts +3 -3
  31. package/src/Api/GridApi.d.ts +30 -30
  32. package/src/Api/Implementation/ChartingApiImpl.d.ts +2 -1
  33. package/src/Api/Implementation/ChartingApiImpl.js +4 -1
  34. package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -4
  35. package/src/Api/Implementation/FilterApiImpl.d.ts +2 -2
  36. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -6
  37. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +3 -3
  38. package/src/Api/Implementation/GridApiImpl.d.ts +29 -29
  39. package/src/Api/Implementation/ThemeApiImpl.d.ts +4 -0
  40. package/src/Api/Implementation/ThemeApiImpl.js +14 -0
  41. package/src/Api/Internal/ActionInternalApi.d.ts +3 -3
  42. package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -3
  43. package/src/Api/Internal/AlertInternalApi.d.ts +3 -3
  44. package/src/Api/Internal/FilterInternalApi.d.ts +2 -2
  45. package/src/Api/Internal/FormatColumnInternalApi.d.ts +7 -7
  46. package/src/Api/Internal/GridInternalApi.d.ts +4 -4
  47. package/src/Api/Internal/StyledColumnInternalApi.d.ts +3 -3
  48. package/src/Api/OptionsApi.d.ts +1 -1
  49. package/src/Api/ThemeApi.d.ts +18 -0
  50. package/src/PredefinedConfig/Common/AdaptableAlert.d.ts +7 -7
  51. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +2 -2
  52. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +5 -6
  53. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -2
  54. package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +5 -5
  55. package/src/PredefinedConfig/Common/CellSummary.d.ts +4 -4
  56. package/src/PredefinedConfig/Common/Menu.d.ts +9 -9
  57. package/src/PredefinedConfig/Selection/GridCell.d.ts +4 -4
  58. package/src/PredefinedConfig/Selection/GridRow.d.ts +4 -4
  59. package/src/PredefinedConfig/Selection/SelectedCellInfo.d.ts +3 -3
  60. package/src/PredefinedConfig/Selection/SelectedRowInfo.d.ts +2 -2
  61. package/src/PredefinedConfig/StatusBarState.d.ts +1 -1
  62. package/src/PredefinedConfig/StatusBarState.js +1 -1
  63. package/src/PredefinedConfig/SystemState.d.ts +1 -2
  64. package/src/PredefinedConfig/ThemeState.d.ts +4 -0
  65. package/src/Redux/ActionsReducers/GridRedux.d.ts +5 -5
  66. package/src/Redux/ActionsReducers/ThemeRedux.d.ts +27 -0
  67. package/src/Redux/ActionsReducers/ThemeRedux.js +63 -1
  68. package/src/Strategy/ExportModule.js +1 -1
  69. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  70. package/src/Utilities/Constants/GeneralConstants.js +3 -2
  71. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -1
  72. package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
  73. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -3
  74. package/src/Utilities/Interface/Preview.d.ts +2 -2
  75. package/src/Utilities/ObjectFactory.d.ts +5 -3
  76. package/src/Utilities/ObjectFactory.js +10 -1
  77. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +2 -2
  78. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +2 -2
  79. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +2 -2
  80. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +3 -3
  81. package/src/Utilities/Services/Interface/IReportService.d.ts +3 -3
  82. package/src/Utilities/Services/Interface/IThemeService.d.ts +3 -0
  83. package/src/Utilities/Services/Interface/IThemeService.js +2 -0
  84. package/src/Utilities/Services/MetamodelService.d.ts +2 -0
  85. package/src/Utilities/Services/MetamodelService.js +26 -19
  86. package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
  87. package/src/Utilities/Services/ReportService.d.ts +4 -4
  88. package/src/Utilities/Services/ThemeService.d.ts +12 -0
  89. package/src/Utilities/Services/ThemeService.js +49 -0
  90. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +5 -5
  91. package/src/View/Charting/ShowChartButton.js +2 -1
  92. package/src/View/Charting/useChartingElements.js +2 -1
  93. package/src/View/Components/FilterForm/QuickFilterForm.js +1 -1
  94. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  95. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
  96. package/src/View/Theme/ThemeEditor.d.ts +7 -0
  97. package/src/View/Theme/ThemeEditor.js +186 -0
  98. package/src/View/Theme/ThemePopup.d.ts +3 -0
  99. package/src/View/Theme/ThemePopup.js +30 -6
  100. package/src/agGrid/ActionColumnRenderer.js +1 -0
  101. package/src/agGrid/Adaptable.d.ts +42 -41
  102. package/src/agGrid/Adaptable.js +20 -27
  103. package/src/agGrid/createAgStatusPanelComponent.js +1 -1
  104. package/src/metamodel/adaptable-metamodel-model.d.ts +9 -9
  105. package/src/metamodel/adaptable.metamodel.d.ts +1698 -3141
  106. package/src/metamodel/adaptable.metamodel.js +1 -1
  107. package/version.d.ts +1 -1
  108. package/version.js +1 -1
@@ -1,4 +1,4 @@
1
- import { RowNode } from '@ag-grid-community/core';
1
+ import { IRowNode } from '@ag-grid-community/core';
2
2
  import { ContactColumn, ContactIntent, CountryColumn, CustomFDC3Column, CustomFDC3Intent, FDC3Intent, FinancePluginOptions, InstrumentColumn, InstrumentIntent, OrganizationColumn, PositionColumn, PositionIntent } from '../AdaptableOptions/FinancePluginOptions';
3
3
  import { ContactContext, ContactListContext, ContextData, CountryContext, FDC3Context, InstrumentContext, InstrumentListContext, OrganizationContext, PortfolioContext, PositionContext } from '../types';
4
4
  /**
@@ -15,56 +15,56 @@ export interface FinanceApi {
15
15
  * @param rowNode Row Node to use for Context Data
16
16
  * @param data custom Context Data
17
17
  */
18
- createFDC3InstrumentContext(instrumentColumn: InstrumentColumn, rowNode: RowNode, data?: ContextData): InstrumentContext;
18
+ createFDC3InstrumentContext(instrumentColumn: InstrumentColumn, rowNode: IRowNode, data?: ContextData): InstrumentContext;
19
19
  /**
20
20
  * Creates FDC3 Instrumentlist Context
21
21
  * @param instrumentColumn Instrument Column to create Context For
22
22
  * @param rowNode Row Nodes to use for Context Data
23
23
  * @param data custom Context Data
24
24
  */
25
- createFDC3InstrumentListContext(instrumentColumn: InstrumentColumn, rowNodes: RowNode[], data?: ContextData): InstrumentListContext;
25
+ createFDC3InstrumentListContext(instrumentColumn: InstrumentColumn, rowNodes: IRowNode[], data?: ContextData): InstrumentListContext;
26
26
  /**
27
27
  * Creates FDC3 Position Context
28
28
  * @param instrumentColumn Position Column to create Context For
29
29
  * @param rowNode Row Node to use for Context Data
30
30
  * @param data custom Context Data
31
31
  */
32
- createFDC3PositionContext(positionColumn: PositionColumn, rowNode: RowNode, data?: ContextData): PositionContext;
32
+ createFDC3PositionContext(positionColumn: PositionColumn, rowNode: IRowNode, data?: ContextData): PositionContext;
33
33
  /**
34
34
  * Creates FDC3 Portfolio Context
35
35
  * @param instrumentColumn Position Column to create Context For
36
36
  * @param rowNode Row Nodes to use for Context Data
37
37
  * @param data custom Context Data
38
38
  */
39
- createFDC3PortfolioContext(positionColumn: PositionColumn, rowNodes: RowNode[], data?: ContextData): PortfolioContext;
39
+ createFDC3PortfolioContext(positionColumn: PositionColumn, rowNodes: IRowNode[], data?: ContextData): PortfolioContext;
40
40
  /**
41
41
  * Creates FDC3 Contact Context
42
42
  * @param instrumentColumn Contact Column to create Context For
43
43
  * @param rowNode Row Node to use for Context Data
44
44
  * @param data custom Context Data
45
45
  */
46
- createFDC3ContactContext(contactColumn: ContactColumn, rowNode: RowNode, data?: ContextData): ContactContext;
46
+ createFDC3ContactContext(contactColumn: ContactColumn, rowNode: IRowNode, data?: ContextData): ContactContext;
47
47
  /**
48
48
  * Creates FDC3 Contact List Context
49
49
  * @param instrumentColumn Contact Column to create Context For
50
50
  * @param rowNode Row Nodes to use for Context Data
51
51
  * @param data custom Context Data
52
52
  */
53
- createFDC3ContactListContext(contactColumn: ContactColumn, rowNodes: RowNode[], data?: ContextData): ContactListContext;
53
+ createFDC3ContactListContext(contactColumn: ContactColumn, rowNodes: IRowNode[], data?: ContextData): ContactListContext;
54
54
  /**
55
55
  * Creates FDC3 Organization Context
56
56
  * @param instrumentColumn Organization Column to create Context For
57
57
  * @param rowNode Row Node to use for Context Data
58
58
  * @param data custom Context Data
59
59
  */
60
- createFDC3OrganizationContext(organizationColumn: OrganizationColumn, rowNode: RowNode, data?: ContextData): OrganizationContext;
60
+ createFDC3OrganizationContext(organizationColumn: OrganizationColumn, rowNode: IRowNode, data?: ContextData): OrganizationContext;
61
61
  /**
62
62
  * Creates FDC3 Country Context
63
63
  * @param instrumentColumn Country Column to create Context For
64
64
  * @param rowNode Row Node to use for Context Data
65
65
  * @param data custom Context Data
66
66
  */
67
- createFDC3CountryContext(countryColumn: CountryColumn, rowNode: RowNode, data?: ContextData): CountryContext;
67
+ createFDC3CountryContext(countryColumn: CountryColumn, rowNode: IRowNode, data?: ContextData): CountryContext;
68
68
  /**
69
69
  * Gets Instrument Column with given Id
70
70
  * @param instrumentColumnId Column to Look
@@ -1,6 +1,6 @@
1
1
  import { FormatColumn, FormatColumnState } from '../PredefinedConfig/FormatColumnState';
2
2
  import { AdaptableColumn, AdaptableFormat, AdaptableObjectLookupCriteria, AdaptablePredicateDef, AdaptableScope } from '../types';
3
- import { RowNode } from '@ag-grid-community/core';
3
+ import { IRowNode } from '@ag-grid-community/core';
4
4
  /**
5
5
  * Provides run-time access to the Format Column Module and associated state
6
6
  */
@@ -169,15 +169,15 @@ export interface FormatColumnApi {
169
169
  /**
170
170
  * @deprecated internal method, will be removed in next major release
171
171
  */
172
- getNumberFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): any;
172
+ getNumberFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): any;
173
173
  /**
174
174
  * @deprecated internal method, will be removed in next major release
175
175
  */
176
- getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
176
+ getStringFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
177
177
  /**
178
178
  * @deprecated internal method, will be removed in next major release
179
179
  */
180
- getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
180
+ getDateFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
181
181
  /**
182
182
  * @deprecated internal method, will be removed in next major release
183
183
  */
@@ -186,14 +186,14 @@ export interface FormatColumnApi {
186
186
  * @deprecated internal method, will be removed in next major release
187
187
  */
188
188
  isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
189
- node: RowNode;
189
+ node: IRowNode;
190
190
  value: any;
191
191
  }): boolean;
192
192
  /**
193
193
  * @deprecated internal method, will be removed in next major release
194
194
  */
195
195
  getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
196
- node: RowNode;
196
+ node: IRowNode;
197
197
  value: any;
198
198
  }): FormatColumn[];
199
199
  /**
@@ -1,6 +1,6 @@
1
1
  import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../PredefinedConfig/FreeTextColumnState';
2
2
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
3
- import { RowNode } from '@ag-grid-community/core';
3
+ import { IRowNode } from '@ag-grid-community/core';
4
4
  /**
5
5
  * Provides run-time access to FreeTextColumn Module and associated state
6
6
  */
@@ -69,7 +69,7 @@ export interface FreeTextColumnApi {
69
69
  * @param freeTextColumn column to lookup
70
70
  * @param rowNode row to lookup
71
71
  */
72
- getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
72
+ getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
73
73
  /**
74
74
  * Opens Settings Panel with Free Text Column section selected and visible
75
75
  */
@@ -92,7 +92,7 @@ export interface FreeTextColumnApi {
92
92
  /**
93
93
  * @deprecated use `getFreeTextColumnValueForRowNode()` instead
94
94
  */
95
- getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
95
+ getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
96
96
  /**
97
97
  * @deprecated internal method, will be removed in next major release
98
98
  */
@@ -9,7 +9,7 @@ import { CellHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo'
9
9
  import { RowHighlightInfo } from '../PredefinedConfig/Common/RowHighlightInfo';
10
10
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
11
11
  import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
12
- import { GridOptions, RowNode } from '@ag-grid-community/core';
12
+ import { GridOptions, IRowNode } from '@ag-grid-community/core';
13
13
  import { GridCellRange } from '../PredefinedConfig/Selection/GridCellRange';
14
14
  import { RowsHighlightInfo } from '../PredefinedConfig/Common/RowsHighlightInfo';
15
15
  /**
@@ -43,19 +43,19 @@ export interface GridApi {
43
43
  * @param dataRows rows which have been updated - send whole row and Adaptable will take care of the rest
44
44
  * @param config batch option and callback function to run post update
45
45
  */
46
- updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
46
+ updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
47
47
  /**
48
48
  * Adds rows to Adaptable (and AG Grid)
49
49
  * @param dataRows rows to add; ensure all 'mandatory' fields are included and Primary Key is unique
50
50
  * @param config batch option and callback function to run post addition
51
51
  */
52
- addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
52
+ addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
53
53
  /**
54
54
  * Deletes rows from Adaptable (and AG Grid)
55
55
  * @param dataRows rows which should be deleted
56
56
  * @param config batch option and callback function to run post deletion
57
57
  */
58
- deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<RowNode[]>;
58
+ deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
59
59
  /**
60
60
  * Updates cell in Adaptable (first performs Cell & Server Validation)
61
61
  * @param columnId column to update
@@ -130,19 +130,19 @@ export interface GridApi {
130
130
  * @param rowNode Node to Select
131
131
  * @param clearSelection Whether to clear current selection in grid
132
132
  */
133
- selectNode(rowNode: RowNode, clearSelection: boolean): void;
133
+ selectNode(rowNode: IRowNode, clearSelection: boolean): void;
134
134
  /**
135
135
  * Selects the AG Grid Row Nodes in AdapTable
136
136
  * @param rowNodes Nodes to Select
137
137
  * @param clearSelection Whether to clear current selection in grid
138
138
  */
139
- selectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
139
+ selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
140
140
  /**
141
141
  * Deselects the AG Grid Row Node in AdapTable
142
142
  * @param rowNode Node to DeSelect
143
143
  * @param clearSelection Whether to clear current selection in grid
144
144
  */
145
- deSelectNode(rowNode: RowNode, clearSelection: boolean): void;
145
+ deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
146
146
  /**
147
147
  * Selects a Column in AG Grid
148
148
  * @param columnId Id of Column to Select
@@ -158,7 +158,7 @@ export interface GridApi {
158
158
  * @param rowNodes Nodes to DeSelect
159
159
  * @param clearSelection Whether to clear current selection in grid
160
160
  */
161
- deSelectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
161
+ deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
162
162
  /**
163
163
  * Selects Row with given Primary Key Value
164
164
  * @param primaryKeyValue Primary Key Value of Row to select
@@ -200,54 +200,54 @@ export interface GridApi {
200
200
  /**
201
201
  * Retrieves the first Row Node in AdapTable
202
202
  */
203
- getFirstRowNode(): RowNode;
203
+ getFirstRowNode(): IRowNode | undefined;
204
204
  /**
205
205
  * Retrieves the first Displayed Row Node in AdapTable
206
206
  */
207
- getFirstDisplayedRowNode(): RowNode;
207
+ getFirstDisplayedRowNode(): IRowNode | undefined;
208
208
  /**
209
209
  * Retrieves all filtered Row Nodes currently in the Grid (i.e. after applying the current filter)
210
210
  */
211
- getVisibleRowNodes(): RowNode[];
211
+ getVisibleRowNodes(): IRowNode[];
212
212
  /**
213
213
  * Retrieves all Row Nodes currently in the Grid (by default excluding the group rows)
214
214
  * @param config - configuration
215
215
  */
216
216
  getAllRowNodes(config?: {
217
217
  includeGroupRows?: boolean;
218
- filterFn?: (rowNode: RowNode) => boolean;
219
- }): RowNode[];
218
+ filterFn?: (rowNode: IRowNode) => boolean;
219
+ }): IRowNode[];
220
220
  /**
221
221
  * Retrieves Row Nodes that contain given Primary Keys
222
222
  * @param primaryKeyValues Primary Kev Values to look up
223
223
  */
224
- getRowNodesForPrimaryKeys(primaryKeyValues: any[]): RowNode[];
224
+ getRowNodesForPrimaryKeys(primaryKeyValues: any[]): IRowNode[];
225
225
  /**
226
226
  * Retrieves Row Node that contains given Primary Key
227
227
  * @param primaryKeyValue Primary Key Value to look up
228
228
  */
229
- getRowNodeForPrimaryKey(primaryKeyValue: any): RowNode;
229
+ getRowNodeForPrimaryKey(primaryKeyValue: any): IRowNode;
230
230
  /**
231
231
  * Retrieves the displayed RowNode at the given index
232
232
  * @param rowIndex row index
233
233
  */
234
- getRowNodeForIndex(rowIndex: number): RowNode | undefined;
234
+ getRowNodeForIndex(rowIndex: number): IRowNode | undefined;
235
235
  /**
236
236
  * Returns the Primary Kev Value for a given Row Node
237
237
  * @param rowNode rowNode to look up
238
238
  */
239
- getPrimaryKeyValueForRowNode(rowNode: RowNode): any;
239
+ getPrimaryKeyValueForRowNode(rowNode: IRowNode): any;
240
240
  /**
241
241
  * Returns the Primary Kev Values for a given Row Node collection
242
242
  * @param rowNode rowNodes to look up
243
243
  */
244
- getPrimaryKeyValuesForRowNodes(rowNodes: RowNode[]): any[];
244
+ getPrimaryKeyValuesForRowNodes(rowNodes: IRowNode[]): any[];
245
245
  /**
246
246
  * Retrieves Cell in given Row and Column
247
247
  * @param rowNode Row to use
248
248
  * @param columnId ColumnId to lookup
249
249
  */
250
- getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
250
+ getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
251
251
  /**
252
252
  * Retrieves Display Value for a given cell
253
253
  * @param primaryKeyValue (unique) value in Primary Key Column
@@ -271,26 +271,26 @@ export interface GridApi {
271
271
  * @param rowNode Row to use
272
272
  * @param columnId ColumnId to lookup
273
273
  */
274
- getRawValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
274
+ getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
275
275
  /**
276
276
  * Retrieves Formatted Value for a given Raw Value in given Column
277
277
  * @param columnId ColumnId to lookup
278
278
  * @param rawValue Raw Value
279
279
  * @param rowNode Node containig the Column
280
280
  */
281
- getDisplayValueFromRawValue(rowNode: RowNode, columnId: string, rawValue: any): string | undefined;
281
+ getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
282
282
  /**
283
283
  * Retrieves Display Value for Cell in given Row and Column
284
284
  * @param rowNode Row to use
285
285
  * @param columnId ColumnId to lookup
286
286
  */
287
- getDisplayValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
287
+ getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
288
288
  /**
289
289
  * Retrieves Normalised Value for Cell in given Row and Column
290
290
  * @param rowNode Row to use
291
291
  * @param columnId ColumnId to lookup
292
292
  */
293
- getNormalisedValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
293
+ getNormalisedValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
294
294
  /**
295
295
  * Sets the grid to Row Group
296
296
  * @param columnIds ColumnIds to row group
@@ -337,7 +337,7 @@ export interface GridApi {
337
337
  * Whether given Row Node is a Row Group
338
338
  * @param rowNode Node to check
339
339
  */
340
- isGroupRowNode(rowNode: RowNode): boolean;
340
+ isGroupRowNode(rowNode: IRowNode): boolean;
341
341
  /**
342
342
  * Whether Quick Filter is available in the Grid
343
343
  */
@@ -406,7 +406,7 @@ export interface GridApi {
406
406
  * @param rowNodes agGrid RowNodes which contain cells to refresh
407
407
  * @param columnIds ColumnIds which contain cells to refresh
408
408
  */
409
- refreshCells(rowNodes: RowNode[], columnIds: string[]): void;
409
+ refreshCells(rowNodes: IRowNode[], columnIds: string[]): void;
410
410
  /**
411
411
  * Forces a re-render of the row with the given primary key value
412
412
  * @param primaryKey row primary key
@@ -414,14 +414,14 @@ export interface GridApi {
414
414
  refreshRowByPrimaryKey(primaryKey: any): void;
415
415
  /**
416
416
  * Forces a re-render of the given row
417
- * @param rowNode ag-grid row
417
+ * @param rowNode AG Grid Row
418
418
  */
419
- refreshRowNode(rowNode: RowNode): void;
419
+ refreshRowNode(rowNode: IRowNode): void;
420
420
  /**
421
421
  * Forces a re-render of the given rows
422
- * @param rowNodes ag-grid rows
422
+ * @param rowNodes AG Grid rows
423
423
  */
424
- refreshRowNodes(rowNodes: RowNode[]): void;
424
+ refreshRowNodes(rowNodes: IRowNode[]): void;
425
425
  /**
426
426
  * Returns number of rows in Data Source
427
427
  */
@@ -499,7 +499,7 @@ export interface GridApi {
499
499
  /**
500
500
  * @deprecated internal method, will be removed in next major release
501
501
  */
502
- fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
502
+ fireGridDataChangedEvent(dataRows: any[], rowNodes: IRowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
503
503
  /**
504
504
  * @deprecated use `openGridInfoSettingsPanel()` instead
505
505
  */
@@ -30,5 +30,6 @@ export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
30
30
  }[];
31
31
  };
32
32
  getOpenChartContainer(chartDefinition: ChartDefinition): ChartContainer | null;
33
- setMakeReadOnly(chartDefinition: ChartDefinition): void;
33
+ setChartReadOnly(chartDefinition: ChartDefinition): void;
34
+ setChartEditable(chartDefinition: ChartDefinition): void;
34
35
  }
@@ -110,8 +110,11 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
110
110
  return containerElement.contains(chartRef.chartElement);
111
111
  })) !== null && _c !== void 0 ? _c : null);
112
112
  }
113
- setMakeReadOnly(chartDefinition) {
113
+ setChartReadOnly(chartDefinition) {
114
114
  this.dispatchAction(ChartingRedux.ChartingEditChart(Object.assign(Object.assign({}, chartDefinition), { IsReadOnly: true })));
115
115
  }
116
+ setChartEditable(chartDefinition) {
117
+ this.dispatchAction(ChartingRedux.ChartingEditChart(Object.assign(Object.assign({}, chartDefinition), { IsReadOnly: false })));
118
+ }
116
119
  }
117
120
  exports.ChartingApiImpl = ChartingApiImpl;
@@ -2,7 +2,7 @@ import { ApiBase } from './ApiBase';
2
2
  import { AdaptableColumn, AdaptableColumnDataType } from '../../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { ColumnApi } from '../ColumnApi';
4
4
  import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
5
- import { Column, RowNode } from '@ag-grid-community/core';
5
+ import { Column, IRowNode } from '@ag-grid-community/core';
6
6
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
7
7
  import { ColumnInternalApi } from '../Internal/ColumnInternalApi';
8
8
  export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
@@ -82,10 +82,10 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
82
82
  getDistinctCustomSortDisplayValuesForColumn(columnId: string): Promise<any[]>;
83
83
  getDistinctBulkUpdateDisplayValuesForColumn(columnId: string, selectedGridCells: GridCell[]): Promise<any[]>;
84
84
  getDistinctVisibleDisplayValuesForColumn(columnId: string): any[];
85
- getDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
86
- getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: RowNode): any[];
85
+ getDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
86
+ getUnsortedDistinctRawValuesForColumn(columnId: string, skipRowNode?: IRowNode): any[];
87
87
  getDistinctVisibleRawValuesForColumn(columnId: string): any[];
88
- getPrimaryKeyColumn(): AdaptableColumn;
88
+ getPrimaryKeyColumn(): AdaptableColumn<any>;
89
89
  getAllColumnFriendlyNames(): string[];
90
90
  usesAdaptableFilterForm(columnId: string): boolean;
91
91
  usesAdaptableQuickFilter(columnId: string): boolean;
@@ -5,7 +5,7 @@ import { FilterApi } from '../FilterApi';
5
5
  import { AdaptablePredicateDef, ColumnFilterDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
6
6
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
7
7
  import { ColumnFilter, GridCell } from '../../types';
8
- import { RowNode } from '@ag-grid-community/core';
8
+ import { IRowNode } from '@ag-grid-community/core';
9
9
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
10
10
  import { FilterInternalApi } from '../Internal/FilterInternalApi';
11
11
  export declare class FilterApiImpl extends ApiBase implements FilterApi {
@@ -37,7 +37,7 @@ export declare class FilterApiImpl extends ApiBase implements FilterApi {
37
37
  createEqualityColumnFilterForCell(gridCell: GridCell): ColumnFilter | null;
38
38
  columnFilterToString(columnFilter: ColumnFilter): string;
39
39
  columnFiltersToString(columnFilters: ColumnFilter[]): string;
40
- evaluateColumnFilter(columnFilter: ColumnFilter, node: RowNode): boolean;
40
+ evaluateColumnFilter(columnFilter: ColumnFilter, node: IRowNode): boolean;
41
41
  private getColumnFilterById;
42
42
  /**
43
43
  * Checks if a filter is applied. It is applied when:
@@ -3,7 +3,7 @@ import { ApiBase, LayoutAssociatedObjectLoadConfig } from './ApiBase';
3
3
  import { FormatColumnApi } from '../FormatColumnApi';
4
4
  import { FormatColumn, FormatColumnState } from '../../PredefinedConfig/FormatColumnState';
5
5
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
6
- import { RowNode } from '@ag-grid-community/core';
6
+ import { IRowNode } from '@ag-grid-community/core';
7
7
  import { StringFormatterOptions } from '../../types';
8
8
  import { AdaptableObjectLookupCriteria, AdaptablePredicateDef, AdaptableScope, DateFormatterOptions, NumberFormatterOptions } from '../../../types';
9
9
  import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
@@ -57,17 +57,17 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
57
57
  getFormatColumnsWithAllScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
58
58
  getFormatColumnsWithDataTypeScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
59
59
  getFormatColumnsWithColumnScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
60
- getNumberFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: NumberFormatterOptions): string;
61
- getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: StringFormatterOptions): string;
62
- getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: DateFormatterOptions): string;
60
+ getNumberFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: NumberFormatterOptions): string;
61
+ getStringFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: StringFormatterOptions): string;
62
+ getDateFormattedValue(value: any, node: IRowNode, abColumn: AdaptableColumn, options: DateFormatterOptions): string;
63
63
  hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
64
64
  getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
65
65
  getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
66
- node: RowNode;
66
+ node: IRowNode;
67
67
  value: any;
68
68
  }): FormatColumn[];
69
69
  isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
70
- node: RowNode;
70
+ node: IRowNode;
71
71
  value: any;
72
72
  }): boolean;
73
73
  getFormatColumnsWithExpression(): FormatColumn[] | undefined;
@@ -2,7 +2,7 @@ import { ApiBase } from './ApiBase';
2
2
  import { FreeTextColumnApi } from '../FreeTextColumnApi';
3
3
  import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../../PredefinedConfig/FreeTextColumnState';
4
4
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
5
- import { RowNode } from '@ag-grid-community/core';
5
+ import { IRowNode } from '@ag-grid-community/core';
6
6
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
7
7
  import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
8
8
  export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextColumnApi {
@@ -22,8 +22,8 @@ export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextCo
22
22
  deleteFreeTextColumn(columnId: string): void;
23
23
  showFreeTextColumnPopup(): void;
24
24
  openFreeTextColumnSettingsPanel(): void;
25
- getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
26
- getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
25
+ getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
26
+ getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: IRowNode): any;
27
27
  checkFreeTextColumnForDataChange(cellDataChangedInfo: CellDataChangedInfo): void;
28
28
  getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
29
29
  }
@@ -8,7 +8,7 @@ import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
8
8
  import { DataUpdateConfig } from '../../PredefinedConfig/Common/DataUpdateConfig';
9
9
  import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
10
10
  import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
11
- import { GridOptions, RowNode } from '@ag-grid-community/core';
11
+ import { GridOptions, IRowNode } from '@ag-grid-community/core';
12
12
  import { GridCellRange } from '../../PredefinedConfig/Selection/GridCellRange';
13
13
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
14
14
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
@@ -24,10 +24,10 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
24
24
  getGridData(): any[];
25
25
  getFilteredData(): any[];
26
26
  loadGridData(dataSource: any): void;
27
- updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
28
- addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode<any>[]>;
27
+ updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
28
+ addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode<any>[]>;
29
29
  undoCellEdit(cellDataChangedInfo: CellDataChangedInfo): boolean;
30
- deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
30
+ deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
31
31
  setCellValue(columnId: string, newValue: any, primaryKeyValue: any): void;
32
32
  setCellsValue(gridCells: {
33
33
  columnId: any;
@@ -56,34 +56,34 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
56
56
  private clearColumnSorts;
57
57
  selectRow(primaryKeyValue: any, clearSelection: boolean): void;
58
58
  selectRows(primaryKeyValues: any[], clearSelection: boolean): void;
59
- selectNode(rowNode: RowNode, clearSelection: boolean): void;
60
- selectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
59
+ selectNode(rowNode: IRowNode, clearSelection: boolean): void;
60
+ selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
61
61
  deSelectRow(primaryKeyValue: any, clearSelection: boolean): void;
62
62
  deSelectRows(primaryKeyValues: any[], clearSelection: boolean): void;
63
- deSelectNode(rowNode: RowNode, clearSelection: boolean): void;
64
- deSelectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
63
+ deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
64
+ deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
65
65
  private getSelectionStartEndNodes;
66
66
  selectCellRange(gridCellRange: GridCellRange, clearSelection?: boolean): void;
67
67
  selectCellRangeByQuery(query: string, gridCellRange?: GridCellRange, clearSelection?: boolean): void;
68
68
  selectColumn(columnId: string): void;
69
69
  selectColumns(columnIds: string[]): void;
70
- getFirstRowNode(): RowNode;
71
- getFirstDisplayedRowNode(): RowNode;
72
- getVisibleRowNodes(): RowNode[];
70
+ getFirstRowNode(): IRowNode;
71
+ getFirstDisplayedRowNode(): IRowNode;
72
+ getVisibleRowNodes(): IRowNode[];
73
73
  getAllRowNodes(config: {
74
74
  includeGroupRows?: boolean;
75
- filterFn?: (rowNode: RowNode) => boolean;
76
- }): RowNode[];
77
- getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
78
- getRawValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
79
- getDisplayValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
80
- getDisplayValueFromRawValue(rowNode: RowNode, columnId: string, rawValue: any): string | undefined;
81
- getNormalisedValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
82
- getRowNodesForPrimaryKeys(primaryKeyValues: any[]): RowNode[];
83
- getRowNodeForPrimaryKey(primaryKeyValue: any): RowNode;
84
- getPrimaryKeyValueForRowNode(rowNode: RowNode): any;
85
- getRowNodeForIndex(index: number): RowNode<any>;
86
- getPrimaryKeyValuesForRowNodes(rowNodes: RowNode[]): any[];
75
+ filterFn?: (rowNode: IRowNode) => boolean;
76
+ }): IRowNode[];
77
+ getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
78
+ getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
79
+ getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
80
+ getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
81
+ getNormalisedValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
82
+ getRowNodesForPrimaryKeys(primaryKeyValues: any[]): IRowNode[];
83
+ getRowNodeForPrimaryKey(primaryKeyValue: any): IRowNode;
84
+ getPrimaryKeyValueForRowNode(rowNode: IRowNode): any;
85
+ getRowNodeForIndex(index: number): IRowNode<any>;
86
+ getPrimaryKeyValuesForRowNodes(rowNodes: IRowNode[]): any[];
87
87
  setRowGroupColumns(columnIds: string[]): void;
88
88
  clearRowGroupColumns(): void;
89
89
  expandAllRowGroups(): void;
@@ -95,12 +95,12 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
95
95
  isGridGroupable(): boolean;
96
96
  isGridSelectable(): boolean;
97
97
  isGridRowGrouped(): boolean;
98
- isGroupRowNode(rowNode: RowNode): boolean;
98
+ isGroupRowNode(rowNode: IRowNode): boolean;
99
99
  isQuickFilterAvailable(): boolean;
100
100
  redrawGrid(): void;
101
101
  fireGridSortedEvent(): void;
102
102
  fireCellChangedEvent(cellDataChangedInfo: CellDataChangedInfo): void;
103
- fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
103
+ fireGridDataChangedEvent(dataRows: any[], rowNodes: IRowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
104
104
  jumpToRow(primaryKeyValue: any): void;
105
105
  jumpToColumn(columnId: string): void;
106
106
  jumpToCell(primaryKeyValue: any, columnId: string): void;
@@ -112,16 +112,16 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
112
112
  unHighlightRow(primaryKeyValue: RowHighlightInfo['primaryKeyValue']): void;
113
113
  unHighlightRows(primaryKeyValues: RowsHighlightInfo['primaryKeyValues']): void;
114
114
  unHighlightAllRows(): void;
115
- refreshCells(rowNodes: RowNode[], columnIds: string[]): void;
115
+ refreshCells(rowNodes: IRowNode[], columnIds: string[]): void;
116
116
  refreshRowByPrimaryKey(primaryKey: any): void;
117
- refreshRowNode(rowNode: RowNode): void;
118
- refreshRowNodes(rowNodes: RowNode[]): void;
117
+ refreshRowNode(rowNode: IRowNode): void;
118
+ refreshRowNodes(rowNodes: IRowNode[]): void;
119
119
  isCellEditable(gridCell: GridCell): boolean;
120
120
  areCellsEditable(gridCells: GridCell[]): boolean;
121
121
  isEveryCellEditable(gridCells: GridCell[]): boolean;
122
122
  getRowCount(): number;
123
123
  getVisibleRowCount(): number;
124
- getRowsInViewport(): RowNode[];
124
+ getRowsInViewport(): IRowNode[];
125
125
  getColumnCount(): number;
126
126
  getVisibleColumnCount(): number;
127
127
  getEntitlementAccessLevelForModule(adaptableModule: AdaptableModule): AccessLevel;
@@ -7,6 +7,7 @@ export declare class ThemeApiImpl extends ApiBase implements ThemeApi {
7
7
  loadLightTheme(): void;
8
8
  loadDarkTheme(): void;
9
9
  getCurrentTheme(): string;
10
+ getCurrentThemeObject(): AdaptableTheme;
10
11
  setSystemThemes(systemThemes: AdaptableTheme[]): void;
11
12
  setUserThemes(userThemes: AdaptableTheme[]): void;
12
13
  getAllSystemTheme(): AdaptableTheme[];
@@ -19,4 +20,7 @@ export declare class ThemeApiImpl extends ApiBase implements ThemeApi {
19
20
  showThemePopup(): void;
20
21
  openThemeSettingsPanel(): void;
21
22
  getAgGridCurrentThemeName(): string;
23
+ editTheme(theme: AdaptableTheme): void;
24
+ addUserTheme(theme: AdaptableTheme): void;
25
+ deleteUserTheme(theme: AdaptableTheme): void;
22
26
  }
@@ -23,6 +23,10 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
23
23
  getCurrentTheme() {
24
24
  return this.getAdaptableState().Theme.CurrentTheme;
25
25
  }
26
+ getCurrentThemeObject() {
27
+ const currentTheme = this.getCurrentTheme();
28
+ return this.getThemes().find((themeObj) => themeObj.Name === currentTheme);
29
+ }
26
30
  setSystemThemes(systemThemes) {
27
31
  this.dispatchAction(ThemeRedux.ThemeSetSystemThemes(systemThemes));
28
32
  }
@@ -87,5 +91,15 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
87
91
  getAgGridCurrentThemeName() {
88
92
  return this.adaptable.getAgGridCurrentThemeName();
89
93
  }
94
+ editTheme(theme) {
95
+ this.dispatchAction(ThemeRedux.ThemeEdit(theme));
96
+ this.getEventApi().emit('ThemeEdited', theme);
97
+ }
98
+ addUserTheme(theme) {
99
+ this.dispatchAction(ThemeRedux.ThemeAdd(theme));
100
+ }
101
+ deleteUserTheme(theme) {
102
+ this.dispatchAction(ThemeRedux.ThemeDelete(theme));
103
+ }
90
104
  }
91
105
  exports.ThemeApiImpl = ThemeApiImpl;
@@ -1,10 +1,10 @@
1
- import { RowNode } from '@ag-grid-community/core';
1
+ import { IRowNode } from '@ag-grid-community/core';
2
2
  import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
3
3
  import { CreateActionRowFormContext, EditActionRowFormContext } from '../../AdaptableOptions/ActionOptions';
4
4
  import { ApiBase } from '../Implementation/ApiBase';
5
5
  export declare class ActionInternalApi extends ApiBase {
6
- buildRowEditForm(rowNode: RowNode): AdaptableForm<EditActionRowFormContext>;
7
- buildRowCreateForm(clonedRowNode?: RowNode): AdaptableForm<CreateActionRowFormContext>;
6
+ buildRowEditForm(rowNode: IRowNode): AdaptableForm<EditActionRowFormContext>;
7
+ buildRowCreateForm(clonedRowNode?: IRowNode): AdaptableForm<CreateActionRowFormContext>;
8
8
  private get actionRowFormOptions();
9
9
  private get adaptableInstance();
10
10
  private buildActionRow;