@adaptabletools/adaptable 11.2.4 → 12.0.0-canary.1
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 +568 -273
- package/bundle.cjs.js +120 -120
- package/index.css +642 -270
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -0
- package/src/AdaptableOptions/{FormatColumnOptions.js → ActionOptions.js} +0 -0
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +5 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -10
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +14 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +49 -0
- package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.js → ColumnOptions.js} +0 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +2 -7
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -0
- package/src/AdaptableOptions/EditOptions.d.ts +91 -4
- package/src/AdaptableOptions/EntitlementOptions.d.ts +7 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +9 -8
- package/src/AdaptableOptions/FilterOptions.d.ts +6 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +25 -23
- package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.d.ts → MasterDetailPluginOptions.d.ts} +2 -4
- package/src/AdaptableOptions/{SmartEdit.js → MasterDetailPluginOptions.js} +0 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -6
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -49
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +95 -50
- package/src/Api/AdaptableApi.d.ts +6 -3
- package/src/Api/ColumnApi.d.ts +9 -4
- package/src/Api/ConditionalStyleApi.d.ts +10 -0
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/DashboardApi.d.ts +6 -19
- package/src/Api/DataSetApi.d.ts +40 -0
- package/src/Api/{DataSourceApi.js → DataSetApi.js} +0 -0
- package/src/Api/EventApi.d.ts +29 -1
- package/src/Api/Events/DataSetChanged.d.ts +5 -0
- package/src/{PredefinedConfig/DataSourceState.js → Api/Events/DataSetChanged.js} +0 -0
- package/src/Api/Events/RowFormSubmitted.d.ts +19 -0
- package/src/{PredefinedConfig/FilterState.js → Api/Events/RowFormSubmitted.js} +0 -0
- package/src/Api/Events/SearchChanged.d.ts +4 -5
- package/src/Api/ExportApi.d.ts +2 -2
- package/src/Api/FilterApi.d.ts +28 -36
- package/src/Api/FormatColumnApi.d.ts +6 -0
- package/src/Api/GridApi.d.ts +15 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
- package/src/Api/Implementation/AlertApiImpl.js +5 -1
- package/src/Api/Implementation/ApiBase.d.ts +3 -0
- package/src/Api/Implementation/ApiBase.js +6 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ColumnApiImpl.js +17 -16
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +8 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +2 -24
- package/src/Api/Implementation/DashboardApiImpl.d.ts +3 -6
- package/src/Api/Implementation/DashboardApiImpl.js +5 -29
- package/src/Api/Implementation/DataSetApiImpl.d.ts +12 -0
- package/src/Api/Implementation/DataSetApiImpl.js +42 -0
- package/src/Api/Implementation/EventApiImpl.js +1 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
- package/src/Api/Implementation/FilterApiImpl.d.ts +11 -11
- package/src/Api/Implementation/FilterApiImpl.js +59 -72
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -2
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
- package/src/Api/Implementation/GridApiImpl.js +45 -1
- package/src/Api/Implementation/InternalApiImpl.d.ts +7 -2
- package/src/Api/Implementation/InternalApiImpl.js +51 -10
- package/src/Api/Implementation/LayoutApiImpl.d.ts +3 -0
- package/src/Api/Implementation/LayoutApiImpl.js +20 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PredicateApiImpl.js +19 -1
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +5 -2
- package/src/Api/Implementation/SmartEditApiImpl.js +9 -0
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +5 -3
- package/src/Api/Implementation/TeamSharingApiImpl.js +28 -10
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +7 -25
- package/src/Api/InternalApi.d.ts +6 -2
- package/src/Api/LayoutApi.d.ts +16 -0
- package/src/Api/PredicateApi.d.ts +7 -0
- package/src/Api/SmartEditApi.d.ts +14 -3
- package/src/Api/TeamSharingApi.d.ts +18 -5
- package/src/Api/UserInterfaceApi.d.ts +4 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -0
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +5 -1
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +3 -2
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -3
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +2 -11
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +18 -1
- package/src/PredefinedConfig/Common/BaseContext.d.ts +1 -1
- package/src/PredefinedConfig/{FilterState.d.ts → Common/ColumnFilter.d.ts} +2 -33
- package/src/PredefinedConfig/Common/ColumnFilter.js +2 -0
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -2
- package/src/PredefinedConfig/Common/Enums.js +1 -1
- package/src/PredefinedConfig/Common/FormContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/FormContext.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +6 -5
- package/src/PredefinedConfig/Common/Types.js +2 -3
- package/src/PredefinedConfig/LayoutState.d.ts +5 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
- package/src/PredefinedConfig/StatusBarState.d.ts +1 -2
- package/src/PredefinedConfig/SystemState.d.ts +4 -2
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +47 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +134 -1
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +3 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +39 -1
- package/src/Redux/Store/AdaptableStore.js +37 -39
- package/src/Strategy/AdaptableModuleBase.js +1 -2
- package/src/Strategy/AlertModule.d.ts +11 -0
- package/src/Strategy/AlertModule.js +14 -0
- package/src/Strategy/BulkUpdateModule.js +3 -4
- package/src/Strategy/CellSummaryModule.d.ts +3 -0
- package/src/Strategy/CellSummaryModule.js +29 -16
- package/src/Strategy/DataSetModule.d.ts +25 -0
- package/src/Strategy/DataSetModule.js +65 -0
- package/src/Strategy/ExportModule.js +6 -1
- package/src/Strategy/FilterModule.d.ts +7 -11
- package/src/Strategy/FilterModule.js +26 -20
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +3 -1
- package/src/Strategy/LayoutModule.js +25 -2
- package/src/Strategy/PlusMinusModule.js +1 -4
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SmartEditModule.js +7 -8
- package/src/Strategy/StatusBarModule.js +1 -3
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/ToolPanelModule.js +1 -4
- package/src/Utilities/Constants/GeneralConstants.d.ts +8 -2
- package/src/Utilities/Constants/GeneralConstants.js +8 -2
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -1
- package/src/Utilities/Constants/ModuleConstants.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -13
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +4 -1
- package/src/Utilities/ObjectFactory.d.ts +3 -6
- package/src/Utilities/ObjectFactory.js +3 -7
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +6 -7
- package/src/Utilities/Services/EntitlementService.js +7 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +8 -0
- package/src/Utilities/Services/Interface/IRowEditService.js +2 -0
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/ReportService.js +2 -3
- package/src/Utilities/Services/RowEditService.d.ts +26 -0
- package/src/Utilities/Services/RowEditService.js +197 -0
- package/src/Utilities/Services/TeamSharingService.js +4 -4
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +5 -6
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/Alert/ActiveAlertsPanel.d.ts +2 -0
- package/src/View/Alert/ActiveAlertsPanel.js +15 -0
- package/src/View/Alert/AlertStatusSubPanel.js +3 -8
- package/src/View/Alert/AlertViewPanel.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -3
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +13 -7
- package/src/View/CellSummary/CellSummaryDetails.js +4 -4
- package/src/View/CellSummary/CellSummaryPopover.d.ts +2 -4
- package/src/View/CellSummary/CellSummaryPopover.js +3 -6
- package/src/View/CellSummary/CellSummaryPopup.js +8 -0
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +18 -8
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -2
- package/src/View/Components/ExternalRenderer.d.ts +3 -6
- package/src/View/Components/ExternalRenderer.js +5 -5
- package/src/View/Components/FilterForm/FilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +10 -8
- package/src/View/Components/FilterForm/QuickFilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +0 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +13 -11
- package/src/View/Components/Popups/AdaptableToaster.js +29 -9
- package/src/View/Components/Popups/FormPopups/FormPopups.js +2 -2
- package/src/View/Components/PreviewResultsPanel.js +3 -3
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -9
- package/src/View/Components/WizardSummaryPage.js +2 -2
- package/src/View/Dashboard/CustomDashboardButton.d.ts +11 -0
- package/src/View/Dashboard/CustomDashboardButton.js +47 -0
- package/src/View/Dashboard/CustomToolbarWrapper.d.ts +1 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +30 -11
- package/src/View/Dashboard/Dashboard.d.ts +1 -0
- package/src/View/Dashboard/Dashboard.js +8 -34
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +19 -36
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +3 -0
- package/src/View/DataChangeHistory/buildActionColumnButton.js +70 -0
- package/src/View/DataSet/DataSetSelector.d.ts +7 -0
- package/src/View/DataSet/DataSetSelector.js +18 -0
- package/src/View/DataSet/DataSetStatusPanelPopover.d.ts +2 -0
- package/src/View/DataSet/DataSetStatusPanelPopover.js +19 -0
- package/src/View/DataSet/DataSetViewPanel.d.ts +19 -0
- package/src/View/DataSet/DataSetViewPanel.js +58 -0
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.d.ts +5 -5
- package/src/View/Filter/FilterSummary.js +5 -4
- package/src/View/Filter/FilterViewPanel.d.ts +4 -4
- package/src/View/Filter/FilterViewPanel.js +10 -13
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -7
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +4 -5
- package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -24
- package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +2 -1
- package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +3 -4
- package/src/View/SmartEdit/SmartEditViewPanel.d.ts +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +3 -4
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +1 -1
- package/src/View/StatusBar/StatusBarPanel.d.ts +1 -0
- package/src/View/StatusBar/StatusBarPanel.js +5 -4
- package/src/View/Theme/ThemeStatusPanelPopover.js +5 -25
- package/src/View/UIHelper.d.ts +4 -4
- package/src/View/UIHelper.js +10 -10
- package/src/agGrid/ActionColumnRenderer.d.ts +6 -1
- package/src/agGrid/ActionColumnRenderer.js +9 -6
- package/src/agGrid/Adaptable.d.ts +7 -2
- package/src/agGrid/Adaptable.js +213 -69
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/agGridHelper.d.ts +7 -8
- package/src/agGrid/agGridHelper.js +68 -86
- package/src/agGrid/agGridMenuHelper.js +4 -1
- package/src/agGrid/rowEditIcons.d.ts +5 -0
- package/src/agGrid/rowEditIcons.js +10 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +9 -18
- package/src/components/Dashboard/DashboardToolbar.js +2 -2
- package/src/components/Datepicker/index.js +19 -18
- package/src/components/InfiniteTable/index.js +1 -0
- package/src/components/List/GridList/index.js +1 -1
- package/src/components/SelectList.d.ts +10 -0
- package/src/components/SelectList.js +9 -0
- package/src/components/WindowModal/WindowModal.d.ts +2 -0
- package/src/components/WindowModal/WindowModal.js +1 -1
- package/src/components/icons/{data-source.d.ts → add-row.d.ts} +0 -0
- package/src/components/icons/add-row.js +7 -0
- package/src/components/icons/data-set.d.ts +3 -0
- package/src/components/icons/{data-source.js → data-set.js} +0 -0
- package/src/components/icons/index.js +4 -2
- package/src/metamodel/adaptable.metamodel.d.ts +226 -69
- package/src/metamodel/adaptable.metamodel.js +532 -311
- package/src/types.d.ts +18 -13
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +0 -9
- package/src/AdaptableOptions/SmartEdit.d.ts +0 -34
- package/src/Api/DataSourceApi.d.ts +0 -58
- package/src/Api/Implementation/DataSourceApiImpl.d.ts +0 -15
- package/src/Api/Implementation/DataSourceApiImpl.js +0 -51
- package/src/PredefinedConfig/DataSourceState.d.ts +0 -34
- package/src/Redux/ActionsReducers/DataSourceRedux.d.ts +0 -42
- package/src/Redux/ActionsReducers/DataSourceRedux.js +0 -76
- package/src/Redux/ActionsReducers/FilterRedux.d.ts +0 -70
- package/src/Redux/ActionsReducers/FilterRedux.js +0 -126
- package/src/Strategy/DataSourceModule.d.ts +0 -20
- package/src/Strategy/DataSourceModule.js +0 -56
- package/src/View/Components/Forms/AdaptableForm.d.ts +0 -6
- package/src/View/Components/Forms/AdaptableForm.js +0 -21
- package/src/View/DataSource/DataSourceViewPanel.d.ts +0 -19
- package/src/View/DataSource/DataSourceViewPanel.js +0 -69
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.d.ts +0 -2
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +0 -17
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.d.ts +0 -8
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +0 -42
- package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +0 -8
- package/src/View/DataSource/Wizard/DataSourceWizard.js +0 -53
|
@@ -104,6 +104,12 @@ export interface FormatColumnApi {
|
|
|
104
104
|
* Opens Settings Panel with Format Column section selected and visible
|
|
105
105
|
*/
|
|
106
106
|
showFormatColumnPopup(): void;
|
|
107
|
+
/**
|
|
108
|
+
* Gets an active Format Column, if any, for given Column
|
|
109
|
+
* @param column The Column for which to retrieve the Format Column
|
|
110
|
+
* @returns format column
|
|
111
|
+
*/
|
|
112
|
+
getActiveFormatColumnForColumn(column: AdaptableColumn): FormatColumn | undefined;
|
|
107
113
|
/**
|
|
108
114
|
* Gets Format Column, if any, for given Column
|
|
109
115
|
* @param column The Column for which to retrieve the Format Column
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -333,7 +333,7 @@ export interface GridApi {
|
|
|
333
333
|
/**
|
|
334
334
|
* Fires Search Changed Event - typically used to enable server searching and filtering
|
|
335
335
|
*/
|
|
336
|
-
fireSearchChangedEvent(searchChangedTrigger: '
|
|
336
|
+
fireSearchChangedEvent(searchChangedTrigger: 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort', searchAtDate?: Date): void;
|
|
337
337
|
/**
|
|
338
338
|
* Fires Cell Changed Changed Event - when any data in AG Grid's dataset has changed
|
|
339
339
|
*/
|
|
@@ -464,4 +464,18 @@ export interface GridApi {
|
|
|
464
464
|
* Opens Settings Panel with Grid Info section selected and visible
|
|
465
465
|
*/
|
|
466
466
|
showGridInfoPopup(): void;
|
|
467
|
+
/**
|
|
468
|
+
* Open edit dialog for row with the given primary key value
|
|
469
|
+
* @param primaryKey - the primary key of the edited row
|
|
470
|
+
*/
|
|
471
|
+
openEditRowForm(primaryKey: any): void;
|
|
472
|
+
/**
|
|
473
|
+
* Open create dialog for a new row
|
|
474
|
+
*/
|
|
475
|
+
openCreateRowForm(): void;
|
|
476
|
+
/**
|
|
477
|
+
* Open create dialog for cloning an existing row
|
|
478
|
+
* @param clonedRowNodePrimaryKey - the primary key of the duplicated row
|
|
479
|
+
*/
|
|
480
|
+
openCloneRowForm(clonedRowNodePrimaryKey?: any): void;
|
|
467
481
|
}
|
|
@@ -9,7 +9,7 @@ import { ConfigApi } from '../ConfigApi';
|
|
|
9
9
|
import { CustomSortApi } from '../CustomSortApi';
|
|
10
10
|
import { DashboardApi } from '../DashboardApi';
|
|
11
11
|
import { ToolPanelApi } from '../ToolPanelApi';
|
|
12
|
-
import {
|
|
12
|
+
import { DataSetApi } from '../DataSetApi';
|
|
13
13
|
import { EventApi } from '../EventApi';
|
|
14
14
|
import { PluginsApi } from '../PluginsApi';
|
|
15
15
|
import { ExportApi } from '../ExportApi';
|
|
@@ -52,7 +52,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
52
52
|
configApi: ConfigApi;
|
|
53
53
|
customSortApi: CustomSortApi;
|
|
54
54
|
dashboardApi: DashboardApi;
|
|
55
|
-
|
|
55
|
+
dataSetApi: DataSetApi;
|
|
56
56
|
eventApi: EventApi;
|
|
57
57
|
exportApi: ExportApi;
|
|
58
58
|
formatColumnApi: FormatColumnApi;
|
|
@@ -13,7 +13,7 @@ const ConfigApiImpl_1 = require("./ConfigApiImpl");
|
|
|
13
13
|
const CustomSortApiImpl_1 = require("./CustomSortApiImpl");
|
|
14
14
|
const DashboardApiImpl_1 = require("./DashboardApiImpl");
|
|
15
15
|
const ToolPanelApiImpl_1 = require("./ToolPanelApiImpl");
|
|
16
|
-
const
|
|
16
|
+
const DataSetApiImpl_1 = require("./DataSetApiImpl");
|
|
17
17
|
const EventApiImpl_1 = require("./EventApiImpl");
|
|
18
18
|
const ExportApiImpl_1 = require("./ExportApiImpl");
|
|
19
19
|
const FormatColumnApiImpl_1 = require("./FormatColumnApiImpl");
|
|
@@ -58,7 +58,7 @@ class AdaptableApiImpl {
|
|
|
58
58
|
this.configApi = new ConfigApiImpl_1.ConfigApiImpl(adaptable);
|
|
59
59
|
this.customSortApi = new CustomSortApiImpl_1.CustomSortApiImpl(adaptable);
|
|
60
60
|
this.dashboardApi = new DashboardApiImpl_1.DashboardApiImpl(adaptable);
|
|
61
|
-
this.
|
|
61
|
+
this.dataSetApi = new DataSetApiImpl_1.DataSetApiImpl(adaptable);
|
|
62
62
|
this.eventApi = new EventApiImpl_1.EventApiImpl(adaptable);
|
|
63
63
|
this.exportApi = new ExportApiImpl_1.ExportApiImpl(adaptable);
|
|
64
64
|
this.formatColumnApi = new FormatColumnApiImpl_1.FormatColumnApiImpl(adaptable);
|
|
@@ -106,7 +106,7 @@ class AdaptableApiImpl {
|
|
|
106
106
|
this.customSortApi = null;
|
|
107
107
|
this.dashboardApi = null;
|
|
108
108
|
this.dataChangeHistoryApi = null;
|
|
109
|
-
this.
|
|
109
|
+
this.dataSetApi = null;
|
|
110
110
|
this.eventApi = null;
|
|
111
111
|
this.exportApi = null;
|
|
112
112
|
this.filterApi = null;
|
|
@@ -297,7 +297,11 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
297
297
|
var _a;
|
|
298
298
|
const alertMessageFunction = (_a = this.adaptable.adaptableOptions.alertOptions) === null || _a === void 0 ? void 0 : _a.alertMessageText;
|
|
299
299
|
if (alertMessageFunction) {
|
|
300
|
-
const
|
|
300
|
+
const alertMessageContext = {
|
|
301
|
+
alertDefinition: alertDefinition,
|
|
302
|
+
cellDataChangedInfo: cellDataChangedInfo,
|
|
303
|
+
};
|
|
304
|
+
const returnText = alertMessageFunction(alertMessageContext);
|
|
301
305
|
if (returnText) {
|
|
302
306
|
return returnText;
|
|
303
307
|
}
|
|
@@ -13,6 +13,7 @@ import { ToolPanelOptions } from '../../AdaptableOptions/ToolPanelOptions';
|
|
|
13
13
|
import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
|
|
14
14
|
import { AdaptableQLOptions, ExpressionOptions } from '../../AdaptableOptions/AdaptableQLOptions';
|
|
15
15
|
import { AlertOptions } from '../../AdaptableOptions/AlertOptions';
|
|
16
|
+
import { ColumnOptions } from '../../AdaptableOptions/ColumnOptions';
|
|
16
17
|
export declare abstract class ApiBase {
|
|
17
18
|
protected adaptable: IAdaptable;
|
|
18
19
|
/**
|
|
@@ -45,6 +46,7 @@ export declare abstract class ApiBase {
|
|
|
45
46
|
protected getModuleInfoByModuleId(module: AdaptableModule): ModuleInfo;
|
|
46
47
|
protected showModulePopup(module: AdaptableModule, moduleParams?: ModuleParams): void;
|
|
47
48
|
protected getOptions(): AdaptableOptions;
|
|
49
|
+
protected getColumnOptions(): ColumnOptions;
|
|
48
50
|
protected getContainerOptions(): ContainerOptions;
|
|
49
51
|
protected getNotificationsOptions(): NotificationsOptions;
|
|
50
52
|
protected getAlertOptions(): AlertOptions;
|
|
@@ -63,4 +65,5 @@ export declare abstract class ApiBase {
|
|
|
63
65
|
protected getToolPanelOptions(): ToolPanelOptions;
|
|
64
66
|
protected getExpressionOptions(): ExpressionOptions;
|
|
65
67
|
protected getAdaptableApi(): AdaptableApi;
|
|
68
|
+
destroy(): void;
|
|
66
69
|
}
|
|
@@ -74,6 +74,9 @@ class ApiBase {
|
|
|
74
74
|
getOptions() {
|
|
75
75
|
return this.adaptable.adaptableOptions;
|
|
76
76
|
}
|
|
77
|
+
getColumnOptions() {
|
|
78
|
+
return this.getOptions().columnOptions;
|
|
79
|
+
}
|
|
77
80
|
getContainerOptions() {
|
|
78
81
|
return this.getOptions().containerOptions;
|
|
79
82
|
}
|
|
@@ -128,5 +131,8 @@ class ApiBase {
|
|
|
128
131
|
getAdaptableApi() {
|
|
129
132
|
return this.adaptable.api;
|
|
130
133
|
}
|
|
134
|
+
destroy() {
|
|
135
|
+
delete this.adaptable;
|
|
136
|
+
}
|
|
131
137
|
}
|
|
132
138
|
exports.ApiBase = ApiBase;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
|
-
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
-
import { DataType } from '../../PredefinedConfig/Common/Enums';
|
|
2
|
+
import { AdaptableColumn, AdaptableColumnDataType } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
4
3
|
import { ColumnApi } from '../ColumnApi';
|
|
5
4
|
import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
|
|
6
5
|
import { Column, RowNode } from '@ag-grid-community/all-modules';
|
|
@@ -27,7 +26,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
27
26
|
isNumericColumn(column: AdaptableColumn): boolean;
|
|
28
27
|
isBooleanColumn(column: AdaptableColumn): boolean;
|
|
29
28
|
isDateColumn(column: AdaptableColumn): boolean;
|
|
30
|
-
getColumnDataTypeFromColumnId(columnId: string):
|
|
29
|
+
getColumnDataTypeFromColumnId(columnId: string): AdaptableColumnDataType | undefined;
|
|
31
30
|
getFriendlyNameFromColumn(columnId: string, column: AdaptableColumn): string;
|
|
32
31
|
getFriendlyNameFromColumnId(columnId: string): string;
|
|
33
32
|
getFriendlyNamesFromColumnIds(columnIds: string[]): string[];
|
|
@@ -41,7 +40,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
41
40
|
getAgGridColumnFieldForAdaptableColumn(colId: string): string;
|
|
42
41
|
getAgGridColumnForAdaptableColumn(columnId: string): Column;
|
|
43
42
|
getColumnFromFriendlyName(columnName: string, logWarning?: boolean): AdaptableColumn;
|
|
44
|
-
getColumnsOfType(dataType:
|
|
43
|
+
getColumnsOfType(dataType: AdaptableColumnDataType): AdaptableColumn[];
|
|
45
44
|
getNumericColumns(): AdaptableColumn[];
|
|
46
45
|
getStringColumns(): AdaptableColumn[];
|
|
47
46
|
getDateColumns(): AdaptableColumn[];
|
|
@@ -68,4 +67,5 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
68
67
|
usesAdaptableFilterForm(columnId: string): boolean;
|
|
69
68
|
usesAdaptableQuickFilter(columnId: string): boolean;
|
|
70
69
|
isColumnReferencedInExpression(columnId: string, expression: string): boolean;
|
|
70
|
+
isActionRowButtonColumn(columnId: string): boolean;
|
|
71
71
|
}
|
|
@@ -89,13 +89,13 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
91
91
|
isNumericColumn(column) {
|
|
92
|
-
return column.dataType ==
|
|
92
|
+
return column.dataType == 'Number';
|
|
93
93
|
}
|
|
94
94
|
isBooleanColumn(column) {
|
|
95
|
-
return column.dataType ==
|
|
95
|
+
return column.dataType == 'Boolean';
|
|
96
96
|
}
|
|
97
97
|
isDateColumn(column) {
|
|
98
|
-
return column.dataType ==
|
|
98
|
+
return column.dataType == 'Date';
|
|
99
99
|
}
|
|
100
100
|
getColumnDataTypeFromColumnId(columnId) {
|
|
101
101
|
const column = this.getColumnFromId(columnId); // this.getColumns().find(c => c.ColumnId == columnId);
|
|
@@ -224,31 +224,29 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
224
224
|
}
|
|
225
225
|
getColumnsOfType(dataType) {
|
|
226
226
|
switch (dataType) {
|
|
227
|
-
case
|
|
228
|
-
return this.getColumns();
|
|
229
|
-
case Enums_1.DataType.Boolean:
|
|
227
|
+
case 'Boolean':
|
|
230
228
|
return this.getBooleanColumns();
|
|
231
|
-
case
|
|
229
|
+
case 'Date':
|
|
232
230
|
return this.getDateColumns();
|
|
233
|
-
case
|
|
231
|
+
case 'Number':
|
|
234
232
|
return this.getNumericColumns();
|
|
235
|
-
case
|
|
233
|
+
case 'String':
|
|
236
234
|
return this.getStringColumns();
|
|
237
235
|
default:
|
|
238
236
|
return this.getColumns();
|
|
239
237
|
}
|
|
240
238
|
}
|
|
241
239
|
getNumericColumns() {
|
|
242
|
-
return this.getColumns().filter((c) => c.dataType ==
|
|
240
|
+
return this.getColumns().filter((c) => c.dataType == 'Number');
|
|
243
241
|
}
|
|
244
242
|
getStringColumns() {
|
|
245
|
-
return this.getColumns().filter((c) => c.dataType ==
|
|
243
|
+
return this.getColumns().filter((c) => c.dataType == 'String');
|
|
246
244
|
}
|
|
247
245
|
getDateColumns() {
|
|
248
|
-
return this.getColumns().filter((c) => c.dataType ==
|
|
246
|
+
return this.getColumns().filter((c) => c.dataType == 'Date');
|
|
249
247
|
}
|
|
250
248
|
getBooleanColumns() {
|
|
251
|
-
return this.getColumns().filter((c) => c.dataType ==
|
|
249
|
+
return this.getColumns().filter((c) => c.dataType == 'Boolean');
|
|
252
250
|
}
|
|
253
251
|
getSortableColumns() {
|
|
254
252
|
return this.getColumns().filter((c) => c.sortable);
|
|
@@ -262,14 +260,14 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
262
260
|
getAggregetableColumns() {
|
|
263
261
|
return this.getColumns()
|
|
264
262
|
.filter((c) => c.aggregatable)
|
|
265
|
-
.filter((c) => c.dataType ==
|
|
263
|
+
.filter((c) => c.dataType == 'Number');
|
|
266
264
|
}
|
|
267
265
|
getQueryableColumns() {
|
|
268
266
|
return this.getColumns().filter((c) => c.queryable);
|
|
269
267
|
}
|
|
270
268
|
LogMissingColumnWarning(columnId) {
|
|
271
|
-
if (this.adaptable.adaptableOptions.
|
|
272
|
-
this.adaptable.adaptableOptions.
|
|
269
|
+
if (this.adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning &&
|
|
270
|
+
this.adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning === true) {
|
|
273
271
|
if (!this.isAutoRowGroupColumn(columnId) &&
|
|
274
272
|
!this.isCalculatedColumn(columnId) &&
|
|
275
273
|
!this.isFreeTextColumn(columnId) &&
|
|
@@ -409,5 +407,8 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
409
407
|
const colIds = this.adaptable.api.queryLanguageApi.getColumnsFromExpression(expression);
|
|
410
408
|
return colIds.some((c) => c === columnId);
|
|
411
409
|
}
|
|
410
|
+
isActionRowButtonColumn(columnId) {
|
|
411
|
+
return columnId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS;
|
|
412
|
+
}
|
|
412
413
|
}
|
|
413
414
|
exports.ColumnApiImpl = ColumnApiImpl;
|
|
@@ -13,6 +13,8 @@ export declare class ConditionalStyleApiImpl extends ApiBase implements Conditio
|
|
|
13
13
|
getAllSuspendedConditionalStyle(): ConditionalStyle[];
|
|
14
14
|
editConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
|
|
15
15
|
editConditionalStyles(conditionalStyles: ConditionalStyle[]): ConditionalStyle[];
|
|
16
|
+
deleteConditionalStyles(conditionalStyles: ConditionalStyle[]): void;
|
|
17
|
+
deleteConditionalStyle(conditionalStyle: ConditionalStyle): void;
|
|
16
18
|
addConditionalStyle(conditionalStyle: ConditionalStyle): ConditionalStyle;
|
|
17
19
|
showConditionalStylePopup(): void;
|
|
18
20
|
getRowConditionalStyles(): ConditionalStyle[] | undefined;
|
|
@@ -33,6 +33,14 @@ class ConditionalStyleApiImpl extends ApiBase_1.ApiBase {
|
|
|
33
33
|
});
|
|
34
34
|
return conditionalStyles === null || conditionalStyles === void 0 ? void 0 : conditionalStyles.map((conditionalStyle) => this.getConditionalStyleById(conditionalStyle.Uuid));
|
|
35
35
|
}
|
|
36
|
+
deleteConditionalStyles(conditionalStyles) {
|
|
37
|
+
conditionalStyles.forEach((cs) => {
|
|
38
|
+
this.deleteConditionalStyle(cs);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
deleteConditionalStyle(conditionalStyle) {
|
|
42
|
+
this.dispatchAction(ConditionalStyleRedux.ConditionalStyleDelete(conditionalStyle));
|
|
43
|
+
}
|
|
36
44
|
addConditionalStyle(conditionalStyle) {
|
|
37
45
|
this.addUidToAdaptableObject(conditionalStyle);
|
|
38
46
|
this.dispatchAction(ConditionalStyleRedux.ConditionalStyleAdd(conditionalStyle));
|
|
@@ -5,7 +5,6 @@ import { PlusMinusState } from '../../PredefinedConfig/PlusMinusState';
|
|
|
5
5
|
import { LayoutState } from '../../PredefinedConfig/LayoutState';
|
|
6
6
|
import { FormatColumnState } from '../../PredefinedConfig/FormatColumnState';
|
|
7
7
|
import { ExportState } from '../../PredefinedConfig/ExportState';
|
|
8
|
-
import { DataSourceState } from '../../PredefinedConfig/DataSourceState';
|
|
9
8
|
import { DashboardState } from '../../PredefinedConfig/DashboardState';
|
|
10
9
|
import { CustomSortState } from '../../PredefinedConfig/CustomSortState';
|
|
11
10
|
import { ConditionalStyleState } from '../../PredefinedConfig/ConditionalStyleState';
|
|
@@ -16,7 +15,6 @@ import { AdaptablePersistentState, AdaptableState } from '../../PredefinedConfig
|
|
|
16
15
|
import { ApiBase } from './ApiBase';
|
|
17
16
|
import { ApplicationState } from '../../PredefinedConfig/ApplicationState';
|
|
18
17
|
import { FreeTextColumnState } from '../../PredefinedConfig/FreeTextColumnState';
|
|
19
|
-
import { FilterState } from '../../PredefinedConfig/FilterState';
|
|
20
18
|
import { ToolPanelState } from '../../PredefinedConfig/ToolPanelState';
|
|
21
19
|
import { ConfigApi } from '../ConfigApi';
|
|
22
20
|
import { AdaptableStateKey, AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
@@ -52,9 +50,7 @@ export declare class ConfigApiImpl extends ApiBase implements ConfigApi {
|
|
|
52
50
|
getConditionalStyleState(returnJson?: boolean): ConditionalStyleState;
|
|
53
51
|
getCustomSortState(returnJson?: boolean): CustomSortState;
|
|
54
52
|
getDashboardState(returnJson?: boolean): DashboardState;
|
|
55
|
-
getDataSourceState(returnJson?: boolean): DataSourceState;
|
|
56
53
|
getExportState(returnJson?: boolean): ExportState;
|
|
57
|
-
getFilterState(returnJson?: boolean): FilterState;
|
|
58
54
|
getFreeTextColumnState(returnJson?: boolean): FreeTextColumnState;
|
|
59
55
|
getFormatColumnState(returnJson?: boolean): FormatColumnState;
|
|
60
56
|
getLayoutState(returnJson?: boolean): LayoutState;
|
|
@@ -13,9 +13,7 @@ const BulkUpdateRedux = tslib_1.__importStar(require("../../Redux/ActionsReducer
|
|
|
13
13
|
const CalculatedColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CalculatedColumnRedux"));
|
|
14
14
|
const ConditionalStyleRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ConditionalStyleRedux"));
|
|
15
15
|
const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CustomSortRedux"));
|
|
16
|
-
const DataSourceRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DataSourceRedux"));
|
|
17
16
|
const ExportRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ExportRedux"));
|
|
18
|
-
const FilterRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FilterRedux"));
|
|
19
17
|
const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
|
|
20
18
|
const FreeTextColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FreeTextColumnRedux"));
|
|
21
19
|
const PlusMinusRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PlusMinusRedux"));
|
|
@@ -88,12 +86,12 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
88
86
|
getAdaptableSearchState() {
|
|
89
87
|
const currentQuery = this.adaptable.api.queryApi.getCurrentQuery();
|
|
90
88
|
const adaptableSearchState = {
|
|
91
|
-
|
|
89
|
+
dataSet: this.adaptable.api.dataSetApi.getCurrentDataSet(),
|
|
92
90
|
currentQuery,
|
|
93
91
|
queryAST: currentQuery
|
|
94
92
|
? this.adaptable.api.queryLanguageApi.getASTForExpression(currentQuery)
|
|
95
93
|
: null,
|
|
96
|
-
columnFilters: this.adaptable.api.filterApi.
|
|
94
|
+
columnFilters: this.adaptable.api.filterApi.getColumnFilters(),
|
|
97
95
|
};
|
|
98
96
|
return adaptableSearchState;
|
|
99
97
|
}
|
|
@@ -168,18 +166,10 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
168
166
|
return returnJson
|
|
169
167
|
? JSON.stringify(this.getAdaptableState().Dashboard)
|
|
170
168
|
: this.getAdaptableState().Dashboard;
|
|
171
|
-
case 'DataSource':
|
|
172
|
-
return returnJson
|
|
173
|
-
? JSON.stringify(this.getAdaptableState().DataSource)
|
|
174
|
-
: this.getAdaptableState().DataSource;
|
|
175
169
|
case 'Export':
|
|
176
170
|
return returnJson
|
|
177
171
|
? JSON.stringify(this.getAdaptableState().Export)
|
|
178
172
|
: this.getAdaptableState().Export;
|
|
179
|
-
case 'Filter':
|
|
180
|
-
return returnJson
|
|
181
|
-
? JSON.stringify(this.getAdaptableState().Filter)
|
|
182
|
-
: this.getAdaptableState().Filter;
|
|
183
173
|
case 'FormatColumn':
|
|
184
174
|
return returnJson
|
|
185
175
|
? JSON.stringify(this.getAdaptableState().FormatColumn)
|
|
@@ -250,15 +240,9 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
250
240
|
getDashboardState(returnJson = false) {
|
|
251
241
|
return this.getUserStateByStateKey('Dashboard', returnJson);
|
|
252
242
|
}
|
|
253
|
-
getDataSourceState(returnJson = false) {
|
|
254
|
-
return this.getUserStateByStateKey('DataSource', returnJson);
|
|
255
|
-
}
|
|
256
243
|
getExportState(returnJson = false) {
|
|
257
244
|
return this.getUserStateByStateKey('Export', returnJson);
|
|
258
245
|
}
|
|
259
|
-
getFilterState(returnJson = false) {
|
|
260
|
-
return this.getUserStateByStateKey('Filter', returnJson);
|
|
261
|
-
}
|
|
262
246
|
getFreeTextColumnState(returnJson = false) {
|
|
263
247
|
return this.getUserStateByStateKey('FreeTextColumn', returnJson);
|
|
264
248
|
}
|
|
@@ -309,15 +293,9 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
309
293
|
case 'Dashboard':
|
|
310
294
|
this.dispatchAction(DashboardRedux.DashboardReady(this.getDashboardState()));
|
|
311
295
|
break;
|
|
312
|
-
case 'DataSource':
|
|
313
|
-
this.dispatchAction(DataSourceRedux.DataSourceReady(this.getDataSourceState()));
|
|
314
|
-
break;
|
|
315
296
|
case 'Export':
|
|
316
297
|
this.dispatchAction(ExportRedux.ExportReady(this.getExportState()));
|
|
317
298
|
break;
|
|
318
|
-
case 'Filter':
|
|
319
|
-
this.dispatchAction(FilterRedux.FilterReady(this.getFilterState()));
|
|
320
|
-
break;
|
|
321
299
|
case 'FormatColumn':
|
|
322
300
|
this.dispatchAction(FormatColumnRedux.FormatColumnReady(this.getFormatColumnState()));
|
|
323
301
|
break;
|
|
@@ -4,25 +4,22 @@ import { DashboardState, DashboardTab } from '../../PredefinedConfig/DashboardSt
|
|
|
4
4
|
import { AdaptableModuleButtons, AdaptableDashboardToolbars, AdaptableDashboardToolbar } from '../../PredefinedConfig/Common/Types';
|
|
5
5
|
import { DashboardChangedInfo } from '../Events/DashboardChanged';
|
|
6
6
|
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
7
|
-
import {
|
|
7
|
+
import { DashboardButtonContext } from '../../types';
|
|
8
8
|
import { CustomToolbar } from '../../AdaptableOptions/DashboardOptions';
|
|
9
9
|
export declare class DashboardApiImpl extends ApiBase implements DashboardApi {
|
|
10
10
|
getDashboardState(): DashboardState;
|
|
11
11
|
getCustomToolbars(): CustomToolbar[];
|
|
12
|
-
getCustomDashboardButtons(): AdaptableButton<DashboardButtonContext>[]
|
|
12
|
+
getCustomDashboardButtons(): AdaptableButton<DashboardButtonContext>[];
|
|
13
13
|
getCustomDashboardButtonByLabel(buttonLabel: string): AdaptableButton<DashboardButtonContext> | undefined;
|
|
14
14
|
setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
|
|
15
15
|
setDashboardTitle(title: string): void;
|
|
16
16
|
getCustomToolbarContentsDiv(customToolbarName: string): HTMLElement | null;
|
|
17
17
|
setCustomToolbarContents(customToolbarName: string, contents: string): void;
|
|
18
18
|
getCustomToolbarByName(customToolbarName: string): CustomToolbar;
|
|
19
|
-
setCustomToolbarButtons(customToolbarName: string, buttons: AdaptableButton<CustomToolbarButtonContext>[]): void;
|
|
20
|
-
addCustomToolbarButtons(customToolbarName: string, buttons: AdaptableButton<CustomToolbarButtonContext>[]): void;
|
|
21
|
-
clearCustomToolbarButtons(customToolbarName: string): void;
|
|
22
|
-
private updateCustomToolbarButtons;
|
|
23
19
|
getTabByName(tabName: string): DashboardTab;
|
|
24
20
|
collapseDashboard(): void;
|
|
25
21
|
expandDashboard(): void;
|
|
22
|
+
refreshDashboard(): void;
|
|
26
23
|
floatDashboard(): void;
|
|
27
24
|
dockDashboard(): void;
|
|
28
25
|
hideDashboard(): void;
|
|
@@ -6,10 +6,9 @@ const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers
|
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
9
|
-
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
10
|
-
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
11
9
|
const react_dom_1 = tslib_1.__importDefault(require("react-dom"));
|
|
12
10
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
11
|
+
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
13
12
|
class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
14
13
|
constructor() {
|
|
15
14
|
super(...arguments);
|
|
@@ -35,7 +34,7 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
35
34
|
return this.getDashboardOptions().customToolbars || [];
|
|
36
35
|
}
|
|
37
36
|
getCustomDashboardButtons() {
|
|
38
|
-
return this.getDashboardOptions().customDashboardButtons;
|
|
37
|
+
return this.getDashboardOptions().customDashboardButtons || [];
|
|
39
38
|
}
|
|
40
39
|
getCustomDashboardButtonByLabel(buttonLabel) {
|
|
41
40
|
const api = this.getAdaptableApi();
|
|
@@ -70,32 +69,6 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
70
69
|
getCustomToolbarByName(customToolbarName) {
|
|
71
70
|
return this.getCustomToolbars().find((ct) => ct.name == customToolbarName);
|
|
72
71
|
}
|
|
73
|
-
setCustomToolbarButtons(customToolbarName, buttons) {
|
|
74
|
-
this.updateCustomToolbarButtons(customToolbarName, buttons, 'override');
|
|
75
|
-
}
|
|
76
|
-
addCustomToolbarButtons(customToolbarName, buttons) {
|
|
77
|
-
this.updateCustomToolbarButtons(customToolbarName, buttons, 'add');
|
|
78
|
-
}
|
|
79
|
-
clearCustomToolbarButtons(customToolbarName) {
|
|
80
|
-
this.updateCustomToolbarButtons(customToolbarName, [], 'clear');
|
|
81
|
-
}
|
|
82
|
-
updateCustomToolbarButtons(customToolbarName, buttons, action) {
|
|
83
|
-
let customToolbars = this.getCustomToolbars();
|
|
84
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(customToolbars)) {
|
|
85
|
-
let customToolbar = customToolbars.find((c) => c.name == customToolbarName);
|
|
86
|
-
if (customToolbarName) {
|
|
87
|
-
let clonedCustomToolbar = Helper_1.default.cloneObject(customToolbar);
|
|
88
|
-
if (action == 'add') {
|
|
89
|
-
clonedCustomToolbar.toolbarButtons.push(...buttons);
|
|
90
|
-
}
|
|
91
|
-
else if (action == 'override') {
|
|
92
|
-
}
|
|
93
|
-
else if (action == 'clear') {
|
|
94
|
-
clonedCustomToolbar.toolbarButtons = [];
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
72
|
getTabByName(tabName) {
|
|
100
73
|
return (this.getDashboardState().Tabs || []).find((tab) => tab.Name == tabName);
|
|
101
74
|
}
|
|
@@ -105,6 +78,9 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
105
78
|
expandDashboard() {
|
|
106
79
|
this.dispatchAction(DashboardRedux.DashboardSetIsCollapsed(false));
|
|
107
80
|
}
|
|
81
|
+
refreshDashboard() {
|
|
82
|
+
this.dispatchAction(SystemRedux_1.SystemDashboardRefresh());
|
|
83
|
+
}
|
|
108
84
|
floatDashboard() {
|
|
109
85
|
this.dispatchAction(DashboardRedux.DashboardSetIsFloating(true));
|
|
110
86
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiBase } from './ApiBase';
|
|
2
|
+
import { DataSetApi } from '../DataSetApi';
|
|
3
|
+
import { DataSet } from '../../AdaptableOptions/GeneralOptions';
|
|
4
|
+
export declare class DataSetApiImpl extends ApiBase implements DataSetApi {
|
|
5
|
+
getAllDataSets(): DataSet[];
|
|
6
|
+
getCurrentDataSet(): DataSet | undefined;
|
|
7
|
+
getDataSetByName(dataSetName: string): DataSet | undefined;
|
|
8
|
+
setDataSet(dataSetName: string): void;
|
|
9
|
+
clearCurrentDataSet(): void;
|
|
10
|
+
showDataSetPopup(): void;
|
|
11
|
+
fireDataSetChangeEvent(dataSet: DataSet): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataSetApiImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
6
|
+
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
7
|
+
const ApiBase_1 = require("./ApiBase");
|
|
8
|
+
class DataSetApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
+
getAllDataSets() {
|
|
10
|
+
var _a, _b, _c;
|
|
11
|
+
return (_c = (_b = (_a = this.adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.generalOptions) === null || _b === void 0 ? void 0 : _b.dataSets) !== null && _c !== void 0 ? _c : [];
|
|
12
|
+
}
|
|
13
|
+
getCurrentDataSet() {
|
|
14
|
+
let currentDataSetName = this.getAdaptableState().System.CurrentDataSet;
|
|
15
|
+
return this.getDataSetByName(currentDataSetName);
|
|
16
|
+
}
|
|
17
|
+
getDataSetByName(dataSetName) {
|
|
18
|
+
return this.getAllDataSets().find((a) => a.name == dataSetName);
|
|
19
|
+
}
|
|
20
|
+
setDataSet(dataSetName) {
|
|
21
|
+
const dataSet = this.getDataSetByName(dataSetName);
|
|
22
|
+
if (this.checkItemExists(dataSet, dataSetName, 'Data Source')) {
|
|
23
|
+
this.dispatchAction(SystemRedux.SystemDataSetSelect(dataSet));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
clearCurrentDataSet() {
|
|
27
|
+
this.dispatchAction(SystemRedux.SystemDataSetSelect(null));
|
|
28
|
+
}
|
|
29
|
+
showDataSetPopup() {
|
|
30
|
+
this.showModulePopup(ModuleConstants.DataSetModuleId);
|
|
31
|
+
}
|
|
32
|
+
fireDataSetChangeEvent(dataSet) {
|
|
33
|
+
if (this.adaptable.isInitialised) {
|
|
34
|
+
const dataSetChangedInfo = {
|
|
35
|
+
adaptableApi: this.adaptable.api,
|
|
36
|
+
dataSet,
|
|
37
|
+
};
|
|
38
|
+
this.adaptable.api.eventApi.emit('DataSetChanged', dataSetChangedInfo);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.DataSetApiImpl = DataSetApiImpl;
|
|
@@ -3,7 +3,7 @@ import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } fr
|
|
|
3
3
|
import { ApiBase } from './ApiBase';
|
|
4
4
|
import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
5
5
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
6
|
-
import { CustomDestination,
|
|
6
|
+
import { CustomDestination, ExportFormContext } from '../../AdaptableOptions/ExportOptions';
|
|
7
7
|
import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
|
|
8
8
|
export declare class ExportApiImpl extends ApiBase implements ExportApi {
|
|
9
9
|
getExportState(): ExportState;
|
|
@@ -22,7 +22,7 @@ export declare class ExportApiImpl extends ApiBase implements ExportApi {
|
|
|
22
22
|
selectDestination(destinationName: string): void;
|
|
23
23
|
getAllCustomDestination(): CustomDestination[];
|
|
24
24
|
isExportDestinationCustom(destinationName: string): boolean;
|
|
25
|
-
getExportDestinationForm(destinationName: string): AdaptableForm<
|
|
25
|
+
getExportDestinationForm(destinationName: string): AdaptableForm<ExportFormContext> | undefined;
|
|
26
26
|
canExportToExcel(): boolean;
|
|
27
27
|
exportDataToExcel(reportData: ReportData, fileName: string): void;
|
|
28
28
|
showExportPopup(): void;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { FilterApi } from '../FilterApi';
|
|
3
|
-
import { FilterState, ColumnFilter, SystemFilterPredicateIds } from '../../PredefinedConfig/FilterState';
|
|
4
3
|
import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
5
4
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
5
|
+
import { ColumnFilter, GridCell, SystemFilterPredicateIds } from '../../types';
|
|
6
6
|
import { RowNode } from '@ag-grid-community/all-modules';
|
|
7
7
|
export declare class FilterApiImpl extends ApiBase implements FilterApi {
|
|
8
|
-
getFilterState(): FilterState;
|
|
9
8
|
getAllSystemFilterIds(): SystemFilterPredicateIds;
|
|
10
9
|
findPredicateDefByShortcut(shortcut: string, column: AdaptableColumn): AdaptablePredicateDef;
|
|
11
10
|
getFilterPredicateDefsForColumn(column: AdaptableColumn): AdaptablePredicateDef[];
|
|
12
11
|
getFilterPredicateDefsForColumnId(columnId: string): AdaptablePredicateDef[] | undefined;
|
|
13
12
|
private getAllFilterPredicates;
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
showQuickFilterBar(): void;
|
|
14
|
+
hideQuickFilterBar(): void;
|
|
15
|
+
isQuickFilterAvailable(): boolean;
|
|
16
|
+
isQuickFilterVisible(): boolean;
|
|
17
|
+
getColumnFilters(): ColumnFilter[];
|
|
16
18
|
setColumnFilter(columnFilters: ColumnFilter[]): ColumnFilter[] | null;
|
|
17
|
-
clearAndSetColumnFilter(columnFilters: ColumnFilter[]): void;
|
|
18
19
|
clearColumnFilter(columnFilter: ColumnFilter): void;
|
|
19
20
|
clearColumnFilterByColumns(columns: string[]): void;
|
|
20
21
|
clearColumnFilterByColumn(column: string): void;
|
|
21
|
-
|
|
22
|
+
clearColumnFilters(): void;
|
|
23
|
+
clearAndSetColumnFilter(columnFilters: ColumnFilter[]): void;
|
|
22
24
|
getAllColumnFilterForColumn(column: string): ColumnFilter[];
|
|
23
|
-
|
|
25
|
+
createValuesColumnFilterForCells(gridCells: GridCell[]): ColumnFilter | null;
|
|
26
|
+
createEqualityColumnFilterForCell(gridCell: GridCell): ColumnFilter | null;
|
|
24
27
|
columnFilterToString(columnFilter: ColumnFilter): string;
|
|
25
28
|
columnFiltersToString(columnFilters: ColumnFilter[]): string;
|
|
26
29
|
evaluateColumnFilter(columnFilter: ColumnFilter, node: RowNode): boolean;
|
|
27
|
-
|
|
28
|
-
hideQuickFilterBar(): void;
|
|
29
|
-
isQuickFilterAvailable(): boolean;
|
|
30
|
-
isQuickFilterVisible(): boolean;
|
|
30
|
+
private getColumnFilterById;
|
|
31
31
|
}
|