@adaptabletools/adaptable 16.0.0-canary.1 → 16.0.0-canary.3
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/base.css +31 -31
- package/base.css.map +1 -1
- package/bundle.cjs.js +155 -155
- package/index.css +39 -39
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -1
- package/src/AdaptableOptions/ActionRowOptions.d.ts +8 -5
- package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +1 -0
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +51 -0
- package/src/AdaptableOptions/GroupingOptions.d.ts +0 -13
- package/src/AdaptableOptions/{SearchOptions.d.ts → QuickSearchOptions.d.ts} +3 -3
- package/src/AdaptableOptions/QuickSearchOptions.js +2 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +5 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +8 -41
- package/src/Api/ColumnApi.d.ts +18 -7
- package/src/Api/DataChangeHistoryApi.d.ts +6 -0
- package/src/Api/EventApi.d.ts +19 -6
- package/src/Api/Events/ChexboxColumnClicked.d.ts +1 -0
- package/src/Api/Events/ScheduleTriggered.d.ts +11 -0
- package/src/Api/Events/ScheduleTriggered.js +2 -0
- package/src/Api/Implementation/ActionRowApiImpl.js +7 -5
- package/src/Api/Implementation/ApiBase.d.ts +3 -2
- package/src/Api/Implementation/ApiBase.js +5 -2
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +4 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -1
- package/src/Api/Implementation/ColumnApiImpl.js +22 -3
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +3 -2
- package/src/Api/Implementation/OptionsApiImpl.js +5 -2
- package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
- package/src/Api/Implementation/PredicateApiImpl.js +8 -8
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +4 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +5 -0
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +0 -3
- package/src/Api/Implementation/StyledColumnApiImpl.js +0 -26
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -0
- package/src/Api/Internal/AdaptableInternalApi.js +2 -2
- package/src/Api/Internal/AlertInternalApi.js +7 -2
- package/src/Api/Internal/FilterInternalApi.js +8 -4
- package/src/Api/Internal/FormatColumnInternalApi.js +12 -14
- package/src/Api/Internal/ScheduleInternalApi.d.ts +8 -0
- package/src/Api/Internal/ScheduleInternalApi.js +20 -0
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +5 -2
- package/src/Api/Internal/StyledColumnInternalApi.js +29 -2
- package/src/Api/Internal/UserInterfaceInternalApi.d.ts +5 -0
- package/src/Api/Internal/UserInterfaceInternalApi.js +18 -0
- package/src/Api/OptionsApi.d.ts +7 -3
- package/src/Api/PredicateApi.d.ts +5 -5
- package/src/Api/StyledColumnApi.d.ts +0 -14
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +7 -7
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +8 -15
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +65 -41
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +3 -2
- package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
- package/src/Redux/Store/AdaptableStore.js +2 -3
- package/src/Strategy/AdaptableModuleBase.d.ts +6 -6
- package/src/Strategy/FlashingCellModule.js +6 -2
- package/src/Strategy/Interface/IModule.d.ts +2 -2
- package/src/Strategy/ScheduleModule.js +3 -2
- package/src/Strategy/StyledColumnModule.js +24 -15
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +7 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +1 -1
- package/src/Utilities/MenuItem.d.ts +4 -4
- package/src/Utilities/Services/MetamodelService.js +5 -1
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +1 -1
- package/src/Utilities/Services/RowEditService.js +1 -1
- package/src/Utilities/Services/TeamSharingService.d.ts +2 -0
- package/src/Utilities/Services/TeamSharingService.js +60 -3
- package/src/Utilities/Services/ValidationService.js +6 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +6 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +6 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +32 -23
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +5 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +11 -11
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +11 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +6 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +4 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +3 -4
- package/src/View/AdaptableWizardView/Wizard.d.ts +4 -1
- package/src/View/AdaptableWizardView/Wizard.js +11 -10
- package/src/View/Charting/useChartingElements.js +1 -1
- package/src/View/Components/AdaptableButton/index.d.ts +3 -0
- package/src/View/Components/AdaptableButton/index.js +18 -0
- package/src/View/Components/AdaptableIconComponent/index.d.ts +7 -0
- package/src/View/Components/AdaptableIconComponent/index.js +16 -0
- package/src/View/Components/AdaptableIconComponent/useCustomIcon.d.ts +2 -0
- package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +12 -0
- package/src/{components → View/Components}/Badge/index.d.ts +1 -1
- package/src/{components → View/Components}/Badge/index.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +1 -1
- package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +3 -2
- package/src/View/Components/Panels/PanelWithButton.d.ts +2 -2
- package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/PredicateEditor/PredicateEditor.js +4 -4
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -2
- package/src/View/Dashboard/Dashboard.js +4 -4
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -0
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +13 -7
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +1 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +2 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -1
- package/src/View/UIHelper.d.ts +2 -2
- package/src/agGrid/ActionColumnRenderer.d.ts +0 -2
- package/src/agGrid/ActionColumnRenderer.js +20 -5
- package/src/agGrid/Adaptable.d.ts +5 -2
- package/src/agGrid/Adaptable.js +61 -25
- package/src/agGrid/BadgeRenderer.js +19 -20
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/agGridHelper.js +4 -2
- package/src/agGrid/agGridMenuHelper.js +11 -4
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +1 -0
- package/src/agGrid/attachAddaptableColumnTypes.js +5 -4
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
- package/src/components/Icon/index.d.ts +11 -0
- package/src/components/{AdaptableIconComponent → Icon}/index.js +10 -10
- package/src/components/IconSelector/IconSelector.js +3 -3
- package/src/components/SimpleButton/index.js +10 -10
- package/src/components/Toggle/Toggle.d.ts +2 -2
- package/src/components/Toggle/Toggle.js +2 -2
- package/src/components/icons/index.d.ts +4 -4
- package/src/components/icons/index.js +6 -6
- package/src/metamodel/adaptable.metamodel.d.ts +125 -57
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +9 -6
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/View/Components/AdaptableViewIcon/index.d.ts +0 -10
- package/src/View/Components/AdaptableViewIcon/index.js +0 -18
- package/src/components/AdaptableIconComponent/index.d.ts +0 -11
- /package/src/AdaptableOptions/{SearchOptions.js → FormatColumnOptions.js} +0 -0
|
@@ -5,7 +5,6 @@ import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
|
5
5
|
import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
|
|
6
6
|
import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
|
|
7
7
|
import { AlternativeModuleName, BaseContext, GridCell } from '../../types';
|
|
8
|
-
import { IRowNode } from '@ag-grid-community/core';
|
|
9
8
|
/**
|
|
10
9
|
* Options for managing the User Interface of AdapTable
|
|
11
10
|
*/
|
|
@@ -24,12 +23,9 @@ export interface UserInterfaceOptions<TData = any> {
|
|
|
24
23
|
*/
|
|
25
24
|
applicationIcon?: AdaptableIcon;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
26
|
+
* Bespoke icons that can be used in Adaptable (e.g. Badge Styles and Buttons)
|
|
28
27
|
*/
|
|
29
|
-
customIcons?:
|
|
30
|
-
name: string;
|
|
31
|
-
icon: AdaptableIcon;
|
|
32
|
-
}[];
|
|
28
|
+
customIcons?: CustomIcon[];
|
|
33
29
|
/**
|
|
34
30
|
* Options for managing and customizing date inputs in AdapTable
|
|
35
31
|
*/
|
|
@@ -95,10 +91,6 @@ export interface UserInterfaceOptions<TData = any> {
|
|
|
95
91
|
* @gridInfoItem
|
|
96
92
|
*/
|
|
97
93
|
showAdapTableVersion?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Custom Formatters to use in the Format Column Module
|
|
100
|
-
*/
|
|
101
|
-
customDisplayFormatters?: CustomDisplayFormatter[];
|
|
102
94
|
/**
|
|
103
95
|
* English variant to use in UI labels
|
|
104
96
|
*
|
|
@@ -228,40 +220,15 @@ export declare type GridInfoSection = 'GridSummary' | 'AdaptableOptions' | 'Colu
|
|
|
228
220
|
export interface ObjectTagsContext extends BaseContext {
|
|
229
221
|
}
|
|
230
222
|
/**
|
|
231
|
-
*
|
|
232
|
-
*/
|
|
233
|
-
export interface CustomDisplayFormatter {
|
|
234
|
-
/**
|
|
235
|
-
* Id of the Formatted
|
|
236
|
-
*/
|
|
237
|
-
id: string;
|
|
238
|
-
/**
|
|
239
|
-
* Description
|
|
240
|
-
*/
|
|
241
|
-
label?: string;
|
|
242
|
-
/**
|
|
243
|
-
* Function used to perform the Custom Display Format
|
|
244
|
-
*/
|
|
245
|
-
handler: (customDisplayFormatterContext: CustomDisplayFormatterContext) => any;
|
|
246
|
-
/**
|
|
247
|
-
* Where the Custom Display Format can be applied
|
|
248
|
-
*/
|
|
249
|
-
scope: AdaptableScope;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Context used in handler of CustomDisplayFormatter
|
|
223
|
+
* Defines a bespoke Icon provided by a developer
|
|
253
224
|
*/
|
|
254
|
-
export interface
|
|
255
|
-
/**
|
|
256
|
-
* Column where Custom Display Format will apply
|
|
257
|
-
*/
|
|
258
|
-
adaptableColumn: AdaptableColumn;
|
|
225
|
+
export interface CustomIcon {
|
|
259
226
|
/**
|
|
260
|
-
*
|
|
227
|
+
* Name of Icon
|
|
261
228
|
*/
|
|
262
|
-
|
|
229
|
+
name: string;
|
|
263
230
|
/**
|
|
264
|
-
*
|
|
231
|
+
* AdapTable Icon definition
|
|
265
232
|
*/
|
|
266
|
-
|
|
233
|
+
icon: AdaptableIcon;
|
|
267
234
|
}
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -23,26 +23,32 @@ export interface ColumnApi {
|
|
|
23
23
|
* Returns all string Columns
|
|
24
24
|
*/
|
|
25
25
|
getStringColumns(): AdaptableColumn[];
|
|
26
|
+
/**
|
|
27
|
+
* Returns all string array Columns
|
|
28
|
+
*/
|
|
29
|
+
getStringArrayColumns(): AdaptableColumn[];
|
|
26
30
|
/**
|
|
27
31
|
* Returns all boolean Columns
|
|
28
32
|
*/
|
|
29
33
|
getBooleanColumns(): AdaptableColumn[];
|
|
30
34
|
/**
|
|
31
|
-
* Returns all number
|
|
35
|
+
* Returns all array columns (number, tuple-number, object-number & string)
|
|
32
36
|
*/
|
|
33
37
|
getArrayColumns(): AdaptableColumn[];
|
|
38
|
+
/**
|
|
39
|
+
* Returns all numeric array columns (number, tuple-number, object-number)
|
|
40
|
+
*/
|
|
41
|
+
getNumericArrayColumns(): AdaptableColumn[];
|
|
34
42
|
/**
|
|
35
43
|
* Returns all number-array columns
|
|
36
44
|
*/
|
|
37
45
|
getNumberArrayColumns(): AdaptableColumn[];
|
|
38
46
|
/**
|
|
39
|
-
* Returns all tuple-number-array columns
|
|
40
|
-
* e.g. [[1, 2], [3, 4]]
|
|
47
|
+
* Returns all tuple-number-array columns e.g. [[1,2],[3,4]]
|
|
41
48
|
*/
|
|
42
49
|
getTupleNumberArrayColumns(): AdaptableColumn[];
|
|
43
50
|
/**
|
|
44
|
-
* Returns all object-number-array columns
|
|
45
|
-
* e.g. [{x : 1, y : 2}, {x : 3, y : 4}]
|
|
51
|
+
* Returns all object-number-array columns e.g. [{x:1,y:2},{x:3,y:4}]
|
|
46
52
|
*/
|
|
47
53
|
getObjectNumberArrayColumns(): AdaptableColumn[];
|
|
48
54
|
/**
|
|
@@ -172,10 +178,15 @@ export interface ColumnApi {
|
|
|
172
178
|
*/
|
|
173
179
|
hasDateDataType(columnId: string): boolean;
|
|
174
180
|
/**
|
|
175
|
-
* Checks if the Column with the given `columnId` has an Array-like DataType (`NumberArray`,`TupleNumberArray` or `ObjectNumberArray`)
|
|
181
|
+
* Checks if the Column with the given `columnId` has an Numeric Array-like DataType (`NumberArray`,`TupleNumberArray` or `ObjectNumberArray`)
|
|
182
|
+
* @param columnId Column ID
|
|
183
|
+
*/
|
|
184
|
+
hasNumericArrayDataType(columnId: string): boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Checks if the Column with the given `columnId` has a String Array-like DataType (`StringArray`)
|
|
176
187
|
* @param columnId Column ID
|
|
177
188
|
*/
|
|
178
|
-
|
|
189
|
+
hasStringArrayDataType(columnId: string): boolean;
|
|
179
190
|
/**
|
|
180
191
|
* Returns Data Type for the Column with given ColumnId
|
|
181
192
|
* @param columnId Column to check
|
|
@@ -31,6 +31,12 @@ export interface DataChangeHistoryApi {
|
|
|
31
31
|
* @param dataChangeInfo the change to be undone
|
|
32
32
|
*/
|
|
33
33
|
undoDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
|
|
34
|
+
/**
|
|
35
|
+
* Clears a Row in Data Change Grid
|
|
36
|
+
*
|
|
37
|
+
* @param dataChangeInfo the change to be undone
|
|
38
|
+
*/
|
|
39
|
+
clearDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
|
|
34
40
|
/**
|
|
35
41
|
* Opens Data Change History panel
|
|
36
42
|
*/
|
package/src/Api/EventApi.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { AdaptableFDC3EventInfo, SelectionChangedInfo, LiveDataChangedInfo, DashboardChangedInfo, ThemeChangedInfo, AlertFiredInfo, LayoutChangedInfo, AdaptableReadyInfo, CustomToolbarConfiguredInfo, CellChangedInfo, SystemStatusMessageDisplayedInfo, CheckboxColumnClickedInfo, AdaptableStateChangedInfo, FlashingCellDisplayedInfo, GridDataChangedInfo, TeamSharingEntityChangedInfo, ActionRowSubmittedInfo, DataSetSelectedInfo, AdaptableStateReloadedInfo, GridSortedInfo, QueryRunInfo, FilterAppliedInfo } from '../types';
|
|
2
|
-
import { ChartChangedInfo } from './Events/ChartChanged';
|
|
3
|
-
import { ThemeEditedInfo } from './Events/ThemeChanged';
|
|
1
|
+
import { AdaptableFDC3EventInfo, SelectionChangedInfo, LiveDataChangedInfo, DashboardChangedInfo, ThemeChangedInfo, AlertFiredInfo, LayoutChangedInfo, AdaptableReadyInfo, CustomToolbarConfiguredInfo, CellChangedInfo, SystemStatusMessageDisplayedInfo, CheckboxColumnClickedInfo, AdaptableStateChangedInfo, FlashingCellDisplayedInfo, GridDataChangedInfo, TeamSharingEntityChangedInfo, ActionRowSubmittedInfo, DataSetSelectedInfo, AdaptableStateReloadedInfo, GridSortedInfo, QueryRunInfo, ScheduleTriggeredInfo, ChartChangedInfo, ThemeEditedInfo, FilterAppliedInfo } from '../types';
|
|
4
2
|
/**
|
|
5
3
|
* Responsible for publishing the many Events that AdapTable fires
|
|
6
4
|
*/
|
|
@@ -31,10 +29,23 @@ export interface EventApi {
|
|
|
31
29
|
* @param callback
|
|
32
30
|
*/
|
|
33
31
|
off(eventName: 'QueryRun', callback: (queryRunInfo: QueryRunInfo) => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* Event fired whenever a Schedule is triggered in AdapTable
|
|
34
|
+
* @param eventName ScheduleTriggered
|
|
35
|
+
* @param callback ScheduleTriggered which provides details of the Schedule that was triggered
|
|
36
|
+
* @returns the unsubscribe function
|
|
37
|
+
*/
|
|
38
|
+
on(eventName: 'ScheduleTriggered', callback: (scheduleTriggeredInfo: ScheduleTriggeredInfo) => void): VoidFunction;
|
|
39
|
+
/**
|
|
40
|
+
* Unsubscribe from ScheduleTriggered
|
|
41
|
+
* @param eventName ScheduleTriggered
|
|
42
|
+
* @param callback
|
|
43
|
+
*/
|
|
44
|
+
off(eventName: 'ScheduleTriggered', callback: (scheduleTriggeredInfo: ScheduleTriggeredInfo) => void): void;
|
|
34
45
|
/**
|
|
35
46
|
* Event fired whenever a Filter is Applied in AdapTable
|
|
36
47
|
* @param eventName FilterApplied
|
|
37
|
-
* @param callback FilterApplied which provides details of the
|
|
48
|
+
* @param callback FilterApplied which provides details of the Filter that was applied
|
|
38
49
|
* @returns the unsubscribe function
|
|
39
50
|
*/
|
|
40
51
|
on(eventName: 'FilterApplied', callback: (filterAppliedInfo: FilterAppliedInfo) => void): VoidFunction;
|
|
@@ -154,10 +165,12 @@ export interface EventApi {
|
|
|
154
165
|
* @param eventName CheckboxColumnClicked
|
|
155
166
|
* @param callback CheckboxColumnClickedInfo which includes details of the CheckboxColumn
|
|
156
167
|
* @returns the unsubscribe function
|
|
168
|
+
* @deprecated
|
|
157
169
|
*/
|
|
158
170
|
on(eventName: 'CheckboxColumnClicked', callback: (checkboxColumnClickedInfo: CheckboxColumnClickedInfo) => void): VoidFunction;
|
|
159
171
|
/**
|
|
160
|
-
* Unsubscribe from
|
|
172
|
+
* Unsubscribe from CheckboxColumnClicked
|
|
173
|
+
* @deprecated
|
|
161
174
|
*/
|
|
162
175
|
off(eventName: 'CheckboxColumnClicked', callback: (checkboxColumnClickedInfo: CheckboxColumnClickedInfo) => void): void;
|
|
163
176
|
/**
|
|
@@ -310,6 +323,6 @@ export interface EventApi {
|
|
|
310
323
|
emitSync(eventName: 'DashboardChanged', data?: any): any[];
|
|
311
324
|
emitSync(eventName: 'FlashingCellDisplayed', data?: any): any[];
|
|
312
325
|
emitSync(eventName: 'AdaptableDestroy'): any[];
|
|
313
|
-
emit(eventName: 'ActionRowSubmitted' | 'AdaptableReady' | 'AlertFired' | 'AdaptableStateChanged' | 'AdaptableStateReloaded' | 'CellChanged' | 'ChartChanged' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'DashboardChanged' | 'DataSetSelected' | 'FDC3MessageSent' | 'FilterApplied' | 'GridDataChanged' | 'GridSorted' | 'LayoutChanged' | 'LiveDataChanged' | 'QueryRun' | 'SearchChanged' | 'SelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'ThemeEdited', data?: any): Promise<any>;
|
|
326
|
+
emit(eventName: 'ActionRowSubmitted' | 'AdaptableReady' | 'AlertFired' | 'AdaptableStateChanged' | 'AdaptableStateReloaded' | 'CellChanged' | 'ChartChanged' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'DashboardChanged' | 'DataSetSelected' | 'FDC3MessageSent' | 'FilterApplied' | 'GridDataChanged' | 'GridSorted' | 'LayoutChanged' | 'LiveDataChanged' | 'QueryRun' | 'ScheduleTriggered' | 'SearchChanged' | 'SelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'ThemeEdited', data?: any): Promise<any>;
|
|
314
327
|
destroy(): void;
|
|
315
328
|
}
|
|
@@ -2,6 +2,7 @@ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
|
2
2
|
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
3
|
/**
|
|
4
4
|
* Event Info published by CheckboxColumnClicked event
|
|
5
|
+
* @deprecated - no longer used in AdapTable 16
|
|
5
6
|
*/
|
|
6
7
|
export interface CheckboxColumnClickedInfo extends BaseEventInfo {
|
|
7
8
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseSchedule } from '../../PredefinedConfig/Common/Schedule';
|
|
2
|
+
import { BaseEventInfo } from './BaseEventInfo';
|
|
3
|
+
/**
|
|
4
|
+
* EventInfo returned by the ScheduleTriggered event
|
|
5
|
+
*/
|
|
6
|
+
export interface ScheduleTriggeredInfo extends BaseEventInfo {
|
|
7
|
+
/**
|
|
8
|
+
* Schedule that was Triggered
|
|
9
|
+
*/
|
|
10
|
+
schedule: BaseSchedule;
|
|
11
|
+
}
|
|
@@ -10,14 +10,16 @@ class ActionRowApiImpl extends ApiBase_1.ApiBase {
|
|
|
10
10
|
this.internalApi = new ActionRowInternalApi_1.ActionRowInternalApi(adaptable);
|
|
11
11
|
}
|
|
12
12
|
getActionRowButtons() {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
var actionRowButtons = this.getActionRowOptions().actionRowButtons;
|
|
14
|
+
if (typeof actionRowButtons === 'function') {
|
|
15
|
+
const context = {
|
|
16
16
|
adaptableApi: this.getAdaptableApi(),
|
|
17
17
|
userName: this.getOptions().userName,
|
|
18
18
|
adaptableId: this.getOptions().adaptableId,
|
|
19
|
-
}
|
|
20
|
-
|
|
19
|
+
};
|
|
20
|
+
actionRowButtons = actionRowButtons(context);
|
|
21
|
+
}
|
|
22
|
+
return actionRowButtons !== null && actionRowButtons !== void 0 ? actionRowButtons : [];
|
|
21
23
|
}
|
|
22
24
|
displayEditActionRow(primaryKey) {
|
|
23
25
|
const rowNode = this.adaptable.api.gridApi.getRowNodeForPrimaryKey(primaryKey);
|
|
@@ -7,7 +7,7 @@ import { ModuleInfo } from '../../Strategy/Interface/IModule';
|
|
|
7
7
|
import { AdaptableOptions } from '../../AdaptableOptions/AdaptableOptions';
|
|
8
8
|
import { AdaptableApi } from '../AdaptableApi';
|
|
9
9
|
import { ExportOptions } from '../../AdaptableOptions/ExportOptions';
|
|
10
|
-
import { ActionColumnApi, ActionColumnOptions, ActionRowApi, ActionRowOptions, AlertApi, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CellSummaryApi, CellSummaryOptions, ChartingApi, ChartingOptions, ColumnApi, ConfigApi, ContainerOptions, CustomSortApi, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataChangeHistoryOptions, DataSetApi, DataSetOptions, EditOptions, EntitlementApi, EntitlementOptions, EventApi, ExportApi, FilterApi, FilterOptions, FlashingCellApi, FlashingCellOptions, FormatColumnApi, FreeTextColumnApi, GridApi, LayoutApi, LayoutAssociatedObject, LayoutOptions, MenuOptions, PluginsApi, PlusMinusApi, PredicateApi, QueryApi, QuickSearchApi, ScheduleApi, ScopeApi,
|
|
10
|
+
import { ActionColumnApi, ActionColumnOptions, ActionRowApi, ActionRowOptions, AlertApi, ApplicationApi, BulkUpdateApi, CalculatedColumnApi, CalendarApi, CellSummaryApi, CellSummaryOptions, ChartingApi, ChartingOptions, ColumnApi, ConfigApi, ContainerOptions, CustomSortApi, DashboardApi, DashboardOptions, DataChangeHistoryApi, DataChangeHistoryOptions, DataSetApi, DataSetOptions, EditOptions, EntitlementApi, EntitlementOptions, EventApi, ExportApi, FilterApi, FilterOptions, FlashingCellApi, FlashingCellOptions, FormatColumnApi, FormatColumnOptions, FreeTextColumnApi, GridApi, LayoutApi, LayoutAssociatedObject, LayoutOptions, MenuOptions, PluginsApi, PlusMinusApi, PredicateApi, QueryApi, QuickSearchApi, QuickSearchOptions, ScheduleApi, ScopeApi, SettingsPanelApi, SettingsPanelOptions, ShortcutApi, SmartEditApi, StateOptions, StatusBarApi, StyledColumnApi, SystemStatusApi, TeamSharingApi, TeamSharingOptions, ThemeApi, ToolPanelApi, UserInterfaceApi, UserInterfaceOptions } from '../../types';
|
|
11
11
|
import { NotificationsOptions } from '../../AdaptableOptions/NotificationsOptions';
|
|
12
12
|
import { ToolPanelOptions } from '../../AdaptableOptions/ToolPanelOptions';
|
|
13
13
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
@@ -77,7 +77,8 @@ export declare abstract class ApiBase {
|
|
|
77
77
|
protected getMenuOptions(): MenuOptions;
|
|
78
78
|
protected getFilterOptions(): FilterOptions;
|
|
79
79
|
protected getAdaptableQLOptions(): AdaptableQLOptions;
|
|
80
|
-
protected
|
|
80
|
+
protected getQuickSearchOptions(): QuickSearchOptions;
|
|
81
|
+
protected getFormatColumnOptions(): FormatColumnOptions;
|
|
81
82
|
protected getStateOptions(): StateOptions;
|
|
82
83
|
protected getTeamSharingOptions(): TeamSharingOptions;
|
|
83
84
|
protected getUserInterfaceOptions(): UserInterfaceOptions;
|
|
@@ -147,8 +147,11 @@ class ApiBase {
|
|
|
147
147
|
getAdaptableQLOptions() {
|
|
148
148
|
return this.getOptions().adaptableQLOptions;
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
return this.getOptions().
|
|
150
|
+
getQuickSearchOptions() {
|
|
151
|
+
return this.getOptions().quickSearchOptions;
|
|
152
|
+
}
|
|
153
|
+
getFormatColumnOptions() {
|
|
154
|
+
return this.getOptions().formatColumnOptions;
|
|
152
155
|
}
|
|
153
156
|
getStateOptions() {
|
|
154
157
|
return this.getOptions().stateOptions;
|
|
@@ -20,6 +20,7 @@ export declare class ChartingApiImpl extends ApiBase implements ChartingApi {
|
|
|
20
20
|
showChartDefinitionOnce(chartDefinition: ChartDefinition, container?: HTMLElement): ChartRef;
|
|
21
21
|
closeChartDefinition(chartDefinition: ChartDefinition): void;
|
|
22
22
|
editChartDefinition(editedChartDefinition: ChartDefinition): void;
|
|
23
|
+
updateAgChart(chartDefinition: ChartDefinition): void;
|
|
23
24
|
addChartDefinition(chart: ChartDefinition): void;
|
|
24
25
|
getChartingOpenState(): {
|
|
25
26
|
charts: {
|
|
@@ -74,6 +74,10 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
|
|
|
74
74
|
}
|
|
75
75
|
editChartDefinition(editedChartDefinition) {
|
|
76
76
|
this.dispatchAction(ChartingRedux.ChartingEditChart(editedChartDefinition));
|
|
77
|
+
this.updateAgChart(editedChartDefinition);
|
|
78
|
+
}
|
|
79
|
+
updateAgChart(chartDefinition) {
|
|
80
|
+
this.adaptable.updateChart(chartDefinition);
|
|
77
81
|
}
|
|
78
82
|
addChartDefinition(chart) {
|
|
79
83
|
this.dispatchAction(ChartingRedux.ChartingAddChart(chart));
|
|
@@ -26,7 +26,8 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
26
26
|
getColumnWithColumnId(columnId: string, logWarning?: boolean): AdaptableColumn | undefined;
|
|
27
27
|
hasNumberDataType(columnId: string): boolean;
|
|
28
28
|
hasBooleanDataType(columnId: string): boolean;
|
|
29
|
-
|
|
29
|
+
hasStringArrayDataType(columnId: string): boolean;
|
|
30
|
+
hasNumericArrayDataType(columnId: string): boolean;
|
|
30
31
|
hasDateDataType(columnId: string): boolean;
|
|
31
32
|
getColumnDataTypeForColumnId(columnId: string): AdaptableColumnDataType | undefined;
|
|
32
33
|
getFriendlyNameForColumnId(columnId: string): string;
|
|
@@ -39,10 +40,12 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
39
40
|
getColumnWithFriendlyName(columnFriendlyName: string, logWarning?: boolean): AdaptableColumn;
|
|
40
41
|
getColumnsOfType(dataType: AdaptableColumnDataType): AdaptableColumn[];
|
|
41
42
|
getNumericColumns(): AdaptableColumn[];
|
|
43
|
+
getNumericArrayColumns(): AdaptableColumn[];
|
|
42
44
|
getNumberArrayColumns(): AdaptableColumn[];
|
|
43
45
|
getTupleNumberArrayColumns(): AdaptableColumn[];
|
|
44
46
|
getObjectNumberArrayColumns(): AdaptableColumn[];
|
|
45
47
|
getStringColumns(): AdaptableColumn[];
|
|
48
|
+
getStringArrayColumns(): AdaptableColumn[];
|
|
46
49
|
getDateColumns(): AdaptableColumn[];
|
|
47
50
|
getBooleanColumns(): AdaptableColumn[];
|
|
48
51
|
getArrayColumns(): AdaptableColumn[];
|
|
@@ -76,7 +76,8 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
76
|
}
|
|
77
77
|
isActionColumn(columnId) {
|
|
78
78
|
var _a;
|
|
79
|
-
return (((_a = this.adaptable.api.actionColumnApi
|
|
79
|
+
return (((_a = this.adaptable.api.actionColumnApi
|
|
80
|
+
.getActionColumns()) === null || _a === void 0 ? void 0 : _a.find((cc) => cc.columnId == columnId)) != null);
|
|
80
81
|
}
|
|
81
82
|
getColumnWithColumnId(columnId, logWarning) {
|
|
82
83
|
if (columnId == undefined) {
|
|
@@ -112,7 +113,14 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
112
113
|
}
|
|
113
114
|
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Boolean';
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
+
hasStringArrayDataType(columnId) {
|
|
117
|
+
const column = this.getColumnWithColumnId(columnId);
|
|
118
|
+
if (!column) {
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
return (column === null || column === void 0 ? void 0 : column.dataType) == 'StringArray';
|
|
122
|
+
}
|
|
123
|
+
hasNumericArrayDataType(columnId) {
|
|
116
124
|
const column = this.getColumnWithColumnId(columnId);
|
|
117
125
|
if (!column) {
|
|
118
126
|
return false;
|
|
@@ -226,6 +234,8 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
226
234
|
return this.getNumericColumns();
|
|
227
235
|
case 'String':
|
|
228
236
|
return this.getStringColumns();
|
|
237
|
+
case 'StringArray':
|
|
238
|
+
return this.getStringArrayColumns();
|
|
229
239
|
case 'NumberArray':
|
|
230
240
|
return this.getNumberArrayColumns();
|
|
231
241
|
case 'ObjectNumberArray':
|
|
@@ -239,6 +249,11 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
239
249
|
getNumericColumns() {
|
|
240
250
|
return this.getColumns().filter((c) => c.dataType == 'Number');
|
|
241
251
|
}
|
|
252
|
+
getNumericArrayColumns() {
|
|
253
|
+
return this.getNumberArrayColumns()
|
|
254
|
+
.concat(this.getTupleNumberArrayColumns())
|
|
255
|
+
.concat(this.getObjectNumberArrayColumns());
|
|
256
|
+
}
|
|
242
257
|
getNumberArrayColumns() {
|
|
243
258
|
return this.getColumns().filter((c) => c.dataType == 'NumberArray');
|
|
244
259
|
}
|
|
@@ -251,6 +266,9 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
251
266
|
getStringColumns() {
|
|
252
267
|
return this.getColumns().filter((c) => c.dataType == 'String');
|
|
253
268
|
}
|
|
269
|
+
getStringArrayColumns() {
|
|
270
|
+
return this.getColumns().filter((c) => c.dataType == 'String');
|
|
271
|
+
}
|
|
254
272
|
getDateColumns() {
|
|
255
273
|
return this.getColumns().filter((c) => c.dataType == 'Date');
|
|
256
274
|
}
|
|
@@ -260,7 +278,8 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
260
278
|
getArrayColumns() {
|
|
261
279
|
return this.getColumns().filter((c) => c.dataType == 'NumberArray' ||
|
|
262
280
|
c.dataType == 'TupleNumberArray' ||
|
|
263
|
-
c.dataType == 'ObjectNumberArray'
|
|
281
|
+
c.dataType == 'ObjectNumberArray' ||
|
|
282
|
+
c.dataType == 'StringArray');
|
|
264
283
|
}
|
|
265
284
|
getSortableColumns() {
|
|
266
285
|
return this.getColumns().filter((c) => c.sortable);
|
|
@@ -8,5 +8,6 @@ export declare class DataChangeHistoryApiImpl extends ApiBase implements DataCha
|
|
|
8
8
|
suspendDataChangeHistory(): void;
|
|
9
9
|
getDataChangeHistoryLog(): CellDataChangedInfo[];
|
|
10
10
|
undoDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
|
|
11
|
+
clearDataChangeHistoryEntry(dataChangeInfo: CellDataChangedInfo): void;
|
|
11
12
|
openDataChangeHistorySettingsPanel(): void;
|
|
12
13
|
}
|
|
@@ -40,6 +40,9 @@ class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
|
|
|
40
40
|
undoDataChangeHistoryEntry(dataChangeInfo) {
|
|
41
41
|
this.dispatchAction((0, SystemRedux_1.SystemDataChangeHistoryUndo)(dataChangeInfo));
|
|
42
42
|
}
|
|
43
|
+
clearDataChangeHistoryEntry(dataChangeInfo) {
|
|
44
|
+
this.dispatchAction((0, SystemRedux_1.SystemDataChangeHistoryClearRow)(dataChangeInfo));
|
|
45
|
+
}
|
|
43
46
|
openDataChangeHistorySettingsPanel() {
|
|
44
47
|
this.showModulePopup(ModuleConstants.DataChangeHistoryModuleId);
|
|
45
48
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
|
-
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi,
|
|
2
|
+
import { ActionColumnOptions, ActionRowOptions, AdaptableOptions, AdaptableQLOptions, AlertOptions, CalendarOptions, CellSummaryOptions, ChartingOptions, ColumnOptions, ContainerOptions, DashboardOptions, DataChangeHistoryOptions, DataSetOptions, EditOptions, EntitlementOptions, ExportOptions, FilterOptions, FlashingCellOptions, FormatColumnOptions, LayoutOptions, MenuOptions, NotificationsOptions, OptionsApi, QuickSearchOptions, SettingsPanelOptions, StateOptions, TeamSharingOptions, ToolPanelOptions, UserInterfaceOptions } from '../../types';
|
|
3
3
|
import { GroupingOptions } from '../../AdaptableOptions/GroupingOptions';
|
|
4
4
|
import { CustomSortOptions } from '../../AdaptableOptions/CustomSortOptions';
|
|
5
5
|
export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
|
|
@@ -28,7 +28,8 @@ export declare class OptionsApiImpl extends ApiBase implements OptionsApi {
|
|
|
28
28
|
getMenuOptions(): MenuOptions;
|
|
29
29
|
getFilterOptions(): FilterOptions;
|
|
30
30
|
getAdaptableQLOptions(): AdaptableQLOptions;
|
|
31
|
-
|
|
31
|
+
getQuickSearchOptions(): QuickSearchOptions;
|
|
32
|
+
getFormatColumnOptions(): FormatColumnOptions;
|
|
32
33
|
getStateOptions(): StateOptions;
|
|
33
34
|
getTeamSharingOptions(): TeamSharingOptions;
|
|
34
35
|
getUserInterfaceOptions(): UserInterfaceOptions;
|
|
@@ -78,8 +78,11 @@ class OptionsApiImpl extends ApiBase_1.ApiBase {
|
|
|
78
78
|
getAdaptableQLOptions() {
|
|
79
79
|
return this.getOptions().adaptableQLOptions;
|
|
80
80
|
}
|
|
81
|
-
|
|
82
|
-
return this.getOptions().
|
|
81
|
+
getQuickSearchOptions() {
|
|
82
|
+
return this.getOptions().quickSearchOptions;
|
|
83
|
+
}
|
|
84
|
+
getFormatColumnOptions() {
|
|
85
|
+
return this.getOptions().formatColumnOptions;
|
|
83
86
|
}
|
|
84
87
|
getStateOptions() {
|
|
85
88
|
return this.getOptions().stateOptions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { PredicateApi } from '../PredicateApi';
|
|
3
|
-
import {
|
|
3
|
+
import { PredicateDefHandlerContext, PredicateModuleScope } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
4
4
|
import { AdaptablePredicate, AdaptablePredicateDef, AdaptableColumnPredicate } from '../../types';
|
|
5
5
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
6
6
|
import { PredicateInternalApi } from '../Internal/PredicateInternalApi';
|
|
@@ -17,8 +17,8 @@ export declare class PredicateApiImpl extends ApiBase implements PredicateApi {
|
|
|
17
17
|
predicateToString(predicate: AdaptableColumnPredicate): string | undefined;
|
|
18
18
|
isValidPredicate(predicate: AdaptableColumnPredicate | undefined): boolean;
|
|
19
19
|
isEveryPredicateValid(predicates: AdaptablePredicate[]): boolean;
|
|
20
|
-
handleColumnPredicate(predicate: AdaptableColumnPredicate | undefined,
|
|
21
|
-
handleColumnPredicates(predicates: AdaptableColumnPredicate[],
|
|
22
|
-
handlePredicate(predicate: AdaptablePredicate | undefined,
|
|
23
|
-
handlePredicates(predicates: AdaptablePredicate[], params: Omit<
|
|
20
|
+
handleColumnPredicate(predicate: AdaptableColumnPredicate | undefined, context: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
21
|
+
handleColumnPredicates(predicates: AdaptableColumnPredicate[], context: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
22
|
+
handlePredicate(predicate: AdaptablePredicate | undefined, context: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
23
|
+
handlePredicates(predicates: AdaptablePredicate[], params: Omit<PredicateDefHandlerContext, 'adaptableApi' | 'inputs'>, defaultReturn: boolean): boolean;
|
|
24
24
|
}
|
|
@@ -70,22 +70,22 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
|
70
70
|
isEveryPredicateValid(predicates) {
|
|
71
71
|
return predicates.every((predicate) => this.isValidPredicate(predicate));
|
|
72
72
|
}
|
|
73
|
-
handleColumnPredicate(predicate,
|
|
73
|
+
handleColumnPredicate(predicate, context, defaultReturn) {
|
|
74
74
|
if (!predicate.ColumnId) {
|
|
75
|
-
return this.handlePredicate(predicate,
|
|
75
|
+
return this.handlePredicate(predicate, context, defaultReturn);
|
|
76
76
|
}
|
|
77
|
-
const paramsForColumn = Object.assign(Object.assign({},
|
|
77
|
+
const paramsForColumn = Object.assign(Object.assign({}, context), { column: this.adaptable.api.columnApi.getColumnWithColumnId(predicate.ColumnId),
|
|
78
78
|
// value: params?.node?.data?.[predicate.ColumnId],
|
|
79
|
-
value: this.adaptable.api.gridApi.getRawValueFromRowNode(
|
|
79
|
+
value: this.adaptable.api.gridApi.getRawValueFromRowNode(context.node, predicate.ColumnId) });
|
|
80
80
|
if ('oldValue' in paramsForColumn) {
|
|
81
81
|
delete paramsForColumn.oldValue;
|
|
82
82
|
}
|
|
83
83
|
return this.handlePredicate(predicate, paramsForColumn, defaultReturn);
|
|
84
84
|
}
|
|
85
|
-
handleColumnPredicates(predicates,
|
|
86
|
-
return predicates.every((predicate) => this.handleColumnPredicate(predicate,
|
|
85
|
+
handleColumnPredicates(predicates, context, defaultReturn) {
|
|
86
|
+
return predicates.every((predicate) => this.handleColumnPredicate(predicate, context, defaultReturn));
|
|
87
87
|
}
|
|
88
|
-
handlePredicate(predicate,
|
|
88
|
+
handlePredicate(predicate, context, defaultReturn) {
|
|
89
89
|
var _a;
|
|
90
90
|
if (!predicate) {
|
|
91
91
|
return defaultReturn;
|
|
@@ -98,7 +98,7 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
|
98
98
|
return defaultReturn;
|
|
99
99
|
}
|
|
100
100
|
try {
|
|
101
|
-
return predicateDef.handler(Object.assign({
|
|
101
|
+
return predicateDef.handler(Object.assign({ adaptableApi: this.getAdaptableApi(), inputs: predicate.Inputs }, context));
|
|
102
102
|
}
|
|
103
103
|
catch (error) {
|
|
104
104
|
console.error(`Error in predicate ${predicateDef.label}`, error);
|
|
@@ -6,7 +6,11 @@ import { Glue42Schedule } from '../../PredefinedConfig/Glue42State';
|
|
|
6
6
|
import { IPushPullSchedule } from '../../PredefinedConfig/IPushPullState';
|
|
7
7
|
import { OpenFinSchedule } from '../../PredefinedConfig/OpenFinState';
|
|
8
8
|
import { ReminderSchedule, ScheduleState } from '../../PredefinedConfig/ScheduleState';
|
|
9
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
10
|
+
import { ScheduleInternalApi } from '../Internal/ScheduleInternalApi';
|
|
9
11
|
export declare class ScheduleApiImpl extends ApiBase implements ScheduleApi {
|
|
12
|
+
internalApi: ScheduleInternalApi;
|
|
13
|
+
constructor(adaptable: IAdaptable);
|
|
10
14
|
getScheduleState(): ScheduleState;
|
|
11
15
|
getSchedules(): BaseSchedule[];
|
|
12
16
|
getReminderSchedules(config?: {
|
|
@@ -5,7 +5,12 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const ScheduleRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ScheduleRedux"));
|
|
8
|
+
const ScheduleInternalApi_1 = require("../Internal/ScheduleInternalApi");
|
|
8
9
|
class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
10
|
+
constructor(adaptable) {
|
|
11
|
+
super(adaptable);
|
|
12
|
+
this.internalApi = new ScheduleInternalApi_1.ScheduleInternalApi(adaptable);
|
|
13
|
+
}
|
|
9
14
|
getScheduleState() {
|
|
10
15
|
return this.getAdaptableState().Schedule;
|
|
11
16
|
}
|
|
@@ -17,10 +17,7 @@ export declare class StyledColumnApiImpl extends ApiBase implements StyledColumn
|
|
|
17
17
|
getSuspendedStyledColumns(): StyledColumn[];
|
|
18
18
|
deleteStyledColumn(styledColumn: StyledColumn): void;
|
|
19
19
|
addStyledColumn(styledColumn: StyledColumn): void;
|
|
20
|
-
getCheckBoxStyleStyledColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
21
20
|
isSparklineStyleStyledColumn(column: AdaptableColumn): boolean;
|
|
22
|
-
isCheckBoxStyleStyledColumn(column: AdaptableColumn): boolean;
|
|
23
|
-
fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
|
|
24
21
|
getActiveStyledColumnForColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
25
22
|
hasPercentBarStyle(columnId: string): boolean;
|
|
26
23
|
hasGradientStyle(columnId: string): boolean;
|
|
@@ -4,7 +4,6 @@ exports.StyledColumnApiImpl = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/StyledColumnRedux"));
|
|
7
|
-
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
8
7
|
const StyledColumnInternalApi_1 = require("../Internal/StyledColumnInternalApi");
|
|
9
8
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
10
9
|
class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -37,37 +36,12 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
37
36
|
addStyledColumn(styledColumn) {
|
|
38
37
|
this.dispatchAction(StyledColumnRedux.StyledColumnAdd(styledColumn));
|
|
39
38
|
}
|
|
40
|
-
getCheckBoxStyleStyledColumn(column) {
|
|
41
|
-
var _a;
|
|
42
|
-
if (column.dataType != 'Boolean') {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
const checkBoxFormatColumns = (_a = this.getStyledColumnState().StyledColumns) === null || _a === void 0 ? void 0 : _a.filter((sc) => sc === null || sc === void 0 ? void 0 : sc.CheckBoxStyle);
|
|
46
|
-
const styledColumn = checkBoxFormatColumns.find((sc) => sc.ColumnId == column.columnId);
|
|
47
|
-
return styledColumn;
|
|
48
|
-
}
|
|
49
39
|
isSparklineStyleStyledColumn(column) {
|
|
50
40
|
if (!column) {
|
|
51
41
|
return false;
|
|
52
42
|
}
|
|
53
43
|
return !!this.getStyledColumns().find((styledColumn) => !!styledColumn.SparkLineStyle && styledColumn.ColumnId === column.columnId);
|
|
54
44
|
}
|
|
55
|
-
isCheckBoxStyleStyledColumn(column) {
|
|
56
|
-
const styledColumn = this.getCheckBoxStyleStyledColumn(column);
|
|
57
|
-
return Helper_1.default.objectExists(styledColumn);
|
|
58
|
-
}
|
|
59
|
-
fireCheckboxColumnClickedEvent(columnId, rowData, primaryKeyValue, isChecked) {
|
|
60
|
-
let checkboxColumnClickedInfo = {
|
|
61
|
-
adaptableApi: this.adaptable.api,
|
|
62
|
-
column: this.adaptable.api.columnApi.getColumnWithColumnId(columnId),
|
|
63
|
-
rowData: rowData,
|
|
64
|
-
primaryKeyValue: primaryKeyValue,
|
|
65
|
-
isChecked: isChecked,
|
|
66
|
-
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
67
|
-
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
68
|
-
};
|
|
69
|
-
this.adaptable.api.eventApi.emit('CheckboxColumnClicked', checkboxColumnClickedInfo);
|
|
70
|
-
}
|
|
71
45
|
getActiveStyledColumnForColumn(column) {
|
|
72
46
|
const styledColumns = this.getActiveStyledColumns();
|
|
73
47
|
return styledColumns.find((sc) => sc.ColumnId == column.columnId);
|
|
@@ -5,7 +5,11 @@ import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
|
|
|
5
5
|
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
6
6
|
import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
|
|
7
7
|
import { AdaptableObjectTag, GridCell } from '../../types';
|
|
8
|
+
import { UserInterfaceInternalApi } from '../Internal/UserInterfaceInternalApi';
|
|
9
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
8
10
|
export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
|
|
11
|
+
internalApi: UserInterfaceInternalApi;
|
|
12
|
+
constructor(adaptable: IAdaptable);
|
|
9
13
|
getColorPalette(): string[];
|
|
10
14
|
getStyleClassNames(): string[] | undefined;
|
|
11
15
|
getPermittedValuesItems(): PermittedValues[];
|
|
@@ -25,8 +29,5 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
25
29
|
getEditableCellStyle(): AdaptableStyle | undefined;
|
|
26
30
|
getReadOnlyCellStyle(): AdaptableStyle | undefined;
|
|
27
31
|
getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
|
|
28
|
-
getCustomIconDefinition(iconName: string): import("../../types").AdaptableIcon |
|
|
29
|
-
name: string;
|
|
30
|
-
icon: import("../../types").AdaptableIcon;
|
|
31
|
-
};
|
|
32
|
+
getCustomIconDefinition(iconName: string): import("../../types").AdaptableIcon | import("../../types").CustomIcon;
|
|
32
33
|
}
|