@adaptabletools/adaptable 24.0.0-canary.8 → 24.0.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/agGrid.d.ts +2 -3
- package/agGrid.js +2 -3
- package/aql.d.ts +29 -1
- package/aql.js +49 -1
- package/devtools.d.ts +55 -1
- package/index.css +0 -19
- package/index.d.ts +2 -3
- package/index.js +2 -3
- package/package.json +1 -1
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +24 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +97 -69
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +113 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +0 -2
- package/src/AdaptableOptions/ChartingOptions.d.ts +11 -5
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -2
- package/src/AdaptableOptions/CommentOptions.d.ts +12 -4
- package/src/AdaptableOptions/ContextMenuOptions.d.ts +31 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +0 -3
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -2
- package/src/AdaptableOptions/EditOptions.d.ts +18 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +23 -0
- package/src/AdaptableOptions/ExpressionOptions.d.ts +0 -3
- package/src/AdaptableOptions/Fdc3Options.d.ts +77 -3
- package/src/AdaptableOptions/FilterOptions.d.ts +13 -8
- package/src/AdaptableOptions/LayoutOptions.d.ts +16 -3
- package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -1
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +0 -2
- package/src/AdaptableOptions/RowFormOptions.d.ts +9 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +10 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +6 -2
- package/src/AdaptableState/AdaptableState.d.ts +98 -4
- package/src/AdaptableState/AlertState.d.ts +20 -21
- package/src/AdaptableState/ApplicationState.d.ts +5 -3
- package/src/AdaptableState/BaseState.d.ts +9 -2
- package/src/AdaptableState/CalculatedColumnState.d.ts +10 -8
- package/src/AdaptableState/ChartingState.d.ts +10 -5
- package/src/AdaptableState/CommentState.d.ts +10 -4
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +6 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +38 -1
- package/src/AdaptableState/Common/AdaptableFilterState.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +3 -1
- package/src/AdaptableState/Common/AdaptableForm.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFormat.d.ts +27 -1
- package/src/AdaptableState/Common/AdaptableIcon.d.ts +4 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +9 -1
- package/src/AdaptableState/Common/AdaptableQuery.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +6 -8
- package/src/AdaptableState/Common/AggregationColumns.d.ts +15 -6
- package/src/AdaptableState/Common/ButtonStyle.d.ts +3 -1
- package/src/AdaptableState/Common/CellDataChangedInfo.d.ts +6 -2
- package/src/AdaptableState/Common/CellHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/CellSummary.d.ts +33 -0
- package/src/AdaptableState/Common/ColumnFilter.d.ts +3 -1
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/ColumnScope.d.ts +32 -1
- package/src/AdaptableState/Common/ColumnSetupInfo.d.ts +17 -0
- package/src/AdaptableState/Common/ColumnSort.d.ts +3 -1
- package/src/AdaptableState/Common/CompactCalculatedColumnEditorInfo.d.ts +3 -0
- package/src/AdaptableState/Common/DataChangedScope.d.ts +3 -1
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +3 -1
- package/src/AdaptableState/Common/Entitlement.d.ts +4 -2
- package/src/AdaptableState/Common/Enums.d.ts +21 -0
- package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -1
- package/src/AdaptableState/Common/Fdc3Context.d.ts +9 -0
- package/src/AdaptableState/Common/Fdc3Intent.d.ts +6 -0
- package/src/AdaptableState/Common/GridFilter.d.ts +3 -1
- package/src/AdaptableState/Common/MenuItem.d.ts +9 -0
- package/src/AdaptableState/Common/RowHighlightInfo.d.ts +4 -2
- package/src/AdaptableState/Common/RowScope.d.ts +3 -1
- package/src/AdaptableState/Common/RowSummary.d.ts +14 -4
- package/src/AdaptableState/Common/RowsHighlightInfo.d.ts +5 -3
- package/src/AdaptableState/Common/Schedule.d.ts +10 -2
- package/src/AdaptableState/Common/SpecialColumnSettings.d.ts +3 -1
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +4 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +1 -1
- package/src/AdaptableState/Common/Types.d.ts +9 -0
- package/src/AdaptableState/CustomSortState.d.ts +8 -5
- package/src/AdaptableState/DashboardState.d.ts +14 -10
- package/src/AdaptableState/ExportState.d.ts +12 -4
- package/src/AdaptableState/FlashingCellState.d.ts +8 -5
- package/src/AdaptableState/FormatColumnState.d.ts +28 -8
- package/src/AdaptableState/FreeTextColumnState.d.ts +14 -8
- package/src/AdaptableState/IPushPullState.d.ts +39 -3
- package/src/AdaptableState/InitialState.d.ts +9 -9
- package/src/AdaptableState/InternalState.d.ts +183 -3
- package/src/AdaptableState/LayoutState.d.ts +64 -21
- package/src/AdaptableState/NamedQueryState.d.ts +16 -4
- package/src/AdaptableState/NoteState.d.ts +7 -3
- package/src/AdaptableState/OpenFinState.d.ts +12 -2
- package/src/AdaptableState/PlusMinusState.d.ts +8 -4
- package/src/AdaptableState/PopupState.d.ts +29 -1
- package/src/AdaptableState/QuickSearchState.d.ts +5 -3
- package/src/AdaptableState/Selection/GridCell.d.ts +5 -3
- package/src/AdaptableState/Selection/GridCellRange.d.ts +8 -7
- package/src/AdaptableState/Selection/SelectedCellInfo.d.ts +1 -1
- package/src/AdaptableState/ShortcutState.d.ts +7 -3
- package/src/AdaptableState/StatusBarState.d.ts +7 -6
- package/src/AdaptableState/StyledColumnState.d.ts +46 -14
- package/src/AdaptableState/TeamSharingState.d.ts +46 -2
- package/src/AdaptableState/ThemeState.d.ts +24 -2
- package/src/AdaptableState/ToolPanelState.d.ts +10 -5
- package/src/AdaptableState/UserInterfaceState.d.ts +2 -2
- package/src/AdaptableState/Uuid.d.ts +6 -0
- package/src/Api/ActionColumnApi.d.ts +3 -1
- package/src/Api/AdaptableApi.d.ts +54 -50
- package/src/Api/AlertApi.d.ts +20 -12
- package/src/Api/ApplicationApi.d.ts +6 -2
- package/src/Api/BulkUpdateApi.d.ts +2 -1
- package/src/Api/CalculatedColumnApi.d.ts +4 -1
- package/src/Api/CalendarApi.d.ts +10 -0
- package/src/Api/CellSummaryApi.d.ts +9 -3
- package/src/Api/ChartingApi.d.ts +22 -7
- package/src/Api/ColumnApi.d.ts +71 -4
- package/src/Api/ColumnFilterApi.d.ts +13 -3
- package/src/Api/ColumnMenuApi.d.ts +13 -2
- package/src/Api/ColumnScopeApi.d.ts +27 -1
- package/src/Api/CommentApi.d.ts +10 -7
- package/src/Api/ContextMenuApi.d.ts +11 -1
- package/src/Api/CustomSortApi.d.ts +6 -2
- package/src/Api/DashboardApi.d.ts +30 -9
- package/src/Api/DataChangeHistoryApi.d.ts +9 -3
- package/src/Api/DataImportApi.d.ts +1 -1
- package/src/Api/EntitlementApi.d.ts +6 -1
- package/src/Api/EventApi.d.ts +67 -19
- package/src/Api/Events/AdaptableReady.d.ts +6 -2
- package/src/Api/Events/AdaptableStateChanged.d.ts +9 -5
- package/src/Api/Events/AdaptableStateReloaded.d.ts +7 -3
- package/src/Api/Events/AlertFired.d.ts +8 -2
- package/src/Api/Events/BeforeAdaptableStateChange.d.ts +6 -2
- package/src/Api/Events/CalculatedColumnChanged.d.ts +7 -3
- package/src/Api/Events/CellChanged.d.ts +6 -2
- package/src/Api/Events/CellSelectionChanged.d.ts +6 -2
- package/src/Api/Events/ChartChanged.d.ts +16 -8
- package/src/Api/Events/CommentChanged.d.ts +8 -2
- package/src/Api/Events/CustomToolbarConfigured.d.ts +6 -2
- package/src/Api/Events/DashboardChanged.d.ts +27 -6
- package/src/Api/Events/DataImported.d.ts +8 -4
- package/src/Api/Events/DataSetSelected.d.ts +6 -2
- package/src/Api/Events/Fdc3MessageInfo.d.ts +14 -4
- package/src/Api/Events/FlashingCellDisplayed.d.ts +6 -2
- package/src/Api/Events/GridFilterApplied.d.ts +11 -3
- package/src/Api/Events/GridSorted.d.ts +6 -2
- package/src/Api/Events/LayoutChanged.d.ts +36 -5
- package/src/Api/Events/LiveDataChanged.d.ts +21 -5
- package/src/Api/Events/NoteChanged.d.ts +5 -1
- package/src/Api/Events/ReportScheduleRan.d.ts +7 -3
- package/src/Api/Events/RowChanged.d.ts +6 -2
- package/src/Api/Events/RowFormSubmitted.d.ts +28 -12
- package/src/Api/Events/RowSelectionChanged.d.ts +6 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +6 -2
- package/src/Api/Events/TeamSharingEntityChanged.d.ts +6 -2
- package/src/Api/Events/ThemeSelected.d.ts +6 -2
- package/src/Api/ExportApi.d.ts +59 -32
- package/src/Api/ExpressionApi.d.ts +24 -1
- package/src/Api/Fdc3Api.d.ts +16 -3
- package/src/Api/FlashingCellApi.d.ts +6 -1
- package/src/Api/FormatColumnApi.d.ts +18 -11
- package/src/Api/FreeTextColumnApi.d.ts +4 -2
- package/src/Api/GridApi.d.ts +92 -19
- package/src/Api/IPushPullApi.d.ts +19 -2
- package/src/Api/Internal/EventInternalApi.d.ts +2 -1
- package/src/Api/Internal/EventInternalApi.js +7 -0
- package/src/Api/InteropioPluginApi.d.ts +2 -1
- package/src/Api/LayoutApi.d.ts +29 -15
- package/src/Api/NamedQueryApi.d.ts +10 -6
- package/src/Api/NoteApi.d.ts +15 -11
- package/src/Api/OpenFinApi.d.ts +8 -2
- package/src/Api/OptionsApi.d.ts +43 -1
- package/src/Api/PluginsApi.d.ts +6 -1
- package/src/Api/PlusMinusApi.d.ts +2 -1
- package/src/Api/QuickSearchApi.d.ts +6 -1
- package/src/Api/RowFormApi.d.ts +8 -7
- package/src/Api/ShortcutApi.d.ts +3 -1
- package/src/Api/SmartEditApi.d.ts +4 -1
- package/src/Api/StateApi.d.ts +30 -2
- package/src/Api/StatusBarApi.d.ts +2 -0
- package/src/Api/StyledColumnApi.d.ts +23 -12
- package/src/Api/SystemStatusApi.d.ts +18 -6
- package/src/Api/TeamSharingApi.d.ts +8 -1
- package/src/Api/ThemeApi.d.ts +18 -9
- package/src/Api/ToolPanelApi.d.ts +12 -7
- package/src/Api/UserInterfaceApi.d.ts +10 -1
- package/src/Redux/Store/AdaptableStore.js +1 -1
- package/src/agGrid/Adaptable.d.ts +0 -12
- package/src/agGrid/Adaptable.js +0 -52
- package/src/agGrid/AdaptableFrameworkComponent.d.ts +12 -0
- package/src/agGrid/AdaptableLogger.d.ts +74 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +3 -0
- package/src/agGrid/index.d.ts +1 -6
- package/src/agGrid/index.js +1 -3
- package/src/aql/ExpressionEvaluation.d.ts +27 -0
- package/src/aql/types.d.ts +22 -0
- package/src/env.js +2 -2
- package/src/migration/legacyAdaptableQuery.d.ts +29 -4
- package/src/setupDevTools.js +223 -0
- package/src/types.d.ts +0 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +0 -99
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +0 -15
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +0 -19
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +0 -337
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +0 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +0 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +0 -162
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +0 -18
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +0 -12
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +0 -131
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +0 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +0 -80
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +0 -100
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +0 -11
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +0 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +0 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +0 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +0 -63
- package/src/View/AdaptableWizardView/Utilities/Utils.d.ts +0 -1
- package/src/View/AdaptableWizardView/Utilities/Utils.js +0 -21
- package/src/View/AdaptableWizardView/Utilities/helper.d.ts +0 -19
- package/src/View/AdaptableWizardView/Utilities/helper.js +0 -81
- package/src/View/AdaptableWizardView/Wizard.d.ts +0 -57
- package/src/View/AdaptableWizardView/Wizard.js +0 -98
- package/src/View/AdaptableWizardView/index.d.ts +0 -4
- package/src/View/AdaptableWizardView/index.js +0 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AgGridConfig } from '../AdaptableInterfaces/IAdaptable';
|
|
2
2
|
import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
|
|
3
3
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
4
|
-
import { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard } from '../AdaptableInterfaces/AdaptableNoCodeWizard';
|
|
5
4
|
export declare class Adaptable {
|
|
6
5
|
/**
|
|
7
6
|
* Initializer for Adaptable
|
|
@@ -12,14 +11,3 @@ export declare class Adaptable {
|
|
|
12
11
|
*/
|
|
13
12
|
static init(adaptableOptions: AdaptableOptions, agGridConfig: AgGridConfig): Promise<AdaptableApi>;
|
|
14
13
|
}
|
|
15
|
-
export declare class AdaptableNoCodeWizard implements IAdaptableNoCodeWizard {
|
|
16
|
-
private init;
|
|
17
|
-
private adaptableOptions;
|
|
18
|
-
private extraOptions;
|
|
19
|
-
private agGridModules;
|
|
20
|
-
/**
|
|
21
|
-
* @param adaptableOptions
|
|
22
|
-
*/
|
|
23
|
-
constructor(adaptableOptions: AdaptableOptions, extraOptions?: AdaptableNoCodeWizardOptions, agGridOptions?: AgGridConfig);
|
|
24
|
-
render(container?: HTMLElement | null): void;
|
|
25
|
-
}
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AgGridModulesDocsLink } from '../Utilities/Constants/DocumentationLinkConstants';
|
|
3
2
|
import { AdaptableLogger } from './AdaptableLogger';
|
|
4
3
|
import { AdaptableAgGrid } from './AdaptableAgGrid';
|
|
5
|
-
import { getDefaultAdaptableOptions } from '../AdaptableOptions/DefaultAdaptableOptions';
|
|
6
|
-
import { renderReactRoot as defaultRenderReactRoot } from '../renderReactRoot';
|
|
7
|
-
import AdaptableWizardView from '../View/AdaptableWizardView';
|
|
8
|
-
import { resolveContainerElement } from '../Utilities/resolveContainerElement';
|
|
9
4
|
export class Adaptable {
|
|
10
5
|
static init(adaptableOptions, agGridConfig) {
|
|
11
6
|
if (!agGridConfig?.modules?.length) {
|
|
@@ -14,50 +9,3 @@ export class Adaptable {
|
|
|
14
9
|
return AdaptableAgGrid._initInternal({ ...agGridConfig, adaptableOptions, variant: 'vanilla' });
|
|
15
10
|
}
|
|
16
11
|
}
|
|
17
|
-
export class AdaptableNoCodeWizard {
|
|
18
|
-
init;
|
|
19
|
-
adaptableOptions;
|
|
20
|
-
extraOptions;
|
|
21
|
-
agGridModules;
|
|
22
|
-
constructor(adaptableOptions, extraOptions = {}, agGridOptions) {
|
|
23
|
-
const defaultInit = async ({ gridOptions, adaptableOptions, agGridModules, }) => {
|
|
24
|
-
return await Adaptable.init(adaptableOptions, { gridOptions, modules: agGridModules });
|
|
25
|
-
};
|
|
26
|
-
this.adaptableOptions = adaptableOptions;
|
|
27
|
-
this.init = extraOptions.onInit || defaultInit;
|
|
28
|
-
this.extraOptions = extraOptions;
|
|
29
|
-
this.agGridModules = [];
|
|
30
|
-
this.render();
|
|
31
|
-
}
|
|
32
|
-
render(container) {
|
|
33
|
-
if (!container) {
|
|
34
|
-
const initContext = {
|
|
35
|
-
adaptableId: this.adaptableOptions?.adaptableId ?? '',
|
|
36
|
-
adaptableStateKey: this.adaptableOptions?.adaptableStateKey ?? '',
|
|
37
|
-
adaptableContext: this.adaptableOptions?.adaptableContext,
|
|
38
|
-
};
|
|
39
|
-
container = resolveContainerElement(this.adaptableOptions.containerOptions?.adaptableContainer, initContext);
|
|
40
|
-
}
|
|
41
|
-
if (!container) {
|
|
42
|
-
const defaultId = getDefaultAdaptableOptions().containerOptions.adaptableContainer || 'adaptable';
|
|
43
|
-
container = document.getElementById(defaultId);
|
|
44
|
-
}
|
|
45
|
-
if (!container) {
|
|
46
|
-
throw new Error('Cannot find container in which to render Adaptable No Code Wizard');
|
|
47
|
-
}
|
|
48
|
-
container.classList.add('adaptable--in-wizard');
|
|
49
|
-
const unmount = defaultRenderReactRoot(React.createElement(AdaptableWizardView, {
|
|
50
|
-
adaptableOptions: this.adaptableOptions,
|
|
51
|
-
...this.extraOptions,
|
|
52
|
-
onInit: (adaptableOptions, gridOptions) => {
|
|
53
|
-
container.classList.remove('adaptable--in-wizard');
|
|
54
|
-
unmount();
|
|
55
|
-
this.init({
|
|
56
|
-
adaptableOptions,
|
|
57
|
-
gridOptions: gridOptions,
|
|
58
|
-
agGridModules: [...this.agGridModules],
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
}), container);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -29,7 +29,13 @@ export type ReactFrameworkComponent = ({ adaptableApi, }: {
|
|
|
29
29
|
}) => ReactElement;
|
|
30
30
|
/** AdapTable extras passed on AG Grid `menuItemParams` for custom menu items. */
|
|
31
31
|
export interface AdaptableMenuItemParams<TMenuContext = unknown> {
|
|
32
|
+
/**
|
|
33
|
+
* AdapTable API for the grid that opened the menu.
|
|
34
|
+
*/
|
|
32
35
|
adaptableApi: AdaptableApi;
|
|
36
|
+
/**
|
|
37
|
+
* Column menu or context menu context: the column, the row, and the cell the menu was opened on.
|
|
38
|
+
*/
|
|
33
39
|
menuContext: TMenuContext;
|
|
34
40
|
}
|
|
35
41
|
/**
|
|
@@ -37,7 +43,13 @@ export interface AdaptableMenuItemParams<TMenuContext = unknown> {
|
|
|
37
43
|
* `menuItemParams` (see `AgGridMenuAdapter.mapCustomMenuItemToAgGridMenuDefinition`).
|
|
38
44
|
*/
|
|
39
45
|
export interface AdaptableReactMenuItemProps<TMenuContext = unknown> {
|
|
46
|
+
/**
|
|
47
|
+
* Menu item name AG Grid passes to the component.
|
|
48
|
+
*/
|
|
40
49
|
name: string;
|
|
50
|
+
/**
|
|
51
|
+
* AdapTable extras (`adaptableApi`, `menuContext`) plus anything supplied on the menu item.
|
|
52
|
+
*/
|
|
41
53
|
menuItemParams: AdaptableMenuItemParams<TMenuContext> & Record<string, unknown>;
|
|
42
54
|
}
|
|
43
55
|
/**
|
|
@@ -2,30 +2,103 @@ import { AdaptableMessageType } from '../AdaptableState/Common/AdaptableMessageT
|
|
|
2
2
|
export declare const errorOnce: (message: string) => void;
|
|
3
3
|
export declare const warnOnce: (message: string) => void;
|
|
4
4
|
/**
|
|
5
|
-
* AdapTable
|
|
5
|
+
* Logger for one AdapTable instance.
|
|
6
|
+
*
|
|
7
|
+
* `info`, `success`, `warn` and `error` write through the debug logger (namespaced `Adaptable:<adaptableId>`).
|
|
8
|
+
* `consoleInfo`, `consoleLog`, `consoleWarn` and `consoleError` write straight to the console, with the same prefix.
|
|
6
9
|
*/
|
|
7
10
|
export declare class AdaptableLogger {
|
|
8
11
|
private adaptableId;
|
|
12
|
+
/** Root debug logger, namespaced `Adaptable:<adaptableId>`. The public methods write through this. */
|
|
9
13
|
private debugger;
|
|
14
|
+
/** Debug logger used by {@link AdaptableLogger.info}. */
|
|
10
15
|
private infoLogger;
|
|
16
|
+
/** Debug logger used by {@link AdaptableLogger.success}. */
|
|
11
17
|
private successLogger;
|
|
18
|
+
/** Debug logger used by {@link AdaptableLogger.warn}. */
|
|
12
19
|
private warnLogger;
|
|
20
|
+
/** Debug logger used by {@link AdaptableLogger.error}. */
|
|
13
21
|
private errorLogger;
|
|
22
|
+
/** Debug logger used by {@link AdaptableLogger.beginPerf}. */
|
|
14
23
|
private perfLogger;
|
|
15
24
|
static consoleErrorBase(message: string, ...optionalParams: any[]): void;
|
|
16
25
|
static consoleWarnBase(message: string, ...optionalParams: any[]): void;
|
|
17
26
|
static consoleLogBase(message: string, ...optionalParams: any[]): void;
|
|
27
|
+
/**
|
|
28
|
+
* @param adaptableId Id of the AdapTable instance, used as the log prefix
|
|
29
|
+
*/
|
|
18
30
|
constructor(adaptableId: string);
|
|
31
|
+
/**
|
|
32
|
+
* Starts a performance span. Call `end` on the returned object to log the elapsed milliseconds.
|
|
33
|
+
*
|
|
34
|
+
* @param sectionName Label included in the begin and end lines
|
|
35
|
+
* @returns An object whose `end` logs the duration
|
|
36
|
+
*/
|
|
19
37
|
beginPerf(sectionName: string): {
|
|
20
38
|
end: (additionalComment?: string) => void;
|
|
21
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Writes an informational message to the `info` debug logger.
|
|
42
|
+
*
|
|
43
|
+
* @param message Message text
|
|
44
|
+
* @param optionalParams Extra values appended to the log
|
|
45
|
+
*/
|
|
22
46
|
info(message: string, ...optionalParams: any[]): void;
|
|
47
|
+
/**
|
|
48
|
+
* Writes a success message to the `success` debug logger.
|
|
49
|
+
*
|
|
50
|
+
* @param message Message text
|
|
51
|
+
* @param optionalParams Extra values appended to the log
|
|
52
|
+
*/
|
|
23
53
|
success(message: string, ...optionalParams: any[]): void;
|
|
54
|
+
/**
|
|
55
|
+
* Writes a warning to the `warn` debug logger.
|
|
56
|
+
*
|
|
57
|
+
* @param message Message text
|
|
58
|
+
* @param optionalParams Extra values appended to the log
|
|
59
|
+
*/
|
|
24
60
|
warn(message: string, ...optionalParams: any[]): void;
|
|
61
|
+
/**
|
|
62
|
+
* Writes an error to the `error` debug logger.
|
|
63
|
+
*
|
|
64
|
+
* @param message Message text
|
|
65
|
+
* @param optionalParams Extra values appended to the log
|
|
66
|
+
*/
|
|
25
67
|
error(message: string, ...optionalParams: any[]): void;
|
|
68
|
+
/**
|
|
69
|
+
* Writes to the console at the level of `messageType` (`Info`, `Success`, `Warning` or `Error`), prefixed with the AdapTable id.
|
|
70
|
+
*
|
|
71
|
+
* @param message Message text
|
|
72
|
+
* @param messageType Which console method to use
|
|
73
|
+
* @param optionalParams Extra values appended to the log
|
|
74
|
+
*/
|
|
26
75
|
consoleLogByMessageType(message: string, messageType: AdaptableMessageType, ...optionalParams: any[]): void;
|
|
76
|
+
/**
|
|
77
|
+
* Writes to `console.info`, prefixed with the AdapTable id.
|
|
78
|
+
*
|
|
79
|
+
* @param message Message text
|
|
80
|
+
* @param optionalParams Extra values appended to the log
|
|
81
|
+
*/
|
|
27
82
|
consoleInfo(message: string, ...optionalParams: any[]): void;
|
|
83
|
+
/**
|
|
84
|
+
* Writes to `console.log`, prefixed with the AdapTable id.
|
|
85
|
+
*
|
|
86
|
+
* @param message Message text
|
|
87
|
+
* @param optionalParams Extra values appended to the log
|
|
88
|
+
*/
|
|
28
89
|
consoleLog(message: string, ...optionalParams: any[]): void;
|
|
90
|
+
/**
|
|
91
|
+
* Writes to `console.warn`, prefixed with the AdapTable id.
|
|
92
|
+
*
|
|
93
|
+
* @param message Message text
|
|
94
|
+
* @param optionalParams Extra values appended to the log
|
|
95
|
+
*/
|
|
29
96
|
consoleWarn(message: string, ...optionalParams: any[]): void;
|
|
97
|
+
/**
|
|
98
|
+
* Writes to `console.error`, prefixed with the AdapTable id.
|
|
99
|
+
*
|
|
100
|
+
* @param message Message text
|
|
101
|
+
* @param optionalParams Extra values appended to the log
|
|
102
|
+
*/
|
|
30
103
|
consoleError(message: string, ...optionalParams: any[]): void;
|
|
31
104
|
}
|
|
@@ -5,6 +5,9 @@ import { IAdaptable } from '../../../AdaptableInterfaces/IAdaptable';
|
|
|
5
5
|
* Params used by the AdapTable Date Editor
|
|
6
6
|
*/
|
|
7
7
|
export interface AdaptableDateEditorParams extends ICellEditorParams {
|
|
8
|
+
/**
|
|
9
|
+
* AG Grid callback. The editor calls this with the selected date, or `null` when the date is cleared.
|
|
10
|
+
*/
|
|
8
11
|
onValueChange?: (value: any) => void;
|
|
9
12
|
}
|
|
10
13
|
export declare const AdaptableReactDateEditor: React.ForwardRefExoticComponent<AdaptableDateEditorParams & React.RefAttributes<unknown>>;
|
|
@@ -15,6 +15,9 @@ export interface AdaptableNumberCellEditorParams extends ICellEditorParams {
|
|
|
15
15
|
* @defaultValue '' (empty string)
|
|
16
16
|
*/
|
|
17
17
|
emptyValue: string;
|
|
18
|
+
/**
|
|
19
|
+
* AG Grid callback. The editor calls this with the value as the user edits, so the grid can commit it.
|
|
20
|
+
*/
|
|
18
21
|
onValueChange: (value: any) => void;
|
|
19
22
|
}
|
|
20
23
|
export declare const AdaptableReactNumberEditor: React.ForwardRefExoticComponent<AdaptableNumberCellEditorParams & React.RefAttributes<unknown>>;
|
package/src/agGrid/index.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import { Adaptable
|
|
1
|
+
import { Adaptable } from './Adaptable';
|
|
2
2
|
import { AdaptableLogger as ABLogger } from './AdaptableLogger';
|
|
3
|
-
export { default as AdaptableWizardView } from '../View/AdaptableWizardView';
|
|
4
3
|
export default Adaptable;
|
|
5
|
-
/**
|
|
6
|
-
* AdapTable's No Code Wizard
|
|
7
|
-
*/
|
|
8
|
-
export declare const AdaptableNoCodeWizard: typeof ABWizard;
|
|
9
4
|
/**
|
|
10
5
|
* AdapTable's Logger
|
|
11
6
|
*/
|
package/src/agGrid/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Adaptable
|
|
1
|
+
import { Adaptable } from './Adaptable';
|
|
2
2
|
import { AdaptableLogger as ABLogger } from './AdaptableLogger';
|
|
3
|
-
export { default as AdaptableWizardView } from '../View/AdaptableWizardView';
|
|
4
3
|
export default Adaptable;
|
|
5
|
-
export const AdaptableNoCodeWizard = ABWizard;
|
|
6
4
|
export const AdaptableLogger = ABLogger;
|
|
@@ -9,12 +9,27 @@ import type { CellDataChangedInfo } from '../AdaptableState/Common/CellDataChang
|
|
|
9
9
|
* throws — check `success` and read `value` / `errorMessage` accordingly.
|
|
10
10
|
*/
|
|
11
11
|
export type ExpressionEvaluationResult<T> = {
|
|
12
|
+
/**
|
|
13
|
+
* The expression evaluated. Read `value`.
|
|
14
|
+
*/
|
|
12
15
|
success: true;
|
|
16
|
+
/**
|
|
17
|
+
* Result of the expression.
|
|
18
|
+
*/
|
|
13
19
|
value: T;
|
|
14
20
|
} | {
|
|
21
|
+
/**
|
|
22
|
+
* The expression did not evaluate. Read `errorMessage`. The API does not throw for these failures.
|
|
23
|
+
*/
|
|
15
24
|
success: false;
|
|
25
|
+
/**
|
|
26
|
+
* Why evaluation failed: a syntax error, an unknown column, a missing row, or a function that is not available.
|
|
27
|
+
*/
|
|
16
28
|
errorMessage: string;
|
|
17
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Options shared by the `expressionApi` evaluate and filter calls.
|
|
32
|
+
*/
|
|
18
33
|
export interface EvaluateExpressionOptions {
|
|
19
34
|
/**
|
|
20
35
|
* Emulate a specific feature module's filtered function pool (e.g. "would
|
|
@@ -32,7 +47,13 @@ export interface EvaluateExpressionOptions {
|
|
|
32
47
|
* When a `columnId` is both a grid column and listed here, this override wins.
|
|
33
48
|
*/
|
|
34
49
|
export interface ExternalDataColumn {
|
|
50
|
+
/**
|
|
51
|
+
* Key on the plain-object row this metadata describes. Matches a grid `colId` when the key is also a column.
|
|
52
|
+
*/
|
|
35
53
|
columnId: string;
|
|
54
|
+
/**
|
|
55
|
+
* How to treat the value. When this key is also a grid column, this type wins over the column's data type.
|
|
56
|
+
*/
|
|
36
57
|
dataType?: 'number' | 'text' | 'date' | 'boolean' | 'array';
|
|
37
58
|
}
|
|
38
59
|
/**
|
|
@@ -40,7 +61,13 @@ export interface ExternalDataColumn {
|
|
|
40
61
|
* Does not mutate grid (or data-set) data; other rows are unaffected.
|
|
41
62
|
*/
|
|
42
63
|
export interface CellValueOverride {
|
|
64
|
+
/**
|
|
65
|
+
* Column whose value is replaced for this evaluation only.
|
|
66
|
+
*/
|
|
43
67
|
columnId: string;
|
|
68
|
+
/**
|
|
69
|
+
* Value used in place of the cell's current value. The grid data is not changed.
|
|
70
|
+
*/
|
|
44
71
|
value: unknown;
|
|
45
72
|
}
|
|
46
73
|
/**
|
package/src/aql/types.d.ts
CHANGED
|
@@ -24,10 +24,22 @@ context: AdaptableExpressionContext) => any;
|
|
|
24
24
|
* Defines how an AdaptableQL Function is described in Expression Editor
|
|
25
25
|
*/
|
|
26
26
|
export type ExpressionFunctionDocBlock = {
|
|
27
|
+
/**
|
|
28
|
+
* A code sample, shown as code in the Expression Editor.
|
|
29
|
+
*/
|
|
27
30
|
type: 'code';
|
|
31
|
+
/**
|
|
32
|
+
* The sample, for example `[price] > 100`.
|
|
33
|
+
*/
|
|
28
34
|
content: string;
|
|
29
35
|
} | {
|
|
36
|
+
/**
|
|
37
|
+
* A prose description, shown as a paragraph in the Expression Editor.
|
|
38
|
+
*/
|
|
30
39
|
type: 'paragraph';
|
|
40
|
+
/**
|
|
41
|
+
* The description text.
|
|
42
|
+
*/
|
|
31
43
|
content: string;
|
|
32
44
|
};
|
|
33
45
|
/**
|
|
@@ -289,7 +301,17 @@ export type AdaptableAggregationFunctionMap<T extends string = string> = Record<
|
|
|
289
301
|
* (not Layout / Cell Summary — those are aggregation-only).
|
|
290
302
|
*/
|
|
291
303
|
export type AdaptableCustomExpressionFunction = Omit<AqlExpressionFunction<AdaptableExpressionContext> & AdaptableExpressionFunctionEnhancement, 'isAvailable' | 'returnType'> & {
|
|
304
|
+
/**
|
|
305
|
+
* Type the function returns. `boolean` makes it a predicate that can appear in the Query Builder and Column Filter when it takes one or two operands.
|
|
306
|
+
*
|
|
307
|
+
* Use an {@link ExpressionReturnType} value. `string & {}` keeps autocomplete while still accepting a widened string.
|
|
308
|
+
*/
|
|
292
309
|
returnType: ExpressionReturnType | (string & {});
|
|
310
|
+
/**
|
|
311
|
+
* Modules that may call this function, or a function of the availability context that returns whether it may be called.
|
|
312
|
+
*
|
|
313
|
+
* Omit it to allow the function in every standard-expression module. Layout and Cell Summary are aggregated-expression modules and are not in this list.
|
|
314
|
+
*/
|
|
293
315
|
isAvailable?: AdaptableStandardExpressionModule[] | ((context: ExpressionFunctionAvailabilityContext) => boolean);
|
|
294
316
|
};
|
|
295
317
|
/**
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
NEXT_PUBLIC_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:
|
|
4
|
-
VERSION: "24.0.0
|
|
3
|
+
PUBLISH_TIMESTAMP: 1793356932854 || Date.now(),
|
|
4
|
+
VERSION: "24.0.0" || '--current-version--',
|
|
5
5
|
};
|
|
@@ -8,16 +8,41 @@ import type { ExpressionKind } from '../AdaptableState/Common/AdaptableQuery';
|
|
|
8
8
|
* `Report.Query` are renamed to `Expression`.
|
|
9
9
|
*/
|
|
10
10
|
export interface LegacyAdaptableQuery {
|
|
11
|
+
/**
|
|
12
|
+
* Per-row expression text. Current state stores this string directly on `Rule` or `Expression`.
|
|
13
|
+
*/
|
|
11
14
|
Expression?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Aggregated expression text (a brace call). Current state stores the string directly; the kind is inferred.
|
|
17
|
+
*/
|
|
12
18
|
AggregatedExpression?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Observable expression text. Current state stores the string directly and treats it as a scalar expression.
|
|
21
|
+
*/
|
|
13
22
|
ObservableExpression?: string;
|
|
14
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Older name for {@link LegacyAdaptableQuery.Expression}.
|
|
25
|
+
*
|
|
26
|
+
* @deprecated pre-v24 spelling of `Expression`
|
|
27
|
+
*/
|
|
15
28
|
BooleanExpression?: string;
|
|
16
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Older name for {@link LegacyAdaptableQuery.Expression}.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated pre-v24 spelling of `Expression`
|
|
33
|
+
*/
|
|
17
34
|
ScalarExpression?: string;
|
|
18
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Older name for {@link LegacyAdaptableQuery.AggregatedExpression}.
|
|
37
|
+
*
|
|
38
|
+
* @deprecated pre-v24 spelling of `AggregatedExpression`
|
|
39
|
+
*/
|
|
19
40
|
AggregatedBooleanExpression?: string;
|
|
20
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Older name for {@link LegacyAdaptableQuery.AggregatedExpression}.
|
|
43
|
+
*
|
|
44
|
+
* @deprecated pre-v24 spelling of `AggregatedExpression`
|
|
45
|
+
*/
|
|
21
46
|
AggregatedScalarExpression?: string;
|
|
22
47
|
}
|
|
23
48
|
/** Either shape a `Rule` / `Query` may have in state being migrated. */
|