@adaptabletools/adaptable 11.0.0-canary.3 → 11.0.0-canary.7
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 +5 -4
- package/agGrid.js +9 -7
- package/base.css +135 -69
- package/bundle.cjs.js +104 -99
- package/index.css +136 -69
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +14 -7
- package/src/AdaptableOptions/{QueryLanguageOptions.d.ts → AdaptableQLOptions.d.ts} +34 -9
- package/src/AdaptableOptions/{QueryLanguageOptions.js → AdaptableQLOptions.js} +0 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
- package/src/AdaptableOptions/AlertOptions.js +2 -0
- package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -7
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
- package/src/AdaptableOptions/SearchOptions.d.ts +0 -9
- package/src/AdaptableOptions/StateOptions.d.ts +9 -8
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
- package/src/Api/AdaptableApi.d.ts +6 -0
- package/src/Api/AlertApi.d.ts +2 -3
- package/src/Api/CalculatedColumnApi.d.ts +2 -9
- package/src/Api/ColumnApi.d.ts +0 -4
- package/src/Api/EventApi.d.ts +8 -3
- package/src/Api/Events/GridDataChanged.d.ts +4 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +0 -12
- package/src/Api/GridApi.d.ts +13 -2
- package/src/Api/IPushPullApi.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
- package/src/Api/Implementation/AlertApiImpl.js +19 -10
- package/src/Api/Implementation/ApiBase.d.ts +5 -2
- package/src/Api/Implementation/ApiBase.js +8 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -4
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnApiImpl.js +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
- package/src/Api/Implementation/GridApiImpl.js +27 -4
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -3
- package/src/Api/Implementation/InternalApiImpl.js +7 -6
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +11 -0
- package/src/Api/Implementation/QueryApiImpl.js +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -1
- package/src/Api/Implementation/QueryLanguageApiImpl.js +20 -8
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
- package/src/Api/InternalApi.d.ts +2 -3
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/OpenFinApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +29 -0
- package/src/Api/QueryApi.d.ts +2 -2
- package/src/Api/QueryLanguageApi.d.ts +23 -10
- package/src/Api/SettingsPanelApi.d.ts +16 -0
- package/src/Api/SettingsPanelApi.js +2 -0
- package/src/Api/UserInterfaceApi.d.ts +5 -2
- package/src/PredefinedConfig/AlertState.d.ts +8 -6
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +8 -4
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -5
- package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -6
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -2
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
- package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +3 -1
- package/src/PredefinedConfig/Common/Types.js +1 -0
- package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +3 -1
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
- package/src/PredefinedConfig/Selection/GridCellRange.d.ts +3 -1
- package/src/PredefinedConfig/SystemState.d.ts +2 -1
- package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
- package/src/Redux/ActionsReducers/GridRedux.js +3 -1
- package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
- package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
- package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +34 -8
- package/src/Strategy/AlertModule.js +16 -6
- package/src/Strategy/CalculatedColumnModule.js +4 -4
- package/src/Strategy/ChartingModule.d.ts +3 -3
- package/src/Strategy/ChartingModule.js +2 -2
- package/src/Strategy/ConditionalStyleModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
- package/src/Strategy/FreeTextColumnModule.js +11 -0
- package/src/Strategy/LayoutModule.js +1 -6
- package/src/Strategy/{SetingsPanelModule.d.ts → SettingsPanelModule.d.ts} +0 -0
- package/src/Strategy/{SetingsPanelModule.js → SettingsPanelModule.js} +0 -0
- package/src/Strategy/ToolPanelModule.js +5 -3
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +1 -1
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +1 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +2 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +23 -17
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
- package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +24 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +339 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +2 -2
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +8 -8
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +35 -0
- package/src/Utilities/ExpressionFunctions/groupingMap.js +105 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -2
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +33 -0
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +154 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -1
- package/src/Utilities/Helpers/CalendarHelper.js +220 -55
- package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
- package/src/Utilities/ObjectFactory.js +1 -0
- package/src/Utilities/Services/AlertService.js +8 -4
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +7 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +143 -18
- package/src/Utilities/Services/DataService.js +6 -1
- package/src/Utilities/Services/Interface/IAdaptableService.d.ts +1 -1
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +6 -3
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +9 -3
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +11 -4
- package/src/Utilities/Services/QueryLanguageService.js +92 -28
- package/src/Utilities/Services/ReportService.js +6 -2
- package/src/Utilities/Services/TeamSharingService.js +5 -3
- package/src/View/AdaptablePopover/index.js +6 -1
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
- package/src/View/AdaptableWizardView/helper.js +5 -3
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertWizard.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +2 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +43 -12
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +11 -12
- package/src/View/Components/FilterForm/FilterForm.js +0 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +6 -5
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -88
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
- package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
- package/src/View/Components/ScopeComponent.js +4 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +5 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +7 -0
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
- package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
- package/src/View/Dashboard/Dashboard.js +2 -3
- package/src/View/Dashboard/DashboardPopup.js +3 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -4
- package/src/View/Filter/FilterViewPanel.js +1 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +6 -2
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/Query/ExpandedQueryPopup.js +9 -2
- package/src/View/Query/QueryViewPanel.js +3 -1
- package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -2
- package/src/View/UIHelper.js +4 -1
- package/src/View/Wizard/AdaptableWizard.js +12 -3
- package/src/View/Wizard/OnePageAdaptableWizard.js +5 -1
- package/src/agGrid/Adaptable.d.ts +3 -3
- package/src/agGrid/Adaptable.js +117 -77
- package/src/agGrid/agGridHelper.js +4 -9
- package/src/agGrid/agGridMenuHelper.js +4 -8
- package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +4 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +4 -4
- package/src/components/ApplicationIcon.d.ts +1 -0
- package/src/components/ApplicationIcon.js +2 -2
- package/src/components/Dashboard/Dashboard.js +4 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Dropdown/index.js +8 -1
- package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +5 -2
- package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -2
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.d.ts +2 -0
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +45 -0
- package/src/components/ExpressionEditor/editorButtonsReactive.js +8 -13
- package/src/components/ExpressionEditor/index.d.ts +2 -1
- package/src/components/ExpressionEditor/index.js +20 -6
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/Logo/index.js +8 -7
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/SizedContainer/index.js +7 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/WindowModal/WindowModal.js +4 -1
- package/src/metamodel/adaptable.metamodel.d.ts +114 -59
- package/src/metamodel/adaptable.metamodel.js +373 -242
- package/src/types.d.ts +9 -6
- package/themes/dark.css +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
import { ExpressionFunctionMap } from '../parser/src/types';
|
|
2
|
-
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
2
|
+
import { AdaptableModule, AdaptableQLModules } from '../PredefinedConfig/Common/Types';
|
|
3
|
+
export interface AdaptableQLOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Perform case-sensitive text comparisons in all search and filter operations: QuickSearch, Filters, Query, Predicates
|
|
6
|
+
*
|
|
7
|
+
* @defaultValue false
|
|
8
|
+
* @gridInfoItem
|
|
9
|
+
*/
|
|
10
|
+
caseSensitiveTextComparisons?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Which searching and filtering options should take place on server
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue undefined
|
|
15
|
+
* @gridInfoItem
|
|
16
|
+
*/
|
|
17
|
+
externallyEvaluatedModules?: AdaptableQLModules;
|
|
18
|
+
/**
|
|
19
|
+
* Options for managing Expressions in AdapTableQL
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
expressionOptions?: ExpressionOptions;
|
|
23
|
+
}
|
|
3
24
|
/**
|
|
4
25
|
* Options for managing Expressions using AdapTableQL
|
|
5
26
|
*/
|
|
6
|
-
export interface
|
|
27
|
+
export interface ExpressionOptions {
|
|
7
28
|
/**
|
|
8
29
|
* Boolean Expression Functions available in AdapTableQL
|
|
9
30
|
*
|
|
10
31
|
* @defaultValue null (sets all)
|
|
11
32
|
* @gridInfoItem
|
|
12
|
-
* @see https://docs.adaptabletools.com/docs/adaptableql/query#boolean-functions
|
|
13
33
|
*/
|
|
14
34
|
defaultBooleanFunctions?: ExpressionFunctionMap;
|
|
15
35
|
/**
|
|
@@ -17,7 +37,6 @@ export interface QueryLanguageOptions {
|
|
|
17
37
|
*
|
|
18
38
|
* @defaultValue null (sets all)
|
|
19
39
|
* @gridInfoItem
|
|
20
|
-
* @see https://docs.adaptabletools.com/docs/adaptableql/query#scalar-functions
|
|
21
40
|
*/
|
|
22
41
|
defaultScalarFunctions?: ExpressionFunctionMap;
|
|
23
42
|
/**
|
|
@@ -25,17 +44,22 @@ export interface QueryLanguageOptions {
|
|
|
25
44
|
*
|
|
26
45
|
* @defaultValue null (sets all)
|
|
27
46
|
* @gridInfoItem
|
|
28
|
-
* @see https://docs.adaptabletools.com/docs/adaptableql/query#observable-functions
|
|
29
47
|
*/
|
|
30
48
|
defaultObservableFunctions?: ExpressionFunctionMap;
|
|
31
49
|
/**
|
|
32
|
-
*
|
|
50
|
+
* Aggregated Boolean Expression Functions available in AdapTableQL
|
|
51
|
+
*
|
|
52
|
+
* @defaultValue null (sets all)
|
|
53
|
+
* @gridInfoItem
|
|
54
|
+
*/
|
|
55
|
+
defaultAggregatedBooleanFunctions?: ExpressionFunctionMap;
|
|
56
|
+
/**
|
|
57
|
+
* Aggregated Scalar Expression Functions available in AdapTableQL
|
|
33
58
|
*
|
|
34
59
|
* @defaultValue null (sets all)
|
|
35
60
|
* @gridInfoItem
|
|
36
|
-
* @see https://docs.adaptabletools.com/docs/adaptableql/query#aggregation-functions
|
|
37
61
|
*/
|
|
38
|
-
|
|
62
|
+
defaultAggregatedScalarFunctions?: ExpressionFunctionMap;
|
|
39
63
|
/**
|
|
40
64
|
* Module specific ExpressionFunctions; if not defined, it falls back to the defined default values
|
|
41
65
|
*
|
|
@@ -74,5 +98,6 @@ export interface ModuleExpressionFunctions {
|
|
|
74
98
|
booleanFunctions?: ExpressionFunctionMap;
|
|
75
99
|
scalarFunctions?: ExpressionFunctionMap;
|
|
76
100
|
observableFunctions?: ExpressionFunctionMap;
|
|
77
|
-
|
|
101
|
+
aggregatedBooleanFunctions?: ExpressionFunctionMap;
|
|
102
|
+
aggregatedScalarFunctions?: ExpressionFunctionMap;
|
|
78
103
|
}
|
|
File without changes
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { AlertButton, AlertDefinition } from '../PredefinedConfig/AlertState';
|
|
2
|
+
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
3
|
+
import { ButtonContext } from '../PredefinedConfig/Common/AdaptableButton';
|
|
4
|
+
import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
|
|
5
|
+
import { DataChangedInfo } from '../types';
|
|
6
|
+
/**
|
|
7
|
+
* Options related to Alerts in Adaptable.
|
|
8
|
+
*/
|
|
9
|
+
export interface AlertOptions {
|
|
10
|
+
/**
|
|
11
|
+
* How many alerts held in State at any one time; when limit is breached, oldest alert will be removed
|
|
12
|
+
*
|
|
13
|
+
* @defaultValue 20
|
|
14
|
+
* @gridInfoItem
|
|
15
|
+
*/
|
|
16
|
+
maxAlertsInStore?: number;
|
|
17
|
+
/**
|
|
18
|
+
* How long (in ms) a cell will be highlighted
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue 3000
|
|
21
|
+
* @gridInfoItem
|
|
22
|
+
*/
|
|
23
|
+
cellHighlightDuration?: number;
|
|
24
|
+
/**
|
|
25
|
+
* onClick Handlers for Alert Buttons (defined in Alert State)
|
|
26
|
+
*/
|
|
27
|
+
actionHandlers?: ActionHandler[];
|
|
28
|
+
/**
|
|
29
|
+
* Full definitions of Alert Forms - the names of which are provided in Alert State
|
|
30
|
+
*/
|
|
31
|
+
alertForms?: AlertForm[];
|
|
32
|
+
/**
|
|
33
|
+
* Whether Alert rule is evaluated against the `rawValue` or `formattedValue` of the changed cell data
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue 'rawValue'
|
|
36
|
+
* @gridInfoItem
|
|
37
|
+
*/
|
|
38
|
+
dataChangeDetectionPolicy?: 'rawValue' | 'formattedValue';
|
|
39
|
+
/**
|
|
40
|
+
* Function providing Message to display in Alert; if empty, AdapTable provides dynamically
|
|
41
|
+
*/
|
|
42
|
+
alertMessageText?: (alertDefinition: AlertDefinition, dataChangedInfo?: DataChangedInfo) => string | undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Handles a Form Button Action
|
|
46
|
+
*/
|
|
47
|
+
export declare type ActionHandler = {
|
|
48
|
+
/**
|
|
49
|
+
* Name of the Handler
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
/**
|
|
53
|
+
* Handler function to call when the Button is clicked
|
|
54
|
+
*/
|
|
55
|
+
handler: (button: AlertButton<AlertButtonContext>, context: AlertButtonContext) => void;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Form to show in an Alert
|
|
59
|
+
*/
|
|
60
|
+
export declare type AlertForm = {
|
|
61
|
+
/**
|
|
62
|
+
* Name of the Form
|
|
63
|
+
*/
|
|
64
|
+
name: string;
|
|
65
|
+
/**
|
|
66
|
+
* The Form to display in the Alert
|
|
67
|
+
*/
|
|
68
|
+
form: AdaptableForm<AlertButtonContext>;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Context required by functions when using an Alert Button
|
|
72
|
+
*/
|
|
73
|
+
export interface AlertButtonContext extends ButtonContext {
|
|
74
|
+
/**
|
|
75
|
+
* Alert that has been triggered
|
|
76
|
+
*/
|
|
77
|
+
alert: AdaptableAlert;
|
|
78
|
+
/**
|
|
79
|
+
* Data in the Alert Form
|
|
80
|
+
*/
|
|
81
|
+
formData?: AdaptableFormData;
|
|
82
|
+
}
|
|
@@ -17,7 +17,7 @@ export interface ContainerOptions {
|
|
|
17
17
|
*/
|
|
18
18
|
agGridContainer?: string | HTMLElement;
|
|
19
19
|
/**
|
|
20
|
-
* how long AdapTable waits for AG Grid before giving up connecting to it; useful when AG Grid is instantiated separately (eg: by React or Angular
|
|
20
|
+
* how long AdapTable waits for AG Grid before giving up connecting to it; useful when AG Grid is instantiated separately (eg: by AdapTable React or AdapTable Angular)
|
|
21
21
|
*
|
|
22
22
|
* @defaultValue 60s
|
|
23
23
|
* @gridInfoItem
|
|
@@ -29,7 +29,7 @@ export interface ContainerOptions {
|
|
|
29
29
|
* @defaultValue undefined
|
|
30
30
|
* @gridInfoItem
|
|
31
31
|
*/
|
|
32
|
-
modalContainer?: string;
|
|
32
|
+
modalContainer?: string | HTMLElement;
|
|
33
33
|
/**
|
|
34
34
|
* Div to show System Status messages - string Id or HTMLElement
|
|
35
35
|
*
|
|
@@ -38,7 +38,7 @@ export interface FilterOptions {
|
|
|
38
38
|
*/
|
|
39
39
|
useAdaptableFilterForm?: boolean | string[];
|
|
40
40
|
/**
|
|
41
|
-
* Styles Adaptable Filter Form to match AG Grid's
|
|
41
|
+
* Styles Adaptable Filter Form to match AG Grid's styling (if using Balham theme)
|
|
42
42
|
*
|
|
43
43
|
* @defaultValue true
|
|
44
44
|
* @gridInfoItem
|
|
@@ -70,13 +70,6 @@ export interface GeneralOptions {
|
|
|
70
70
|
* CustomSort column comparer functions
|
|
71
71
|
*/
|
|
72
72
|
customSortComparers?: ColumnValuesComparer[];
|
|
73
|
-
/**
|
|
74
|
-
* Perform case-sensitive text comparisons in all search and filter operations: QuickSearch, Filters, Query, Predicates
|
|
75
|
-
*
|
|
76
|
-
* @defaultValue false
|
|
77
|
-
* @gridInfoItem
|
|
78
|
-
*/
|
|
79
|
-
caseSensitiveTextComparisons?: boolean;
|
|
80
73
|
}
|
|
81
74
|
/**
|
|
82
75
|
* Comparer object for Column Values - used for custom sorting
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import { AlertButton, AlertDefinition } from '../PredefinedConfig/AlertState';
|
|
2
|
-
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
3
|
-
import { ButtonContext } from '../PredefinedConfig/Common/AdaptableButton';
|
|
4
|
-
import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
|
|
5
|
-
import { DataChangedInfo } from '../types';
|
|
6
1
|
/**
|
|
7
|
-
* Options related to
|
|
2
|
+
* Options related to System Status Messages and Notifications in Adaptable.
|
|
8
3
|
*/
|
|
9
4
|
export interface NotificationsOptions {
|
|
10
|
-
/**
|
|
11
|
-
* How many alerts held in State at any one time; when limit is breached, oldest alert will be removed
|
|
12
|
-
*
|
|
13
|
-
* @defaultValue 20
|
|
14
|
-
* @gridInfoItem
|
|
15
|
-
*/
|
|
16
|
-
maxAlertsInStore?: number;
|
|
17
5
|
/**
|
|
18
6
|
* How many Notifications can be displayed at one time
|
|
19
7
|
*
|
|
@@ -35,13 +23,6 @@ export interface NotificationsOptions {
|
|
|
35
23
|
* @gridInfoItem
|
|
36
24
|
*/
|
|
37
25
|
duration?: number | 'always';
|
|
38
|
-
/**
|
|
39
|
-
* How long (in ms) a cell will be highlighted
|
|
40
|
-
*
|
|
41
|
-
* @defaultValue 3000
|
|
42
|
-
* @gridInfoItem
|
|
43
|
-
*/
|
|
44
|
-
cellHighlightDuration?: number;
|
|
45
26
|
/**
|
|
46
27
|
* Shows a Progress Bar in the Notification
|
|
47
28
|
*
|
|
@@ -77,21 +58,6 @@ export interface NotificationsOptions {
|
|
|
77
58
|
* @gridInfoItem
|
|
78
59
|
*/
|
|
79
60
|
transition?: 'Bounce' | 'Slide' | 'Zoom' | 'Flip';
|
|
80
|
-
/**
|
|
81
|
-
* onClick Handlers for Alert Buttons (defined in Alert State)
|
|
82
|
-
*/
|
|
83
|
-
actionHandlers?: ActionHandler[];
|
|
84
|
-
/**
|
|
85
|
-
* Full definitions of Alert Forms - the names of which are provided in Alert State
|
|
86
|
-
*/
|
|
87
|
-
alertForms?: AlertForm[];
|
|
88
|
-
/**
|
|
89
|
-
* Whether Alert rule is evaluated against the `rawValue` or `formattedValue` of the changed cell data
|
|
90
|
-
*
|
|
91
|
-
* @defaultValue 'rawValue'
|
|
92
|
-
* @gridInfoItem
|
|
93
|
-
*/
|
|
94
|
-
dataChangeDetectionPolicy?: 'rawValue' | 'formattedValue';
|
|
95
61
|
/**
|
|
96
62
|
* Display an Alert when a System Status Message is set
|
|
97
63
|
*
|
|
@@ -111,49 +77,6 @@ export interface NotificationsOptions {
|
|
|
111
77
|
* @defaultValue false
|
|
112
78
|
*/
|
|
113
79
|
showApplicationIcon?: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Function providing Message to display in Alert; if empty, AdapTable provides dynamically
|
|
116
|
-
*/
|
|
117
|
-
alertMessageText?: (alertDefinition: AlertDefinition, dataChangedInfo?: DataChangedInfo) => string | undefined;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Handles a Form Button Action
|
|
121
|
-
*/
|
|
122
|
-
export declare type ActionHandler = {
|
|
123
|
-
/**
|
|
124
|
-
* Name of the Handler
|
|
125
|
-
*/
|
|
126
|
-
name: string;
|
|
127
|
-
/**
|
|
128
|
-
* Handler function to call when the Button is clicked
|
|
129
|
-
*/
|
|
130
|
-
handler: (button: AlertButton<AlertButtonContext>, context: AlertButtonContext) => void;
|
|
131
|
-
};
|
|
132
|
-
/**
|
|
133
|
-
* Form to show in an Alert
|
|
134
|
-
*/
|
|
135
|
-
export declare type AlertForm = {
|
|
136
|
-
/**
|
|
137
|
-
* Name of the Form
|
|
138
|
-
*/
|
|
139
|
-
name: string;
|
|
140
|
-
/**
|
|
141
|
-
* The Form to display in the Alert
|
|
142
|
-
*/
|
|
143
|
-
form: AdaptableForm<AlertButtonContext>;
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Context required by functions when using an Alert Button
|
|
147
|
-
*/
|
|
148
|
-
export interface AlertButtonContext extends ButtonContext {
|
|
149
|
-
/**
|
|
150
|
-
* Alert that has been triggered
|
|
151
|
-
*/
|
|
152
|
-
alert: AdaptableAlert;
|
|
153
|
-
/**
|
|
154
|
-
* Data in the Alert Form
|
|
155
|
-
*/
|
|
156
|
-
formData?: AdaptableFormData;
|
|
157
80
|
}
|
|
158
81
|
/**
|
|
159
82
|
* Different positions offered by Notifications
|
|
@@ -16,13 +16,6 @@ export interface SearchOptions {
|
|
|
16
16
|
* @gridInfoItem
|
|
17
17
|
*/
|
|
18
18
|
quickSearchPlaceholder?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Which searching and filtering options, if any, should take place on server
|
|
21
|
-
*
|
|
22
|
-
* @defaultValue undefined
|
|
23
|
-
* @gridInfoItem
|
|
24
|
-
*/
|
|
25
|
-
serverSearchOptions?: ServerSearchOptions;
|
|
26
19
|
/**
|
|
27
20
|
* Clears saved searches when AdapTable loads
|
|
28
21
|
*
|
|
@@ -38,5 +31,3 @@ export interface SearchOptions {
|
|
|
38
31
|
*/
|
|
39
32
|
filterResultsAfterQuickSearch?: boolean;
|
|
40
33
|
}
|
|
41
|
-
export declare type ServerSearchOptions = ServerSearchOption[];
|
|
42
|
-
export declare type ServerSearchOption = 'Query' | 'Filter' | 'Sort';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { AdaptableState } from '../PredefinedConfig/AdaptableState';
|
|
2
2
|
/**
|
|
3
|
-
* Options related to
|
|
3
|
+
* Options related to Adaptable State hydration/dehydration - allows users to intercept state persistence and state loading with custom functionality
|
|
4
4
|
*/
|
|
5
5
|
export interface StateOptions {
|
|
6
6
|
/**
|
|
7
|
-
* Allows the customization of state persistence
|
|
7
|
+
* Allows the customization of state persistence
|
|
8
8
|
*/
|
|
9
9
|
persistState?: AdaptablePersistStateFunction;
|
|
10
10
|
/**
|
|
11
|
-
* Allows the customization of
|
|
11
|
+
* Allows the customization of Adaptable State loading
|
|
12
12
|
*/
|
|
13
13
|
loadState?: AdaptableLoadStateFunction;
|
|
14
14
|
/**
|
|
15
|
-
* Allows the customization of the
|
|
15
|
+
* Allows the customization of the Adaptable State that is going to be persisted
|
|
16
16
|
*/
|
|
17
17
|
saveState?: AdaptableSaveStateFunction;
|
|
18
18
|
/**
|
|
19
|
-
* Allows hooking into
|
|
19
|
+
* Allows hooking into Adaptable State hydration
|
|
20
20
|
*/
|
|
21
21
|
applyState?: (state: any) => any;
|
|
22
22
|
/**
|
|
23
|
-
* Allows clearing of remote
|
|
23
|
+
* Allows clearing of remote Adaptable State
|
|
24
24
|
*/
|
|
25
25
|
clearState?: AdaptableClearStateFunction;
|
|
26
26
|
/**
|
|
27
|
-
* Delay (in ms) to debounce saveState/persistState calls enabling grouping multiple sequential calls in single one (e.g. elevator doors)
|
|
27
|
+
* Delay (in ms) to debounce `saveState` / `persistState` calls enabling grouping multiple sequential calls in single one (e.g. elevator doors)
|
|
28
28
|
*
|
|
29
29
|
* **Defaults to: 400**. Also, the wait will be max 1000ms, at which point the save/persist calls will happen anyway.
|
|
30
30
|
*
|
|
@@ -44,10 +44,11 @@ export declare type AdaptableStateFunctionConfig = {
|
|
|
44
44
|
* Used by the `persistState` function property in StateOptions
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
|
-
*
|
|
47
|
+
* ```
|
|
48
48
|
* persistState = (state, {adaptableId, adaptableStateKey}) => {
|
|
49
49
|
* localStorage.setItem(adaptableStateKey, JSON.stringify(state))
|
|
50
50
|
* }
|
|
51
|
+
* ```
|
|
51
52
|
*/
|
|
52
53
|
export interface AdaptablePersistStateFunction {
|
|
53
54
|
(state: any, { adaptableId, adaptableStateKey, userName, url }: AdaptableStateFunctionConfig): Promise<any>;
|
|
@@ -11,13 +11,13 @@ export interface TeamSharingOptions {
|
|
|
11
11
|
*/
|
|
12
12
|
enableTeamSharing: boolean;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Async function which retrieves available Shared Entities that user can download and merge automatically with Adaptable State
|
|
15
15
|
*
|
|
16
16
|
* @defaultValue null
|
|
17
17
|
*/
|
|
18
18
|
getSharedEntities: (adaptableId: string) => Promise<SharedEntity[]>;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Async function which uploads Shared Entities so they can be downloaded by other members of the team
|
|
21
21
|
*
|
|
22
22
|
* @defaultValue null
|
|
23
23
|
*/
|
|
@@ -31,13 +31,11 @@ export interface ToolPanelOptions {
|
|
|
31
31
|
/**
|
|
32
32
|
* The initial width of AdapTable ToolPanel
|
|
33
33
|
* @defaultValue var(--ab-cmp-toolpanel__width)
|
|
34
|
-
* @see https://docs.adaptabletools.com/docs/theming/css-variables#toolpanel
|
|
35
34
|
*/
|
|
36
35
|
width?: number;
|
|
37
36
|
/**
|
|
38
37
|
* The min width of AdapTable ToolPanel
|
|
39
38
|
* @defaultValue var(--ab-cmp-toolpanel__width)
|
|
40
|
-
* @see https://docs.adaptabletools.com/docs/theming/css-variables#toolpanel
|
|
41
39
|
*/
|
|
42
40
|
minWidth?: number;
|
|
43
41
|
/**
|
|
@@ -89,7 +89,7 @@ export interface UserInterfaceOptions {
|
|
|
89
89
|
/**
|
|
90
90
|
* Which sections to show in the Grid Info Screen
|
|
91
91
|
*
|
|
92
|
-
* @defaultValue ['GridSummary', 'AdaptableOptions','ColumnInfo']
|
|
92
|
+
* @defaultValue ['GridSummary', 'AdaptableOptions', 'ColumnInfo']
|
|
93
93
|
*/
|
|
94
94
|
gridInfoSections?: GridInfoSections;
|
|
95
95
|
}
|
|
@@ -120,7 +120,7 @@ export interface EditLookUpPermittedValues extends BasePermittedValues {
|
|
|
120
120
|
export interface FilterPermittedValues extends BasePermittedValues {
|
|
121
121
|
/**
|
|
122
122
|
* Prevents AdapTable from filtering the list of values client-side; When true, values is called each time the search bar is changed
|
|
123
|
-
* @
|
|
123
|
+
* @defaultValue false
|
|
124
124
|
*/
|
|
125
125
|
suppressFilterSearchBar?: boolean;
|
|
126
126
|
values: (params: FilterPermittedValuesParams) => any[] | Promise<any[]>;
|
|
@@ -139,7 +139,7 @@ export interface BulkUpdatePermittedValues extends BasePermittedValues {
|
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
141
|
* Use PermittedValues instead
|
|
142
|
-
* @deprecated
|
|
142
|
+
* @deprecated use PermittedValues instead
|
|
143
143
|
*/
|
|
144
144
|
export declare type CellValuesList = PermittedValues;
|
|
145
145
|
/**
|
|
@@ -35,6 +35,7 @@ import { PredicateApi } from './PredicateApi';
|
|
|
35
35
|
import { DataChangeHistoryApi } from './DataChangeHistoryApi';
|
|
36
36
|
import { FlashingCellApi } from './FlashingCellApi';
|
|
37
37
|
import { ChartingApi } from './ChartingApi';
|
|
38
|
+
import { SettingsPanelApi } from './SettingsPanelApi';
|
|
38
39
|
/**
|
|
39
40
|
*
|
|
40
41
|
* The `AdaptableApi` provides developers with run-time access to AdapTable.
|
|
@@ -147,6 +148,10 @@ export interface AdaptableApi {
|
|
|
147
148
|
* Provides access to the Schedule Module
|
|
148
149
|
*/
|
|
149
150
|
scheduleApi: ScheduleApi;
|
|
151
|
+
/**
|
|
152
|
+
* Provides access to the Settings Panel
|
|
153
|
+
*/
|
|
154
|
+
settingsPanelApi: SettingsPanelApi;
|
|
150
155
|
/**
|
|
151
156
|
* Manages the `Scope` object - used widely to determine where objects are applied
|
|
152
157
|
*/
|
|
@@ -185,6 +190,7 @@ export interface AdaptableApi {
|
|
|
185
190
|
chartingApi: ChartingApi;
|
|
186
191
|
/**
|
|
187
192
|
* Api methods used *internally* within AdapTable.
|
|
193
|
+
* @internal
|
|
188
194
|
*/
|
|
189
195
|
internalApi: InternalApi;
|
|
190
196
|
/**
|
package/src/Api/AlertApi.d.ts
CHANGED
|
@@ -4,8 +4,7 @@ import { AdaptableScope } from '../PredefinedConfig/Common/AdaptableScope';
|
|
|
4
4
|
import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
|
|
5
5
|
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
6
6
|
import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
|
|
7
|
-
import { AlertButtonContext } from '../
|
|
8
|
-
import { AdaptableMessageType, AlertProperties } from '../types';
|
|
7
|
+
import { AdaptableMessageType, AlertButtonContext, AlertProperties } from '../types';
|
|
9
8
|
/**
|
|
10
9
|
* Provides run-time access to Alert function and associated State
|
|
11
10
|
*/
|
|
@@ -158,7 +157,7 @@ export interface AlertApi {
|
|
|
158
157
|
suspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
159
158
|
/**
|
|
160
159
|
* Activates a suspended Alert Definition
|
|
161
|
-
* @param alertDefinition Alert to Un-suspend (activate)
|
|
160
|
+
* @param alertDefinition - Alert to Un-suspend (activate)
|
|
162
161
|
* @returns alert definition
|
|
163
162
|
*/
|
|
164
163
|
unSuspendAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
@@ -12,8 +12,8 @@ export interface CalculatedColumnApi {
|
|
|
12
12
|
*/
|
|
13
13
|
getAllCalculatedColumn(): CalculatedColumn[];
|
|
14
14
|
/**
|
|
15
|
-
* Retrieves Calculated
|
|
16
|
-
* @param id Calculated
|
|
15
|
+
* Retrieves Calculated Column by the unique identifier of the Adaptable Object in the CalculatedColumnState
|
|
16
|
+
* @param id - Calculated Column state unique identifier
|
|
17
17
|
* @returns calculated column
|
|
18
18
|
*/
|
|
19
19
|
getCalculatedColumnById(id: CalculatedColumn['Uuid']): CalculatedColumn;
|
|
@@ -41,13 +41,6 @@ export interface CalculatedColumnApi {
|
|
|
41
41
|
* @returns calculated columns
|
|
42
42
|
*/
|
|
43
43
|
editCalculatedColumns(calcColumns: CalculatedColumn[]): CalculatedColumn[];
|
|
44
|
-
/**
|
|
45
|
-
* Replaces Expression in given Calculated Column with new value
|
|
46
|
-
* @param calcColumn Calculated Column for which Expression should change
|
|
47
|
-
* @param columnExpression New Expression for Calculated Column
|
|
48
|
-
* @returns calculated columns
|
|
49
|
-
*/
|
|
50
|
-
editCalculatedColumnExpression(calcColumn: string, columnExpression: string): CalculatedColumn;
|
|
51
44
|
/**
|
|
52
45
|
* Removes Calculated Column from State
|
|
53
46
|
*
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -35,10 +35,6 @@ export interface ColumnApi {
|
|
|
35
35
|
* Returns all boolean Columns
|
|
36
36
|
*/
|
|
37
37
|
getBooleanColumns(): AdaptableColumn[];
|
|
38
|
-
/**
|
|
39
|
-
* Returns all numeric array Columns
|
|
40
|
-
*/
|
|
41
|
-
getNumericArrayColumns(): AdaptableColumn[];
|
|
42
38
|
/**
|
|
43
39
|
* Returns all Sortable Columns
|
|
44
40
|
*/
|
package/src/Api/EventApi.d.ts
CHANGED
|
@@ -195,9 +195,14 @@ export interface EventApi {
|
|
|
195
195
|
off(eventName: 'LiveDataChanged', callback: (liveDataChangedInfo: LiveDataChangedInfo) => void): void;
|
|
196
196
|
/**
|
|
197
197
|
* Fired when Adaptable is up and running - has no arguments.
|
|
198
|
-
* @param eventName
|
|
199
|
-
* @param callback An `AdaptableReadyInfo` object which contains the adaptableApi and GridOptions
|
|
200
|
-
* @returns the unsubscribe function
|
|
198
|
+
* @param eventName - AdaptableReady
|
|
199
|
+
* @param callback - An `AdaptableReadyInfo` object which contains the adaptableApi and GridOptions
|
|
200
|
+
* @returns the unsubscribe function
|
|
201
|
+
*
|
|
202
|
+
* @example Use as
|
|
203
|
+
* ```
|
|
204
|
+
* adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo: AdaptableReadyInfo) => { .....[do stuff]...})
|
|
205
|
+
* ```
|
|
201
206
|
*/
|
|
202
207
|
on(eventName: 'AdaptableReady', callback: (adaptableReadyInfo: AdaptableReadyInfo) => void): VoidFunction;
|
|
203
208
|
/**
|
|
@@ -5,13 +5,15 @@ import { BaseEventInfo } from './BaseEventInfo';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface GridDataChangedInfo extends BaseEventInfo {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Data rows that have been added, updated, or deleted
|
|
9
9
|
*/
|
|
10
10
|
dataRows: any[];
|
|
11
11
|
/**
|
|
12
12
|
* Trigger for row change: 'Add', 'Edit' or 'Delete'
|
|
13
|
-
}
|
|
14
13
|
*/
|
|
15
14
|
rowTrigger: 'Add' | 'Edit' | 'Delete';
|
|
15
|
+
/**
|
|
16
|
+
* AG Grid Row Nodes that were affected by the Change
|
|
17
|
+
*/
|
|
16
18
|
rowNodes: RowNode[];
|
|
17
19
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SystemStatusMessageInfo } from '../../PredefinedConfig/Common/SystemStatusMessageInfo';
|
|
2
2
|
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
3
|
/**
|
|
4
|
-
* Object returned by the `SystemStatusMessageDisplayed
|
|
4
|
+
* Object returned by the `SystemStatusMessageDisplayed` event
|
|
5
5
|
*/
|
|
6
6
|
export interface SystemStatusMessageDisplayedInfo extends BaseEventInfo {
|
|
7
7
|
/**
|
|
@@ -34,18 +34,6 @@ export interface FreeTextColumnApi {
|
|
|
34
34
|
editFreeTextColumn(freeTextColumn: Partial<FreeTextColumn> & {
|
|
35
35
|
ColumnId: string;
|
|
36
36
|
}): FreeTextColumn;
|
|
37
|
-
/**
|
|
38
|
-
* Creates new FreeTextColumn and adds it to Adaptable State
|
|
39
|
-
* @param columnId the id for the column - try to keep this small and unique (and dont use spaces)
|
|
40
|
-
* @param param.columnName the name for the column - optional - if not provided, will default to the columnId
|
|
41
|
-
* @param param.defaultValue the default value that will appear in the Column unless overrident - leave blank if you dont require a default value
|
|
42
|
-
* @returns free text column
|
|
43
|
-
*/
|
|
44
|
-
createFreeTextColumn(param: {
|
|
45
|
-
columnId: string;
|
|
46
|
-
columnName?: string;
|
|
47
|
-
defaultValue: string;
|
|
48
|
-
}): FreeTextColumn;
|
|
49
37
|
/**
|
|
50
38
|
* Deletes existing FreeTextColumn from Adaptable State
|
|
51
39
|
* @param columnId name of FreeTextColumn to delete
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import { ColumnSort } from '../PredefinedConfig/Common/ColumnSort';
|
|
|
5
5
|
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
6
6
|
import { DataUpdateConfig } from '../PredefinedConfig/Common/DataUpdateConfig';
|
|
7
7
|
import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
|
|
8
|
-
import { CellHighlightInfo
|
|
8
|
+
import { CellHighlightInfo } from '../PredefinedConfig/Common/CellHighlightInfo';
|
|
9
|
+
import { RowHighlightInfo } from '../PredefinedConfig/Common/RowHighlightInfo';
|
|
9
10
|
import { AdaptableModule } from '../PredefinedConfig/Common/Types';
|
|
10
11
|
import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
|
|
11
12
|
import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
|
|
@@ -142,6 +143,16 @@ export interface GridApi {
|
|
|
142
143
|
* @param clearSelection Whether to clear current selection in grid
|
|
143
144
|
*/
|
|
144
145
|
deSelectNode(rowNode: RowNode, clearSelection: boolean): void;
|
|
146
|
+
/**
|
|
147
|
+
* Selects a Column in AG Grid
|
|
148
|
+
* @param columnId Id of Column to Select
|
|
149
|
+
*/
|
|
150
|
+
selectColumn(columnId: string): void;
|
|
151
|
+
/**
|
|
152
|
+
* Selects Columns in AG Grid
|
|
153
|
+
* @param columnIds Ids of Columns to Select
|
|
154
|
+
*/
|
|
155
|
+
selectColumns(columnIds: string[]): void;
|
|
145
156
|
/**
|
|
146
157
|
* AG Grid Row Nodes in AdapTable
|
|
147
158
|
* @param rowNodes Nodes to DeSelect
|
|
@@ -173,7 +184,7 @@ export interface GridApi {
|
|
|
173
184
|
*/
|
|
174
185
|
deSelectRows(primaryKeyValues: any[], clearSelection: boolean): void;
|
|
175
186
|
/**
|
|
176
|
-
* Selects a group of cells in a given range
|
|
187
|
+
* Selects a group of cells in a given range - provide either primary keys or row indexes
|
|
177
188
|
* @param gridCellRange range to select
|
|
178
189
|
*/
|
|
179
190
|
selectCellRange(gridCellRange: GridCellRange): void;
|
|
@@ -59,7 +59,7 @@ export interface IPushPullApi {
|
|
|
59
59
|
/**
|
|
60
60
|
* Retrieves all the ipushpull domain to which the current user has access
|
|
61
61
|
*
|
|
62
|
-
* An `IPushPullDomain
|
|
62
|
+
* An `IPushPullDomain` contains 3 properties:
|
|
63
63
|
*
|
|
64
64
|
* - **Name**: the name of the Domain / Folder
|
|
65
65
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
2
|
-
import { AdaptableApi } from '../../types';
|
|
2
|
+
import { AdaptableApi, SettingsPanelApi } from '../../types';
|
|
3
3
|
import { AlertApi } from '../AlertApi';
|
|
4
4
|
import { BulkUpdateApi } from '../BulkUpdateApi';
|
|
5
5
|
import { CalculatedColumnApi } from '../CalculatedColumnApi';
|
|
@@ -71,6 +71,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
71
71
|
userInterfaceApi: UserInterfaceApi;
|
|
72
72
|
queryApi: QueryApi;
|
|
73
73
|
queryLanguageApi: QueryLanguageApi;
|
|
74
|
+
settingsPanelApi: SettingsPanelApi;
|
|
74
75
|
toolPanelApi: ToolPanelApi;
|
|
75
76
|
teamSharingApi: TeamSharingApi;
|
|
76
77
|
scopeApi: ScopeApi;
|