@adaptabletools/adaptable 11.1.2 → 11.1.5

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 (95) hide show
  1. package/bundle.cjs.js +120 -120
  2. package/package.json +3 -3
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -1
  6. package/src/AdaptableOptions/AdaptableOptions.d.ts +49 -49
  7. package/src/AdaptableOptions/ContainerOptions.d.ts +1 -1
  8. package/src/AdaptableOptions/DashboardOptions.d.ts +1 -1
  9. package/src/AdaptableOptions/EditOptions.d.ts +4 -0
  10. package/src/AdaptableOptions/NotificationsOptions.d.ts +2 -2
  11. package/src/AdaptableOptions/SmartEdit.d.ts +34 -0
  12. package/src/AdaptableOptions/SmartEdit.js +2 -0
  13. package/src/Api/Implementation/ColumnApiImpl.js +1 -1
  14. package/src/Api/Implementation/FilterApiImpl.js +8 -2
  15. package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
  16. package/src/Api/Implementation/GridApiImpl.js +6 -8
  17. package/src/Api/Implementation/InternalApiImpl.d.ts +4 -0
  18. package/src/Api/Implementation/InternalApiImpl.js +9 -0
  19. package/src/Api/Implementation/SmartEditApiImpl.d.ts +3 -2
  20. package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
  21. package/src/Api/Implementation/ThemeApiImpl.js +3 -0
  22. package/src/Api/InternalApi.d.ts +4 -0
  23. package/src/Api/SmartEditApi.d.ts +3 -2
  24. package/src/Api/ThemeApi.d.ts +4 -0
  25. package/src/PredefinedConfig/ExportState.d.ts +0 -5
  26. package/src/PredefinedConfig/PopupState.d.ts +2 -1
  27. package/src/PredefinedConfig/SystemState.d.ts +2 -5
  28. package/src/Redux/ActionsReducers/PopupRedux.d.ts +22 -3
  29. package/src/Redux/ActionsReducers/PopupRedux.js +42 -8
  30. package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -23
  31. package/src/Redux/ActionsReducers/SystemRedux.js +3 -32
  32. package/src/Strategy/AlertModule.js +29 -9
  33. package/src/Strategy/CalculatedColumnModule.js +1 -1
  34. package/src/Strategy/ExportModule.js +14 -4
  35. package/src/Strategy/SmartEditModule.d.ts +2 -2
  36. package/src/Strategy/SmartEditModule.js +24 -13
  37. package/src/Strategy/Utilities/getExportColumnsViewItems.js +1 -1
  38. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +1 -1
  39. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +4 -2
  40. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +1 -1
  41. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +0 -3
  42. package/src/Utilities/Interface/MessagePopups.d.ts +12 -0
  43. package/src/Utilities/Services/AlertService.d.ts +3 -3
  44. package/src/Utilities/Services/AlertService.js +6 -6
  45. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +3 -3
  46. package/src/Utilities/Services/CalculatedColumnExpressionService.js +20 -20
  47. package/src/Utilities/Services/EntitlementService.d.ts +3 -3
  48. package/src/Utilities/Services/EntitlementService.js +12 -8
  49. package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
  50. package/src/Utilities/Services/MetamodelService.d.ts +3 -3
  51. package/src/Utilities/Services/MetamodelService.js +4 -4
  52. package/src/Utilities/Services/ModuleService.d.ts +3 -3
  53. package/src/Utilities/Services/ModuleService.js +12 -12
  54. package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
  55. package/src/Utilities/Services/QueryLanguageService.js +20 -19
  56. package/src/Utilities/Services/ReportService.d.ts +4 -4
  57. package/src/Utilities/Services/ReportService.js +50 -44
  58. package/src/Utilities/Services/TeamSharingService.d.ts +3 -3
  59. package/src/Utilities/Services/TeamSharingService.js +19 -16
  60. package/src/Utilities/Services/ValidationService.d.ts +3 -3
  61. package/src/Utilities/Services/ValidationService.js +19 -17
  62. package/src/View/AdaptableView.js +2 -2
  63. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +46 -9
  64. package/src/View/Alert/Wizard/AlertWizard.js +22 -24
  65. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +5 -5
  66. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +3 -3
  67. package/src/View/Components/Popups/FormPopups/FormPopups.d.ts +10 -0
  68. package/src/View/Components/Popups/FormPopups/FormPopups.js +37 -0
  69. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +1 -1
  70. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +1 -3
  71. package/src/View/DataSource/DataSourceViewPanel.d.ts +3 -3
  72. package/src/View/DataSource/DataSourceViewPanel.js +15 -13
  73. package/src/View/Export/ExportViewPanel.d.ts +1 -3
  74. package/src/View/Export/ExportViewPanel.js +1 -17
  75. package/src/View/GridInfo/AdaptableObjectsSummary.js +1 -1
  76. package/src/View/GridInfo/GridInfoPopup.js +4 -4
  77. package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -4
  78. package/src/View/Layout/Wizard/LayoutEditorWizard.js +6 -1
  79. package/src/View/SmartEdit/SmartEditPopup.d.ts +3 -3
  80. package/src/View/SmartEdit/SmartEditPopup.js +15 -3
  81. package/src/View/SmartEdit/SmartEditViewPanel.d.ts +3 -4
  82. package/src/View/SmartEdit/SmartEditViewPanel.js +15 -6
  83. package/src/View/Wizard/OnePageAdaptableWizard.js +1 -1
  84. package/src/agGrid/Adaptable.d.ts +5 -4
  85. package/src/agGrid/Adaptable.js +56 -49
  86. package/src/components/StylePreview.js +2 -2
  87. package/src/metamodel/adaptable.metamodel.d.ts +5 -0
  88. package/src/metamodel/adaptable.metamodel.js +16 -5
  89. package/src/types.d.ts +1 -1
  90. package/version.d.ts +1 -1
  91. package/version.js +1 -1
  92. package/src/View/Export/ExportCustomDestinationDialog.d.ts +0 -11
  93. package/src/View/Export/ExportCustomDestinationDialog.js +0 -47
  94. package/src/View/Export/ExportCustomDestinationFormPopups.d.ts +0 -5
  95. package/src/View/Export/ExportCustomDestinationFormPopups.js +0 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "11.1.2",
3
+ "version": "11.1.5",
4
4
  "description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
5
5
  "keywords": [
6
6
  "web-components",
@@ -39,10 +39,10 @@
39
39
  "normalize.css": "^8.0.1",
40
40
  "prop-types": "^15.6.2",
41
41
  "re-resizable": "^6.9.1",
42
- "react": ">=16.8.0",
42
+ "react": "^16.8.0 || ^17.0.0",
43
43
  "react-beautiful-dnd": "13.1.0",
44
44
  "react-day-picker": "8.0.0-beta.38",
45
- "react-dom": ">=16.8.0",
45
+ "react-dom": "^16.8.0 || ^17.0.0",
46
46
  "react-redux": "7.2.4",
47
47
  "react-remove-scroll": "2.4.2",
48
48
  "react-toastify": "8.1.0",
@@ -1,2 +1,2 @@
1
- declare const _default: 1648639602191;
1
+ declare const _default: 1649336531486;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1648639602191;
3
+ exports.default = 1649336531486;
@@ -151,7 +151,7 @@ export interface IAdaptable {
151
151
  }>;
152
152
  getDistinctCustomSortValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, skipRowNode?: RowNode): Promise<GridCell[]>;
153
153
  getDistinctBulkUpdateValuesForColumn(column: AdaptableColumn, visibleRowsOnly: boolean, selectedGridCells: GridCell[], skipRowNode?: RowNode): Promise<GridCell[]>;
154
- getDisplayValue(id: any, columnId: string): string;
154
+ getDisplayValue(id: any, columnId: string): string | undefined;
155
155
  getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
156
156
  getRawValueFromRowNode(rowNode: RowNode, columnId: string): any;
157
157
  getDisplayValueFromRowNode(rowNode: RowNode, columnId: string): string | undefined;
@@ -33,10 +33,6 @@ export interface AdaptableOptions {
33
33
  * @gridInfoItem
34
34
  */
35
35
  adaptableId?: string;
36
- /**
37
- * Commercial license key. If the license is not provided or is expired, various visual information notes will be displayed and some functionality may be limited.
38
- */
39
- licenseKey?: string;
40
36
  /**
41
37
  * Identifier used as localStorage persistence key for AdaptableState
42
38
  *
@@ -44,6 +40,27 @@ export interface AdaptableOptions {
44
40
  * @gridInfoItem
45
41
  */
46
42
  adaptableStateKey?: string;
43
+ /**
44
+ * Will autogenerate a Primary Key; only use as a last resort if no unique column is available, as limits some Adaptable functionalities
45
+ *
46
+ * @defaultValue false
47
+ * @gridInfoItem
48
+ */
49
+ autogeneratePrimaryKey?: boolean;
50
+ /**
51
+ * The AG Grid object which AdapTable interacts with. Note: if using AdapTable React or AdapTable Angular, no need to populate this property as AdapTable wires it up differently
52
+ *
53
+ * @defaultValue n/a (Mandatory)
54
+ */
55
+ gridOptions?: GridOptions;
56
+ /**
57
+ * Commercial license key. If the license is not provided or is expired, various visual information notes will be displayed and some functionality may be limited.
58
+ */
59
+ licenseKey?: string;
60
+ /**
61
+ * AG Grid Modules that should be provided - needs to be provided separately
62
+ */
63
+ modules?: Module[];
47
64
  /**
48
65
  * User State set at design-time and shipped with AdapTable for first use; can be `PredefinedConfig` object or url to file containing config
49
66
  *
@@ -57,13 +74,6 @@ export interface AdaptableOptions {
57
74
  * @gridInfoItem
58
75
  */
59
76
  primaryKey: string;
60
- /**
61
- * Will autogenerate a Primary Key; only use as a last resort if no unique column is available, as limits some Adaptable functionalities
62
- *
63
- * @defaultValue false
64
- * @gridInfoItem
65
- */
66
- autogeneratePrimaryKey?: boolean;
67
77
  /**
68
78
  * Name of current AdapTable user
69
79
  *
@@ -72,21 +82,9 @@ export interface AdaptableOptions {
72
82
  */
73
83
  userName?: string;
74
84
  /**
75
- * The AG Grid object which AdapTable interacts with. Note: if using AdapTable React or AdapTable Angular, no need to populate this property as AdapTable wires it up differently
76
- *
77
- * @defaultValue n/a (Mandatory)
78
- */
79
- gridOptions?: GridOptions;
80
- /**
81
- * AG Grid Modules that should be provided - needs to be provided separately
82
- */
83
- modules?: Module[];
84
- /**
85
- * Options for managing Notifications in AdapTable
86
- *
87
- * @gridInfoContainer
85
+ * Options for managing AdapTableQL
88
86
  */
89
- notificationsOptions?: NotificationsOptions;
87
+ adaptableQLOptions?: AdaptableQLOptions;
90
88
  /**
91
89
  * Options for managing Alerts in AdapTable
92
90
  *
@@ -97,12 +95,22 @@ export interface AdaptableOptions {
97
95
  * Options for setting the 'Div' elements in which AdapTable, AG Grid, popups are placed
98
96
  */
99
97
  containerOptions?: ContainerOptions;
98
+ /**
99
+ * Predicate definitions provided by developers at Design-Time
100
+ */
101
+ customPredicateDefs?: AdaptablePredicateDef[];
100
102
  /**
101
103
  * Options related to managing the Dashboard in AdapTable
102
104
  *
103
105
  * @gridInfoContainer
104
106
  */
105
107
  dashboardOptions?: DashboardOptions;
108
+ /**
109
+ * Options to manage Data Change History Module which provides an overview of all data changes
110
+ *
111
+ * @gridInfoContainer
112
+ */
113
+ dataChangeHistoryOptions?: DataChangeHistoryOptions;
106
114
  /**
107
115
  * Options related to Editing in AdapTable including Server Validation
108
116
  *
@@ -121,6 +129,12 @@ export interface AdaptableOptions {
121
129
  * @gridInfoContainer
122
130
  */
123
131
  exportOptions?: ExportOptions;
132
+ /**
133
+ * Options for managing Filtering in AdapTable
134
+ *
135
+ * @gridInfoContainer
136
+ */
137
+ filterOptions?: FilterOptions;
124
138
  /**
125
139
  * Options for managing Flashing Cells - primarily default values
126
140
  *
@@ -145,6 +159,12 @@ export interface AdaptableOptions {
145
159
  * @gridInfoContainer
146
160
  */
147
161
  menuOptions?: MenuOptions;
162
+ /**
163
+ * Options for managing Notifications in AdapTable
164
+ *
165
+ * @gridInfoContainer
166
+ */
167
+ notificationsOptions?: NotificationsOptions;
148
168
  /**
149
169
  * Options for managing Search related functions in AdapTable
150
170
  *
@@ -152,11 +172,11 @@ export interface AdaptableOptions {
152
172
  */
153
173
  searchOptions?: SearchOptions;
154
174
  /**
155
- * Options for managing Filtering in AdapTable
175
+ * Setting panel options
156
176
  *
157
177
  * @gridInfoContainer
158
178
  */
159
- filterOptions?: FilterOptions;
179
+ settingsPanelOptions?: SettingsPanelOptions;
160
180
  /**
161
181
  * Options related to state hydration / dehydration - allows users to intercept state persistence and state loading and change default behavior of saving to local storage
162
182
  */
@@ -167,12 +187,6 @@ export interface AdaptableOptions {
167
187
  * @gridInfoContainer
168
188
  */
169
189
  teamSharingOptions?: TeamSharingOptions;
170
- /**
171
- * Options for managing the User Interface elements of AdapTable, i.e. Action Columns, Color Palette etc.
172
- *
173
- * @gridInfoContainer
174
- */
175
- userInterfaceOptions?: UserInterfaceOptions;
176
190
  /**
177
191
  * Options related to managing the Tool Panel elements in AdapTable
178
192
  *
@@ -180,27 +194,13 @@ export interface AdaptableOptions {
180
194
  */
181
195
  toolPanelOptions?: ToolPanelOptions;
182
196
  /**
183
- * Options for managing AdapTableQL
184
- */
185
- adaptableQLOptions?: AdaptableQLOptions;
186
- /**
187
- * Options to manage Data Change History Module which provides an overview of all data changes
197
+ * Options for managing the User Interface elements of AdapTable, i.e. Action Columns, Color Palette etc.
188
198
  *
189
199
  * @gridInfoContainer
190
200
  */
191
- dataChangeHistoryOptions?: DataChangeHistoryOptions;
201
+ userInterfaceOptions?: UserInterfaceOptions;
192
202
  /**
193
203
  * Used for managing the AdapTable Plugins
194
204
  */
195
205
  plugins?: AdaptablePlugin[];
196
- /**
197
- * Predicate definitions provided by developers at Design-Time
198
- */
199
- customPredicateDefs?: AdaptablePredicateDef[];
200
- /**
201
- * Setting panel options
202
- *
203
- * @gridInfoContainer
204
- */
205
- settingsPanelOptions?: SettingsPanelOptions;
206
206
  }
@@ -17,7 +17,7 @@ export interface ContainerOptions {
17
17
  */
18
18
  agGridContainer?: string | HTMLElement;
19
19
  /**
20
- * how long AdapTable waits for AG Grid before giving up connecting to it; useful when AG Grid is instantiated separately (eg: by AdapTable React or AdapTable Angular)
20
+ * How long AdapTable waits for AG Grid before giving up connecting to it
21
21
  *
22
22
  * @defaultValue 60s
23
23
  * @gridInfoItem
@@ -30,7 +30,7 @@ export interface DashboardOptions {
30
30
  */
31
31
  customToolbars?: CustomToolbar[];
32
32
  /**
33
- * Position in the Dashboard to show the Module and Custom Buttons
33
+ * Where in Dashboard to display Module and Custom Buttons
34
34
  * @defaultValue 'right'
35
35
  */
36
36
  buttonsLocation?: 'left' | 'right';
@@ -1,5 +1,6 @@
1
1
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
2
2
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
3
+ import { SmartEditCustomOperation } from './SmartEdit';
3
4
  /**
4
5
  * Options related to Editing in Adaptable.
5
6
  *
@@ -21,6 +22,9 @@ export interface EditOptions {
21
22
  * Function which checks if given Grid Cell is editable
22
23
  */
23
24
  isCellEditable?: (gridCell: GridCell) => boolean;
25
+ smartEdit?: {
26
+ customOperations?: SmartEditCustomOperation[];
27
+ };
24
28
  }
25
29
  /**
26
30
  * Used for Server Validation ie. after an edit has been made in Adaptable which should be checked on the Server
@@ -59,7 +59,7 @@ export interface NotificationsOptions {
59
59
  */
60
60
  transition?: 'Bounce' | 'Slide' | 'Zoom' | 'Flip';
61
61
  /**
62
- * Display an Alert when a System Status Message is set
62
+ * Display System Status Messages as Notifications
63
63
  *
64
64
  * @defaultValue false
65
65
  * @gridInfoItem
@@ -73,7 +73,7 @@ export interface NotificationsOptions {
73
73
  */
74
74
  maxSystemMessagesInStore?: number;
75
75
  /**
76
- * Displays the application icon in Notifications (if provided in `UserInterfaceOptions`)
76
+ * Displays the application icon in Notifications
77
77
  * @defaultValue false
78
78
  */
79
79
  showApplicationIcon?: boolean;
@@ -0,0 +1,34 @@
1
+ import { MathOperation } from '../PredefinedConfig/Common/Enums';
2
+ import { AdaptableApi, AdaptableColumn, GridCell } from '../types';
3
+ export declare type SmartEditCustomOperation = {
4
+ /**
5
+ * Name of the operation, appears in the UI
6
+ */
7
+ Name: string;
8
+ /**
9
+ * Custom operation function
10
+ */
11
+ Operation: (context: {
12
+ /**
13
+ * Selected Cell Value
14
+ */
15
+ value: number;
16
+ /**
17
+ * Smart edit cell value
18
+ */
19
+ smartEditValue: number;
20
+ /**
21
+ * Selected column
22
+ */
23
+ column: AdaptableColumn;
24
+ /**
25
+ * Adaptable Api
26
+ */
27
+ adaptableApi: AdaptableApi;
28
+ /**
29
+ * Selected grid cell
30
+ */
31
+ selectedCell: GridCell;
32
+ }) => number;
33
+ };
34
+ export declare type SmartEditOperation = SmartEditCustomOperation | MathOperation;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -291,7 +291,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
291
291
  const { gridCells, suppressClientSideFilter } = await this.adaptable.getDistinctFilterValuesForColumn(abColumn, false, filter);
292
292
  return {
293
293
  values: this.sortDistinctValues(gridCells, abColumn).map((cv) => {
294
- return cv.normalisedValue;
294
+ return cv.displayValue;
295
295
  }),
296
296
  suppressClientSideFilter,
297
297
  };
@@ -156,7 +156,7 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
156
156
  return columnFilters.map((cf) => this.columnFilterToString(cf)).join(', ');
157
157
  }
158
158
  evaluateColumnFilter(columnFilter, node) {
159
- var _a;
159
+ var _a, _b;
160
160
  if (!columnFilter.Predicate) {
161
161
  return true;
162
162
  }
@@ -171,8 +171,14 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
171
171
  if (!gridCell) {
172
172
  return true;
173
173
  }
174
+ let value = gridCell.normalisedValue;
175
+ if (((_b = columnFilter.Predicate) === null || _b === void 0 ? void 0 : _b.PredicateId) === 'Contains' && column.dataType === 'Date') {
176
+ // although 'Contains' Predicate is NOT relevant for Date columns, we have to handle the special case of QuickSearching
177
+ // in that case, we have to evaluate the displayedValue of the cell, not the normalisedValue (it's a textual search after all)
178
+ value = gridCell.displayValue;
179
+ }
174
180
  return this.adaptable.api.predicateApi.handlePredicate(columnFilter.Predicate, {
175
- value: gridCell.normalisedValue,
181
+ value: value,
176
182
  oldValue: null,
177
183
  displayValue: gridCell.normalisedValue,
178
184
  node,
@@ -59,9 +59,9 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
59
59
  getFirstRowNode(): RowNode;
60
60
  getFirstDisplayedRowNode(): RowNode;
61
61
  getVisibleRowNodes(): RowNode[];
62
- getGridCellFromRowNode(rowwNode: RowNode, columnId: string): GridCell | undefined;
63
- getRawValueFromRowNode(rowwNode: RowNode, columnId: string): any | undefined;
64
- getDisplayValueFromRowNode(rowwNode: RowNode, columnId: string): any | undefined;
62
+ getGridCellFromRowNode(rowNode: RowNode, columnId: string): GridCell | undefined;
63
+ getRawValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
64
+ getDisplayValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
65
65
  getFormattedValueFromRawValue(columnId: string, rawValue: any): string | undefined;
66
66
  getNormalisedValueFromRowNode(rowNode: RowNode, columnId: string): any | undefined;
67
67
  getRowNodesForPrimaryKeys(primaryKeyValues: any[]): RowNode[];
@@ -192,16 +192,14 @@ class GridApiImpl extends ApiBase_1.ApiBase {
192
192
  getVisibleRowNodes() {
193
193
  return this.adaptable.getVisibleRowNodes();
194
194
  }
195
- getGridCellFromRowNode(rowwNode, columnId) {
196
- return this.adaptable.getGridCellFromRowNode(rowwNode, columnId);
195
+ getGridCellFromRowNode(rowNode, columnId) {
196
+ return this.adaptable.getGridCellFromRowNode(rowNode, columnId);
197
197
  }
198
- getRawValueFromRowNode(rowwNode, columnId) {
199
- const gridCell = this.getGridCellFromRowNode(rowwNode, columnId);
200
- return gridCell ? gridCell.rawValue : undefined;
198
+ getRawValueFromRowNode(rowNode, columnId) {
199
+ return this.adaptable.getRawValueFromRowNode(rowNode, columnId);
201
200
  }
202
- getDisplayValueFromRowNode(rowwNode, columnId) {
203
- const gridCell = this.getGridCellFromRowNode(rowwNode, columnId);
204
- return gridCell ? gridCell.displayValue : undefined;
201
+ getDisplayValueFromRowNode(rowNode, columnId) {
202
+ return this.adaptable.getDisplayValueFromRowNode(rowNode, columnId);
205
203
  }
206
204
  getFormattedValueFromRawValue(columnId, rawValue) {
207
205
  return this.adaptable.getDisplayValueFromRawValue(columnId, rawValue);
@@ -33,6 +33,7 @@ import { AlertButtonForm, AlertDefinition } from '../../PredefinedConfig/AlertSt
33
33
  import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
34
34
  import { AdaptableFrameworkComponent } from '../../AdaptableOptions/AdaptableFrameworkComponent';
35
35
  import { IMetamodelService } from '../../Utilities/Services/Interface/IMetamodelService';
36
+ import { IModuleCollection } from '../../Strategy/Interface/IModule';
36
37
  export declare class InternalApiImpl extends ApiBase implements InternalApi {
37
38
  getSystemState(): SystemState;
38
39
  getAdaptableFormFromAlertForm(alertForm: string | AlertButtonForm, context: any, defaultMessageType?: AdaptableMessageType): (Omit<AdaptableForm<AlertButtonContext>, 'buttons'> & {
@@ -95,8 +96,11 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
95
96
  getAlertService(): IAlertService;
96
97
  getTeamSharingService(): ITeamSharingService;
97
98
  getMetamodelService(): IMetamodelService;
99
+ getModules(): IModuleCollection;
98
100
  getModuleFriendlyName(adaptableModule: AdaptableModule): string;
99
101
  runModuleInAdaptableQL(adaptableQLModule: AdaptableQLModule): boolean;
102
+ forAllRowNodesDo(func: (rowNode: RowNode) => void): void;
103
+ forAllVisibleRowNodesDo(func: (rowNode: RowNode) => void): void;
100
104
  buildStandaloneColumnHeader(column: AdaptableColumn): AdaptableMenuItem[];
101
105
  clearFlashingCellState(): void;
102
106
  clearUpdatedRowState(): void;
@@ -270,6 +270,9 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
270
270
  getMetamodelService() {
271
271
  return this.adaptable.MetamodelService;
272
272
  }
273
+ getModules() {
274
+ return this.adaptable.adaptableModules;
275
+ }
273
276
  getModuleFriendlyName(adaptableModule) {
274
277
  var _a, _b;
275
278
  return ((_b = (_a = this.adaptable.ModuleService.getModuleInfoByModule(adaptableModule)) === null || _a === void 0 ? void 0 : _a.FriendlyName) !== null && _b !== void 0 ? _b : adaptableModule);
@@ -278,6 +281,12 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
278
281
  const adaptableQLModules = this.getAdaptableQLOptions().externallyEvaluatedModules;
279
282
  return !adaptableQLModules.includes(adaptableQLModule);
280
283
  }
284
+ forAllRowNodesDo(func) {
285
+ this.adaptable.forAllRowNodesDo(func);
286
+ }
287
+ forAllVisibleRowNodesDo(func) {
288
+ this.adaptable.forAllVisibleRowNodesDo(func);
289
+ }
281
290
  buildStandaloneColumnHeader(column) {
282
291
  return this.adaptable.buildStandaloneColumnHeader(column);
283
292
  }
@@ -1,9 +1,10 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { SmartEditApi } from '../SmartEditApi';
3
3
  import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
4
+ import { SmartEditOperation } from '../../AdaptableOptions/SmartEdit';
4
5
  export declare class SmartEditApiImpl extends ApiBase implements SmartEditApi {
5
- setSmartEditOperation(mathOperation: 'Add' | 'Subtract' | 'Multiply' | 'Divide'): void;
6
- getSmartEditOperation(): string;
6
+ setSmartEditOperation(mathOperation: SmartEditOperation): void;
7
+ getSmartEditOperation(): SmartEditOperation;
7
8
  setSmartEditValue(smartEditValue: number): void;
8
9
  getSmartEditValue(): number;
9
10
  showSmartEditPopup(): void;
@@ -14,4 +14,5 @@ export declare class ThemeApiImpl extends ApiBase implements ThemeApi {
14
14
  getAllUserTheme(): AdaptableTheme[];
15
15
  getAllTheme(): AdaptableTheme[];
16
16
  showThemePopup(): void;
17
+ getAgGridCurrentThemeName(): string;
17
18
  }
@@ -62,5 +62,8 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
62
62
  showThemePopup() {
63
63
  this.showModulePopup(ModuleConstants.ThemeModuleId);
64
64
  }
65
+ getAgGridCurrentThemeName() {
66
+ return this.adaptable.getAgGridCurrentThemeName();
67
+ }
65
68
  }
66
69
  exports.ThemeApiImpl = ThemeApiImpl;
@@ -32,6 +32,7 @@ import { AlertButtonForm } from '../PredefinedConfig/AlertState';
32
32
  import { AdaptableFrameworkComponent } from '../AdaptableOptions/AdaptableFrameworkComponent';
33
33
  import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
34
34
  import { RowNode } from '@ag-grid-community/all-modules';
35
+ import { IModuleCollection } from '../Strategy/Interface/IModule';
35
36
  /**
36
37
  * This set of api methods is designed for **internal use of Adaptable** only.
37
38
  *
@@ -99,8 +100,11 @@ export interface InternalApi {
99
100
  getAlertService(): IAlertService;
100
101
  getTeamSharingService(): ITeamSharingService;
101
102
  getMetamodelService(): IMetamodelService;
103
+ getModules(): IModuleCollection;
102
104
  getModuleFriendlyName(adaptableModule: AdaptableModule): string;
103
105
  runModuleInAdaptableQL(adaptableQLModule: AdaptableQLModule): boolean;
106
+ forAllRowNodesDo(func: (rowNode: RowNode) => void): void;
107
+ forAllVisibleRowNodesDo(func: (rowNode: RowNode) => void): void;
104
108
  buildStandaloneColumnHeader(column: AdaptableColumn): AdaptableMenuItem[];
105
109
  getCustomSortComparer(column: AdaptableColumn): ColumnValuesComparer | undefined;
106
110
  clearFlashingCellState(): void;
@@ -1,3 +1,4 @@
1
+ import { SmartEditOperation } from '../AdaptableOptions/SmartEdit';
1
2
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
2
3
  /**
3
4
  * Provides run-time access to the Smart Edit Module
@@ -7,11 +8,11 @@ export interface SmartEditApi {
7
8
  * Sets Smart Edit operation: ('Add','Subtract','Multiply','Divide'
8
9
  * @param operation operation to run
9
10
  */
10
- setSmartEditOperation(operation: 'Add' | 'Subtract' | 'Multiply' | 'Divide'): void;
11
+ setSmartEditOperation(operation: SmartEditOperation): void;
11
12
  /**
12
13
  * Gets current Smart Edit Operation
13
14
  */
14
- getSmartEditOperation(): string;
15
+ getSmartEditOperation(): SmartEditOperation;
15
16
  /**
16
17
  * Sets Smart Edit Value
17
18
  * @param smartEditValue the value to use in Smart Edit Operation
@@ -56,4 +56,8 @@ export interface ThemeApi {
56
56
  * Opens Settings Panel with Theme section selected and visible
57
57
  */
58
58
  showThemePopup(): void;
59
+ /**
60
+ * Get the name of the current AG Grid theme
61
+ */
62
+ getAgGridCurrentThemeName(): string;
59
63
  }
@@ -6,11 +6,6 @@ import { AdaptableObject } from './Common/AdaptableObject';
6
6
  import { AdaptableFormData } from './Common/AdaptableForm';
7
7
  import { AdaptableBooleanQuery } from './Common/AdaptableQuery';
8
8
  import { ExportDestination } from './Common/Enums';
9
- import { CustomDestination } from '../types';
10
- export interface ExportCustomDestinationPopup {
11
- ExportDestination: CustomDestination;
12
- ReportName: Report['Name'];
13
- }
14
9
  /**
15
10
  * Predefined Configuration for Export Module
16
11
  */
@@ -1,4 +1,4 @@
1
- import { ScreenPopup, AlertPopup, ConfirmationPopup, PromptPopup, LoadingPopup, WindowPopup } from '../Utilities/Interface/MessagePopups';
1
+ import { ScreenPopup, AlertPopup, ConfirmationPopup, PromptPopup, LoadingPopup, WindowPopup, FormPopup } from '../Utilities/Interface/MessagePopups';
2
2
  import { InternalState } from './InternalState';
3
3
  /**
4
4
  * Internal state to manage open popups - NOT persisted by Redux
@@ -6,6 +6,7 @@ import { InternalState } from './InternalState';
6
6
  export interface PopupState extends InternalState {
7
7
  ScreenPopup: ScreenPopup;
8
8
  WindowPopup: WindowPopup;
9
+ FormPopup: FormPopup;
9
10
  AlertPopup: AlertPopup;
10
11
  ConfirmationPopup: ConfirmationPopup;
11
12
  PromptPopup: PromptPopup;
@@ -13,7 +13,7 @@ import { CachedQuery } from './QueryState';
13
13
  import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
14
14
  import { TypeUuid } from './Uuid';
15
15
  import { SummaryOperation } from './Common/Enums';
16
- import { ExportCustomDestinationPopup } from './ExportState';
16
+ import { SmartEditOperation } from '../AdaptableOptions/SmartEdit';
17
17
  export type { IPushPullReport, IPushPullDomain };
18
18
  export type { Glue42Report };
19
19
  export type { OpenFinReport };
@@ -25,9 +25,6 @@ export declare type DataChangeHistoryMode = 'ACTIVE' | 'INACTIVE' | 'SUSPENDED';
25
25
  */
26
26
  export interface SystemState extends InternalState, IPushPullState, Glue42State, OpenFinState {
27
27
  AdaptableAlerts: AdaptableAlert[];
28
- Export: {
29
- CustomDestinationPopups: ExportCustomDestinationPopup[];
30
- };
31
28
  AdaptableFlashingCells: Record<ROW_PRIMARY_KEY, Record<COLUMN_ID_OR_WHOLE_ROW_LABEL, TypeUuid>>;
32
29
  AdaptableFlashingCellsMap: Record<TypeUuid, AdaptableFlashingCell>;
33
30
  SystemStatusMessages: SystemStatusMessageInfo[];
@@ -43,7 +40,7 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
43
40
  CachedQueries: CachedQuery[];
44
41
  BulkUpdateValue?: string;
45
42
  SmartEditValue?: number;
46
- SmartEditOperation?: 'Add' | 'Subtract' | 'Multiply' | 'Divide';
43
+ SmartEditOperation?: SmartEditOperation;
47
44
  CellSummaryOperation?: SummaryOperation | string;
48
45
  ProgressIndicator: ProgressIndicator;
49
46
  License: {
@@ -4,6 +4,7 @@ import { InputAction, UIPrompt, UIConfirmation } from '../../Utilities/Interface
4
4
  import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
5
5
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
6
6
  import { AdaptableAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
7
+ import { AdaptableForm, ButtonContext } from '../../types';
7
8
  export declare const POPUP_SHOW_SCREEN = "POPUP_SHOW_SCREEN";
8
9
  export declare const POPUP_HIDE_SCREEN = "POPUP_HIDE_SCREEN";
9
10
  export declare const POPUP_SHOW_LOADING = "POPUP_SHOW_LOADING";
@@ -17,8 +18,10 @@ export declare const POPUP_SHOW_CONFIRMATION = "POPUP_SHOW_CONFIRMATION";
17
18
  export declare const POPUP_CONFIRM_CONFIRMATION = "POPUP_CONFIRM_CONFIRMATION";
18
19
  export declare const POPUP_CANCEL_CONFIRMATION = "POPUP_CANCEL_CONFIRMATION";
19
20
  export declare const POPUP_CLEAR_PARAM = "POPUP_CLEAR_PARAM";
20
- export declare const POPUP_WINDOW_SHOW_SCREEN = "POPUP_WINDOW_SHOW_SCREEN";
21
- export declare const POPUP_WINDOW_HIDE_SCREEN = "POPUP_WINDOW_HIDE_SCREEN";
21
+ export declare const POPUP_SHOW_WINDOW = "POPUP_SHOW_WINDOW";
22
+ export declare const POPUP_HIDE_WINDOW = "POPUP_HIDE_WINDOW";
23
+ export declare const POPUP_SHOW_FORM = "POPUP_SHOW_FORM";
24
+ export declare const POPUP_HIDE_FORM = "POPUP_FORM_HIDE";
22
25
  export interface PopupShowScreenAction extends Redux.Action {
23
26
  ComponentModule: AdaptableModule;
24
27
  ComponentName: string;
@@ -38,6 +41,15 @@ export interface PopupShowWindowAction extends Redux.Action {
38
41
  export interface PopupHideWindowAction extends Redux.Action {
39
42
  Id: string;
40
43
  }
44
+ export interface PopupShowFormAction extends Redux.Action {
45
+ Id: string;
46
+ Form: AdaptableForm<ButtonContext>;
47
+ FormProps: any;
48
+ prepareContext?: (context: ButtonContext) => Promise<ButtonContext> | ButtonContext;
49
+ }
50
+ export interface PopupHideFormAction extends Redux.Action {
51
+ Id: string;
52
+ }
41
53
  export interface PopupShowLoadingAction extends Redux.Action {
42
54
  }
43
55
  export interface PopupHideLoadingAction extends Redux.Action {
@@ -74,7 +86,14 @@ export declare const PopupShowWindow: (config: {
74
86
  PopupProps?: any;
75
87
  Icon?: string;
76
88
  }) => PopupShowWindowAction;
77
- export declare const PopupWindowHide: (id: string) => PopupHideWindowAction;
89
+ export declare const PopupHideWindow: (id: string) => PopupHideWindowAction;
90
+ export declare const PopupShowForm: (config: {
91
+ Id: string;
92
+ Form: AdaptableForm<ButtonContext>;
93
+ FormProps?: any;
94
+ prepareContext?: (context: ButtonContext) => Promise<ButtonContext> | ButtonContext;
95
+ }) => PopupShowFormAction;
96
+ export declare const PopupHideForm: (id: string) => PopupHideFormAction;
78
97
  export declare const PopupShowAlert: (alert: AdaptableAlert) => PopupShowAlertAction;
79
98
  export declare const PopupHideAlert: () => PopupHideAlertAction;
80
99
  export declare const PopupShowLoading: () => PopupShowLoadingAction;