@adaptabletools/adaptable-cjs 22.0.0-canary.1 → 22.0.0-canary.3

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 (177) hide show
  1. package/index.css +55 -37
  2. package/index.css.map +1 -1
  3. package/package.json +1 -1
  4. package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -2
  5. package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
  6. package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
  7. package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
  8. package/src/AdaptableState/Common/AdaptableColumn.d.ts +6 -0
  9. package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
  10. package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
  11. package/src/AdaptableState/FormatColumnState.d.ts +0 -8
  12. package/src/AdaptableState/InitialState.d.ts +1 -1
  13. package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
  14. package/src/Api/DataSetApi.d.ts +1 -1
  15. package/src/Api/GridApi.d.ts +3 -3
  16. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
  17. package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
  18. package/src/Api/Implementation/AlertApiImpl.js +1 -0
  19. package/src/Api/Implementation/ApiBase.js +1 -0
  20. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
  21. package/src/Api/Implementation/ChartingApiImpl.js +4 -0
  22. package/src/Api/Implementation/ColumnApiImpl.js +1 -0
  23. package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
  24. package/src/Api/Implementation/CommentsApiImpl.js +1 -0
  25. package/src/Api/Implementation/CustomSortApiImpl.js +1 -0
  26. package/src/Api/Implementation/DashboardApiImpl.js +1 -0
  27. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
  28. package/src/Api/Implementation/DataImportApiImpl.js +1 -0
  29. package/src/Api/Implementation/DataSetApiImpl.js +1 -0
  30. package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
  31. package/src/Api/Implementation/EventApiImpl.js +16 -14
  32. package/src/Api/Implementation/ExportApiImpl.js +1 -0
  33. package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
  34. package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
  35. package/src/Api/Implementation/FilterApiImpl.js +3 -0
  36. package/src/Api/Implementation/FlashingCellApiImpl.js +1 -0
  37. package/src/Api/Implementation/FormatColumnApiImpl.js +1 -0
  38. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
  39. package/src/Api/Implementation/GridApiImpl.d.ts +9 -9
  40. package/src/Api/Implementation/GridApiImpl.js +17 -16
  41. package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
  42. package/src/Api/Implementation/LayoutApiImpl.js +1 -0
  43. package/src/Api/Implementation/NamedQueryApiImpl.js +1 -0
  44. package/src/Api/Implementation/NoteApiImpl.js +1 -0
  45. package/src/Api/Implementation/PredicateApiImpl.js +1 -0
  46. package/src/Api/Implementation/RowFormApiImpl.js +1 -0
  47. package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
  48. package/src/Api/Implementation/SystemStatusApiImpl.js +2 -0
  49. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  50. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  51. package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -1
  52. package/src/Api/Internal/ColumnInternalApi.js +1 -1
  53. package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
  54. package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
  55. package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
  56. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
  57. package/src/Redux/Store/AdaptableStore.js +49 -43
  58. package/src/Strategy/AdaptableModuleBase.js +4 -0
  59. package/src/Strategy/AlertModule.js +1 -0
  60. package/src/Strategy/CalculatedColumnModule.js +1 -0
  61. package/src/Strategy/CellSummaryModule.js +1 -1
  62. package/src/Strategy/DataChangeHistoryModule.js +1 -0
  63. package/src/Strategy/FlashingCellModule.js +1 -0
  64. package/src/Strategy/FreeTextColumnModule.js +1 -0
  65. package/src/Strategy/LayoutModule.js +2 -1
  66. package/src/Strategy/PlusMinusModule.js +2 -0
  67. package/src/Strategy/ScheduleModule.js +1 -0
  68. package/src/Strategy/ShortcutModule.js +2 -0
  69. package/src/Strategy/TeamSharingModule.js +10 -10
  70. package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
  71. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
  72. package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
  73. package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
  74. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
  75. package/src/Utilities/Helpers/StyleHelper.js +14 -0
  76. package/src/Utilities/MenuItem.js +18 -0
  77. package/src/Utilities/ObjectFactory.js +1 -1
  78. package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
  79. package/src/Utilities/Services/AlertService.js +6 -4
  80. package/src/Utilities/Services/AnnotationsService.js +4 -1
  81. package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
  82. package/src/Utilities/Services/ChartingService.js +1 -0
  83. package/src/Utilities/Services/DataService.js +10 -2
  84. package/src/Utilities/Services/Fdc3Service.js +5 -3
  85. package/src/Utilities/Services/FlashingCellService.js +5 -0
  86. package/src/Utilities/Services/LicenseService/index.js +1 -1
  87. package/src/Utilities/Services/MetamodelService.js +2 -2
  88. package/src/Utilities/Services/ModuleService.js +4 -3
  89. package/src/Utilities/Services/QueryLanguageService.js +6 -5
  90. package/src/Utilities/Services/RowFormService.js +1 -0
  91. package/src/Utilities/Services/RowSummaryService.js +10 -7
  92. package/src/Utilities/Services/TeamSharingService.js +3 -1
  93. package/src/Utilities/Services/ThemeService.js +11 -9
  94. package/src/Utilities/Services/ValidationService.js +1 -0
  95. package/src/Utilities/createAgStatusPanelComponent.js +3 -0
  96. package/src/View/AdaptablePopover/index.d.ts +1 -0
  97. package/src/View/AdaptablePopover/index.js +1 -1
  98. package/src/View/Alert/ActiveAlertsPanel.js +8 -0
  99. package/src/View/Alert/AlertViewPanel.js +13 -9
  100. package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
  101. package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
  102. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
  103. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +8 -8
  104. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
  105. package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
  106. package/src/View/Components/AdaptableDateInput/index.js +1 -1
  107. package/src/View/Components/Buttons/ButtonApply.js +1 -1
  108. package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
  109. package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
  110. package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
  111. package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
  112. package/src/View/Components/ExpressionWizard.js +5 -5
  113. package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
  114. package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
  115. package/src/View/Components/Selectors/BulkUpdateValueSelector.js +18 -17
  116. package/src/View/Components/StyleComponent.js +20 -1
  117. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
  118. package/src/View/CustomSort/CustomSortSummary.js +13 -13
  119. package/src/View/Dashboard/DashboardPopup.js +4 -5
  120. package/src/View/Export/ExportDestinationPicker.js +1 -1
  121. package/src/View/Export/ExportStatusBar.js +4 -2
  122. package/src/View/Export/ExportViewPanel.js +25 -18
  123. package/src/View/FormatColumn/FormatColumnSummary.js +13 -13
  124. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +0 -23
  125. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
  126. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +13 -13
  127. package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
  128. package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
  129. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
  130. package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
  131. package/src/View/Theme/ThemePopup.js +13 -16
  132. package/src/View/UIHelper.d.ts +2 -0
  133. package/src/View/UIHelper.js +16 -0
  134. package/src/agGrid/Adaptable.js +4 -0
  135. package/src/agGrid/AdaptableAgGrid.d.ts +2 -2
  136. package/src/agGrid/AdaptableAgGrid.js +104 -38
  137. package/src/agGrid/AdaptableFilterHandler.js +4 -0
  138. package/src/agGrid/AdaptableLogger.d.ts +3 -0
  139. package/src/agGrid/AdaptableLogger.js +10 -0
  140. package/src/agGrid/AgGridAdapter.js +11 -1
  141. package/src/agGrid/AgGridColumnAdapter.js +5 -18
  142. package/src/agGrid/AgGridExportAdapter.js +10 -9
  143. package/src/agGrid/AgGridFilterAdapter.js +4 -0
  144. package/src/agGrid/AgGridFloatingFilterAdapter.js +3 -0
  145. package/src/agGrid/AgGridMenuAdapter.js +1 -0
  146. package/src/agGrid/AgGridModulesAdapter.js +2 -1
  147. package/src/agGrid/AgGridOptionsService.js +3 -0
  148. package/src/agGrid/AgGridThemeAdapter.js +2 -0
  149. package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
  150. package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
  151. package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
  152. package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
  153. package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
  154. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
  155. package/src/agGrid/index.d.ts +6 -0
  156. package/src/agGrid/index.js +6 -0
  157. package/src/components/Dashboard/DashboardToolbar.js +1 -1
  158. package/src/components/Datepicker/index.js +1 -1
  159. package/src/components/ExpressionEditor/EditorInput.js +19 -3
  160. package/src/components/Tree/TreeDropdown/index.js +1 -1
  161. package/src/components/overlayBaseZIndex.js +1 -1
  162. package/src/components/utils/useContainerScrollObserver/index.js +17 -14
  163. package/src/devTools/index.js +54 -53
  164. package/src/env.js +2 -2
  165. package/src/layout-manager/src/LMEmitter.js +11 -11
  166. package/src/layout-manager/src/LMLogger.js +7 -0
  167. package/src/layout-manager/src/index.js +56 -51
  168. package/src/metamodel/adaptable.metamodel.d.ts +66 -7
  169. package/src/metamodel/adaptable.metamodel.js +1 -1
  170. package/src/migration/AdaptableUpgradeHelper.js +5 -0
  171. package/src/migration/VersionUpgrade.js +1 -0
  172. package/src/migration/VersionUpgrade17.js +1 -2
  173. package/src/migration/VersionUpgrade22.d.ts +6 -0
  174. package/src/migration/VersionUpgrade22.js +31 -0
  175. package/src/parser/src/ExpressionEvaluationError.js +1 -0
  176. package/src/types.d.ts +1 -1
  177. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -38,4 +38,12 @@ export interface AdaptableStyle {
38
38
  * Existing CSS Class; use instead of setting other object properties
39
39
  */
40
40
  ClassName?: string;
41
+ /**
42
+ * Align to 'Left' or 'Right' or 'Center'
43
+ */
44
+ Alignment?: Alignment;
41
45
  }
46
+ /**
47
+ * Behaviour for aligning Cell contents
48
+ */
49
+ export type Alignment = 'Left' | 'Right' | 'Center' | 'Default';
@@ -3,6 +3,9 @@ import { IRowNode } from 'ag-grid-enterprise';
3
3
  * What row action triggered the Row Change: 'Add', 'Update', 'Delete' or 'Load'
4
4
  */
5
5
  export type RowDataChangeTrigger = 'Add' | 'Update' | 'Delete' | 'Load';
6
+ /**
7
+ * Info for RowDataChangedEvent, which rows changed and why
8
+ */
6
9
  export interface RowDataChangedInfo<TData = any> {
7
10
  /**
8
11
  * Timestamp of change occurrence (in milliseconds)
@@ -43,10 +43,6 @@ export interface FormatColumn extends SuspendableObject {
43
43
  * Display Format to apply to Column can be Numeric, String or Date
44
44
  */
45
45
  DisplayFormat?: AdaptableFormat;
46
- /**
47
- * Align cells 'Left' or 'Right' or 'Center'
48
- */
49
- CellAlignment?: CellAlignment;
50
46
  /**
51
47
  * Which types of Rows to apply format (data, grouped, summary, total)
52
48
  */
@@ -65,10 +61,6 @@ export type FormatColumnTarget = 'cell' | 'columnHeader';
65
61
  * Defines Column Group Scope
66
62
  */
67
63
  export type ColumnGroupScope = 'Expanded' | 'Collapsed' | 'Both';
68
- /**
69
- * Behaviour for aligning Cell contents
70
- */
71
- export type CellAlignment = 'Left' | 'Right' | 'Center';
72
64
  /**
73
65
  * The Format Column Rule - can be either a Predicate or a BooleanExpression
74
66
  */
@@ -134,7 +134,7 @@ export interface PredefinedConfig {
134
134
  */
135
135
  CustomSort?: CustomSortState;
136
136
  /**
137
- * Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons
137
+ * Large series of properties to give users full control over the look and feel of the *Dashboard* - the section (typically above the grid) with toolbars and buttons
138
138
  */
139
139
  Dashboard?: DashboardState;
140
140
  /**
@@ -54,6 +54,9 @@ export interface GridCell<TData = any> {
54
54
  */
55
55
  isRowGroupCell: boolean;
56
56
  }
57
+ /**
58
+ * Extended GridCell, props to show how often appears in data source and how often visible
59
+ */
57
60
  export interface GridCellWithCount extends GridCell {
58
61
  /**
59
62
  * How many times Cell appears in Data Source
@@ -64,6 +67,9 @@ export interface GridCellWithCount extends GridCell {
64
67
  */
65
68
  visibleCount?: number;
66
69
  }
70
+ /**
71
+ * Grid Cell used in Grouped Rows
72
+ */
67
73
  export interface GridCellWithChildren extends GridCell {
68
74
  /**
69
75
  * Children of Cell
@@ -74,6 +80,9 @@ export interface GridCellWithChildren extends GridCell {
74
80
  */
75
81
  leafChildrenCount?: number;
76
82
  }
83
+ /**
84
+ * Defines a Unique Cell Value (incl. how many times it appears in Grid)
85
+ */
77
86
  export interface UniqueGridCell<TData = any> {
78
87
  /**
79
88
  * Raw value of Cell
@@ -14,7 +14,7 @@ export interface DataSetApi {
14
14
  */
15
15
  getCurrentDataSet(): DataSet | undefined;
16
16
  /**
17
- * Retreives Data Set from State with given name
17
+ * Retrieves Data Set from State with given name
18
18
  * @param dataSetName name of Data Set to retrieve
19
19
  * @returns data Set
20
20
  */
@@ -71,13 +71,13 @@ export interface GridApi {
71
71
  deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
72
72
  /**
73
73
  * Applies a data transaction (add, update, remove) to AdapTable (and AG Grid)
74
- * @param dataTransaction - data transaction containing rows to add, update or remove
74
+ * @param dataRows - Rows to add, update or remove (via transaction)
75
75
  * @param config - batch option and callback function to run post transaction
76
76
  */
77
- applyGridDataTransaction(dataTransaction: {
77
+ manageGridData(dataRows: {
78
78
  add?: any[];
79
79
  update?: any[];
80
- remove?: any[];
80
+ delete?: any[];
81
81
  }, config?: DataUpdateConfig): Promise<{
82
82
  addedRows: IRowNode[];
83
83
  updatedRows: IRowNode[];
@@ -4,6 +4,7 @@ exports.ActionColumnApiImpl = void 0;
4
4
  const ApiBase_1 = require("./ApiBase");
5
5
  const ActionColumnInternalApi_1 = require("../Internal/ActionColumnInternalApi");
6
6
  class ActionColumnApiImpl extends ApiBase_1.ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new ActionColumnInternalApi_1.ActionColumnInternalApi(_adaptable);
@@ -52,6 +52,58 @@ const ContextMenuApiImpl_1 = require("./ContextMenuApiImpl");
52
52
  const FilterApiImpl_1 = require("./FilterApiImpl");
53
53
  const RowFormApiImpl_1 = require("./RowFormApiImpl");
54
54
  class AdaptableApiImpl {
55
+ adaptable;
56
+ internalApi;
57
+ optionsApi;
58
+ actionColumnApi;
59
+ applicationApi;
60
+ alertApi;
61
+ flashingCellApi;
62
+ predicateApi;
63
+ bulkUpdateApi;
64
+ calendarApi;
65
+ calculatedColumnApi;
66
+ cellSummaryApi;
67
+ columnApi;
68
+ stateApi;
69
+ customSortApi;
70
+ dashboardApi;
71
+ dataSetApi;
72
+ entitlementApi;
73
+ eventApi;
74
+ exportApi;
75
+ formatColumnApi;
76
+ freeTextColumnApi;
77
+ gridApi;
78
+ layoutApi;
79
+ plusMinusApi;
80
+ quickSearchApi;
81
+ rowFormApi;
82
+ scheduleApi;
83
+ shortcutApi;
84
+ smartEditApi;
85
+ filterApi;
86
+ systemStatusApi;
87
+ pluginsApi;
88
+ themeApi;
89
+ userInterfaceApi;
90
+ expressionApi;
91
+ settingsPanelApi;
92
+ styledColumnApi;
93
+ toolPanelApi;
94
+ teamSharingApi;
95
+ columnScopeApi;
96
+ dataChangeHistoryApi;
97
+ chartingApi;
98
+ statusBarApi;
99
+ noteApi;
100
+ columnMenuApi;
101
+ contextMenuApi;
102
+ fdc3Api;
103
+ dataImportApi;
104
+ namedQueryApi;
105
+ commentApi;
106
+ destroyed;
55
107
  constructor(adaptable) {
56
108
  this.adaptable = adaptable;
57
109
  this.destroyed = false;
@@ -12,6 +12,7 @@ const AdaptableAlert_1 = require("../../AdaptableState/Common/AdaptableAlert");
12
12
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
13
13
  const AlertInternalApi_1 = require("../Internal/AlertInternalApi");
14
14
  class AlertApiImpl extends ApiBase_1.ApiBase {
15
+ internalApi;
15
16
  constructor(_adaptable) {
16
17
  super(_adaptable);
17
18
  this.internalApi = new AlertInternalApi_1.AlertInternalApi(_adaptable);
@@ -6,6 +6,7 @@ const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper
6
6
  const Uuid_1 = require("../../AdaptableState/Uuid");
7
7
  // Base class for the Api - provides checking dispatching methods
8
8
  class ApiBase {
9
+ _adaptable;
9
10
  /**
10
11
  * Constructor for all the api classes which simply takes and assigns an instance of Adaptable
11
12
  * @param _adaptable the core IAdaptable object
@@ -8,6 +8,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
8
8
  const CalculatedColumnInternalApi_1 = require("../Internal/CalculatedColumnInternalApi");
9
9
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
10
10
  class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new CalculatedColumnInternalApi_1.CalculatedColumnInternalApi(_adaptable);
@@ -9,6 +9,10 @@ const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exte
9
9
  const ChartingInternalApi_1 = require("../Internal/ChartingInternalApi");
10
10
  const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
11
11
  class ChartingApiImpl extends ApiBase_1.ApiBase {
12
+ /**
13
+ * @internal
14
+ */
15
+ internalApi;
12
16
  constructor(_adaptable) {
13
17
  super(_adaptable);
14
18
  this.internalApi = new ChartingInternalApi_1.ChartingInternalApi(_adaptable);
@@ -122,6 +122,7 @@ function isPivotGrandTotal(columnId) {
122
122
  return columnId?.startsWith(GeneralConstants.AG_GRID_PIVOT_GRAND_TOTAL_COLUMN);
123
123
  }
124
124
  class ColumnApiImpl extends ApiBase_1.ApiBase {
125
+ internalApi;
125
126
  constructor(_adaptable) {
126
127
  super(_adaptable);
127
128
  this.internalApi = new ColumnInternalApi_1.ColumnInternalApi(_adaptable);
@@ -9,6 +9,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exten
9
9
  const ColumnFilterInternalApi_1 = require("../Internal/ColumnFilterInternalApi");
10
10
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
11
11
  class ColumnFilterApiImpl extends ApiBase_1.ApiBase {
12
+ internalApi;
12
13
  constructor(_adaptable) {
13
14
  super(_adaptable);
14
15
  this.internalApi = new ColumnFilterInternalApi_1.ColumnFilterInternalApi(_adaptable);
@@ -8,6 +8,7 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
8
8
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
9
9
  const CommentsInternalApi_1 = require("../Internal/CommentsInternalApi");
10
10
  class CommentsApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new CommentsInternalApi_1.CommentsInternalApi(_adaptable);
@@ -7,6 +7,7 @@ const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducer
7
7
  const ApiBase_1 = require("./ApiBase");
8
8
  const CustomSortInternalApi_1 = require("../Internal/CustomSortInternalApi");
9
9
  class CustomSortApiImpl extends ApiBase_1.ApiBase {
10
+ internalApi;
10
11
  constructor(_adaptable) {
11
12
  super(_adaptable);
12
13
  this.internalApi = new CustomSortInternalApi_1.CustomSortInternalApi(_adaptable);
@@ -9,6 +9,7 @@ const React = tslib_1.__importStar(require("react"));
9
9
  const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
10
10
  const DashboardInternalApi_1 = require("../Internal/DashboardInternalApi");
11
11
  class DashboardApiImpl extends ApiBase_1.ApiBase {
12
+ internalApi;
12
13
  constructor(_adaptable) {
13
14
  super(_adaptable);
14
15
  this.internalApi = new DashboardInternalApi_1.DashboardInternalApi(_adaptable);
@@ -6,21 +6,6 @@ const ApiBase_1 = require("./ApiBase");
6
6
  const InternalRedux_1 = require("../../Redux/ActionsReducers/InternalRedux");
7
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
8
8
  class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
9
- constructor() {
10
- super(...arguments);
11
- this.getDataChangeHistoryKey = (dataChangeInfo) => {
12
- const columnId = dataChangeInfo.column.columnId;
13
- const primaryKeyValue = dataChangeInfo.primaryKeyValue;
14
- const changedAt = dataChangeInfo.changedAt;
15
- const showLastDataChangeOnly = this.getDataChangeHistoryOptions().showLastDataChangeOnly;
16
- if (showLastDataChangeOnly) {
17
- return JSON.stringify({ columnId, primaryKeyValue });
18
- }
19
- else {
20
- return JSON.stringify({ columnId, primaryKeyValue, changedAt });
21
- }
22
- };
23
- }
24
9
  getDataChangeHistoryMode() {
25
10
  return this.getAdaptableState().Internal.DataChangeHistory.currentMode;
26
11
  }
@@ -71,5 +56,17 @@ class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
71
56
  openDataChangeHistorySettingsPanel() {
72
57
  this.showModulePopup(ModuleConstants.DataChangeHistoryModuleId);
73
58
  }
59
+ getDataChangeHistoryKey = (dataChangeInfo) => {
60
+ const columnId = dataChangeInfo.column.columnId;
61
+ const primaryKeyValue = dataChangeInfo.primaryKeyValue;
62
+ const changedAt = dataChangeInfo.changedAt;
63
+ const showLastDataChangeOnly = this.getDataChangeHistoryOptions().showLastDataChangeOnly;
64
+ if (showLastDataChangeOnly) {
65
+ return JSON.stringify({ columnId, primaryKeyValue });
66
+ }
67
+ else {
68
+ return JSON.stringify({ columnId, primaryKeyValue, changedAt });
69
+ }
70
+ };
74
71
  }
75
72
  exports.DataChangeHistoryApiImpl = DataChangeHistoryApiImpl;
@@ -4,6 +4,7 @@ exports.DataImportApiImpl = void 0;
4
4
  const DataImportInternalApi_1 = require("../Internal/DataImportInternalApi");
5
5
  const ApiBase_1 = require("./ApiBase");
6
6
  class DataImportApiImpl extends ApiBase_1.ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new DataImportInternalApi_1.DataImportInternalApi(_adaptable);
@@ -7,6 +7,7 @@ const InternalRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/
7
7
  const ApiBase_1 = require("./ApiBase");
8
8
  const DataSetInternalApi_1 = require("../Internal/DataSetInternalApi");
9
9
  class DataSetApiImpl extends ApiBase_1.ApiBase {
10
+ internalApi;
10
11
  constructor(_adaptable) {
11
12
  super(_adaptable);
12
13
  this.internalApi = new DataSetInternalApi_1.DataSetInternalApi(_adaptable);
@@ -4,6 +4,7 @@ exports.EntitlementApiImpl = void 0;
4
4
  const ApiBase_1 = require("./ApiBase");
5
5
  const EntitlementInternalApi_1 = require("../Internal/EntitlementInternalApi");
6
6
  class EntitlementApiImpl extends ApiBase_1.ApiBase {
7
+ internalApi;
7
8
  constructor(_adaptable) {
8
9
  super(_adaptable);
9
10
  this.internalApi = new EntitlementInternalApi_1.EntitlementInternalApi(_adaptable);
@@ -6,22 +6,10 @@ const ApiBase_1 = require("./ApiBase");
6
6
  const Emitter_1 = tslib_1.__importDefault(require("../../Utilities/Emitter"));
7
7
  const EventInternalApi_1 = require("../Internal/EventInternalApi");
8
8
  class EventApiImpl extends ApiBase_1.ApiBase {
9
+ emitter;
10
+ internalApi;
9
11
  constructor(_adaptable) {
10
12
  super(_adaptable);
11
- this.on = (eventName, callback) => {
12
- let result;
13
- if (eventName === 'AdaptableReady') {
14
- this.emitter.onIncludeFiredOnce(eventName).then(callback);
15
- return () => { };
16
- }
17
- else {
18
- result = this.emitter.on(eventName, callback);
19
- }
20
- return result;
21
- };
22
- this.off = (eventName, callback) => this.emitter.off(eventName, callback);
23
- this.emit = (eventName, data) => this.emitter.emit(eventName, data);
24
- this.emitSync = (eventName, data) => this.emitter.emitSync(eventName, data);
25
13
  this.emitter = new Emitter_1.default();
26
14
  this.internalApi = new EventInternalApi_1.EventInternalApi(_adaptable);
27
15
  }
@@ -30,5 +18,19 @@ class EventApiImpl extends ApiBase_1.ApiBase {
30
18
  this.emitSync('AdaptableDestroy');
31
19
  this.emitter.destroy();
32
20
  }
21
+ on = (eventName, callback) => {
22
+ let result;
23
+ if (eventName === 'AdaptableReady') {
24
+ this.emitter.onIncludeFiredOnce(eventName).then(callback);
25
+ return () => { };
26
+ }
27
+ else {
28
+ result = this.emitter.on(eventName, callback);
29
+ }
30
+ return result;
31
+ };
32
+ off = (eventName, callback) => this.emitter.off(eventName, callback);
33
+ emit = (eventName, data) => this.emitter.emit(eventName, data);
34
+ emitSync = (eventName, data) => this.emitter.emitSync(eventName, data);
33
35
  }
34
36
  exports.EventApiImpl = EventApiImpl;
@@ -8,6 +8,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
8
8
  const ExportInternalApi_1 = require("../Internal/ExportInternalApi");
9
9
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
10
10
  class ExportApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new ExportInternalApi_1.ExportInternalApi(_adaptable);
@@ -6,6 +6,7 @@ const ApiBase_1 = require("./ApiBase");
6
6
  const parser = tslib_1.__importStar(require("../../parser/src"));
7
7
  const ExpressionInternalApi_1 = require("../Internal/ExpressionInternalApi");
8
8
  class ExpressionApiImpl extends ApiBase_1.ApiBase {
9
+ internalApi;
9
10
  constructor(_adaptable) {
10
11
  super(_adaptable);
11
12
  this.internalApi = new ExpressionInternalApi_1.ExpressionInternalApi(_adaptable);
@@ -5,6 +5,7 @@ const ApiBase_1 = require("./ApiBase");
5
5
  const Fdc3InternalApi_1 = require("../Internal/Fdc3InternalApi");
6
6
  const Fdc3Context_1 = require("../../AdaptableState/Common/Fdc3Context");
7
7
  class Fdc3ApiImpl extends ApiBase_1.ApiBase {
8
+ internalApi;
8
9
  constructor(_adaptable) {
9
10
  super(_adaptable);
10
11
  this.internalApi = new Fdc3InternalApi_1.Fdc3InternalApi(_adaptable);
@@ -6,6 +6,9 @@ const FilterInternalApi_1 = require("../Internal/FilterInternalApi");
6
6
  const ColumnFilterApiImpl_1 = require("./ColumnFilterApiImpl");
7
7
  const GridFilterApiImpl_1 = require("./GridFilterApiImpl");
8
8
  class FilterApiImpl extends ApiBase_1.ApiBase {
9
+ internalApi;
10
+ columnFilterApi;
11
+ gridFilterApi;
9
12
  constructor(_adaptable) {
10
13
  super(_adaptable);
11
14
  this.internalApi = new FilterInternalApi_1.FilterInternalApi(_adaptable);
@@ -6,6 +6,7 @@ const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
6
6
  const ApiBase_1 = require("./ApiBase");
7
7
  const FlashingCellInternalApi_1 = require("../Internal/FlashingCellInternalApi");
8
8
  class FlashingCellApiImpl extends ApiBase_1.ApiBase {
9
+ internalApi;
9
10
  constructor(_adaptable) {
10
11
  super(_adaptable);
11
12
  this.internalApi = new FlashingCellInternalApi_1.FlashingCellInternalApi(_adaptable);
@@ -8,6 +8,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
8
8
  const FormatColumnInternalApi_1 = require("../Internal/FormatColumnInternalApi");
9
9
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
10
10
  class FormatColumnApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new FormatColumnInternalApi_1.FormatColumnInternalApi(_adaptable);
@@ -8,6 +8,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
8
8
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
9
9
  const FreeTextColumnInternalApi_1 = require("../Internal/FreeTextColumnInternalApi");
10
10
  class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new FreeTextColumnInternalApi_1.FreeTextColumnInternalApi(_adaptable);
@@ -34,6 +34,15 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
34
34
  addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
35
35
  undoCellEdit(cellDataChangedInfo: CellDataChangedInfo): boolean;
36
36
  deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
37
+ manageGridData(dataRows: {
38
+ add?: any[];
39
+ update?: any[];
40
+ delete?: any[];
41
+ }, config?: DataUpdateConfig): Promise<{
42
+ addedRows: IRowNode[];
43
+ updatedRows: IRowNode[];
44
+ removedRows: IRowNode[];
45
+ }>;
37
46
  setCellValue(cellUpdateRequest: CellUpdateRequest): void;
38
47
  setCellValues(cellUpdateRequests: CellUpdateRequest[]): void;
39
48
  getCellSummaryInfo(): CellSummmaryInfo;
@@ -151,13 +160,4 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
151
160
  updateAgGridColumnDefinitions(columnDefinitionsToBeUpdated: ColDefWithId[]): void;
152
161
  removeAgGridColumnDefinition(columnId: string): void;
153
162
  addAgGridColumnDefinition(newColumnDefinition: ColDefWithId): void;
154
- applyGridDataTransaction(dataTransaction: {
155
- add?: any[];
156
- update?: any[];
157
- remove?: any[];
158
- }, config?: DataUpdateConfig): Promise<{
159
- addedRows: IRowNode[];
160
- updatedRows: IRowNode[];
161
- removedRows: IRowNode[];
162
- }>;
163
163
  }
@@ -11,6 +11,7 @@ const windowFactory_1 = require("../../View/Components/Popups/WindowPopups/windo
11
11
  const RowSummary_1 = require("../../AdaptableState/Common/RowSummary");
12
12
  const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
13
13
  class GridApiImpl extends ApiBase_1.ApiBase {
14
+ internalApi;
14
15
  constructor(_adaptable) {
15
16
  super(_adaptable);
16
17
  this.internalApi = new GridInternalApi_1.GridInternalApi(_adaptable);
@@ -98,6 +99,22 @@ class GridApiImpl extends ApiBase_1.ApiBase {
98
99
  }
99
100
  return [];
100
101
  }
102
+ async manageGridData(dataRows, config) {
103
+ const transactionResult = await this._adaptable.manageGridRows(dataRows, config);
104
+ if (Array.isArray(transactionResult.removedRows) && transactionResult.removedRows.length) {
105
+ const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataRows.delete, transactionResult.removedRows, 'Delete');
106
+ this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
107
+ }
108
+ if (Array.isArray(transactionResult.updatedRows) && transactionResult.updatedRows.length) {
109
+ const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataRows.update, transactionResult.updatedRows, 'Update');
110
+ this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
111
+ }
112
+ if (Array.isArray(transactionResult.addedRows) && transactionResult.addedRows.length) {
113
+ const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataRows.add, transactionResult.addedRows, 'Add');
114
+ this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
115
+ }
116
+ return transactionResult;
117
+ }
101
118
  setCellValue(cellUpdateRequest) {
102
119
  const abColumn = this.getColumnApi().getColumnWithColumnId(cellUpdateRequest.columnId);
103
120
  if (!abColumn) {
@@ -687,21 +704,5 @@ class GridApiImpl extends ApiBase_1.ApiBase {
687
704
  .filter(Boolean);
688
705
  this.setAgGridColumnDefinitions([...sanitizedColDefs, newColumnDefinition]);
689
706
  }
690
- async applyGridDataTransaction(dataTransaction, config) {
691
- const transactionResult = await this._adaptable.applyGridDataTransaction(dataTransaction, config);
692
- if (Array.isArray(transactionResult.removedRows) && transactionResult.removedRows.length) {
693
- const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.remove, transactionResult.removedRows, 'Delete');
694
- this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
695
- }
696
- if (Array.isArray(transactionResult.updatedRows) && transactionResult.updatedRows.length) {
697
- const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.update, transactionResult.updatedRows, 'Update');
698
- this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
699
- }
700
- if (Array.isArray(transactionResult.addedRows) && transactionResult.addedRows.length) {
701
- const rowDataChangedInfo = this.getAdaptableInternalApi().buildRowDataChangedInfo(dataTransaction.add, transactionResult.addedRows, 'Add');
702
- this.getAdaptableInternalApi().getDataService().CreateRowDataChangedEvent(rowDataChangedInfo);
703
- }
704
- return transactionResult;
705
- }
706
707
  }
707
708
  exports.GridApiImpl = GridApiImpl;
@@ -8,6 +8,7 @@ const GridFilterInternalApi_1 = require("../Internal/GridFilterInternalApi");
8
8
  const ApiBase_1 = require("./ApiBase");
9
9
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
10
10
  class GridFilterApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new GridFilterInternalApi_1.GridFilterInternalApi(_adaptable);
@@ -12,6 +12,7 @@ const LayoutInternalApi_1 = require("../Internal/LayoutInternalApi");
12
12
  const LayoutHelpers_1 = require("./LayoutHelpers");
13
13
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
14
14
  class LayoutApiImpl extends ApiBase_1.ApiBase {
15
+ internalApi;
15
16
  constructor(_adaptable) {
16
17
  super(_adaptable);
17
18
  this.internalApi = new LayoutInternalApi_1.LayoutInternalApi(_adaptable);
@@ -8,6 +8,7 @@ const NamedQueryInternalApi_1 = require("../Internal/NamedQueryInternalApi");
8
8
  const ApiBase_1 = require("./ApiBase");
9
9
  const NamedQueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NamedQueryRedux"));
10
10
  class NamedQueryApiImpl extends ApiBase_1.ApiBase {
11
+ internalApi;
11
12
  constructor(_adaptable) {
12
13
  super(_adaptable);
13
14
  this.internalApi = new NamedQueryInternalApi_1.NamedQueryInternalApi(_adaptable);
@@ -6,6 +6,7 @@ const ApiBase_1 = require("./ApiBase");
6
6
  const NoteRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NoteRedux"));
7
7
  const NoteInternalApi_1 = require("../Internal/NoteInternalApi");
8
8
  class NoteApiImpl extends ApiBase_1.ApiBase {
9
+ internalApi;
9
10
  constructor(_adaptable) {
10
11
  super(_adaptable);
11
12
  this.internalApi = new NoteInternalApi_1.NoteInternalApi(_adaptable);
@@ -32,6 +32,7 @@ const getTreeSelectionStateForPredicateInputs = (inputs, cache = treeSelectionSt
32
32
  };
33
33
  exports.getTreeSelectionStateForPredicateInputs = getTreeSelectionStateForPredicateInputs;
34
34
  class PredicateApiImpl extends ApiBase_1.ApiBase {
35
+ internalApi;
35
36
  constructor(_adaptable) {
36
37
  super(_adaptable);
37
38
  this.internalApi = new PredicateInternalApi_1.PredicateInternalApi(_adaptable);
@@ -5,6 +5,7 @@ const ApiBase_1 = require("./ApiBase");
5
5
  const RowFormInternalApi_1 = require("../Internal/RowFormInternalApi");
6
6
  const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
7
7
  class RowFormApiImpl extends ApiBase_1.ApiBase {
8
+ internalApi;
8
9
  constructor(_adaptable) {
9
10
  super(_adaptable);
10
11
  this.internalApi = new RowFormInternalApi_1.RowFormInternalApi(_adaptable);
@@ -7,6 +7,7 @@ const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReduc
7
7
  const StyledColumnInternalApi_1 = require("../Internal/StyledColumnInternalApi");
8
8
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
9
9
  class StyledColumnApiImpl extends ApiBase_1.ApiBase {
10
+ internalApi;
10
11
  constructor(_adaptable) {
11
12
  super(_adaptable);
12
13
  this.internalApi = new StyledColumnInternalApi_1.StyledColumnInternalApi(_adaptable);
@@ -12,6 +12,8 @@ const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
12
12
  const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
13
13
  const SystemStatusInternalApi_1 = require("../Internal/SystemStatusInternalApi");
14
14
  class SystemStatusApiImpl extends ApiBase_1.ApiBase {
15
+ systemStatusDiv;
16
+ internalApi;
15
17
  constructor(_adaptable) {
16
18
  super(_adaptable);
17
19
  this.internalApi = new SystemStatusInternalApi_1.SystemStatusInternalApi(_adaptable);
@@ -9,6 +9,7 @@ const TeamSharingRedux_1 = require("../../Redux/ActionsReducers/TeamSharingRedux
9
9
  const TeamSharingInternalApi_1 = require("../Internal/TeamSharingInternalApi");
10
10
  const TeamSharingState_1 = require("../../AdaptableState/TeamSharingState");
11
11
  class TeamSharingApiImpl extends ApiBase_1.ApiBase {
12
+ internalApi;
12
13
  constructor(_adaptable) {
13
14
  super(_adaptable);
14
15
  this.internalApi = new TeamSharingInternalApi_1.TeamSharingInternalApi(_adaptable);
@@ -10,6 +10,7 @@ const ThemeInternalApi_1 = require("../Internal/ThemeInternalApi");
10
10
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
11
11
  const logDeprecation_1 = require("../../Utilities/logDeprecation");
12
12
  class ThemeApiImpl extends ApiBase_1.ApiBase {
13
+ internalApi;
13
14
  constructor(_adaptable) {
14
15
  super(_adaptable);
15
16
  this.internalApi = new ThemeInternalApi_1.ThemeInternalApi(_adaptable);
@@ -9,9 +9,10 @@ const UserInterfaceInternalApi_1 = require("../Internal/UserInterfaceInternalApi
9
9
  const ApiBase_1 = require("./ApiBase");
10
10
  const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
11
11
  class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
12
+ internalApi;
13
+ showProgressIndicatorTimeout = null;
12
14
  constructor(_adaptable) {
13
15
  super(_adaptable);
14
- this.showProgressIndicatorTimeout = null;
15
16
  this.internalApi = new UserInterfaceInternalApi_1.UserInterfaceInternalApi(_adaptable);
16
17
  }
17
18
  getColorPalette() {