@adaptabletools/adaptable 10.0.3 → 10.0.4-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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/base.css +16 -6
- package/bundle.cjs.js +350 -0
- package/index.css +20 -6
- package/package.json +1 -5
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +14 -12
- package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -3
- package/src/AdaptableOptions/ContainerOptions.d.ts +4 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/AdaptableOptions/DateInputOptions.d.ts +5 -1
- package/src/AdaptableOptions/EditOptions.d.ts +2 -3
- package/src/AdaptableOptions/FilterOptions.d.ts +8 -8
- package/src/AdaptableOptions/GeneralOptions.d.ts +3 -2
- package/src/AdaptableOptions/MenuOptions.d.ts +11 -11
- package/src/AdaptableOptions/NotificationsOptions.d.ts +11 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +29 -12
- package/src/Api/AdaptableApi.d.ts +12 -12
- package/src/Api/CalculatedColumnApi.d.ts +15 -0
- package/src/Api/ColumnApi.d.ts +16 -5
- package/src/Api/EventApi.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +5 -8
- package/src/Api/Events/AdaptableStateChanged.d.ts +2 -1
- package/src/Api/Events/AlertFired.d.ts +2 -1
- package/src/Api/Events/BaseEventInfo.d.ts +10 -0
- package/src/Api/Events/BaseEventInfo.js +2 -0
- package/src/Api/Events/CellChanged.d.ts +2 -1
- package/src/Api/Events/ChexboxColumnClicked.d.ts +2 -1
- package/src/Api/Events/CustomToolbarConfigured.d.ts +2 -1
- package/src/Api/Events/DashboardChanged.d.ts +2 -1
- package/src/Api/Events/FlashingAlertFired.d.ts +2 -1
- package/src/Api/Events/GridDataChanged.d.ts +2 -1
- package/src/Api/Events/LayoutChanged.d.ts +2 -1
- package/src/Api/Events/LiveDataChanged.d.ts +2 -1
- package/src/Api/Events/SearchChanged.d.ts +2 -1
- package/src/Api/Events/SelectionChanged.d.ts +2 -1
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +2 -1
- package/src/Api/Events/TeamSharingEntityChanged.d.ts +2 -1
- package/src/Api/Events/ThemeChanged.d.ts +2 -1
- package/src/Api/GridApi.d.ts +10 -10
- package/src/Api/Implementation/AlertApiImpl.js +17 -17
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +3 -0
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +23 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +5 -3
- package/src/Api/Implementation/ColumnApiImpl.js +43 -44
- package/src/Api/Implementation/ConfigApiImpl.js +0 -24
- package/src/Api/Implementation/DashboardApiImpl.js +2 -1
- package/src/Api/Implementation/ExportApiImpl.js +4 -4
- package/src/Api/Implementation/FormatColumnApiImpl.js +2 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +7 -2
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -2
- package/src/Api/Implementation/GridApiImpl.js +14 -13
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -2
- package/src/Api/Implementation/InternalApiImpl.js +5 -5
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +19 -3
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -2
- package/src/Api/Implementation/PluginsApiImpl.js +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
- package/src/Api/Implementation/ScopeApiImpl.js +11 -11
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -0
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +1 -0
- package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.js +18 -13
- package/src/Api/InternalApi.d.ts +2 -2
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/PluginsApi.d.ts +1 -7
- package/src/Api/TeamSharingApi.d.ts +1 -1
- package/src/Api/ThemeApi.d.ts +2 -2
- package/src/Api/UserInterfaceApi.d.ts +6 -5
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -10
- package/src/PredefinedConfig/AlertState.d.ts +2 -3
- package/src/PredefinedConfig/ApplicationState.d.ts +1 -1
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +36 -36
- package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -5
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +3 -3
- package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +7 -7
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +4 -3
- package/src/PredefinedConfig/Common/Menu.d.ts +40 -17
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +9 -7
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +1 -1
- package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
- package/src/PredefinedConfig/DataSourceState.d.ts +1 -1
- package/src/PredefinedConfig/ExportState.d.ts +3 -3
- package/src/PredefinedConfig/FilterState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -40
- package/src/PredefinedConfig/QuickSearchState.d.ts +3 -3
- package/src/PredefinedConfig/ScheduleState.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -1
- package/src/PredefinedConfig/ThemeState.d.ts +5 -1
- package/src/Redux/ActionsReducers/DashboardRedux.js +2 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -2
- package/src/Redux/ActionsReducers/GridRedux.js +2 -2
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +12 -2
- package/src/Redux/ActionsReducers/LayoutRedux.js +24 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
- package/src/Redux/DeadRedux.d.ts +4 -8
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -1
- package/src/Redux/Store/AdaptableStore.d.ts +3 -3
- package/src/Redux/Store/AdaptableStore.js +21 -16
- package/src/Strategy/AdaptableModuleBase.d.ts +2 -2
- package/src/Strategy/AdaptableModuleBase.js +8 -8
- package/src/Strategy/AlertModule.d.ts +2 -2
- package/src/Strategy/AlertModule.js +13 -105
- package/src/Strategy/BulkUpdateModule.d.ts +2 -2
- package/src/Strategy/BulkUpdateModule.js +7 -7
- package/src/Strategy/CalculatedColumnModule.js +1 -1
- package/src/Strategy/CellSummaryModule.d.ts +2 -2
- package/src/Strategy/CellSummaryModule.js +3 -3
- package/src/Strategy/ConditionalStyleModule.js +3 -3
- package/src/Strategy/CustomSortModule.js +2 -2
- package/src/Strategy/DashboardModule.d.ts +2 -2
- package/src/Strategy/DataChangeHistoryModule.js +2 -2
- package/src/Strategy/ExportModule.d.ts +2 -2
- package/src/Strategy/ExportModule.js +1 -1
- package/src/Strategy/FilterModule.d.ts +2 -2
- package/src/Strategy/FilterModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +6 -6
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/Interface/IModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.js +22 -9
- package/src/Strategy/PlusMinusModule.js +8 -9
- package/src/Strategy/SmartEditModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.js +8 -9
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +2 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
- package/src/Utilities/Constants/ModuleConstants.js +7 -7
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -7
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
- package/src/Utilities/Helpers/PreviewHelper.js +2 -2
- package/src/Utilities/Interface/Preview.d.ts +2 -1
- package/src/Utilities/ObjectFactory.js +1 -1
- package/src/Utilities/Services/DataService.js +5 -5
- package/src/Utilities/Services/LicenseService.js +16 -2
- package/src/Utilities/Services/MetamodelService.js +0 -1
- package/src/Utilities/Services/ReportService.js +12 -11
- package/src/Utilities/Services/ValidationService.js +4 -5
- package/src/View/AdaptableViewFactory.d.ts +2 -1
- package/src/View/AdaptableViewFactory.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +7 -7
- package/src/View/Alert/AlertPopup.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +3 -3
- package/src/View/CalculatedColumn/CalculatedColumnPopup.js +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +2 -2
- package/src/View/Components/ColumnSelector/index.js +2 -2
- package/src/View/Components/FilterForm/FilterForm.js +18 -20
- package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +7 -7
- package/src/View/Components/FilterForm/QuickFilterForm.js +15 -17
- package/src/View/Components/NewScopeComponent.js +1 -1
- package/src/View/Components/Panels/FilterFormPanel.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +423 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +23 -10
- package/src/View/Components/PreviewResultsPanel.js +1 -1
- package/src/View/Components/RangesComponent.js +2 -2
- package/src/View/Components/Selectors/ColumnSelector.js +5 -5
- package/src/View/Components/Selectors/ColumnValueSelector.js +4 -4
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +10 -11
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -3
- package/src/View/ConditionalStyle/ConditionalStylePopup.js +1 -1
- package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
- package/src/View/CustomSort/CustomSortEntityRow.d.ts +3 -1
- package/src/View/CustomSort/CustomSortEntityRow.js +3 -3
- package/src/View/CustomSort/CustomSortPopup.js +2 -2
- package/src/View/CustomSort/CustomSortSummary.js +3 -3
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -4
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
- package/src/View/Dashboard/Dashboard.js +2 -3
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +11 -10
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +6 -6
- package/src/View/Export/ExportCustomDestinationDialog.js +1 -1
- package/src/View/Export/ExportViewPanel.js +6 -6
- package/src/View/Filter/FilterSummary.js +2 -2
- package/src/View/FormatColumn/FormatColumnPopup.js +1 -1
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnPopup.js +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +2 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
- package/src/View/GridInfo/ColumnInfoComponent.js +16 -16
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +6 -6
- package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -2
- package/src/View/Layout/Wizard/LayoutEditor/index.js +41 -41
- package/src/View/PlusMinus/PlusMinusPopup.js +1 -1
- package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
- package/src/View/Query/QueryViewPanel.js +3 -3
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
- package/src/View/Schedule/SchedulePopup.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/StateManagement/StateManagementPopup.d.ts +2 -12
- package/src/View/StateManagement/StateManagementPopup.js +21 -114
- package/src/View/StateManagement/StateManagementViewPanel.d.ts +5 -0
- package/src/View/StateManagement/StateManagementViewPanel.js +22 -0
- package/src/View/StateManagement/components/ClearButton.d.ts +6 -0
- package/src/View/StateManagement/components/ClearButton.js +9 -0
- package/src/View/StateManagement/components/ExportDropdown.d.ts +8 -0
- package/src/View/StateManagement/components/ExportDropdown.js +43 -0
- package/src/View/StateManagement/components/LoadButton.d.ts +7 -0
- package/src/View/StateManagement/components/LoadButton.js +38 -0
- package/src/View/StateManagement/handleExportState.d.ts +1 -0
- package/src/View/StateManagement/handleExportState.js +22 -0
- package/src/View/Theme/ThemeViewPanel.js +1 -1
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.d.ts +9 -8
- package/src/agGrid/Adaptable.js +174 -132
- package/src/agGrid/agGridHelper.d.ts +4 -4
- package/src/agGrid/agGridHelper.js +46 -46
- package/src/agGrid/agGridMenuHelper.d.ts +15 -13
- package/src/agGrid/agGridMenuHelper.js +55 -47
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +11 -6
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -2
- package/src/agGrid/editors/AdaptableDateEditor/index.js +16 -6
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +7 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -3
- package/src/components/Datepicker/DatepickerContext.d.ts +2 -2
- package/src/components/Datepicker/index.js +9 -5
- package/src/components/ExpressionEditor/index.js +7 -7
- package/src/components/Modal/index.d.ts +1 -1
- package/src/components/OverlayTrigger/index.js +3 -3
- package/src/components/OverlayTrigger/useAgGridClassName.d.ts +2 -0
- package/src/components/OverlayTrigger/{useVendorClassName.js → useAgGridClassName.js} +3 -3
- package/src/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/upload.d.ts +3 -0
- package/src/components/icons/upload.js +8 -0
- package/src/metamodel/adaptable.metamodel.d.ts +104 -50
- package/src/metamodel/adaptable.metamodel.js +358 -300
- package/src/types.d.ts +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/PredefinedConfig/DeprecatedState.d.ts +0 -82
- package/src/PredefinedConfig/DeprecatedState.js +0 -5
- package/src/components/OverlayTrigger/useVendorClassName.d.ts +0 -2
|
@@ -76,7 +76,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
76
|
return this.getScheduleById(schedule.Uuid);
|
|
77
77
|
}
|
|
78
78
|
getAllIPushPullSchedule() {
|
|
79
|
-
const ippApi = this.adaptable.api.pluginsApi.
|
|
79
|
+
const ippApi = this.adaptable.api.pluginsApi.getipushpullPluginApi();
|
|
80
80
|
return ippApi ? ippApi.getIPushPullSchedules() : [];
|
|
81
81
|
}
|
|
82
82
|
getAllActiveIPushPullSchedule() {
|
|
@@ -105,7 +105,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
105
105
|
return this.getScheduleById(schedule.Uuid);
|
|
106
106
|
}
|
|
107
107
|
getAllGlue42Schedule() {
|
|
108
|
-
const glue42Api = this.adaptable.api.pluginsApi.
|
|
108
|
+
const glue42Api = this.adaptable.api.pluginsApi.getGlue42PluginApi();
|
|
109
109
|
return glue42Api ? glue42Api.getGlue42Schedules() : [];
|
|
110
110
|
}
|
|
111
111
|
getAllActiveGlue42Schedule() {
|
|
@@ -134,7 +134,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
134
134
|
return this.getScheduleById(schedule.Uuid);
|
|
135
135
|
}
|
|
136
136
|
getAllOpenFinSchedule() {
|
|
137
|
-
const openFinApi = this.adaptable.api.pluginsApi.
|
|
137
|
+
const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
|
|
138
138
|
return openFinApi ? openFinApi.getOpenFinSchedules() : [];
|
|
139
139
|
}
|
|
140
140
|
getAllActiveOpenFinSchedule() {
|
|
@@ -185,7 +185,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
185
185
|
this.adaptable.api.exportApi.sendReport(reportSchedule.ReportName, reportSchedule.ExportDestination);
|
|
186
186
|
}
|
|
187
187
|
else if (scheduleType == 'ipushpull') {
|
|
188
|
-
const ippApi = this.adaptable.api.pluginsApi.
|
|
188
|
+
const ippApi = this.adaptable.api.pluginsApi.getipushpullPluginApi();
|
|
189
189
|
const iPushPullSchedule = schedule;
|
|
190
190
|
if (iPushPullSchedule.Transmission == 'Snapshot') {
|
|
191
191
|
ippApi.sendSnapshot(iPushPullSchedule.IPushPullReport);
|
|
@@ -195,12 +195,12 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
else if (scheduleType == 'Glue42') {
|
|
198
|
-
const glue42Api = this.adaptable.api.pluginsApi.
|
|
198
|
+
const glue42Api = this.adaptable.api.pluginsApi.getGlue42PluginApi();
|
|
199
199
|
const glue42Schedule = schedule;
|
|
200
200
|
glue42Api.sendSnapshotToDo(glue42Schedule.Glue42Report);
|
|
201
201
|
}
|
|
202
202
|
else if (scheduleType == 'OpenFin') {
|
|
203
|
-
const openFinApi = this.adaptable.api.pluginsApi.
|
|
203
|
+
const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
|
|
204
204
|
const openFinSchedule = schedule;
|
|
205
205
|
openFinApi.startLiveData(openFinSchedule.OpenFinReport);
|
|
206
206
|
}
|
|
@@ -14,10 +14,10 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
14
14
|
// do we need a true check here?
|
|
15
15
|
return true;
|
|
16
16
|
}
|
|
17
|
-
if ('DataTypes' in scope && scope.DataTypes.includes(column.
|
|
17
|
+
if ('DataTypes' in scope && scope.DataTypes.includes(column.dataType)) {
|
|
18
18
|
return true;
|
|
19
19
|
}
|
|
20
|
-
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.
|
|
20
|
+
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
23
23
|
return false;
|
|
@@ -31,10 +31,10 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
31
31
|
return columns;
|
|
32
32
|
}
|
|
33
33
|
return columns.filter((c) => {
|
|
34
|
-
if ('DataTypes' in scope && scope.DataTypes.includes(c.
|
|
34
|
+
if ('DataTypes' in scope && scope.DataTypes.includes(c.dataType)) {
|
|
35
35
|
return true;
|
|
36
36
|
}
|
|
37
|
-
if ('ColumnIds' in scope && scope.ColumnIds.includes(c.
|
|
37
|
+
if ('ColumnIds' in scope && scope.ColumnIds.includes(c.columnId)) {
|
|
38
38
|
return true;
|
|
39
39
|
}
|
|
40
40
|
return false;
|
|
@@ -140,7 +140,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
140
140
|
}
|
|
141
141
|
isColumnInNumericScope(column, scope) {
|
|
142
142
|
// if column is not even numeric then return false
|
|
143
|
-
if (column == null || column == undefined || column.
|
|
143
|
+
if (column == null || column == undefined || column.dataType !== 'Number') {
|
|
144
144
|
return false;
|
|
145
145
|
}
|
|
146
146
|
// if no scope then return false
|
|
@@ -148,7 +148,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
148
148
|
return false;
|
|
149
149
|
}
|
|
150
150
|
// check if the scope has ColumnIds and whether this column is contained
|
|
151
|
-
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.
|
|
151
|
+
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
152
152
|
return true;
|
|
153
153
|
}
|
|
154
154
|
// check if the scope has ColumnIds and whether this column is contained
|
|
@@ -159,7 +159,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
159
159
|
}
|
|
160
160
|
isColumnInStringsScope(column, scope) {
|
|
161
161
|
// if column is not even string then return false
|
|
162
|
-
if (column == null || column == undefined || column.
|
|
162
|
+
if (column == null || column == undefined || column.dataType !== 'String') {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
// if no scope then return false
|
|
@@ -167,7 +167,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
167
167
|
return false;
|
|
168
168
|
}
|
|
169
169
|
// check if the scope has ColumnIds and whether this column is contained
|
|
170
|
-
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.
|
|
170
|
+
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
171
171
|
return true;
|
|
172
172
|
}
|
|
173
173
|
// check if the scope has ColumnIds and whether this column is contained
|
|
@@ -178,7 +178,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
178
178
|
}
|
|
179
179
|
isColumnInDateScope(column, scope) {
|
|
180
180
|
// if column is not even numeric then return false
|
|
181
|
-
if (column == null || column == undefined || column.
|
|
181
|
+
if (column == null || column == undefined || column.dataType !== 'Date') {
|
|
182
182
|
return false;
|
|
183
183
|
}
|
|
184
184
|
// if no scope then return false
|
|
@@ -186,7 +186,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
186
186
|
return false;
|
|
187
187
|
}
|
|
188
188
|
// check if the scope has ColumnIds and whether this column is contained
|
|
189
|
-
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.
|
|
189
|
+
if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
|
|
190
190
|
return true;
|
|
191
191
|
}
|
|
192
192
|
// check if the scope has ColumnIds and whether this column is contained
|
|
@@ -213,7 +213,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
213
213
|
'DataTypes' in b &&
|
|
214
214
|
a.ColumnIds.every((columnId) => {
|
|
215
215
|
var _a;
|
|
216
|
-
return b.DataTypes.includes((_a = this.adaptable.api.columnApi.getColumnFromId(columnId)) === null || _a === void 0 ? void 0 : _a.
|
|
216
|
+
return b.DataTypes.includes((_a = this.adaptable.api.columnApi.getColumnFromId(columnId)) === null || _a === void 0 ? void 0 : _a.dataType);
|
|
217
217
|
})) {
|
|
218
218
|
return true;
|
|
219
219
|
}
|
|
@@ -80,6 +80,7 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
|
80
80
|
}
|
|
81
81
|
fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
|
|
82
82
|
const systemStatusMessageDisplayedInfo = {
|
|
83
|
+
adaptableApi: this.adaptable.api,
|
|
83
84
|
systemStatusMessageInfo: systemStatusMessageInfo,
|
|
84
85
|
};
|
|
85
86
|
this.adaptable.api.eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
|
|
@@ -35,6 +35,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
35
35
|
fireTeamSharingEntityChangedEvent(sharedEntity) {
|
|
36
36
|
if (this.adaptable.isInitialised) {
|
|
37
37
|
const teamSharingEntityChangedInfo = {
|
|
38
|
+
adaptableApi: this.adaptable.api,
|
|
38
39
|
sharedEntity: sharedEntity,
|
|
39
40
|
};
|
|
40
41
|
this.adaptable.api.eventApi.emit('TeamSharingEntityChanged', teamSharingEntityChangedInfo);
|
|
@@ -48,6 +48,7 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
|
48
48
|
}
|
|
49
49
|
this.adaptable.applyAdaptableTheme(currentTheme);
|
|
50
50
|
let themeChangedInfo = {
|
|
51
|
+
adaptableApi: this.adaptable.api,
|
|
51
52
|
theme: currentTheme,
|
|
52
53
|
};
|
|
53
54
|
this.adaptable.api.eventApi.emit('ThemeChanged', themeChangedInfo);
|
|
@@ -15,7 +15,7 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
15
15
|
openAdapTableToolPanel() {
|
|
16
16
|
let gridOptions = this.getOptions().vendorGrid;
|
|
17
17
|
if (gridOptions) {
|
|
18
|
-
gridOptions.api.openToolPanel('
|
|
18
|
+
gridOptions.api.openToolPanel('adaptable');
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
closeAdapTableToolPanel() {
|
|
@@ -2,8 +2,9 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import { UserInterfaceApi } from '../UserInterfaceApi';
|
|
3
3
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
4
4
|
import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
|
|
5
|
-
import { UserMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
5
|
+
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
6
6
|
import { ActionColumn, BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
|
|
7
|
+
import { GridCell } from '../../types';
|
|
7
8
|
export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
|
|
8
9
|
getColorPalette(): string[];
|
|
9
10
|
getStyleClassNames(): string[] | undefined;
|
|
@@ -18,9 +19,9 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
18
19
|
getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
|
|
19
20
|
getAllEditLookUpItems(): EditLookUpPermittedValues[];
|
|
20
21
|
getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
|
|
21
|
-
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues,
|
|
22
|
-
addColumnMenuItem(
|
|
23
|
-
addContextMenuItem(
|
|
22
|
+
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
|
|
23
|
+
addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
|
|
24
|
+
addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
|
|
24
25
|
getEditableCellStyle(): AdaptableStyle | undefined;
|
|
25
26
|
getReadOnlyCellStyle(): AdaptableStyle | undefined;
|
|
26
27
|
getAllActionColumn(): ActionColumn[];
|
|
@@ -67,7 +67,11 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
67
67
|
// first do the function then get hardcoded items
|
|
68
68
|
if (permittedValues != null && typeof permittedValues === 'function') {
|
|
69
69
|
if (column) {
|
|
70
|
-
|
|
70
|
+
const permittedValuesParams = {
|
|
71
|
+
adaptableApi: this.adaptable.api,
|
|
72
|
+
column: column,
|
|
73
|
+
};
|
|
74
|
+
return permittedValues(permittedValuesParams);
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
else {
|
|
@@ -124,18 +128,19 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
124
128
|
}
|
|
125
129
|
return this.getPermittedValuesForScope(column, editLookUpItems);
|
|
126
130
|
}
|
|
127
|
-
getEditLookUpValuesForEditLookUpItem(editLookUpItem,
|
|
128
|
-
if (!editLookUpItem) {
|
|
129
|
-
return undefined;
|
|
130
|
-
}
|
|
131
|
-
const column = this.adaptable.api.columnApi.getColumnFromId(columnId);
|
|
132
|
-
if (!column) {
|
|
131
|
+
getEditLookUpValuesForEditLookUpItem(editLookUpItem, gridCell) {
|
|
132
|
+
if (!editLookUpItem || !gridCell || !gridCell.column) {
|
|
133
133
|
return undefined;
|
|
134
134
|
}
|
|
135
135
|
let editLookUpValues = editLookUpItem.values;
|
|
136
136
|
// first do the function then get hardcoded items
|
|
137
137
|
if (editLookUpValues != null && typeof editLookUpValues === 'function') {
|
|
138
|
-
|
|
138
|
+
const editLookUpParams = {
|
|
139
|
+
adaptableApi: this.adaptable.api,
|
|
140
|
+
column: gridCell.column,
|
|
141
|
+
gridCell: gridCell,
|
|
142
|
+
};
|
|
143
|
+
return editLookUpValues(editLookUpParams);
|
|
139
144
|
}
|
|
140
145
|
else {
|
|
141
146
|
let arr = editLookUpValues;
|
|
@@ -145,15 +150,15 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
145
150
|
}
|
|
146
151
|
// if no hard-coded values or function provided then just get the distinct values for the column
|
|
147
152
|
// this will use the columnapi method that first looks for permitted values and then distinct values
|
|
148
|
-
return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(columnId);
|
|
153
|
+
return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(gridCell.column.columnId);
|
|
149
154
|
}
|
|
150
|
-
addColumnMenuItem(
|
|
155
|
+
addColumnMenuItem(userMenuItem) {
|
|
151
156
|
var _a;
|
|
152
|
-
(_a = this.getMenuOptions().columnMenuItems) === null || _a === void 0 ? void 0 : _a.push(
|
|
157
|
+
(_a = this.getMenuOptions().columnMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
|
|
153
158
|
}
|
|
154
|
-
addContextMenuItem(
|
|
159
|
+
addContextMenuItem(userMenuItem) {
|
|
155
160
|
var _a;
|
|
156
|
-
(_a = this.getMenuOptions().contextMenuItems) === null || _a === void 0 ? void 0 : _a.push(
|
|
161
|
+
(_a = this.getMenuOptions().contextMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
|
|
157
162
|
}
|
|
158
163
|
getEditableCellStyle() {
|
|
159
164
|
return this.getUserInterfaceOptions().editableCellStyle;
|
package/src/Api/InternalApi.d.ts
CHANGED
|
@@ -78,13 +78,13 @@ export interface InternalApi {
|
|
|
78
78
|
setGridCell(gridCell: GridCell): void;
|
|
79
79
|
setToolbarTitle(): string;
|
|
80
80
|
getQueryPreviewData(): any;
|
|
81
|
-
buildDataChangedInfo(config: Pick<DataChangedInfo, 'newValue' | 'oldValue' | '
|
|
81
|
+
buildDataChangedInfo(config: Pick<DataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): DataChangedInfo;
|
|
82
82
|
setLastAppliedShortCut(gridCell: GridCell | undefined): void;
|
|
83
83
|
setDefaultDashboardTab(): void;
|
|
84
84
|
updateCurrentDraftLayout(layout: Layout): void;
|
|
85
85
|
getPrimaryKey(): any;
|
|
86
86
|
getAdaptableInstance(): IAdaptable;
|
|
87
|
-
|
|
87
|
+
getAgGridInstance(): any;
|
|
88
88
|
getPredefinedConfig(): any;
|
|
89
89
|
getState(): AdaptableState;
|
|
90
90
|
getAdaptableOptions(): AdaptableOptions;
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -121,4 +121,11 @@ export interface LayoutApi {
|
|
|
121
121
|
* Opens Layout popup screen
|
|
122
122
|
*/
|
|
123
123
|
showLayoutPopup(): void;
|
|
124
|
+
/**
|
|
125
|
+
* Sets a new Caption / Header for a Column (this Layout only)
|
|
126
|
+
* @param columnId Column to Update
|
|
127
|
+
* @param caption New Caption to display
|
|
128
|
+
*/
|
|
129
|
+
setColumnCaption(columnId: string, caption: string): void;
|
|
130
|
+
isCurrentLayoutReadOnly(): boolean;
|
|
124
131
|
}
|
package/src/Api/PluginsApi.d.ts
CHANGED
|
@@ -12,13 +12,7 @@ export interface PluginsApi {
|
|
|
12
12
|
getPluginState(pluginId: string): any;
|
|
13
13
|
registerPlugin(pluginId: string, initialPluginState: any): void;
|
|
14
14
|
setPluginState(pluginId: string, pluginState: any): void;
|
|
15
|
-
|
|
16
|
-
getPluginApi(pluginId: 'ipushpull'): IPushPullApi;
|
|
17
|
-
getPluginApi(pluginId: 'glue42'): Glue42Api;
|
|
18
|
-
getPluginApi(pluginId: 'finance'): FinanceApi;
|
|
19
|
-
getPluginApi(pluginId: 'openfin'): OpenFinApi;
|
|
20
|
-
getPluginApi(pluginId: 'charts'): ChartApi;
|
|
21
|
-
getIpushpullPluginApi(): IPushPullApi;
|
|
15
|
+
getipushpullPluginApi(): IPushPullApi;
|
|
22
16
|
getGlue42PluginApi(): Glue42Api;
|
|
23
17
|
getOpenFinPluginApi(): OpenFinApi;
|
|
24
18
|
getChartsPluginApi(): ChartApi;
|
|
@@ -28,7 +28,7 @@ export interface TeamSharingApi {
|
|
|
28
28
|
*/
|
|
29
29
|
checkForUpdates(): void;
|
|
30
30
|
/**
|
|
31
|
-
* Fires the Team
|
|
31
|
+
* Fires the Team Sharing Entity Changed Event
|
|
32
32
|
* @param sharedEntity Entity that has been changed
|
|
33
33
|
*/
|
|
34
34
|
fireTeamSharingEntityChangedEvent(sharedEntity: SharedEntity): void;
|
package/src/Api/ThemeApi.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ export interface ThemeApi {
|
|
|
17
17
|
*/
|
|
18
18
|
loadTheme(theme: string): void;
|
|
19
19
|
/**
|
|
20
|
-
* Sets AdapTable Light Theme - updates
|
|
20
|
+
* Sets AdapTable Light Theme - updates the AG Grid theme to match
|
|
21
21
|
*/
|
|
22
22
|
loadLightTheme(): void;
|
|
23
23
|
/**
|
|
24
|
-
* Sets AdapTable Dark Theme - updates
|
|
24
|
+
* Sets AdapTable Dark Theme - updates the AG Grid theme to match
|
|
25
25
|
*/
|
|
26
26
|
loadDarkTheme(): void;
|
|
27
27
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
2
2
|
import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
|
|
3
|
-
import { UserMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
3
|
+
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
4
4
|
import { ActionColumn, BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../AdaptableOptions/UserInterfaceOptions';
|
|
5
|
+
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
5
6
|
/**
|
|
6
7
|
* Functions relating to User Interface section of Adaptable State
|
|
7
8
|
*/
|
|
@@ -44,19 +45,19 @@ export interface UserInterfaceApi {
|
|
|
44
45
|
/**
|
|
45
46
|
* Retrieves actual Look Up Values from an EditLookUpItem
|
|
46
47
|
* @param editLookUpItem editLookUpItem to check
|
|
47
|
-
* @param
|
|
48
|
+
* @param gridCell: the currently edited Grid Cell
|
|
48
49
|
*/
|
|
49
|
-
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues,
|
|
50
|
+
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
|
|
50
51
|
/**
|
|
51
52
|
* Adds menu item to Column Menu
|
|
52
53
|
* @param userMenuItem Menu Item to add
|
|
53
54
|
*/
|
|
54
|
-
addColumnMenuItem(userMenuItem: UserMenuItem): void;
|
|
55
|
+
addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
|
|
55
56
|
/**
|
|
56
57
|
* Adds menu item to Context Menu
|
|
57
58
|
* @param userMenuItem Menu Item to add
|
|
58
59
|
*/
|
|
59
|
-
addContextMenuItem(userMenuItem: UserMenuItem): void;
|
|
60
|
+
addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
|
|
60
61
|
/**
|
|
61
62
|
* Returns Style set for Editable cells
|
|
62
63
|
*/
|
|
@@ -12,7 +12,6 @@ import { ExportState } from './ExportState';
|
|
|
12
12
|
import { FormatColumnState } from './FormatColumnState';
|
|
13
13
|
import { FreeTextColumnState } from './FreeTextColumnState';
|
|
14
14
|
import { LayoutState } from './LayoutState';
|
|
15
|
-
import { PercentBarState } from './DeprecatedState';
|
|
16
15
|
import { ScheduleState } from './ScheduleState';
|
|
17
16
|
import { PlusMinusState } from './PlusMinusState';
|
|
18
17
|
import { QuickSearchState } from './QuickSearchState';
|
|
@@ -24,10 +23,7 @@ import { FilterState } from './FilterState';
|
|
|
24
23
|
import { SparklineColumnState } from './SparklineColumnState';
|
|
25
24
|
import { ApplicationState } from './ApplicationState';
|
|
26
25
|
import { ToolPanelState } from './ToolPanelState';
|
|
27
|
-
import { GradientColumnState } from './DeprecatedState';
|
|
28
26
|
import { QueryState } from './QueryState';
|
|
29
|
-
import { FlashingCellState } from './DeprecatedState';
|
|
30
|
-
import { UpdatedRowState } from './DeprecatedState';
|
|
31
27
|
/**
|
|
32
28
|
* The main state object that Adaptable persists
|
|
33
29
|
*/
|
|
@@ -52,17 +48,13 @@ export interface AdaptableState {
|
|
|
52
48
|
Filter: FilterState;
|
|
53
49
|
FormatColumn: FormatColumnState;
|
|
54
50
|
FreeTextColumn: FreeTextColumnState;
|
|
55
|
-
GradientColumn: GradientColumnState;
|
|
56
51
|
Layout: LayoutState;
|
|
57
|
-
PercentBar: PercentBarState;
|
|
58
|
-
Schedule: ScheduleState;
|
|
59
52
|
PlusMinus: PlusMinusState;
|
|
53
|
+
Query: QueryState;
|
|
60
54
|
QuickSearch: QuickSearchState;
|
|
55
|
+
Schedule: ScheduleState;
|
|
61
56
|
Shortcut: ShortcutState;
|
|
62
57
|
TeamSharing: TeamSharingState;
|
|
63
58
|
Theme: ThemeState;
|
|
64
59
|
ToolPanel: ToolPanelState;
|
|
65
|
-
Query: QueryState;
|
|
66
|
-
FlashingCell: FlashingCellState;
|
|
67
|
-
UpdatedRow: UpdatedRowState;
|
|
68
60
|
}
|
|
@@ -11,9 +11,8 @@ import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
|
11
11
|
import { AdaptableAggregationQuery, AdaptableBooleanQuery, AdaptableObservableQuery } from './Common/AdaptableQuery';
|
|
12
12
|
import { ButtonStyle } from './Common/ButtonStyle';
|
|
13
13
|
import { AlertButtonContext } from '../AdaptableOptions/NotificationsOptions';
|
|
14
|
-
import { DataChangedInfo } from './Common/DataChangedInfo';
|
|
15
14
|
/**
|
|
16
|
-
* Predefined Configuration for Alert
|
|
15
|
+
* Predefined Configuration for Alert Module
|
|
17
16
|
*/
|
|
18
17
|
export interface AlertState extends ConfigState {
|
|
19
18
|
/**
|
|
@@ -86,7 +85,7 @@ export interface AlertDefinition extends BaseAlertDefinition {
|
|
|
86
85
|
/**
|
|
87
86
|
* Alert Message - can be string or function; if not provided AdapTable creates dynamically using Rule & Scope
|
|
88
87
|
*/
|
|
89
|
-
MessageText?: string
|
|
88
|
+
MessageText?: string;
|
|
90
89
|
/**
|
|
91
90
|
* Series of properties which set what happens when Alert is triggered
|
|
92
91
|
*/
|
|
@@ -3,7 +3,7 @@ import { AdaptableObject } from './Common/AdaptableObject';
|
|
|
3
3
|
import { AdaptableScalarQuery } from './Common/AdaptableQuery';
|
|
4
4
|
import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
|
|
5
5
|
/**
|
|
6
|
-
* Predefined Configuration for Calculated Column
|
|
6
|
+
* Predefined Configuration for Calculated Column Module
|
|
7
7
|
**/
|
|
8
8
|
export interface CalculatedColumnState extends ConfigState {
|
|
9
9
|
/**
|
|
@@ -36,5 +36,5 @@ export interface AdaptableButton<CONTEXT_TYPE extends ButtonContext> extends Ada
|
|
|
36
36
|
hidden?: (button: AdaptableButton<CONTEXT_TYPE>, context: CONTEXT_TYPE) => boolean;
|
|
37
37
|
}
|
|
38
38
|
export interface ButtonContext {
|
|
39
|
-
|
|
39
|
+
adaptableApi: AdaptableApi;
|
|
40
40
|
}
|
|
@@ -4,17 +4,17 @@ import { AdaptableObject } from './AdaptableObject';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface AdaptableColumnBase extends AdaptableObject {
|
|
6
6
|
/**
|
|
7
|
-
* Name of Column in
|
|
7
|
+
* Name of Column in AG Grid (e.g. field or colId)
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
columnId: string;
|
|
10
10
|
/**
|
|
11
|
-
* How Column is referred to in Adaptable UI;
|
|
11
|
+
* How Column is referred to in Adaptable UI; `Caption` property in AG Grid
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
friendlyName: string;
|
|
14
14
|
/**
|
|
15
15
|
* DataType of the column
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
dataType: 'String' | 'Number' | 'NumberArray' | 'Boolean' | 'Date' | 'Object' | 'Unknown';
|
|
18
18
|
}
|
|
19
19
|
export declare const isValidOrderForColumnGroups: ({ oldColumns, newColumns, }: {
|
|
20
20
|
oldColumns: AdaptableColumn[];
|
|
@@ -24,101 +24,101 @@ export declare const isValidOrderForColumnGroups: ({ oldColumns, newColumns, }:
|
|
|
24
24
|
* Defines a Column Group
|
|
25
25
|
*/
|
|
26
26
|
export interface AdaptableColumnGroup {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
allowGroupSplit: boolean;
|
|
28
|
+
columnGroupId: string;
|
|
29
|
+
friendlyName: string;
|
|
30
|
+
groupCount: number;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* Defines an Adaptable Column - created at run-time based on
|
|
33
|
+
* Defines an Adaptable Column - created at run-time based on AG Grid column definition
|
|
34
34
|
*/
|
|
35
35
|
export interface AdaptableColumn extends AdaptableColumnBase {
|
|
36
36
|
/**
|
|
37
37
|
* Is this the Primary Key column
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
isPrimaryKey: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* Column width
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
width?: number;
|
|
44
44
|
/**
|
|
45
45
|
* Flex details of the column
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
flex?: number;
|
|
48
48
|
/**
|
|
49
49
|
* Is column editable
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
readOnly: boolean;
|
|
52
52
|
/**
|
|
53
53
|
* Is Column currently visible
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
visible: boolean;
|
|
56
56
|
/**
|
|
57
57
|
* Is Column sortable
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
sortable: boolean;
|
|
60
60
|
/**
|
|
61
61
|
* Is Column able to be filtered
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
filterable: boolean;
|
|
64
64
|
/**
|
|
65
65
|
* Can Column be moved at run-time to a new position
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
moveable: boolean;
|
|
68
68
|
/**
|
|
69
69
|
* Can Column be removed from the grid
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
hideable: boolean;
|
|
72
72
|
/**
|
|
73
73
|
* Can Column form a Row Group
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
groupable: boolean;
|
|
76
76
|
/**
|
|
77
77
|
* Can Column be used in a Pivot Grid
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
pivotable: boolean;
|
|
80
80
|
/**
|
|
81
81
|
* Is Column able to display aggregations (e.g. 'sum') when grouped
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
aggregatable: boolean;
|
|
84
84
|
/**
|
|
85
85
|
* Can the Column be in included in Queries / Expressions
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
queryable: boolean;
|
|
88
88
|
/**
|
|
89
89
|
* Available aggregations for the Column
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
availableAggregationFunctions?: string[];
|
|
92
92
|
/**
|
|
93
93
|
* Custom aggregation function for the Column
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
aggregationFunction?: string;
|
|
96
96
|
/**
|
|
97
97
|
* Is Column currently grouped
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
isGrouped: boolean;
|
|
100
100
|
/**
|
|
101
101
|
* Is Column pinned or locked into position
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
isFixed: boolean;
|
|
104
104
|
/**
|
|
105
105
|
* Is it a Sparkline Column
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
isSparkline: boolean;
|
|
108
108
|
/**
|
|
109
109
|
* Has colummn been excluded from Quick Search results
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
isExcludedFromQuickSearch: boolean;
|
|
112
112
|
/**
|
|
113
113
|
* The parent column group, if the column belongs to one
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
columnGroup?: AdaptableColumnGroup;
|
|
116
116
|
}
|
|
117
117
|
export interface AdaptableColumnProperties {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
sortable: boolean;
|
|
119
|
+
filterable: boolean;
|
|
120
|
+
moveable: boolean;
|
|
121
|
+
groupable: boolean;
|
|
122
|
+
pivotable: boolean;
|
|
123
|
+
aggregatable: boolean;
|
|
124
124
|
}
|
|
@@ -8,14 +8,14 @@ exports.isValidOrderForColumnGroups = ({ oldColumns, newColumns, }) => {
|
|
|
8
8
|
let count = 0;
|
|
9
9
|
columns.forEach((column) => {
|
|
10
10
|
var _a, _b;
|
|
11
|
-
if (column.
|
|
12
|
-
column.
|
|
13
|
-
!column.
|
|
14
|
-
if (prevGroup !== column.
|
|
11
|
+
if (column.columnGroup &&
|
|
12
|
+
column.columnGroup.groupCount > 1 &&
|
|
13
|
+
!column.columnGroup.allowGroupSplit) {
|
|
14
|
+
if (prevGroup !== column.columnGroup.columnGroupId) {
|
|
15
15
|
count++;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
prevGroup = (_b = (_a = column.
|
|
18
|
+
prevGroup = (_b = (_a = column.columnGroup) === null || _a === void 0 ? void 0 : _a.columnGroupId) !== null && _b !== void 0 ? _b : '';
|
|
19
19
|
});
|
|
20
20
|
return count;
|
|
21
21
|
};
|