@adaptabletools/adaptable 13.0.0-canary.1 → 13.0.0-canary.11
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 +23 -1
- package/agGrid.js +23 -1
- package/base.css +1 -0
- package/bundle.cjs.js +169 -169
- package/index.css +1 -0
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +8 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +0 -2
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +118 -26
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +32 -0
- package/src/AdaptableOptions/FinsemblePluginOptions.js +2 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +5 -0
- package/src/Api/ConditionalStyleApi.d.ts +20 -42
- package/src/Api/ConfigApi.d.ts +1 -2
- package/src/Api/FinsembleApi.d.ts +10 -0
- package/src/Api/FinsembleApi.js +2 -0
- package/src/Api/FormatColumnApi.d.ts +47 -3
- package/src/Api/Implementation/ColumnApiImpl.js +5 -7
- package/src/Api/Implementation/DashboardApiImpl.js +2 -3
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +18 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +98 -15
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -0
- package/src/Api/Implementation/InternalApiImpl.js +4 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PluginsApiImpl.js +6 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -3
- package/src/Api/Implementation/QueryLanguageApiImpl.js +9 -18
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -2
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +8 -0
- package/src/Api/InternalApi.d.ts +1 -0
- package/src/Api/PluginsApi.d.ts +5 -0
- package/src/Api/QueryLanguageApi.d.ts +3 -7
- package/src/Api/ToolPanelApi.d.ts +10 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +10 -19
- package/src/PredefinedConfig/FormatColumnState.d.ts +19 -6
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
- package/src/Redux/Store/AdaptableStore.js +2 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +2 -0
- package/src/Strategy/ConditionalStyleModule.js +6 -0
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +12 -0
- package/src/Strategy/FormatColumnModule.d.ts +4 -9
- package/src/Strategy/FormatColumnModule.js +52 -2
- package/src/Strategy/Interface/IModule.d.ts +11 -10
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +3 -4
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -11
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -1
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/TypeExtensions.js +5 -0
- package/src/Utilities/ObjectFactory.js +0 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
- package/src/Utilities/Services/{LicenseService.d.ts → LicenseService/index.d.ts} +3 -3
- package/src/Utilities/Services/LicenseService/index.js +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.d.ts +1 -0
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +15 -0
- package/src/Utilities/Services/QueryLanguageService.d.ts +3 -3
- package/src/Utilities/Services/QueryLanguageService.js +88 -39
- package/src/Utilities/license/LicenseDetails.d.ts +1 -1
- package/src/Utilities/license/decode.d.ts +1 -0
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptablePopover/index.d.ts +2 -2
- package/src/View/AdaptableView.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/index.d.ts +1 -1
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -3
- package/src/View/ColorPicker.d.ts +1 -5
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.d.ts +2 -1
- package/src/View/Components/EntityRulesEditor/index.js +29 -19
- package/src/View/Components/NewScopeComponent.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +1 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +1 -1
- package/src/View/Components/RangesComponent.d.ts +6 -0
- package/src/View/Components/RangesComponent.js +54 -18
- package/src/View/Components/ScopeComponent.js +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +4 -0
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +5 -2
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.d.ts +2 -0
- package/src/View/ConditionalStyle/ConditionalStylePopupHeader.js +18 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +3 -3
- package/src/View/FormatColumn/MoveFormatColumn.d.ts +7 -0
- package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +8 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +29 -0
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +21 -3
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +0 -22
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +18 -4
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +15 -2
- package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/constants.js +4 -0
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/SettingsSection.d.ts +2 -2
- package/src/View/License/LicenseWatermark.d.ts +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +1 -1
- package/src/View/StateManagement/components/ClearButton.d.ts +1 -1
- package/src/View/StateManagement/components/LoadButton.d.ts +1 -1
- package/src/View/StatusBar/StatusBarPanel.d.ts +4 -4
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +3 -3
- package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
- package/src/View/Wizard/OnePageWizards.d.ts +3 -3
- package/src/View/Wizard/OnePageWizards.js +2 -2
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -0
- package/src/agGrid/ActionColumnRenderer.js +5 -5
- package/src/agGrid/Adaptable.d.ts +16 -2
- package/src/agGrid/Adaptable.js +167 -85
- package/src/agGrid/FilterWrapper.js +5 -5
- package/src/agGrid/FloatingFilterWrapper.js +3 -4
- package/src/agGrid/agGridHelper.js +12 -13
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -0
- package/src/agGrid/createAgStatusPanelComponent.js +3 -3
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +3 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +3 -3
- package/src/components/CheckBox/index.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Dialog/index.d.ts +4 -2
- package/src/components/Dialog/index.js +2 -2
- package/src/components/DropdownButton/index.d.ts +21 -4
- package/src/components/DropdownButton/index.js +5 -6
- package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +1 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +4 -2
- package/src/components/Loader/Loader.d.ts +2 -2
- package/src/components/Logo/index.d.ts +1 -1
- package/src/components/Modal/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +2 -2
- package/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
- package/src/components/SelectList.d.ts +1 -1
- package/src/components/SimpleButton/index.d.ts +4 -5
- package/src/components/SimpleButton/index.js +3 -2
- package/src/components/StylePreview.d.ts +1 -1
- package/src/components/Tag/Tag.d.ts +1 -1
- package/src/components/Textarea/index.d.ts +6 -4
- package/src/components/ToggleButton/index.d.ts +1 -1
- package/src/components/WindowModal/WindowModal.d.ts +1 -1
- package/src/components/icons/index.d.ts +3 -2
- package/src/components/icons/layout.d.ts +2 -1
- package/src/components/utils/useContainerScrollObserver/index.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +112 -64
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +6 -3
- package/src/renderReactRoot.d.ts +3 -0
- package/src/renderReactRoot.js +54 -0
- package/src/types.d.ts +4 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Utilities/Services/LicenseService.js +0 -1
|
@@ -36,7 +36,7 @@ function PlusMinusRuleWizardSection(props) {
|
|
|
36
36
|
useBooleanQuery: (React.createElement(React.Fragment, null,
|
|
37
37
|
"Use an BooleanQuery if ",
|
|
38
38
|
React.createElement("i", null, "Scope"),
|
|
39
|
-
" is '
|
|
39
|
+
" is 'All Columns' - so any data change may be evaluated in a complex BooleanExpression")),
|
|
40
40
|
useObservableQuery: null,
|
|
41
41
|
useAggregationQuery: null,
|
|
42
42
|
} }));
|
|
@@ -2,5 +2,5 @@ import * as React from 'react';
|
|
|
2
2
|
import { SimpleButtonProps } from '../../../components/SimpleButton';
|
|
3
3
|
interface ClearButtonProps extends SimpleButtonProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const ClearButton: React.FunctionComponent<ClearButtonProps
|
|
5
|
+
export declare const ClearButton: React.FunctionComponent<React.PropsWithChildren<ClearButtonProps>>;
|
|
6
6
|
export {};
|
|
@@ -3,5 +3,5 @@ import { SimpleButtonProps } from '../../../components/SimpleButton';
|
|
|
3
3
|
interface LoadButtonProps extends SimpleButtonProps {
|
|
4
4
|
onLoad: (json: any) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const LoadButton: React.FunctionComponent<LoadButtonProps
|
|
6
|
+
export declare const LoadButton: React.FunctionComponent<React.PropsWithChildren<LoadButtonProps>>;
|
|
7
7
|
export {};
|
|
@@ -15,7 +15,7 @@ import { FlexProps } from 'rebass';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface StatusBarPanelProps extends Omit<FlexProps, 'content'> {
|
|
17
17
|
icon?: string;
|
|
18
|
-
content?: React.ReactNode | React.FunctionComponent
|
|
18
|
+
content?: React.ReactNode | React.FunctionComponent<React.PropsWithChildren<unknown>>;
|
|
19
19
|
/**
|
|
20
20
|
* weather to trigger onAction when the wrapper is clicked
|
|
21
21
|
*/
|
|
@@ -24,14 +24,14 @@ export interface StatusBarPanelProps extends Omit<FlexProps, 'content'> {
|
|
|
24
24
|
* When specified this content will be rendered when the text
|
|
25
25
|
* is clicked.
|
|
26
26
|
*/
|
|
27
|
-
popover?: React.ReactNode | React.FunctionComponent
|
|
27
|
+
popover?: React.ReactNode | React.FunctionComponent<React.PropsWithChildren<unknown>>;
|
|
28
28
|
popoverMinWidth?: number;
|
|
29
29
|
/**
|
|
30
30
|
* Allow to render custom content
|
|
31
31
|
*/
|
|
32
|
-
view?: React.FunctionComponent
|
|
32
|
+
view?: React.FunctionComponent<React.PropsWithChildren<unknown>>;
|
|
33
33
|
onAction?: () => void;
|
|
34
|
-
extraActions?: React.FunctionComponent[];
|
|
34
|
+
extraActions?: React.FunctionComponent<React.PropsWithChildren<unknown>>[];
|
|
35
35
|
tooltip?: string;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
@@ -11,9 +11,9 @@ export declare type OnePageAdaptableWizardContextType<T> = {
|
|
|
11
11
|
api: AdaptableApi;
|
|
12
12
|
namedQuery: ExpressionEditorNamedQuery;
|
|
13
13
|
};
|
|
14
|
-
export declare const SummaryTag: React.FunctionComponent<TextProps
|
|
15
|
-
export declare const SummaryText: React.FunctionComponent<TextProps
|
|
16
|
-
export declare const FormDescriptionText: React.FunctionComponent<TextProps
|
|
14
|
+
export declare const SummaryTag: React.FunctionComponent<React.PropsWithChildren<TextProps>>;
|
|
15
|
+
export declare const SummaryText: React.FunctionComponent<React.PropsWithChildren<TextProps>>;
|
|
16
|
+
export declare const FormDescriptionText: React.FunctionComponent<React.PropsWithChildren<TextProps>>;
|
|
17
17
|
export declare const OnePageAdaptableWizardContext: React.Context<OnePageAdaptableWizardContextType<any>>;
|
|
18
18
|
export declare function useOnePageAdaptableWizardContext<ENTITY>(): OnePageAdaptableWizardContextType<ENTITY>;
|
|
19
19
|
export interface OnePageAdaptableWizardSection<ENTITY> {
|
|
@@ -13,11 +13,11 @@ const Tabs_1 = require("../../components/Tabs");
|
|
|
13
13
|
const NamedQueryContext_1 = require("../../components/ExpressionEditor/NamedQueryContext");
|
|
14
14
|
const OnePageWizards_1 = require("./OnePageWizards");
|
|
15
15
|
const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
|
|
16
|
-
const SummaryTag = (props) => React.createElement(rebass_1.Text, Object.assign({}, props));
|
|
16
|
+
const SummaryTag = (props) => (React.createElement(rebass_1.Text, Object.assign({}, props)));
|
|
17
17
|
exports.SummaryTag = SummaryTag;
|
|
18
18
|
const SummaryText = (props) => (React.createElement(rebass_1.Text, Object.assign({ fontSize: 2, mb: 3 }, props)));
|
|
19
19
|
exports.SummaryText = SummaryText;
|
|
20
|
-
const FormDescriptionText = (props) =>
|
|
20
|
+
const FormDescriptionText = (props) => React.createElement(rebass_1.Text, Object.assign({ fontSize: 2, mt: 1 }, props));
|
|
21
21
|
exports.FormDescriptionText = FormDescriptionText;
|
|
22
22
|
exports.OnePageAdaptableWizardContext = React.createContext({
|
|
23
23
|
data: null,
|
|
@@ -6,9 +6,9 @@ export declare type OnePageWizardContextType<T> = {
|
|
|
6
6
|
sections: (OnePageWizardSection<T> | '-')[];
|
|
7
7
|
setCurrentSection: (index: number) => void;
|
|
8
8
|
};
|
|
9
|
-
export declare const SummaryTag: React.FunctionComponent<TextProps
|
|
10
|
-
export declare const SummaryText: React.FunctionComponent<TextProps
|
|
11
|
-
export declare const FormDescriptionText: React.FunctionComponent<TextProps
|
|
9
|
+
export declare const SummaryTag: React.FunctionComponent<React.PropsWithChildren<TextProps>>;
|
|
10
|
+
export declare const SummaryText: React.FunctionComponent<React.PropsWithChildren<TextProps>>;
|
|
11
|
+
export declare const FormDescriptionText: React.FunctionComponent<React.PropsWithChildren<TextProps>>;
|
|
12
12
|
export declare const OnePageWizardContext: React.Context<OnePageWizardContextType<any>>;
|
|
13
13
|
export declare function useOnePageWizardContext<ENTITY>(): OnePageWizardContextType<ENTITY>;
|
|
14
14
|
export declare type OnePageWizardSection<ENTITY> = {
|
|
@@ -14,11 +14,11 @@ const icons_1 = require("../../components/icons");
|
|
|
14
14
|
const ResizeObserver_1 = require("../../components/ResizeObserver");
|
|
15
15
|
const NamedQueryContext_1 = require("../../components/ExpressionEditor/NamedQueryContext");
|
|
16
16
|
const useKeyboardNavigation_1 = require("./useKeyboardNavigation");
|
|
17
|
-
const SummaryTag = (props) => React.createElement(rebass_1.Text, Object.assign({}, props));
|
|
17
|
+
const SummaryTag = (props) => (React.createElement(rebass_1.Text, Object.assign({}, props)));
|
|
18
18
|
exports.SummaryTag = SummaryTag;
|
|
19
19
|
const SummaryText = (props) => (React.createElement(rebass_1.Text, Object.assign({ fontSize: 2, mb: 3 }, props)));
|
|
20
20
|
exports.SummaryText = SummaryText;
|
|
21
|
-
const FormDescriptionText = (props) =>
|
|
21
|
+
const FormDescriptionText = (props) => React.createElement(rebass_1.Text, Object.assign({ fontSize: 2, mt: 1 }, props));
|
|
22
22
|
exports.FormDescriptionText = FormDescriptionText;
|
|
23
23
|
exports.OnePageWizardContext = React.createContext({
|
|
24
24
|
data: null,
|
|
@@ -6,6 +6,7 @@ interface ActionColumnCellRendererParams extends ICellRendererParams {
|
|
|
6
6
|
export declare class ActionColumnRenderer implements ICellRendererComp {
|
|
7
7
|
private eGui;
|
|
8
8
|
private eventListener;
|
|
9
|
+
private unmountReactRoot?;
|
|
9
10
|
init(params: ActionColumnCellRendererParams): void;
|
|
10
11
|
render(): void;
|
|
11
12
|
getGui(): HTMLElement;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ActionColumnRenderer = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const SimpleButton_1 = tslib_1.__importDefault(require("../components/SimpleButton"));
|
|
6
|
-
const react_dom_1 = require("react-dom");
|
|
7
6
|
const React = tslib_1.__importStar(require("react"));
|
|
8
7
|
const uuid_1 = require("../components/utils/uuid");
|
|
9
8
|
class ActionColumnRenderer {
|
|
@@ -66,9 +65,9 @@ class ActionColumnRenderer {
|
|
|
66
65
|
})));
|
|
67
66
|
};
|
|
68
67
|
const eGui = this.eGui;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
68
|
+
const doRender = () => {
|
|
69
|
+
this.unmountReactRoot = adaptable.renderReactRoot(renderActionButtons(actionButtons, adaptable.api, buttonContext), eGui);
|
|
70
|
+
};
|
|
72
71
|
this.render = doRender;
|
|
73
72
|
doRender();
|
|
74
73
|
}
|
|
@@ -88,7 +87,8 @@ class ActionColumnRenderer {
|
|
|
88
87
|
}
|
|
89
88
|
// gets called when the cell is removed from the grid
|
|
90
89
|
destroy() {
|
|
91
|
-
|
|
90
|
+
var _a;
|
|
91
|
+
(_a = this.unmountReactRoot) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
92
92
|
// do cleanup, remove event listener from button
|
|
93
93
|
if (this.eGui) {
|
|
94
94
|
this.eGui.removeEventListener('click', this.eventListener);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartModel, ChartRef, ColDef, ColGroupDef, Column, ExcelStyle, GridOptions, Module, RowNode } from '@ag-grid-community/core';
|
|
1
|
+
import { ChartModel, ChartRef, ColDef, ColGroupDef, Column, ExcelStyle, GridOptions, Module, ModuleNames, RowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard } from '../AdaptableInterfaces/AdaptableNoCodeWizard';
|
|
3
3
|
import { IAdaptable } from '../AdaptableInterfaces/IAdaptable';
|
|
4
4
|
import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
|
|
@@ -35,8 +35,11 @@ import { CustomSort } from '../PredefinedConfig/CustomSortState';
|
|
|
35
35
|
import { ColumnValuesComparer } from '../AdaptableOptions/GeneralOptions';
|
|
36
36
|
import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
|
|
37
37
|
import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService';
|
|
38
|
+
import { RenderReactRootFn } from '../renderReactRoot';
|
|
38
39
|
declare type RuntimeConfig = {
|
|
39
40
|
waitForAgGrid?: boolean;
|
|
41
|
+
supressReact18RenderWarning?: boolean;
|
|
42
|
+
renderReactRoot?: RenderReactRootFn;
|
|
40
43
|
};
|
|
41
44
|
export declare class Adaptable implements IAdaptable {
|
|
42
45
|
api: AdaptableApi;
|
|
@@ -64,6 +67,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
64
67
|
private gridContainerElement;
|
|
65
68
|
private colDefPropertyCache;
|
|
66
69
|
private gridOptionsPropertyCache;
|
|
70
|
+
private columnMinMaxValuesCache;
|
|
67
71
|
private throttleFilterOnEditDataChange;
|
|
68
72
|
private throttleFilterOnTickingDataChange;
|
|
69
73
|
private agGridHelper;
|
|
@@ -75,6 +79,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
75
79
|
private currentColumnDefs?;
|
|
76
80
|
private rowListeners;
|
|
77
81
|
private isCheckedColumnDataType;
|
|
82
|
+
private unmountReactRoot?;
|
|
78
83
|
get isLive(): boolean;
|
|
79
84
|
_on: (eventName: string, callback: EmitterCallback) => (() => void);
|
|
80
85
|
_onIncludeFired: (eventName: string, callback: EmitterCallback) => (() => void);
|
|
@@ -83,6 +88,8 @@ export declare class Adaptable implements IAdaptable {
|
|
|
83
88
|
private _adaptableReady;
|
|
84
89
|
isDestroyed: boolean;
|
|
85
90
|
private listenerKeydown;
|
|
91
|
+
supressReact18RenderWarning: boolean;
|
|
92
|
+
renderReactRoot: RenderReactRootFn;
|
|
86
93
|
private listenerFirstDataRendered;
|
|
87
94
|
private listenerPivotModeChanged;
|
|
88
95
|
private listenerPivotChanged;
|
|
@@ -148,7 +155,11 @@ export declare class Adaptable implements IAdaptable {
|
|
|
148
155
|
updateColumnsIntoStore(): void;
|
|
149
156
|
private createAdaptableColumn;
|
|
150
157
|
private safeSetColDefs;
|
|
158
|
+
private getFormatColumnSpecialColumnStyle;
|
|
159
|
+
private getFormatColumnColumnStyle;
|
|
151
160
|
private getFormatColumnCellStyle;
|
|
161
|
+
private getFormatColumnCellClass;
|
|
162
|
+
private getFormatColumnRowClass;
|
|
152
163
|
private getActiveAlertWithHighlightCell;
|
|
153
164
|
private getActiveAlertWithHighlightRow;
|
|
154
165
|
private getAlertCellStyle;
|
|
@@ -283,7 +294,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
283
294
|
setupColumnComparator({ col, colId, abColumn }: ColumnSetupInfo): void;
|
|
284
295
|
private applyCurrentTheme;
|
|
285
296
|
private applyFinalRendering;
|
|
286
|
-
|
|
297
|
+
isAgGridModulePresent(moduleName: ModuleNames): boolean;
|
|
287
298
|
private getAgGridRegisteredModules;
|
|
288
299
|
private onRowDataChanged;
|
|
289
300
|
private onCellDataChanged;
|
|
@@ -352,6 +363,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
352
363
|
private setupColumnHeaderAggregations;
|
|
353
364
|
private getConditionalStyleRowClass;
|
|
354
365
|
private getConditionalStyleRowStyle;
|
|
366
|
+
private getFormatColumnRowStyle;
|
|
355
367
|
private getGridOptionsApi;
|
|
356
368
|
canGenerateCharts(): boolean;
|
|
357
369
|
canHaveSparklines(): boolean;
|
|
@@ -377,6 +389,8 @@ export declare class Adaptable implements IAdaptable {
|
|
|
377
389
|
* When reading the state from the grid, we have to make sure 'avg' is not overriden with the 'avg' string.
|
|
378
390
|
*/
|
|
379
391
|
private handleUpdateWeightedAvgFromGrid;
|
|
392
|
+
resetMinMaxCachedValueForColumn(column: AdaptableColumn): void;
|
|
393
|
+
getMinMaxCachedValueForColumn(column: AdaptableColumn, minMax: 'min' | 'max'): number;
|
|
380
394
|
}
|
|
381
395
|
export declare class AdaptableNoCodeWizard implements IAdaptableNoCodeWizard {
|
|
382
396
|
private init;
|