@adaptabletools/adaptable 10.0.2 → 10.0.4-canary.2
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 +84 -32
- package/bundle.cjs.js +350 -0
- package/index.css +100 -34
- 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 +24 -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 +22 -15
- package/src/AdaptableOptions/GeneralOptions.d.ts +3 -2
- package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
- 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 +108 -6
- package/src/Api/AdaptableApi.d.ts +12 -12
- package/src/Api/AlertApi.d.ts +1 -1
- package/src/Api/CalculatedColumnApi.d.ts +15 -0
- package/src/Api/ColumnApi.d.ts +49 -5
- package/src/Api/ConfigApi.d.ts +8 -0
- 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/{Utilities/Interface/ProgressIndicator.js → Api/Events/BaseEventInfo.js} +0 -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 +44 -18
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
- package/src/Api/Implementation/AlertApiImpl.js +22 -15
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +3 -0
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +23 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +12 -3
- package/src/Api/Implementation/ColumnApiImpl.js +79 -44
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ConfigApiImpl.js +28 -41
- 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 +9 -3
- package/src/Api/Implementation/GridApiImpl.d.ts +11 -2
- package/src/Api/Implementation/GridApiImpl.js +30 -13
- package/src/Api/Implementation/InternalApiImpl.d.ts +4 -2
- package/src/Api/Implementation/InternalApiImpl.js +21 -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 +15 -11
- package/src/Api/Implementation/UserInterfaceApiImpl.js +73 -91
- package/src/Api/InternalApi.d.ts +4 -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 +19 -9
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -10
- package/src/PredefinedConfig/AlertState.d.ts +5 -1
- package/src/PredefinedConfig/ApplicationState.d.ts +1 -1
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -38
- 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 +19 -18
- package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +7 -7
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +4 -3
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +5 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +40 -17
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +49 -0
- package/src/PredefinedConfig/Common/SpecialColumnSettings.js +2 -0
- 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 +3 -3
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +11 -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/Selection/GridRow.d.ts +12 -4
- package/src/PredefinedConfig/SystemState.d.ts +4 -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 +25 -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 -4
- package/src/Strategy/ExportModule.js +59 -62
- 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 +9 -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/DateHelper.d.ts +2 -2
- package/src/Utilities/Helpers/DateHelper.js +30 -20
- package/src/Utilities/Helpers/PreviewHelper.js +2 -2
- package/src/Utilities/Interface/Preview.d.ts +2 -1
- package/src/Utilities/ObjectFactory.d.ts +1 -1
- package/src/Utilities/ObjectFactory.js +14 -2
- package/src/Utilities/Services/DataService.js +5 -5
- package/src/Utilities/Services/LicenseService.js +16 -2
- package/src/Utilities/Services/ReportService.js +13 -12
- package/src/Utilities/Services/ValidationService.js +4 -5
- package/src/Utilities/runIfNotResolvedIn.d.ts +8 -0
- package/src/Utilities/runIfNotResolvedIn.js +23 -0
- package/src/View/AdaptableView.js +1 -1
- 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/AlertDisplayWizardSection.js +19 -5
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.d.ts +2 -0
- package/src/View/BulkUpdate/BulkUpdatePopup.js +6 -4
- package/src/View/BulkUpdate/BulkUpdateViewPanel.d.ts +2 -0
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +3 -1
- 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.d.ts +3 -51
- package/src/View/Components/FilterForm/FilterForm.js +57 -38
- package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +4 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +18 -9
- package/src/View/Components/FilterForm/QuickFilterForm.d.ts +3 -43
- package/src/View/Components/FilterForm/QuickFilterForm.js +74 -35
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +3 -0
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +8 -0
- 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/AdaptablePopup.d.ts +1 -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.d.ts +10 -2
- package/src/View/Components/Selectors/ColumnValueSelector.js +47 -15
- 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/CustomSort/Wizard/CustomSortValuesWizardSection.js +24 -6
- 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 +4 -2
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +5 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
- package/src/View/GridInfo/ColumnInfoComponent.js +16 -16
- package/src/View/GridInfo/GridInfoPopup.js +4 -1
- 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/View/UIHelper.d.ts +2 -0
- package/src/View/UIHelper.js +10 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +2 -1
- package/src/agGrid/ActionColumnRenderer.js +21 -4
- package/src/agGrid/Adaptable.d.ts +28 -11
- package/src/agGrid/Adaptable.js +326 -168
- 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/Dashboard/Dashboard.js +1 -1
- package/src/components/Datepicker/DatepickerContext.d.ts +2 -2
- package/src/components/Datepicker/index.js +9 -5
- package/src/components/DropdownButton/index.js +1 -1
- package/src/components/ExpressionEditor/index.js +7 -7
- package/src/components/Loader/Loader.d.ts +7 -0
- package/src/components/Loader/Loader.js +13 -0
- package/src/components/Loader/index.d.ts +2 -0
- package/src/components/Loader/index.js +7 -0
- 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.d.ts +2 -0
- package/src/components/ProgressIndicator/ProgressIndicator.js +54 -0
- 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 +176 -52
- package/src/metamodel/adaptable.metamodel.js +659 -366
- package/src/types.d.ts +5 -4
- 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/Utilities/Interface/ProgressIndicator.d.ts +0 -4
- package/src/View/Export/ProgressIndicator.d.ts +0 -6
- package/src/View/Export/ProgressIndicator.js +0 -25
- package/src/components/OverlayTrigger/useVendorClassName.d.ts +0 -2
|
@@ -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,22 +2,26 @@ 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';
|
|
6
|
-
import { ActionColumn,
|
|
5
|
+
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
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;
|
|
10
|
-
getAllPermittedValuesItems():
|
|
11
|
-
private getPermittedValuesItemsWithColumnScope;
|
|
12
|
-
private getPermittedValuesItemsWithDataTypeScope;
|
|
13
|
-
private getPermittedValuesItemsWithAllScope;
|
|
11
|
+
getAllPermittedValuesItems(): PermittedValues[];
|
|
14
12
|
private getPermittedValuesForScope;
|
|
15
13
|
getPermittedValuesForColumn(column: AdaptableColumn): any[] | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
getAllFilterPermittedValuesItems(): FilterPermittedValues[];
|
|
15
|
+
getFilterPermittedValuesForColumn(column: AdaptableColumn): FilterPermittedValues | undefined;
|
|
16
|
+
getAllCustomSortPermittedValuesItems(): CustomSortPermittedValues[];
|
|
17
|
+
getCustomSortPermittedValuesForColumn(column: AdaptableColumn): CustomSortPermittedValues | undefined;
|
|
18
|
+
getAllBulkUpdatePermittedValuesItems(): BulkUpdatePermittedValues[];
|
|
19
|
+
getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
|
|
20
|
+
getAllEditLookUpItems(): EditLookUpPermittedValues[];
|
|
21
|
+
getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
|
|
22
|
+
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
|
|
23
|
+
addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
|
|
24
|
+
addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
|
|
21
25
|
getEditableCellStyle(): AdaptableStyle | undefined;
|
|
22
26
|
getReadOnlyCellStyle(): AdaptableStyle | undefined;
|
|
23
27
|
getAllActionColumn(): ActionColumn[];
|
|
@@ -22,51 +22,32 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
22
22
|
return this.getUserInterfaceOptions().styleClassNames;
|
|
23
23
|
}
|
|
24
24
|
getAllPermittedValuesItems() {
|
|
25
|
-
|
|
25
|
+
var _a, _b;
|
|
26
|
+
return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.permittedValues) !== null && _b !== void 0 ? _b : [];
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
return this.getAllPermittedValuesItems().filter((pv) => {
|
|
29
|
-
return 'ColumnIds' in pv.scope == true;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
getPermittedValuesItemsWithDataTypeScope() {
|
|
33
|
-
return this.getAllPermittedValuesItems().filter((pv) => {
|
|
34
|
-
return 'DataTypes' in pv.scope == true;
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
getPermittedValuesItemsWithAllScope() {
|
|
38
|
-
return this.getAllPermittedValuesItems().filter((pv) => {
|
|
39
|
-
return 'All' in pv.scope == true;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
getPermittedValuesForScope(column) {
|
|
28
|
+
getPermittedValuesForScope(column, permittedValues) {
|
|
43
29
|
let permittedValuesItem;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
30
|
+
/**
|
|
31
|
+
* The previous implementation prioritized column-id, data-types and all
|
|
32
|
+
*/
|
|
33
|
+
// columns id
|
|
34
|
+
permittedValuesItem = permittedValues.find((permittedValue) => {
|
|
35
|
+
return ('ColumnIds' in permittedValue.scope &&
|
|
36
|
+
this.adaptable.api.scopeApi.isColumnInScope(column, permittedValue.scope));
|
|
50
37
|
});
|
|
51
38
|
if (permittedValuesItem) {
|
|
52
39
|
return permittedValuesItem;
|
|
53
40
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
permittedValuesItem = pv;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
41
|
+
permittedValuesItem = permittedValues.find((permittedValue) => {
|
|
42
|
+
return ('DataTypes' in permittedValue.scope &&
|
|
43
|
+
this.adaptable.api.scopeApi.isColumnInScope(column, permittedValue.scope));
|
|
60
44
|
});
|
|
61
45
|
if (permittedValuesItem) {
|
|
62
46
|
return permittedValuesItem;
|
|
63
47
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
permittedValuesItem = pv;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
48
|
+
permittedValuesItem = permittedValues.find((permittedValue) => {
|
|
49
|
+
return ('All' in permittedValue.scope &&
|
|
50
|
+
this.adaptable.api.scopeApi.isColumnInScope(column, permittedValue.scope));
|
|
70
51
|
});
|
|
71
52
|
if (permittedValuesItem) {
|
|
72
53
|
return permittedValuesItem;
|
|
@@ -77,7 +58,8 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
77
58
|
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(this.getAllPermittedValuesItems())) {
|
|
78
59
|
return undefined;
|
|
79
60
|
}
|
|
80
|
-
|
|
61
|
+
const allPermittedValues = this.getAllPermittedValuesItems();
|
|
62
|
+
let permittedValuesColumn = this.getPermittedValuesForScope(column, allPermittedValues);
|
|
81
63
|
if (!permittedValuesColumn) {
|
|
82
64
|
return undefined;
|
|
83
65
|
}
|
|
@@ -85,7 +67,11 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
85
67
|
// first do the function then get hardcoded items
|
|
86
68
|
if (permittedValues != null && typeof permittedValues === 'function') {
|
|
87
69
|
if (column) {
|
|
88
|
-
|
|
70
|
+
const permittedValuesParams = {
|
|
71
|
+
adaptableApi: this.adaptable.api,
|
|
72
|
+
column: column,
|
|
73
|
+
};
|
|
74
|
+
return permittedValues(permittedValuesParams);
|
|
89
75
|
}
|
|
90
76
|
}
|
|
91
77
|
else {
|
|
@@ -96,69 +82,65 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
96
82
|
}
|
|
97
83
|
return undefined;
|
|
98
84
|
}
|
|
99
|
-
|
|
100
|
-
|
|
85
|
+
getAllFilterPermittedValuesItems() {
|
|
86
|
+
var _a, _b;
|
|
87
|
+
return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.filterPermittedValues) !== null && _b !== void 0 ? _b : [];
|
|
101
88
|
}
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
89
|
+
getFilterPermittedValuesForColumn(column) {
|
|
90
|
+
const allFilterPermittedValuesItems = this.getAllFilterPermittedValuesItems();
|
|
91
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(allFilterPermittedValuesItems)) {
|
|
105
92
|
return undefined;
|
|
106
93
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
94
|
+
return this.getPermittedValuesForScope(column, allFilterPermittedValuesItems);
|
|
95
|
+
}
|
|
96
|
+
getAllCustomSortPermittedValuesItems() {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.customSortPermittedValues) !== null && _b !== void 0 ? _b : [];
|
|
99
|
+
}
|
|
100
|
+
getCustomSortPermittedValuesForColumn(column) {
|
|
101
|
+
const allFilterPermittedValuesItems = this.getAllCustomSortPermittedValuesItems();
|
|
102
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(allFilterPermittedValuesItems)) {
|
|
110
103
|
return undefined;
|
|
111
104
|
}
|
|
112
|
-
|
|
113
|
-
const columnEditLookItems = editLookUpItems.filter((pv) => {
|
|
114
|
-
return 'ColumnIds' in pv.scope == true;
|
|
115
|
-
});
|
|
116
|
-
columnEditLookItems.forEach((eli) => {
|
|
117
|
-
if (this.adaptable.api.scopeApi.isColumnInScopeColumns(abColumn, eli.scope)) {
|
|
118
|
-
editLookUpItem = eli;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
if (editLookUpItem) {
|
|
122
|
-
return editLookUpItem;
|
|
123
|
-
}
|
|
124
|
-
// then we get any for the DataType
|
|
125
|
-
const dateEditLookItems = editLookUpItems.filter((pv) => {
|
|
126
|
-
return 'DataTypes' in pv.scope == true;
|
|
127
|
-
});
|
|
128
|
-
dateEditLookItems.forEach((eli) => {
|
|
129
|
-
if (this.adaptable.api.scopeApi.isColumnInDateScope(abColumn, eli.scope)) {
|
|
130
|
-
editLookUpItem = eli;
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
if (editLookUpItem) {
|
|
134
|
-
return editLookUpItem;
|
|
135
|
-
}
|
|
136
|
-
// then we get any for All
|
|
137
|
-
const allTypeEditLookItems = editLookUpItems.filter((pv) => {
|
|
138
|
-
return 'All' in pv.scope == true;
|
|
139
|
-
});
|
|
140
|
-
allTypeEditLookItems.forEach((eli) => {
|
|
141
|
-
if (this.adaptable.api.scopeApi.isColumnInScope(abColumn, eli.scope)) {
|
|
142
|
-
editLookUpItem = eli;
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
if (editLookUpItem) {
|
|
146
|
-
return editLookUpItem;
|
|
147
|
-
}
|
|
148
|
-
return undefined;
|
|
105
|
+
return this.getPermittedValuesForScope(column, allFilterPermittedValuesItems);
|
|
149
106
|
}
|
|
150
|
-
|
|
151
|
-
|
|
107
|
+
getAllBulkUpdatePermittedValuesItems() {
|
|
108
|
+
var _a, _b;
|
|
109
|
+
return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.bulkUpdatePermittedValues) !== null && _b !== void 0 ? _b : [];
|
|
110
|
+
}
|
|
111
|
+
getBulkUpdatePermittedValuesForColumn(column) {
|
|
112
|
+
const allFilterPermittedValuesItems = this.getAllBulkUpdatePermittedValuesItems();
|
|
113
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(allFilterPermittedValuesItems)) {
|
|
152
114
|
return undefined;
|
|
153
115
|
}
|
|
154
|
-
|
|
116
|
+
return this.getPermittedValuesForScope(column, allFilterPermittedValuesItems);
|
|
117
|
+
}
|
|
118
|
+
getAllEditLookUpItems() {
|
|
119
|
+
return this.getUserInterfaceOptions().editLookUpItems || [];
|
|
120
|
+
}
|
|
121
|
+
getEditLookUpItemForColumn(column) {
|
|
155
122
|
if (!column) {
|
|
156
123
|
return undefined;
|
|
157
124
|
}
|
|
125
|
+
let editLookUpItems = this.getAllEditLookUpItems();
|
|
126
|
+
if (!editLookUpItems) {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
return this.getPermittedValuesForScope(column, editLookUpItems);
|
|
130
|
+
}
|
|
131
|
+
getEditLookUpValuesForEditLookUpItem(editLookUpItem, gridCell) {
|
|
132
|
+
if (!editLookUpItem || !gridCell || !gridCell.column) {
|
|
133
|
+
return undefined;
|
|
134
|
+
}
|
|
158
135
|
let editLookUpValues = editLookUpItem.values;
|
|
159
136
|
// first do the function then get hardcoded items
|
|
160
137
|
if (editLookUpValues != null && typeof editLookUpValues === 'function') {
|
|
161
|
-
|
|
138
|
+
const editLookUpParams = {
|
|
139
|
+
adaptableApi: this.adaptable.api,
|
|
140
|
+
column: gridCell.column,
|
|
141
|
+
gridCell: gridCell,
|
|
142
|
+
};
|
|
143
|
+
return editLookUpValues(editLookUpParams);
|
|
162
144
|
}
|
|
163
145
|
else {
|
|
164
146
|
let arr = editLookUpValues;
|
|
@@ -168,15 +150,15 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
168
150
|
}
|
|
169
151
|
// if no hard-coded values or function provided then just get the distinct values for the column
|
|
170
152
|
// this will use the columnapi method that first looks for permitted values and then distinct values
|
|
171
|
-
return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(columnId);
|
|
153
|
+
return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(gridCell.column.columnId);
|
|
172
154
|
}
|
|
173
|
-
addColumnMenuItem(
|
|
155
|
+
addColumnMenuItem(userMenuItem) {
|
|
174
156
|
var _a;
|
|
175
|
-
(_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);
|
|
176
158
|
}
|
|
177
|
-
addContextMenuItem(
|
|
159
|
+
addContextMenuItem(userMenuItem) {
|
|
178
160
|
var _a;
|
|
179
|
-
(_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);
|
|
180
162
|
}
|
|
181
163
|
getEditableCellStyle() {
|
|
182
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;
|
|
@@ -116,4 +116,6 @@ export interface InternalApi {
|
|
|
116
116
|
destroyFrameworkComponent(containerDomNode: HTMLElement, frameworkComponent: AdaptableFrameworkComponent, componentType: 'toolPanel' | 'toolbar'): void;
|
|
117
117
|
initializeDataChangeHistory(): void;
|
|
118
118
|
isTextComparisonCaseSensitive(): boolean;
|
|
119
|
+
executeWithProgressIndicator(label: string, executeFn: () => unknown): void;
|
|
120
|
+
hideProgressIndicator(): void;
|
|
119
121
|
}
|
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';
|
|
4
|
-
import { ActionColumn,
|
|
3
|
+
import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
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
|
*/
|
|
@@ -17,37 +18,46 @@ export interface UserInterfaceApi {
|
|
|
17
18
|
/**
|
|
18
19
|
* Retrieves `permittedValues` property from User Interface Options
|
|
19
20
|
*/
|
|
20
|
-
getAllPermittedValuesItems():
|
|
21
|
+
getAllPermittedValuesItems(): PermittedValues[];
|
|
21
22
|
/**
|
|
22
23
|
* Retrieves Permitted Values for a given Column
|
|
23
24
|
* @param column column for which to retrieve Permitted Values
|
|
24
25
|
*/
|
|
25
26
|
getPermittedValuesForColumn(column: AdaptableColumn): any[];
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves Permitted values for filtering by column values in Floating Filter and dropdown Filter.
|
|
29
|
+
*/
|
|
30
|
+
getFilterPermittedValuesForColumn(column: AdaptableColumn): FilterPermittedValues | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves Permitted values for Custom sort.
|
|
33
|
+
*/
|
|
34
|
+
getCustomSortPermittedValuesForColumn(column: AdaptableColumn): CustomSortPermittedValues | undefined;
|
|
35
|
+
getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
|
|
26
36
|
/**
|
|
27
37
|
* Retrieves `editLookUpItems` property from User Interface Options
|
|
28
38
|
*/
|
|
29
|
-
getAllEditLookUpItems():
|
|
39
|
+
getAllEditLookUpItems(): EditLookUpPermittedValues[];
|
|
30
40
|
/**
|
|
31
41
|
* Retrieves EditLookUpItems for a given Column
|
|
32
42
|
* @param columnId Column for which to retrieve EditLookUpItems
|
|
33
43
|
*/
|
|
34
|
-
getEditLookUpItemForColumn(
|
|
44
|
+
getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
|
|
35
45
|
/**
|
|
36
46
|
* Retrieves actual Look Up Values from an EditLookUpItem
|
|
37
47
|
* @param editLookUpItem editLookUpItem to check
|
|
38
|
-
* @param
|
|
48
|
+
* @param gridCell: the currently edited Grid Cell
|
|
39
49
|
*/
|
|
40
|
-
getEditLookUpValuesForEditLookUpItem(editLookUpItem:
|
|
50
|
+
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
|
|
41
51
|
/**
|
|
42
52
|
* Adds menu item to Column Menu
|
|
43
53
|
* @param userMenuItem Menu Item to add
|
|
44
54
|
*/
|
|
45
|
-
addColumnMenuItem(userMenuItem: UserMenuItem): void;
|
|
55
|
+
addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
|
|
46
56
|
/**
|
|
47
57
|
* Adds menu item to Context Menu
|
|
48
58
|
* @param userMenuItem Menu Item to add
|
|
49
59
|
*/
|
|
50
|
-
addContextMenuItem(userMenuItem: UserMenuItem): void;
|
|
60
|
+
addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
|
|
51
61
|
/**
|
|
52
62
|
* Returns Style set for Editable cells
|
|
53
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
|
}
|
|
@@ -12,7 +12,7 @@ import { AdaptableAggregationQuery, AdaptableBooleanQuery, AdaptableObservableQu
|
|
|
12
12
|
import { ButtonStyle } from './Common/ButtonStyle';
|
|
13
13
|
import { AlertButtonContext } from '../AdaptableOptions/NotificationsOptions';
|
|
14
14
|
/**
|
|
15
|
-
* Predefined Configuration for Alert
|
|
15
|
+
* Predefined Configuration for Alert Module
|
|
16
16
|
*/
|
|
17
17
|
export interface AlertState extends ConfigState {
|
|
18
18
|
/**
|
|
@@ -82,6 +82,10 @@ export interface AlertDefinition extends BaseAlertDefinition {
|
|
|
82
82
|
* Type of Alert: 'Info', 'Success', 'Warning', 'Error'; influences Alert colour, icon and logging
|
|
83
83
|
*/
|
|
84
84
|
MessageType: AdaptableMessageType;
|
|
85
|
+
/**
|
|
86
|
+
* Alert Message - can be string or function; if not provided AdapTable creates dynamically using Rule & Scope
|
|
87
|
+
*/
|
|
88
|
+
MessageText?: string;
|
|
85
89
|
/**
|
|
86
90
|
* Series of properties which set what happens when Alert is triggered
|
|
87
91
|
*/
|