@adaptabletools/adaptable 18.0.0-canary.4 → 18.0.0-canary.6
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/agGrid.d.ts +4 -21
- package/agGrid.js +9 -26
- package/base.css +1 -1
- package/base.css.map +1 -1
- package/index.css +74 -68
- package/index.css.map +1 -1
- package/package.json +3 -4
- package/src/AdaptableInterfaces/IAdaptable.d.ts +55 -109
- package/src/AdaptableOptions/AdaptableOptions.d.ts +6 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/ColumnFilterApi.d.ts +0 -5
- package/src/Api/Events/AdaptableReady.d.ts +3 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -4
- package/src/Api/GridApi.d.ts +14 -13
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +33 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
- package/src/Api/Implementation/ApiBase.d.ts +2 -1
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.js +0 -10
- package/src/Api/Implementation/CommentsApiImpl.js +2 -1
- package/src/Api/Implementation/ConfigApiImpl.js +8 -3
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
- package/src/Api/Implementation/GridApiImpl.js +20 -14
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +0 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +0 -3
- package/src/Api/Implementation/ToolPanelApiImpl.js +6 -6
- package/src/Api/Internal/ActionRowInternalApi.d.ts +5 -1
- package/src/Api/Internal/ActionRowInternalApi.js +106 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +3 -4
- package/src/Api/Internal/AdaptableInternalApi.js +10 -8
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +70 -0
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +1 -0
- package/src/Api/Internal/ColumnFilterInternalApi.js +11 -1
- package/src/Api/Internal/ColumnInternalApi.d.ts +4 -1
- package/src/Api/Internal/ColumnInternalApi.js +12 -0
- package/src/Api/Internal/CustomSortInternalApi.d.ts +3 -2
- package/src/Api/Internal/CustomSortInternalApi.js +32 -1
- package/src/Api/Internal/DataSetInternalApi.js +1 -1
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.js +59 -0
- package/src/Api/Internal/GridFilterInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.d.ts +21 -3
- package/src/Api/Internal/GridInternalApi.js +126 -7
- package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
- package/src/EnvVars.d.ts +3 -0
- package/src/EnvVars.js +4 -0
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
- package/src/PredefinedConfig/Common/AggregationColumns.js +3 -0
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +8 -0
- package/src/Redux/Store/AdaptableStore.d.ts +4 -6
- package/src/Redux/Store/AdaptableStore.js +22 -50
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +7 -1
- package/src/Strategy/AdaptableModuleBase.d.ts +2 -3
- package/src/Strategy/AdaptableModuleBase.js +4 -7
- package/src/Strategy/AlertModule.d.ts +1 -2
- package/src/Strategy/AlertModule.js +2 -55
- package/src/Strategy/CalculatedColumnModule.d.ts +2 -3
- package/src/Strategy/CalculatedColumnModule.js +5 -25
- package/src/Strategy/ChartingModule.d.ts +0 -1
- package/src/Strategy/ChartingModule.js +0 -21
- package/src/Strategy/ColumnFilterModule.d.ts +1 -2
- package/src/Strategy/ColumnFilterModule.js +1 -64
- package/src/Strategy/CommentsModule.d.ts +1 -0
- package/src/Strategy/CommentsModule.js +2 -1
- package/src/Strategy/CustomSortModule.js +1 -1
- package/src/Strategy/DashboardModule.d.ts +1 -2
- package/src/Strategy/DashboardModule.js +1 -8
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +3 -1
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +1 -2
- package/src/Strategy/FlashingCellModule.js +2 -15
- package/src/Strategy/FormatColumnModule.d.ts +0 -2
- package/src/Strategy/FormatColumnModule.js +0 -47
- package/src/Strategy/FreeTextColumnModule.d.ts +0 -1
- package/src/Strategy/FreeTextColumnModule.js +0 -30
- package/src/Strategy/GridFilterModule.d.ts +0 -1
- package/src/Strategy/GridFilterModule.js +0 -37
- package/src/Strategy/Interface/IModule.d.ts +0 -1
- package/src/Strategy/LayoutModule.d.ts +1 -3
- package/src/Strategy/LayoutModule.js +6 -50
- package/src/Strategy/NamedQueryModule.d.ts +0 -1
- package/src/Strategy/NamedQueryModule.js +0 -19
- package/src/Strategy/PlusMinusModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.js +1 -1
- package/src/Strategy/ScheduleModule.d.ts +1 -1
- package/src/Strategy/ScheduleModule.js +1 -1
- package/src/Strategy/ShortcutModule.d.ts +1 -1
- package/src/Strategy/ShortcutModule.js +1 -1
- package/src/Strategy/StyledColumnModule.d.ts +0 -1
- package/src/Strategy/StyledColumnModule.js +0 -21
- package/src/Strategy/TeamSharingModule.d.ts +1 -0
- package/src/Strategy/TeamSharingModule.js +5 -5
- package/src/Strategy/ToolPanelModule.d.ts +0 -1
- package/src/Strategy/ToolPanelModule.js +0 -23
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +1 -0
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +0 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +0 -58
- package/src/Utilities/Services/CellPopupService.js +0 -1
- package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
- package/src/Utilities/Services/LicenseService/index.js +10 -3
- package/src/Utilities/Services/MetamodelService.d.ts +1 -1
- package/src/Utilities/Services/MetamodelService.js +6 -3
- package/src/Utilities/Services/RowEditService.d.ts +3 -2
- package/src/Utilities/Services/RowEditService.js +3 -1
- package/src/View/AdaptableView.js +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
- package/src/View/CalculatedColumn/utils.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +6 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/agGrid/ActionColumnRenderer.js +4 -4
- package/src/agGrid/Adaptable.d.ts +3 -455
- package/src/agGrid/Adaptable.js +8 -5292
- package/src/agGrid/AdaptableAgGrid.d.ts +336 -0
- package/src/agGrid/AdaptableAgGrid.js +3810 -0
- package/src/agGrid/AdaptableLogger.js +77 -11
- package/src/agGrid/AgGridAdapter.d.ts +54 -0
- package/src/agGrid/AgGridAdapter.js +549 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
- package/src/agGrid/AgGridColumnAdapter.js +813 -0
- package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
- package/src/agGrid/AgGridMenuAdapter.js +271 -0
- package/src/agGrid/AgGridOptionsService.d.ts +11 -0
- package/src/agGrid/AgGridOptionsService.js +50 -0
- package/src/agGrid/BadgeRenderer.js +1 -1
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/FilterWrapper.d.ts +2 -2
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +12 -12
- package/src/agGrid/defaultAdaptableOptions.d.ts +3 -0
- package/src/{Utilities/Defaults/DefaultAdaptableOptions.js → agGrid/defaultAdaptableOptions.js} +69 -8
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -2
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/InfiniteTable/index.js +2 -2
- package/src/components/Modal/index.d.ts +1 -0
- package/src/components/Modal/index.js +4 -3
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +9 -9
- package/src/metamodel/adaptable.metamodel.js +7 -0
- package/src/migration/AdaptableUpgradeHelper.d.ts +38 -0
- package/src/migration/AdaptableUpgradeHelper.js +48 -0
- package/src/migration/VersionUpgrade.d.ts +8 -0
- package/src/migration/VersionUpgrade.js +11 -0
- package/src/migration/VersionUpgrade17.d.ts +18 -0
- package/src/migration/VersionUpgrade17.js +342 -0
- package/src/migration/VersionUpgrade18.d.ts +5 -0
- package/src/migration/VersionUpgrade18.js +6 -0
- package/src/types.d.ts +5 -4
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.d.ts +0 -2
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -3
- package/src/Utilities/Services/Interface/IRowEditService.js +0 -1
- package/src/agGrid/agGridHelper.d.ts +0 -57
- package/src/agGrid/agGridHelper.js +0 -686
- package/src/agGrid/agGridMenuHelper.d.ts +0 -46
- package/src/agGrid/agGridMenuHelper.js +0 -668
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import Dialog from '../../../components/Dialog';
|
|
3
3
|
import { Box } from 'rebass';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
export function AdaptableLoadingScreen(props) {
|
|
5
|
+
const { showLoadingScreen, loadingScreenDelay, loadingScreenTitle, loadingScreenText } = props;
|
|
6
|
+
const [delayElapsed, setDelayElapsed] = React.useState(typeof loadingScreenDelay === 'number' ? false : showLoadingScreen);
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
if (typeof loadingScreenDelay === 'number') {
|
|
9
|
+
const timeoutId = setTimeout(() => {
|
|
10
|
+
setDelayElapsed(true);
|
|
11
|
+
}, loadingScreenDelay);
|
|
12
|
+
return () => {
|
|
13
|
+
clearTimeout(timeoutId);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}, [loadingScreenDelay]);
|
|
17
|
+
return (React.createElement(Dialog, { modal: true, isOpen: delayElapsed ? showLoadingScreen : false, onDismiss: props.onClose, showCloseButton: false, className: "ab-LoadingScreen", style: {
|
|
18
|
+
minHeight: 'auto',
|
|
19
|
+
} },
|
|
20
|
+
React.createElement(Box, { padding: 3 },
|
|
21
|
+
React.createElement("h4", null, loadingScreenTitle !== null && loadingScreenTitle !== void 0 ? loadingScreenTitle : 'Initialising Grid'),
|
|
22
|
+
React.createElement("p", null, loadingScreenText !== null && loadingScreenText !== void 0 ? loadingScreenText : 'Retrieving your settings and setting up the grid...'))));
|
|
13
23
|
}
|
|
@@ -33,7 +33,7 @@ export class CustomSortSummaryComponent extends React.Component {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const customSort = this.props.CustomSorts.find((c) => c.ColumnId == this.props.summarisedColumn.columnId);
|
|
36
|
-
const columnSortComparer = this.props.api.customSortApi.internalApi.getCustomSortComparer(this.props.summarisedColumn);
|
|
36
|
+
const columnSortComparer = this.props.api.customSortApi.internalApi.getCustomSortComparer(this.props.summarisedColumn.columnId);
|
|
37
37
|
let noCustomSort = customSort == null && columnSortComparer == null;
|
|
38
38
|
let customSortRow;
|
|
39
39
|
if (!this.props.summarisedColumn.sortable) {
|
|
@@ -65,7 +65,7 @@ export const DataChangeHistoryGrid = (props) => {
|
|
|
65
65
|
// 2. this UI will be reimplemented with Infinite Table anyway
|
|
66
66
|
const addedRows = mapChangeHistoryRowData(addedChangeHistoryLogs, mainAdaptableInstance);
|
|
67
67
|
const removedRows = mapChangeHistoryRowData(removedChangeHistoryLogs, mainAdaptableInstance);
|
|
68
|
-
adaptableApi.
|
|
68
|
+
adaptableApi.agGridApi.applyTransactionAsync({
|
|
69
69
|
add: addedRows,
|
|
70
70
|
remove: removedRows,
|
|
71
71
|
});
|
|
@@ -23,6 +23,7 @@ const QueryViewPanelComponent = (props) => {
|
|
|
23
23
|
const disabled = isReadOnly || isSuspended || gridFilterAccessLevel === 'ReadOnly';
|
|
24
24
|
const handleEnter = (e) => {
|
|
25
25
|
if (e.key === 'Enter') {
|
|
26
|
+
e.preventDefault();
|
|
26
27
|
runQuery();
|
|
27
28
|
}
|
|
28
29
|
};
|
|
@@ -44,8 +45,9 @@ const QueryViewPanelComponent = (props) => {
|
|
|
44
45
|
fontFamily: 'monospace',
|
|
45
46
|
fontSize: 12,
|
|
46
47
|
maxHeight: 52,
|
|
47
|
-
height:
|
|
48
|
-
paddingTop:
|
|
48
|
+
height: '100%',
|
|
49
|
+
paddingTop: 6,
|
|
50
|
+
overflow: 'hidden',
|
|
49
51
|
zIndex: 100,
|
|
50
52
|
}, placehoder: "Grid Filter", onChange: (x) => setExpression(x.target.value), value: expression })),
|
|
51
53
|
isExpressionValid && (React.createElement(ButtonPlay, { onClick: () => runQuery(), tooltip: '', accessLevel: gridFilterAccessLevel, variant: "text", tone: "neutral", disabled: disabled || expression == '' || expression == (gridFilter === null || gridFilter === void 0 ? void 0 : gridFilter.Expression), marginRight: 1 })),
|
|
@@ -71,6 +73,8 @@ const QueryViewPanelComponent = (props) => {
|
|
|
71
73
|
maxHeight: 60,
|
|
72
74
|
paddingTop: 7,
|
|
73
75
|
zIndex: 100,
|
|
76
|
+
height: '100%',
|
|
77
|
+
overflow: 'hidden',
|
|
74
78
|
}, placehoder: "Grid Filter", onChange: (x) => setExpression(x.target.value), value: expression }))));
|
|
75
79
|
};
|
|
76
80
|
const saveButton = (React.createElement(ButtonSave, { onClick: () => saveQuery(), tooltip: "Save as Named Query", accessLevel: namedQueryModuleAccessLevel, disabled: disabled || !isExpressionValid || isExpressionNamedQuery || expression == '', variant: "text", tone: "neutral", marginRight: 1 }));
|
|
@@ -9,8 +9,8 @@ import { AdaptableObjectCollection } from '../../Components/AdaptableObjectColle
|
|
|
9
9
|
import { AdaptableObjectRow } from '../../Components/AdaptableObjectRow';
|
|
10
10
|
import { PopupPanel } from '../../Components/Popups/AdaptablePopup/PopupPanel';
|
|
11
11
|
import { AdaptableObjectsSummary } from './AdaptableObjectsSummary';
|
|
12
|
-
import
|
|
13
|
-
const version =
|
|
12
|
+
import { ADAPTABLE_VERSION } from '../../../EnvVars';
|
|
13
|
+
const version = ADAPTABLE_VERSION;
|
|
14
14
|
export const GridInfoPopup = (props) => {
|
|
15
15
|
const CreateGridSummaries = (colItems) => {
|
|
16
16
|
var _a;
|
|
@@ -39,7 +39,6 @@ export const GridInfoPopup = (props) => {
|
|
|
39
39
|
returnRows.push(createReadOnlyColItem(colItems, 'Column Filters', columnFilterDescription));
|
|
40
40
|
returnRows.push(createReadOnlyColItem(colItems, 'Grid Filter', gridFilterExpression));
|
|
41
41
|
returnRows.push(createReadOnlyColItem(colItems, 'All Rows', props.api.gridApi.getRowCount()));
|
|
42
|
-
returnRows.push(createReadOnlyColItem(colItems, 'Visible Rows', props.api.gridApi.getVisibleRowCount()));
|
|
43
42
|
returnRows.push(createReadOnlyColItem(colItems, 'Selected Rows', selectedRowInfo === null || selectedRowInfo === void 0 ? void 0 : selectedRowInfo.gridRows.length));
|
|
44
43
|
returnRows.push(createReadOnlyColItem(colItems, 'Visible Selected Rows', selectedRowInfo === null || selectedRowInfo === void 0 ? void 0 : selectedRowInfo.gridRows.filter((gr) => { var _a; return ((_a = gr.rowNode) === null || _a === void 0 ? void 0 : _a.displayed) == true; }).length));
|
|
45
44
|
returnRows.push(createReadOnlyColItem(colItems, 'All Columns', props.api.gridApi.getColumnCount()));
|
|
@@ -34,7 +34,7 @@ export const LayoutWizard = (props) => {
|
|
|
34
34
|
}
|
|
35
35
|
if (preparedLayout.SuppressAggFuncInHeader === undefined) {
|
|
36
36
|
preparedLayout.SuppressAggFuncInHeader =
|
|
37
|
-
!!adaptable.
|
|
37
|
+
!!adaptable.agGridAdapter.initialGridOptions.suppressAggFuncInHeader;
|
|
38
38
|
}
|
|
39
39
|
return preparedLayout;
|
|
40
40
|
});
|
|
@@ -32,7 +32,7 @@ const ActionButtons = (props) => {
|
|
|
32
32
|
};
|
|
33
33
|
export const ReactActionColumnRenderer = (props) => {
|
|
34
34
|
const rerender = useRerender();
|
|
35
|
-
const adaptable = props.
|
|
35
|
+
const adaptable = props.context.__adaptable;
|
|
36
36
|
const { actionButtons, actionColumn } = adaptable.api.internalApi.getActionButtonsAndActionColumn(props.colDef);
|
|
37
37
|
if (!actionColumn || !actionButtons.length) {
|
|
38
38
|
return null;
|
|
@@ -41,7 +41,7 @@ export const ReactActionColumnRenderer = (props) => {
|
|
|
41
41
|
if (adaptable.api.gridApi.isGroupRowNode(props.node) && !actionColumn.includeGroupedRows) {
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
|
-
const pkValue = adaptable.getPrimaryKeyValueFromRowNode(props.node);
|
|
44
|
+
const pkValue = adaptable.getPrimaryKeyValueFromRowNode(props.node, props.api);
|
|
45
45
|
const buttonContext = {
|
|
46
46
|
actionColumn,
|
|
47
47
|
primaryKeyValue: pkValue,
|
|
@@ -57,7 +57,7 @@ export const ReactActionColumnRenderer = (props) => {
|
|
|
57
57
|
export class ActionColumnRenderer {
|
|
58
58
|
// gets called once before the renderer is used
|
|
59
59
|
init(params) {
|
|
60
|
-
const adaptable = params.
|
|
60
|
+
const adaptable = params.context.__adaptable;
|
|
61
61
|
const { actionButtons, actionColumn } = adaptable.api.internalApi.getActionButtonsAndActionColumn(params.colDef);
|
|
62
62
|
if (!actionColumn || !actionButtons.length) {
|
|
63
63
|
return;
|
|
@@ -70,7 +70,7 @@ export class ActionColumnRenderer {
|
|
|
70
70
|
this.eGui.innerHTML = '';
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
const pkValue = adaptable.getPrimaryKeyValueFromRowNode(params.node);
|
|
73
|
+
const pkValue = adaptable.getPrimaryKeyValueFromRowNode(params.node, params.api);
|
|
74
74
|
const buttonContext = {
|
|
75
75
|
actionColumn,
|
|
76
76
|
primaryKeyValue: pkValue,
|
|
@@ -1,126 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { DebouncedFunc } from 'lodash';
|
|
3
|
-
import { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard } from '../AdaptableInterfaces/AdaptableNoCodeWizard';
|
|
4
|
-
import { AdaptableVariant, AgGridConfig, DistinctValuesParams, IAdaptable } from '../AdaptableInterfaces/IAdaptable';
|
|
1
|
+
import { AgGridConfig } from '../AdaptableInterfaces/IAdaptable';
|
|
5
2
|
import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
|
|
6
|
-
import { AdaptablePlugin } from '../AdaptableOptions/AdaptablePlugin';
|
|
7
3
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { ColumnSort } from '../PredefinedConfig/Common/ColumnSort';
|
|
11
|
-
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
12
|
-
import { DataUpdateConfig } from '../PredefinedConfig/Common/DataUpdateConfig';
|
|
13
|
-
import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
14
|
-
import { ReportData } from '../PredefinedConfig/ExportState';
|
|
15
|
-
import { Layout } from '../PredefinedConfig/LayoutState';
|
|
16
|
-
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
17
|
-
import { SelectedCellInfo } from '../PredefinedConfig/Selection/SelectedCellInfo';
|
|
18
|
-
import { SelectedRowInfo } from '../PredefinedConfig/Selection/SelectedRowInfo';
|
|
19
|
-
import { AdaptableTheme } from '../PredefinedConfig/ThemeState';
|
|
20
|
-
import { IAdaptableStore } from '../Redux/Store/Interface/IAdaptableStore';
|
|
21
|
-
import { IModuleCollection } from '../Strategy/Interface/IModule';
|
|
22
|
-
import { ActionColumnContext, AdaptableButton, ChartDefinition } from '../types';
|
|
23
|
-
import { EmitterCallback } from '../Utilities/Emitter';
|
|
24
|
-
import { IPPStyle } from '../Utilities/Interface/IPPStyle';
|
|
25
|
-
import { LicenseService } from '../Utilities/Services/LicenseService';
|
|
26
|
-
import { ICalculatedColumnExpressionService } from '../Utilities/Services/Interface/ICalculatedColumnExpressionService';
|
|
27
|
-
import { IDataService } from '../Utilities/Services/Interface/IDataService';
|
|
28
|
-
import { IReportService } from '../Utilities/Services/Interface/IReportService';
|
|
29
|
-
import { ITeamSharingService } from '../Utilities/Services/Interface/ITeamSharingService';
|
|
30
|
-
import { IValidationService } from '../Utilities/Services/Interface/IValidationService';
|
|
31
|
-
import { IModuleService } from '../Utilities/Services/Interface/IModuleService';
|
|
32
|
-
import { IEntitlementService } from '../Utilities/Services/Interface/IEntitlementService';
|
|
33
|
-
import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLanguageService';
|
|
34
|
-
import { IAlertService } from '../Utilities/Services/Interface/IAlertService';
|
|
35
|
-
import { ColumnSetupInfo } from './ColumnSetupInfo';
|
|
36
|
-
import { CustomSort } from '../PredefinedConfig/CustomSortState';
|
|
37
|
-
import { ColumnValuesComparer } from '../AdaptableOptions/CustomSortOptions';
|
|
38
|
-
import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
|
|
39
|
-
import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService';
|
|
40
|
-
import { RenderReactRootFn } from '../renderReactRoot';
|
|
41
|
-
import { AdaptableLogger } from './AdaptableLogger';
|
|
42
|
-
import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
|
|
43
|
-
import { CellPopupService } from '../Utilities/Services/CellPopupService';
|
|
44
|
-
type RuntimeConfig = {
|
|
45
|
-
waitForAgGrid?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated
|
|
48
|
-
*/
|
|
49
|
-
renderReactRoot?: RenderReactRootFn;
|
|
50
|
-
variant?: AdaptableVariant;
|
|
51
|
-
gridOptions: AgGridConfig['gridOptions'];
|
|
52
|
-
modules?: AgGridConfig['modules'];
|
|
53
|
-
};
|
|
54
|
-
export declare class Adaptable implements IAdaptable {
|
|
55
|
-
api: AdaptableApi;
|
|
56
|
-
adaptableModules: IModuleCollection;
|
|
57
|
-
adaptableStore: IAdaptableStore;
|
|
58
|
-
adaptableOptions: AdaptableOptions;
|
|
59
|
-
_rawAdaptableOptions: AdaptableOptions;
|
|
60
|
-
logger: AdaptableLogger;
|
|
61
|
-
CalculatedColumnExpressionService: ICalculatedColumnExpressionService;
|
|
62
|
-
DataService: IDataService;
|
|
63
|
-
EntitlementService: IEntitlementService;
|
|
64
|
-
ReportService: IReportService;
|
|
65
|
-
ModuleService: IModuleService;
|
|
66
|
-
ValidationService: IValidationService;
|
|
67
|
-
QueryLanguageService: IQueryLanguageService;
|
|
68
|
-
AlertService: IAlertService;
|
|
69
|
-
TeamSharingService: ITeamSharingService;
|
|
70
|
-
MetamodelService: IMetamodelService;
|
|
71
|
-
RowEditService: IRowEditService;
|
|
72
|
-
Fdc3Service: Fdc3Service;
|
|
73
|
-
CellPopupService: CellPopupService;
|
|
74
|
-
private LicenseService;
|
|
75
|
-
private ChartingService;
|
|
76
|
-
private ThemeService;
|
|
77
|
-
embedColumnMenu: boolean;
|
|
78
|
-
gridOptions: GridOptions;
|
|
79
|
-
isInitialised: boolean;
|
|
80
|
-
hasAdaptableToolPanel: boolean;
|
|
81
|
-
variant: AdaptableVariant;
|
|
82
|
-
private useRowNodeLookUp;
|
|
83
|
-
private abContainerElement;
|
|
84
|
-
private gridContainerElement;
|
|
85
|
-
private colDefPropertyCache;
|
|
86
|
-
private gridOptionsPropertyCache;
|
|
87
|
-
private columnMinMaxValuesCache;
|
|
88
|
-
private throttleFilterOnEditDataChange;
|
|
89
|
-
private throttleFilterOnTickingDataChange;
|
|
90
|
-
private agGridHelper;
|
|
91
|
-
private agGridMenuHelper;
|
|
92
|
-
private runtimeConfig?;
|
|
93
|
-
private emitter;
|
|
94
|
-
private _currentEditor;
|
|
95
|
-
private _id;
|
|
96
|
-
private currentColumnDefs?;
|
|
97
|
-
private rowListeners;
|
|
98
|
-
private isCheckedColumnDataType;
|
|
99
|
-
private unmountReactRoot?;
|
|
100
|
-
get isLive(): boolean;
|
|
101
|
-
_on: (eventName: string, callback: EmitterCallback) => (() => void);
|
|
102
|
-
_onIncludeFired: (eventName: string, callback: EmitterCallback) => (() => void);
|
|
103
|
-
_emit: (eventName: string, data?: any) => Promise<any>;
|
|
104
|
-
_emitSync: (eventName: string, data?: any) => any;
|
|
105
|
-
private _adaptableReady;
|
|
106
|
-
isDestroyed: boolean;
|
|
107
|
-
private listenerKeydown;
|
|
108
|
-
private listenerMouseEnter;
|
|
109
|
-
private listenerMouseLeave;
|
|
110
|
-
renderReactRoot: RenderReactRootFn;
|
|
111
|
-
private listenerFirstDataRendered;
|
|
112
|
-
private listenerPivotModeChanged;
|
|
113
|
-
private listenerPivotChanged;
|
|
114
|
-
private listenerColumnRowGroupChanged;
|
|
115
|
-
private listenerCellEditingStarted;
|
|
116
|
-
private listenerColumnResized;
|
|
117
|
-
private listenerRangeSelectionChanged;
|
|
118
|
-
private listenerSortChanged;
|
|
119
|
-
private listenerModelUpdated;
|
|
120
|
-
private listenerGlobalSetRowSelection;
|
|
121
|
-
private listenerGlobalColumnEventsThatTriggerStateChange;
|
|
122
|
-
private listenerGlobalColumnEventsThatTriggerAutoLayoutSave;
|
|
123
|
-
private listenerGlobalRowGroupEventsThatTriggerAutoLayoutSave;
|
|
4
|
+
import { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard } from '../AdaptableInterfaces/AdaptableNoCodeWizard';
|
|
5
|
+
export declare class Adaptable {
|
|
124
6
|
/**
|
|
125
7
|
* Initializer for Adaptable
|
|
126
8
|
*
|
|
@@ -129,339 +11,6 @@ export declare class Adaptable implements IAdaptable {
|
|
|
129
11
|
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
130
12
|
*/
|
|
131
13
|
static init(adaptableOptions: AdaptableOptions, agGridConfig: AgGridConfig): Promise<AdaptableApi>;
|
|
132
|
-
/**
|
|
133
|
-
* Lazy static constructor for Adaptable
|
|
134
|
-
* Receives an AdaptableOptions object
|
|
135
|
-
* Returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
136
|
-
* @param adaptableOptions an instance of AdaptableOptions
|
|
137
|
-
*/
|
|
138
|
-
static initInternal(adaptableOptions: AdaptableOptions, runtimeConfig: RuntimeConfig): Promise<AdaptableApi>;
|
|
139
|
-
private static collectInstance;
|
|
140
|
-
static forEachAdaptable(fn: (adaptable: Adaptable) => void): void;
|
|
141
|
-
private static dismissInstance;
|
|
142
|
-
constructor();
|
|
143
|
-
init(adaptableOptions: AdaptableOptions, runtimeConfig: RuntimeConfig, _staticInit?: boolean): Promise<AdaptableApi>;
|
|
144
|
-
forPlugins(callback: (plugin: AdaptablePlugin) => any): void;
|
|
145
|
-
getPlugin(pluginId: string): AdaptablePlugin;
|
|
146
|
-
getPluginProperty(pluginId: string, propertyName: string, ...args: any): any;
|
|
147
|
-
lookupPlugins(propertyName: string, ...args: any): any;
|
|
148
|
-
isPluginLoaded: (pluginId: string) => boolean;
|
|
149
|
-
private initStore;
|
|
150
|
-
private performAudit;
|
|
151
|
-
private initializeAgGrid;
|
|
152
|
-
private isAgGridReady;
|
|
153
|
-
private initAgGridContainerFromInitializedAgGrid;
|
|
154
|
-
private createAdaptableSideBarDef;
|
|
155
|
-
private createStatusBars;
|
|
156
|
-
getAgGridStatusPanels(): import("@ag-grid-community/core").StatusPanelDef[];
|
|
157
|
-
debouncedSetColumnIntoStore: DebouncedFunc<VoidFunction>;
|
|
158
|
-
debouncedSaveGridLayout: DebouncedFunc<() => void>;
|
|
159
|
-
debouncedSetSelectedCells: DebouncedFunc<() => void>;
|
|
160
|
-
debouncedSetSelectedRows: DebouncedFunc<() => void>;
|
|
161
|
-
debouncedFilterGrid: DebouncedFunc<(callback?: any) => void>;
|
|
162
|
-
private filterOnEditDataChange;
|
|
163
|
-
private filterOnTickingDataChange;
|
|
164
|
-
applyColumnFiltering(): void;
|
|
165
|
-
applyGridFiltering(): void;
|
|
166
|
-
isGroupRowNode(rowNode: IRowNode): boolean;
|
|
167
|
-
isVisibleNode(rowNode: IRowNode): boolean;
|
|
168
|
-
isPinnedRowNode(rowNode: IRowNode): boolean;
|
|
169
|
-
clearColumnFiltering(): void;
|
|
170
|
-
clearColumnFilteringForColumns(columnIds: string[]): void;
|
|
171
|
-
hideFilterFormPopup: Function;
|
|
172
|
-
hideColumnFilterForm(): void;
|
|
173
|
-
updateColumnsIntoStore(): void;
|
|
174
|
-
private createAdaptableColumn;
|
|
175
|
-
private safeSetColDefs;
|
|
176
|
-
/**
|
|
177
|
-
* The combination of styled column and format cells
|
|
178
|
-
* This functiond decides when the two can be merged.
|
|
179
|
-
*/
|
|
180
|
-
private getFormatColumnAndStyledColumnCellStyle;
|
|
181
|
-
private getStyledColumnStyle;
|
|
182
|
-
private getFormatColumnAdaptableStyle;
|
|
183
|
-
private getFormatColumnCellStyle;
|
|
184
|
-
private getFormatColumnCellClass;
|
|
185
|
-
private getActiveAlertWithHighlightCell;
|
|
186
|
-
private getActiveAlertWithHighlightRow;
|
|
187
|
-
private getAlertCellStyle;
|
|
188
|
-
private getAlertCellClass;
|
|
189
|
-
private getAlertRowClass;
|
|
190
|
-
private getAlertRowStyle;
|
|
191
|
-
private getFlashingCellStyle;
|
|
192
|
-
private getNoteCellClassName;
|
|
193
|
-
private getCommentCellClassName;
|
|
194
|
-
private getFlashingCellClass;
|
|
195
|
-
private getCellHighlightStyle;
|
|
196
|
-
private getRowHighlightStyle;
|
|
197
|
-
private getRowHighlightClass;
|
|
198
|
-
private getQuickSearchCellStyle;
|
|
199
|
-
private getEditableCellStyle;
|
|
200
|
-
private getReadOnlyCellStyle;
|
|
201
|
-
private getEditableCellClass;
|
|
202
|
-
private getReadonlyCellClass;
|
|
203
|
-
private isQuickSearchActive;
|
|
204
|
-
getPrimaryKeyValueFromRowNode(rowNode: IRowNode): any;
|
|
205
|
-
private getSortedColumnStateForVisibleColumns;
|
|
206
|
-
setColumnOrder(VisibleColumnList: string[]): void;
|
|
207
|
-
private persistLayout;
|
|
208
|
-
setLayout(layout?: Layout): void;
|
|
209
|
-
/**
|
|
210
|
-
* Setting layout works by modifing the column state.
|
|
211
|
-
* The column state is based on the current existing columns.
|
|
212
|
-
* At this point the column groups do not exist, and the widths from layout are not applied.
|
|
213
|
-
*
|
|
214
|
-
* After the col sate is applied and the column groups are created we need
|
|
215
|
-
* to apply the state again to update the widths of the group columns.
|
|
216
|
-
*/
|
|
217
|
-
private applyGroupColumnWidth;
|
|
218
|
-
updateRowGroupsExpandedState(layout?: Layout): void;
|
|
219
|
-
private updateLayoutFromGrid;
|
|
220
|
-
setSelectedCells(): SelectedCellInfo | undefined;
|
|
221
|
-
setSelectedRows(): SelectedRowInfo | undefined;
|
|
222
|
-
setDataValue(value: any, column: AdaptableColumn, primaryKeyValue: any, rowNode?: IRowNode): void;
|
|
223
|
-
cancelEdit(): void;
|
|
224
|
-
isCellEditable(rowNode: IRowNode, column: Column): boolean;
|
|
225
|
-
getGridCellsForColumn(columnId: string): GridCell[] | undefined;
|
|
226
|
-
getDistinctGridCellsForColumn(column: AdaptableColumn, distinctValuesParams: DistinctValuesParams): GridCell[];
|
|
227
|
-
private getUniqueGridCells;
|
|
228
|
-
private getGridCellsForPermittedValues;
|
|
229
|
-
getDistinctValuesForColumn(column: AdaptableColumn, distinctValuesParams: DistinctValuesParams): GridCell[];
|
|
230
|
-
getDistinctFilterListValuesForColumn(column: AdaptableColumn, filter: string, distinctValuesParams: DistinctValuesParams): Promise<{
|
|
231
|
-
suppressClientSideFilter?: boolean;
|
|
232
|
-
gridCells: GridCell[];
|
|
233
|
-
}>;
|
|
234
|
-
getDistinctCustomSortValuesForColumn(column: AdaptableColumn, distinctValuesParams: DistinctValuesParams): Promise<GridCell<any>[]>;
|
|
235
|
-
getDistinctBulkUpdateValuesForColumn(column: AdaptableColumn, selectedGridCells: GridCell[], distinctValuesParams: DistinctValuesParams): Promise<GridCell<any>[]>;
|
|
236
|
-
getColumnValueDisplayValuePairList(columnId: string, visibleRowsOnly: boolean, onlyIncludeIds?: {
|
|
237
|
-
[key: string]: boolean;
|
|
238
|
-
}): GridCell[];
|
|
239
|
-
private addDistinctColumnValue;
|
|
240
|
-
/**
|
|
241
|
-
* Don't think that this is used - a good thing as its quite verbose
|
|
242
|
-
*/
|
|
243
|
-
getDisplayValue(primaryKey: any, columnId: string): string | undefined;
|
|
244
|
-
getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
|
|
245
|
-
getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): string | undefined;
|
|
246
|
-
getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
|
|
247
|
-
private getFormattedValue;
|
|
248
|
-
getNormalisedValueFromRawValue(rawValue: any, column: AdaptableColumn): string | number | boolean | Date | unknown;
|
|
249
|
-
getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any;
|
|
250
|
-
getDataRowFromRowNode(rowNode: IRowNode): any;
|
|
251
|
-
getRowNodeForPrimaryKey(primaryKeyValue: any): any;
|
|
252
|
-
getRowNodeByIndex(index: number): IRowNode;
|
|
253
|
-
getRowNodesForPrimaryKeys(primaryKeyValues: any[]): any[];
|
|
254
|
-
forAllRowNodesDo(func: (rowNode: IRowNode, rowIndex: number) => void, config?: {
|
|
255
|
-
includeGroupRows?: boolean;
|
|
256
|
-
filterFn?: (rowNode: IRowNode) => boolean;
|
|
257
|
-
}): void;
|
|
258
|
-
forAllVisibleRowNodesDo(func: (rowNode: IRowNode, rowIndex: number) => void, config?: {
|
|
259
|
-
includeGroupRows?: boolean;
|
|
260
|
-
filterFn?: (rowNode: IRowNode) => boolean;
|
|
261
|
-
}): void;
|
|
262
|
-
getVisibleRowNodes(config?: {
|
|
263
|
-
includeGroupRows?: boolean;
|
|
264
|
-
filterFn?: (rowNode: IRowNode) => boolean;
|
|
265
|
-
}): IRowNode[];
|
|
266
|
-
getAllRowNodes(config?: {
|
|
267
|
-
includeGroupRows?: boolean;
|
|
268
|
-
filterFn?: (rowNode: IRowNode) => boolean;
|
|
269
|
-
}): IRowNode[];
|
|
270
|
-
getGroupRowNodes(config?: {
|
|
271
|
-
filterFn?: (rowNode: IRowNode) => boolean;
|
|
272
|
-
}): IRowNode[];
|
|
273
|
-
getRowsInViewport(): IRowNode[];
|
|
274
|
-
selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
|
|
275
|
-
deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
|
|
276
|
-
selectNode(rowNode: IRowNode, clearSelection: boolean): void;
|
|
277
|
-
deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
|
|
278
|
-
selectCells(columnIds: string[], startNode: IRowNode, endNode: IRowNode, clearSelection?: boolean): void;
|
|
279
|
-
isRowNodeVisible(rowNode: IRowNode): boolean;
|
|
280
|
-
redrawBody(): void;
|
|
281
|
-
redrawRenderedRows(): void;
|
|
282
|
-
redrawHeader(): void;
|
|
283
|
-
redrawRow(rowNode: IRowNode): void;
|
|
284
|
-
redrawRows(rowNodes: IRowNode[]): void;
|
|
285
|
-
refreshCells(rowNodes: IRowNode[], columns: (string | Column)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
286
|
-
refreshColumns(columns: (string | Column)[], forceUpdate: boolean, suppressFlash?: boolean): void;
|
|
287
|
-
jumpToRow(rowNode: IRowNode): void;
|
|
288
|
-
jumpToColumn(columnId: string): void;
|
|
289
|
-
jumpToCell(columnId: string, rowNode: IRowNode): void;
|
|
290
|
-
/**
|
|
291
|
-
* This creates a clone of the current column definitions. If config.removeEmpty is true, will also remove empty column groups
|
|
292
|
-
*
|
|
293
|
-
*/
|
|
294
|
-
private mapColumnDefs;
|
|
295
|
-
private getColDefsForSpecialColumns;
|
|
296
|
-
getColDefsForFreeTextColumns(): ColDef<any, any>[];
|
|
297
|
-
setupColumnValueGetter({ col }: ColumnSetupInfo): void;
|
|
298
|
-
getActionRowButtonDefs(): AdaptableButton<ActionColumnContext<any>>[];
|
|
299
|
-
private getColDefsForActionRowColumns;
|
|
300
|
-
getColDefsForActionColumns(): ColDef<any, any>[];
|
|
301
|
-
updateColDefsForSpecialColumns(): void;
|
|
302
|
-
private getColDefsForCalculatedColumns;
|
|
303
|
-
private isRegularColDef;
|
|
304
|
-
private isGroupColDef;
|
|
305
|
-
getGroupAndColumnDefs: () => (ColDef | ColGroupDef)[];
|
|
306
|
-
getColDefs(): ColDef[];
|
|
307
|
-
getGroupedColDefs(): ColDef[];
|
|
308
|
-
getColumnDefsWithCorrectVisibility: () => ColDef[];
|
|
309
|
-
getFirstRowNode(): IRowNode | undefined;
|
|
310
|
-
getFirstDisplayedRowNode(): IRowNode;
|
|
311
|
-
destroy(config?: {
|
|
312
|
-
unmount: boolean;
|
|
313
|
-
destroyApi?: boolean;
|
|
314
|
-
}): void;
|
|
315
|
-
getDefaultIPPStyle(): IPPStyle;
|
|
316
|
-
getCurrentIPPStyle(): IPPStyle;
|
|
317
|
-
getAdaptableContainerElement(): HTMLElement | null;
|
|
318
|
-
getAgGridContainerElement(): HTMLElement | null;
|
|
319
|
-
private initInternalGridLogic;
|
|
320
|
-
private updateColumnFilterActiveState;
|
|
321
|
-
buildStandaloneColumnHeader(adaptableColumn: AdaptableColumn): AdaptableMenuItem[];
|
|
322
|
-
prepareGrid(): void;
|
|
323
|
-
setupColumns(): void;
|
|
324
|
-
revertGridOptionsPropertiesToUserValue<T extends keyof GridOptions>(propertyNames: T[]): void;
|
|
325
|
-
setGridOptionsProperty<T extends keyof GridOptions>(propertyName: T, propertyGetter: (userPropertyValue: GridOptions[T]) => GridOptions[T] | undefined): void;
|
|
326
|
-
setColDefProperty<T extends keyof ColDef>(col: Column, propertyName: T, propertyGetter: (userPropertyValue: ColDef[T]) => ColDef[T] | undefined): void;
|
|
327
|
-
private getUserColDefProperty;
|
|
328
|
-
setupColumnCellStyle({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
329
|
-
setupColumnCellClass({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
330
|
-
getExcelClassNameForCell(colId: string, primaryKeyValue: any, userDefinedCellClass?: string | string[]): string;
|
|
331
|
-
setupColumnCellEditor({ colId, col }: ColumnSetupInfo): void;
|
|
332
|
-
setupColumnCellRenderer({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
333
|
-
setupColumnTooltipValueGetter({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
334
|
-
setupColumnQuickFilerText({ col, abColumn }: ColumnSetupInfo): void;
|
|
335
|
-
setupAllowedAggFuncs({ col, abColumn }: ColumnSetupInfo): void;
|
|
336
|
-
triggerSetupColumnKeyCreator(colId: string): void;
|
|
337
|
-
setupColumnKeyCreator(columnSetupInfo: ColumnSetupInfo): void;
|
|
338
|
-
setupColumnCellDataType(columnSetupInfo: ColumnSetupInfo): void;
|
|
339
|
-
setupColumnHeader({ col, abColumn }: ColumnSetupInfo): boolean;
|
|
340
|
-
setupColumnFilter({ col, colDef }: ColumnSetupInfo): void;
|
|
341
|
-
setupColumnFloatingFilter({ col, colDef }: ColumnSetupInfo): void;
|
|
342
|
-
setupColumnValueFormatter({ col, abColumn }: ColumnSetupInfo): void;
|
|
343
|
-
setupColumnEditable({ col }: ColumnSetupInfo): void;
|
|
344
|
-
setupColumnValueSetter({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
345
|
-
setupColumnComparator({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
346
|
-
private applyCurrentTheme;
|
|
347
|
-
private applyFinalRendering;
|
|
348
|
-
isAgGridModulePresent(moduleName: ModuleNames): boolean;
|
|
349
|
-
private getAllAgGridRegisteredModules;
|
|
350
|
-
getAgGridRegisteredModules(): Module[];
|
|
351
|
-
private getAgGridRegisteredModuleNames;
|
|
352
|
-
private onRowDataChanged;
|
|
353
|
-
private onCellDataChanged;
|
|
354
|
-
private isUndoChange;
|
|
355
|
-
/**
|
|
356
|
-
* There are a few things that we need to do AFTER we edit a cell and it makes sense to put them in one place
|
|
357
|
-
*/
|
|
358
|
-
private performPostEditChecks;
|
|
359
|
-
private refreshCellsBasedOnCellDataChange;
|
|
360
|
-
private getFormatColumnExpressionStylesChanges;
|
|
361
|
-
private getFormatColumnPredicateStyleChanges;
|
|
362
|
-
private getStyledColumnComparisonChanges;
|
|
363
|
-
private checkChangedCellCurrentlySelected;
|
|
364
|
-
refreshColumnForRelativeRangeStyledColumns(cellDataChangedInfos: CellDataChangedInfo[]): void;
|
|
365
|
-
private getColumnSorts;
|
|
366
|
-
private onSortChanged;
|
|
367
|
-
expandAllRowGroups(): void;
|
|
368
|
-
closeAllRowGroups(): void;
|
|
369
|
-
expandRowGroupsForValues(columnValues: any[]): void;
|
|
370
|
-
getAgGridColumnForColumnId(columnId: string): Column;
|
|
371
|
-
getAgGridAllGridColumns(): Column<any>[];
|
|
372
|
-
setRowGroupColumns(columnIds: string[]): void;
|
|
373
|
-
clearRowGroupColumns(): void;
|
|
374
|
-
getExpandRowGroupsKeys(): any[];
|
|
375
|
-
getRowCount(): number;
|
|
376
|
-
getColumnCount(): number;
|
|
377
|
-
getVisibleRowCount(): number;
|
|
378
|
-
getVisibleColumnCount(): number;
|
|
379
|
-
selectColumns(columnIds: string[], config?: {
|
|
380
|
-
keepExistingSelection?: boolean;
|
|
381
|
-
}): void;
|
|
382
|
-
selectColumn(columnId: string, config?: {
|
|
383
|
-
keepExistingSelection?: boolean;
|
|
384
|
-
}): void;
|
|
385
|
-
selectAll(): void;
|
|
386
|
-
deselectAll(): void;
|
|
387
|
-
hideColumn(columnId: string): void;
|
|
388
|
-
showColumn(columnId: string): void;
|
|
389
|
-
autoSizeColumn(columnId: string): void;
|
|
390
|
-
autoSizeColumns(columnIds: string[]): void;
|
|
391
|
-
autoSizeAllColumns(): void;
|
|
392
|
-
setColumnSort(columnSorts: ColumnSort[]): void;
|
|
393
|
-
clearColumnSort(): void;
|
|
394
|
-
setGridData(dataSource: any[]): void;
|
|
395
|
-
getGridData(): any[];
|
|
396
|
-
getFilteredData(): any[];
|
|
397
|
-
updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
398
|
-
addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
399
|
-
addOrUpdateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<{
|
|
400
|
-
added: IRowNode[];
|
|
401
|
-
updated: IRowNode[];
|
|
402
|
-
}>;
|
|
403
|
-
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
404
|
-
getFirstGroupedColumn(): AdaptableColumn | undefined;
|
|
405
|
-
private checkColumnsDataTypeSet;
|
|
406
|
-
private updateColumnDataTypeIfRowDataIsEmpty;
|
|
407
|
-
private runAdaptableComparerFunction;
|
|
408
|
-
isGridSelectable(): boolean;
|
|
409
|
-
isGridRangeSelectable(): boolean;
|
|
410
|
-
isGridGroupable(): boolean;
|
|
411
|
-
isGridGroupingActive(): boolean;
|
|
412
|
-
isGridPivotable(): boolean;
|
|
413
|
-
isQuickFilterAvailable(): boolean;
|
|
414
|
-
setAgGridQuickSearch(searchText: string): void;
|
|
415
|
-
private hasFloatingFilterOnAtLeastOneColumn;
|
|
416
|
-
showQuickFilter(): void;
|
|
417
|
-
hideQuickFilter(): void;
|
|
418
|
-
getAgGridColumnType(columnId: string): string | string[];
|
|
419
|
-
getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): (valueA: any, valueB: any, nodeA?: IRowNode, nodeB?: IRowNode, isInverted?: boolean) => number | undefined;
|
|
420
|
-
getAgGridLightThemeName(): string;
|
|
421
|
-
getAgGridCurrentThemeName(): string;
|
|
422
|
-
applyAdaptableTheme(theme: AdaptableTheme | string): void;
|
|
423
|
-
private setupRowStyling;
|
|
424
|
-
private setupColumnHeaderAggregations;
|
|
425
|
-
private getGridOptionsApi;
|
|
426
|
-
canGenerateCharts(): boolean;
|
|
427
|
-
canDisplaySparklines(): boolean;
|
|
428
|
-
canExportToExcel(): boolean;
|
|
429
|
-
exportToExcel(reportData: ReportData, fileName: string): void;
|
|
430
|
-
private setExcelStylesForExport;
|
|
431
|
-
exportVisualDataToExcel(): void;
|
|
432
|
-
convertAdaptableStyleToCSS(style: AdaptableStyle): {
|
|
433
|
-
[cssProperty: string]: string;
|
|
434
|
-
};
|
|
435
|
-
convertCSSToExcelStyle(style: CSSStyleDeclaration): Partial<ExcelStyle>;
|
|
436
|
-
private processCellForExcelExport;
|
|
437
|
-
private processRowGroupForExcelExport;
|
|
438
|
-
private hasAutogeneratedPrimaryKey;
|
|
439
|
-
private addSyntheticPrimaryKey;
|
|
440
|
-
private addSyntheticPrimaryKeyIfMissing;
|
|
441
|
-
initLicenseService(): LicenseService;
|
|
442
|
-
showCharts(chartsDefinitions: ChartDefinition[], chartContainer?: HTMLElement): ChartRef[];
|
|
443
|
-
showChart(chartDefinition: ChartDefinition, container?: HTMLElement): ChartRef;
|
|
444
|
-
updateChart(chart: ChartDefinition): void;
|
|
445
|
-
getChartRef(chartId: string): ChartRef;
|
|
446
|
-
getChartModels(): import("@ag-grid-community/core").ChartModel[];
|
|
447
|
-
getAgGridRowModelType(): RowModelType;
|
|
448
|
-
private getActiveAdaptableAggFuncForCol;
|
|
449
|
-
private registerAdaptableAggFuncs;
|
|
450
|
-
/**
|
|
451
|
-
* When reading the state from the grid, we have to make sure 'avg' is not overriden with the 'avg' string.
|
|
452
|
-
*/
|
|
453
|
-
private mapAggregationColumnsFromGrid;
|
|
454
|
-
resetMinMaxCachedValueForColumn(column: AdaptableColumn): void;
|
|
455
|
-
getMinMaxCachedValueForColumn(column: AdaptableColumn, minMax: 'min' | 'max'): number;
|
|
456
|
-
persistColumnIndexBeforeGrouping(params: ColumnRowGroupChangedEvent): void;
|
|
457
|
-
/**
|
|
458
|
-
* Restores the order previous grouping order.
|
|
459
|
-
|
|
460
|
-
*/
|
|
461
|
-
restoreUnGroupColumnOrder({ newGroupColumns, columnOrder, }: {
|
|
462
|
-
newGroupColumns: string[];
|
|
463
|
-
columnOrder: string[];
|
|
464
|
-
}): string[];
|
|
465
14
|
}
|
|
466
15
|
export declare class AdaptableNoCodeWizard implements IAdaptableNoCodeWizard {
|
|
467
16
|
private init;
|
|
@@ -474,4 +23,3 @@ export declare class AdaptableNoCodeWizard implements IAdaptableNoCodeWizard {
|
|
|
474
23
|
constructor(adaptableOptions: AdaptableOptions, extraOptions?: AdaptableNoCodeWizardOptions, agGridOptons?: AgGridConfig);
|
|
475
24
|
render(container?: HTMLElement | null): void;
|
|
476
25
|
}
|
|
477
|
-
export {};
|