@adaptabletools/adaptable 18.0.8 → 18.0.10-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "18.0.8",
3
+ "version": "18.0.10-canary.0",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -35,6 +35,7 @@
35
35
  "email": "jonny.wolfson@adaptabletools.com"
36
36
  }
37
37
  ],
38
+ "main": "agGrid.js",
38
39
  "typings": "types.d.ts",
39
40
  "dependencies": {
40
41
  "@finos/fdc3": "2.0.3",
@@ -59,11 +60,11 @@
59
60
  "styled-components": "^4.3.2",
60
61
  "tinycolor2": "^1.4.2",
61
62
  "tslib": "^2.3.0",
62
- "uuid": "^3.3.2",
63
+ "uuid": "9.0.1",
63
64
  "react-toastify": "9.1.3"
64
65
  },
65
66
  "peerDependencies": {
66
- "@ag-grid-community/core": ">=31.1.0"
67
+ "@ag-grid-community/core": ">=31.3.1"
67
68
  },
68
69
  "publishTimestamp": 0,
69
70
  "type": "module",
@@ -63,7 +63,7 @@ export interface ExportOptions {
63
63
  */
64
64
  isColumnExportable?: (exportableColumnContext: ExportableColumnContext) => boolean;
65
65
  /**
66
- * Function invoked when a Report is run, enabling users to preload the data before it is exported
66
+ * Function invoked before a Report is run, enabling users to preload the data before it is exported
67
67
  */
68
68
  preProcessExport?: (preProcessExportContext: PreProcessExportContext) => boolean | Promise<ReportData | boolean>;
69
69
  }
@@ -100,7 +100,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
100
100
  commentApi: CommentApi;
101
101
  private destroyed;
102
102
  constructor(adaptable: IAdaptable);
103
- get agGridApi(): import("@ag-grid-community/core/dist/esm/es6/gridApi").GridApi<any>;
103
+ get agGridApi(): import("@ag-grid-community/core/dist/types/src/gridApi").GridApi<any>;
104
104
  /**
105
105
  * This is only meant to be called by the Adaptable instance.
106
106
  */
@@ -17,7 +17,9 @@ export class AdaptableModuleBase {
17
17
  this.api = api;
18
18
  this.api.eventApi.on('AdaptableReady', () => {
19
19
  this.onAdaptableReady();
20
- this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
20
+ setTimeout(() => {
21
+ this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
22
+ }, 100);
21
23
  });
22
24
  this.api.eventApi.on('AdaptableStateReloaded', (adaptableStateReloadedInfo) => {
23
25
  this.onAdaptableStateReloaded(adaptableStateReloadedInfo);
@@ -406,14 +406,13 @@ export class ReportService {
406
406
  .getAdaptableInstance()
407
407
  .agGridAdapter.getUserGridOptionsProperty('excelStyles') || [];
408
408
  this.adaptableApi.internalApi.forAllVisibleRowNodesDo((node, rowIndex) => {
409
- var _a;
410
409
  const rowParams = {
411
410
  node,
412
411
  data: node.data,
413
412
  rowIndex,
414
413
  api: agGridApi,
415
414
  columnApi: null,
416
- context: ((_a = agGridApi.__getContext) === null || _a === void 0 ? void 0 : _a.call(agGridApi)) || {},
415
+ context: agGridApi.getGridOption('context') || {},
417
416
  };
418
417
  const getRowStyleFn = agGridApi.getGridOption('getRowStyle');
419
418
  const rowStyle = getRowStyleFn ? getRowStyleFn(rowParams) : {};
@@ -1,4 +1,3 @@
1
- import { isEqual } from 'lodash';
2
1
  import { ROW_SUMMARY_ROW_ID, WEIGHTED_AVERAGE_AGGREATED_FUNCTION, } from '../../PredefinedConfig/Common/RowSummary';
3
2
  import { SystemRowSummarySet } from '../../Redux/ActionsReducers/SystemRedux';
4
3
  import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
@@ -6,6 +5,7 @@ import Helper from '../Helpers/Helper';
6
5
  import { AggregatedScalarLiveValue } from './AggregatedScalarLiveValue';
7
6
  import { isObjectEmpty } from '../Extensions/ObjectExtensions';
8
7
  import throttle from 'lodash/throttle';
8
+ import isEqual from 'lodash/isEqual';
9
9
  /**
10
10
  * The logic is extracted here to make it easier to follow
11
11
  */
@@ -10,9 +10,9 @@ export const StateManagementPopup = (props) => {
10
10
  return (React.createElement(PopupPanel, { className: baseClassName, headerText: props.moduleInfo.FriendlyName, glyphicon: props.moduleInfo.Glyph, infoLink: props.moduleInfo.HelpPage, infoLinkDisabled: !props.api.internalApi.isDocumentationLinksDisplayed() },
11
11
  React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "user-state", header: 'User State', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginRight: 2, mb: 2 },
12
12
  React.createElement(HelpBlock, { marginBottom: 2 }, 'Clear all current user state that has been persisted'),
13
- React.createElement(HelpBlock, { style: { color: 'var(--ab-color-warn)' } }, 'This will cause this window to close and any state you have previously created will be lost and the initial Predefined Config will then be reapplied.'),
13
+ React.createElement(HelpBlock, { style: { color: 'var(--ab-color-warn)' } }, 'This will cause this window to close and any State you have previously created will be lost, and the initial Predefined Config will be reapplied'),
14
14
  React.createElement(ClearButton, { "data-name": "clear-user-state-button", tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onClick: () => props.api.configApi.reloadPredefinedConfig() }, "Clear User State")),
15
- React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "predefined-config", header: 'Load Predefined Config', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginRight: 2, mb: 2 },
15
+ React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "predefined-config", header: 'Predefined Config', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginRight: 2, mb: 2 },
16
16
  React.createElement(HelpBlock, { marginTop: 2 }, 'Load Predefined Config (from a .json file) - this will cause this window to close'),
17
17
  ' ',
18
18
  React.createElement(LoadButton, { tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onLoad: (json) => props.api.configApi.reloadPredefinedConfig(json), "data-name": "load-predefined-config-button" }, "Load Predefined Config")),
@@ -108,9 +108,9 @@ RowNodeProto.dispatchLocalEvent = function (event) {
108
108
  const node = event.node;
109
109
  const result = RowNode_dispatchLocalEvent.apply(this, arguments);
110
110
  const extractGridApiFromRowNode = (rowNode) => {
111
- var _a;
111
+ var _a, _b, _c, _d;
112
112
  // starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
113
- const rowNodeApi = (_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _a === void 0 ? void 0 : _a.gridApi;
113
+ const rowNodeApi = (_b = (_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _a === void 0 ? void 0 : _a.gridApi) !== null && _b !== void 0 ? _b : (_d = (_c = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _c === void 0 ? void 0 : _c.gos) === null || _d === void 0 ? void 0 : _d.api;
114
114
  if (!rowNodeApi) {
115
115
  AdaptableLogger.consoleErrorBase(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
116
116
  }
@@ -1786,7 +1786,7 @@ export class AdaptableAgGrid {
1786
1786
  const agGridApi = gridApi || this.agGridAdapter.getAgGridApi();
1787
1787
  let result;
1788
1788
  if (!this.hasAutogeneratedPrimaryKey) {
1789
- result = agGridApi.getValue(this.adaptableOptions.primaryKey, rowNode);
1789
+ result = agGridApi.getCellValue({ colKey: this.adaptableOptions.primaryKey, rowNode });
1790
1790
  }
1791
1791
  if (result == undefined && rowNode.data) {
1792
1792
  result = rowNode.data[this.adaptableOptions.primaryKey];
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
3
- PUBLISH_TIMESTAMP: 1714757350988 || Date.now(),
4
- VERSION: "18.0.8" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1715788743761 || Date.now(),
4
+ VERSION: "18.0.10-canary.0" || '--current-version--',
5
5
  };