@adaptabletools/adaptable 13.1.1 → 14.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/README.md +1 -1
- package/base.css +7 -2
- package/base.css.map +1 -1
- package/bundle.cjs.js +180 -177
- package/index.css +11 -2
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +4 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -9
- package/src/AdaptableOptions/AlertOptions.d.ts +6 -1
- package/src/AdaptableOptions/ChartingOptions.d.ts +1 -1
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +8 -3
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +6 -4
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ActionApi.d.ts +14 -3
- package/src/Api/AdaptableApi.d.ts +0 -6
- package/src/Api/AlertApi.d.ts +127 -92
- package/src/Api/BulkUpdateApi.d.ts +9 -2
- package/src/Api/CalculatedColumnApi.d.ts +26 -21
- package/src/Api/CellSummaryApi.d.ts +15 -8
- package/src/Api/ChartingApi.d.ts +9 -2
- package/src/Api/ColumnApi.d.ts +153 -115
- package/src/Api/ConfigApi.d.ts +18 -18
- package/src/Api/CustomSortApi.d.ts +36 -7
- package/src/Api/DashboardApi.d.ts +12 -5
- package/src/Api/DataChangeHistoryApi.d.ts +8 -1
- package/src/Api/DataSetApi.d.ts +13 -3
- package/src/Api/EventApi.d.ts +2 -2
- package/src/Api/ExportApi.d.ts +30 -13
- package/src/Api/FilterApi.d.ts +74 -62
- package/src/Api/FlashingCellApi.d.ts +25 -9
- package/src/Api/FormatColumnApi.d.ts +76 -95
- package/src/Api/FreeTextColumnApi.d.ts +53 -21
- package/src/Api/GridApi.d.ts +57 -22
- package/src/Api/Implementation/ActionApiImpl.d.ts +9 -3
- package/src/Api/Implementation/ActionApiImpl.js +23 -11
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +5 -2
- package/src/Api/Implementation/AlertApiImpl.d.ts +57 -28
- package/src/Api/Implementation/AlertApiImpl.js +179 -197
- package/src/Api/Implementation/ApiBase.d.ts +43 -2
- package/src/Api/Implementation/ApiBase.js +129 -5
- package/src/Api/Implementation/ApplicationApiImpl.d.ts +1 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +1 -0
- package/src/Api/Implementation/BulkUpdateApiImpl.js +4 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +7 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +28 -37
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CellSummaryApiImpl.js +6 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ChartingApiImpl.js +10 -4
- package/src/Api/Implementation/ColumnApiImpl.d.ts +22 -6
- package/src/Api/Implementation/ColumnApiImpl.js +184 -195
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ConfigApiImpl.js +1 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +16 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +33 -7
- package/src/Api/Implementation/DashboardApiImpl.d.ts +6 -1
- package/src/Api/Implementation/DashboardApiImpl.js +11 -12
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
- package/src/Api/Implementation/DataSetApiImpl.d.ts +6 -0
- package/src/Api/Implementation/DataSetApiImpl.js +17 -8
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExportApiImpl.d.ts +9 -1
- package/src/Api/Implementation/ExportApiImpl.js +34 -68
- package/src/Api/Implementation/FilterApiImpl.d.ts +10 -1
- package/src/Api/Implementation/FilterApiImpl.js +61 -157
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +23 -26
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +20 -15
- package/src/Api/Implementation/FormatColumnApiImpl.js +62 -153
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +13 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +42 -27
- package/src/Api/Implementation/GridApiImpl.d.ts +15 -1
- package/src/Api/Implementation/GridApiImpl.js +117 -61
- package/src/Api/Implementation/LayoutApiImpl.d.ts +8 -7
- package/src/Api/Implementation/LayoutApiImpl.js +29 -112
- package/src/Api/Implementation/PluginsApiImpl.d.ts +1 -1
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +2 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +5 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +8 -5
- package/src/Api/Implementation/PredicateApiImpl.js +33 -98
- package/src/Api/Implementation/QueryApiImpl.d.ts +7 -2
- package/src/Api/Implementation/QueryApiImpl.js +22 -44
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -0
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +1 -0
- package/src/Api/Implementation/QuickSearchApiImpl.js +5 -0
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +27 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +86 -17
- package/src/Api/Implementation/ScopeApiImpl.js +9 -7
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +2 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +9 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +8 -1
- package/src/Api/Implementation/ShortcutApiImpl.js +25 -4
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -0
- package/src/Api/Implementation/SmartEditApiImpl.js +5 -0
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +14 -11
- package/src/Api/Implementation/StyledColumnApiImpl.js +40 -185
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +6 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +19 -12
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +6 -5
- package/src/Api/Implementation/TeamSharingApiImpl.js +15 -25
- package/src/Api/Implementation/ThemeApiImpl.d.ts +5 -1
- package/src/Api/Implementation/ThemeApiImpl.js +23 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +13 -4
- package/src/Api/Internal/ActionInternalApi.d.ts +23 -0
- package/src/Api/Internal/ActionInternalApi.js +198 -0
- package/src/Api/{Implementation/InternalApiImpl.d.ts → Internal/AdaptableInternalApi.d.ts} +7 -57
- package/src/Api/{Implementation/InternalApiImpl.js → Internal/AdaptableInternalApi.js} +28 -306
- package/src/Api/Internal/AlertInternalApi.d.ts +148 -0
- package/src/Api/Internal/AlertInternalApi.js +484 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +24 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +57 -0
- package/src/Api/Internal/ColumnInternalApi.d.ts +33 -0
- package/src/Api/Internal/ColumnInternalApi.js +67 -0
- package/src/Api/Internal/CustomSortInternalApi.d.ts +6 -0
- package/src/Api/Internal/CustomSortInternalApi.js +11 -0
- package/src/Api/Internal/DashboardInternalApi.d.ts +8 -0
- package/src/Api/Internal/DashboardInternalApi.js +26 -0
- package/src/Api/Internal/DataSetInternalApi.d.ts +9 -0
- package/src/Api/Internal/DataSetInternalApi.js +20 -0
- package/src/Api/Internal/ExportInternalApi.d.ts +11 -0
- package/src/Api/Internal/ExportInternalApi.js +73 -0
- package/src/Api/Internal/FilterInternalApi.d.ts +58 -0
- package/src/Api/Internal/FilterInternalApi.js +194 -0
- package/src/Api/Internal/FlashingCellInternalApi.d.ts +12 -0
- package/src/Api/Internal/FlashingCellInternalApi.js +56 -0
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +109 -0
- package/src/Api/Internal/FormatColumnInternalApi.js +225 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +15 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.js +44 -0
- package/src/Api/Internal/GridInternalApi.d.ts +82 -0
- package/src/Api/Internal/GridInternalApi.js +252 -0
- package/src/Api/Internal/LayoutInternalApi.d.ts +48 -0
- package/src/Api/Internal/LayoutInternalApi.js +163 -0
- package/src/Api/Internal/PredicateInternalApi.d.ts +37 -0
- package/src/Api/Internal/PredicateInternalApi.js +140 -0
- package/src/Api/Internal/QueryInternalApi.d.ts +17 -0
- package/src/Api/Internal/QueryInternalApi.js +57 -0
- package/src/Api/Internal/QueryLanguageInternalApi.d.ts +11 -0
- package/src/Api/Internal/QueryLanguageInternalApi.js +34 -0
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +59 -0
- package/src/Api/Internal/StyledColumnInternalApi.js +249 -0
- package/src/Api/Internal/SystemStatusInternalApi.d.ts +11 -0
- package/src/Api/Internal/SystemStatusInternalApi.js +27 -0
- package/src/Api/Internal/TeamSharingInternalApi.d.ts +20 -0
- package/src/Api/Internal/TeamSharingInternalApi.js +66 -0
- package/src/Api/LayoutApi.d.ts +28 -44
- package/src/Api/PlusMinusApi.d.ts +9 -2
- package/src/Api/PredicateApi.d.ts +26 -10
- package/src/Api/QueryApi.d.ts +23 -18
- package/src/Api/QuickSearchApi.d.ts +5 -1
- package/src/Api/ScheduleApi.d.ts +97 -16
- package/src/Api/SettingsPanelApi.d.ts +12 -1
- package/src/Api/ShortcutApi.d.ts +28 -7
- package/src/Api/SmartEditApi.d.ts +8 -1
- package/src/Api/StyledColumnApi.d.ts +34 -54
- package/src/Api/SystemStatusApi.d.ts +12 -6
- package/src/Api/TeamSharingApi.d.ts +4 -17
- package/src/Api/ThemeApi.d.ts +25 -6
- package/src/Api/UserInterfaceApi.d.ts +13 -2
- package/src/PredefinedConfig/AlertState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.js +4 -0
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +0 -5
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +10 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +22 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -0
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +5 -3
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +0 -5
- package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +9 -0
- package/src/PredefinedConfig/SystemState.d.ts +5 -0
- package/src/Redux/ActionsReducers/GridRedux.d.ts +18 -0
- package/src/Redux/ActionsReducers/GridRedux.js +65 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
- package/src/Redux/Store/AdaptableStore.js +34 -26
- package/src/Strategy/AdaptableModuleBase.js +6 -6
- package/src/Strategy/AlertModule.d.ts +1 -6
- package/src/Strategy/AlertModule.js +37 -92
- package/src/Strategy/BulkUpdateModule.js +3 -3
- package/src/Strategy/CalculatedColumnModule.js +6 -6
- package/src/Strategy/ChartingModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -4
- package/src/Strategy/DashboardModule.js +2 -2
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +4 -4
- package/src/Strategy/FilterModule.js +7 -6
- package/src/Strategy/FlashingCellModule.d.ts +2 -0
- package/src/Strategy/FlashingCellModule.js +21 -5
- package/src/Strategy/FormatColumnModule.d.ts +1 -0
- package/src/Strategy/FormatColumnModule.js +29 -3
- package/src/Strategy/FreeTextColumnModule.js +3 -3
- package/src/Strategy/LayoutModule.js +18 -18
- package/src/Strategy/PlusMinusModule.js +2 -2
- package/src/Strategy/QueryModule.js +3 -3
- package/src/Strategy/ScheduleModule.js +10 -12
- package/src/Strategy/ShortcutModule.js +5 -5
- package/src/Strategy/SmartEditModule.js +3 -3
- package/src/Strategy/StyledColumnModule.js +9 -7
- package/src/Strategy/TeamSharingModule.js +3 -3
- package/src/Strategy/ThemeModule.js +1 -1
- package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +1 -1
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +1 -1
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +4 -3
- package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
- package/src/Strategy/Utilities/updateSingleToMultiplePredicates.d.ts +5 -0
- package/src/Strategy/Utilities/updateSingleToMultiplePredicates.js +12 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +8 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +11 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +73 -78
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +3 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +9 -5
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +12 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +133 -28
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +1 -1
- package/src/Utilities/Helpers/FormatHelper.js +13 -10
- package/src/Utilities/ObjectFactory.js +8 -6
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +1 -1
- package/src/Utilities/Services/ChartingService.js +2 -2
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +2 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -5
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -2
- package/src/Utilities/Services/ReportService.js +3 -3
- package/src/Utilities/Services/RowEditService.d.ts +0 -19
- package/src/Utilities/Services/RowEditService.js +4 -161
- package/src/Utilities/Services/TeamSharingService.js +3 -3
- package/src/Utilities/Services/ValidationService.js +9 -7
- package/src/Utilities/logDeprecation.d.ts +3 -0
- package/src/Utilities/logDeprecation.js +30 -0
- package/src/View/AdaptablePopover/index.d.ts +2 -0
- package/src/View/AdaptablePopover/index.js +6 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +4 -2
- package/src/View/Alert/AlertEntityRow.js +1 -1
- package/src/View/Alert/AlertStatusSubPanel.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +3 -3
- package/src/View/Alert/Wizard/AlertWizard.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +4 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +4 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +1 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +25 -4
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Charting/ChartingViewPanel.d.ts +2 -2
- package/src/View/Components/Charting/ChartingViewPanel.js +17 -3
- package/src/View/Components/Charting/ChartingWizard/ChartingWizard.js +2 -2
- package/src/View/Components/Charting/ChartingWizard/SettingsSection.js +1 -1
- package/src/View/Components/Charting/DeleteChartButton.d.ts +7 -0
- package/src/View/Components/Charting/DeleteChartButton.js +12 -0
- package/src/View/Components/Charting/EditChartButton.d.ts +8 -0
- package/src/View/Components/Charting/EditChartButton.js +21 -0
- package/src/View/Components/EntityRulesEditor/PredicatesEditor.d.ts +16 -0
- package/src/View/Components/EntityRulesEditor/PredicatesEditor.js +86 -0
- package/src/View/Components/EntityRulesEditor/Utilities.d.ts +6 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +21 -0
- package/src/View/Components/EntityRulesEditor/index.d.ts +4 -9
- package/src/View/Components/EntityRulesEditor/index.js +16 -90
- package/src/View/Components/ExpressionWizard.js +1 -1
- package/src/View/Components/ExternalRenderer.js +3 -1
- package/src/View/Components/FilterForm/FilterForm.js +3 -3
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -5
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +5 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupConfirmation.d.ts +2 -12
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +46 -39
- package/src/View/Components/PredicateEditor/PredicateEditor.js +5 -5
- package/src/View/Components/ScopeComponent.js +3 -3
- package/src/View/Components/Selectors/ColumnValueSelector.js +1 -1
- package/src/View/Components/StyleComponent.js +42 -14
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +10 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +1 -1
- package/src/View/Export/ExportSelector.js +2 -2
- package/src/View/Export/ExportViewPanel.js +2 -2
- package/src/View/Export/ReportExportDropdown.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
- package/src/View/Filter/FilterSummary.js +1 -1
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -2
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +4 -3
- package/src/View/FormatColumn/MoveFormatColumn.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +11 -5
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +8 -6
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +3 -4
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +5 -19
- package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +6 -6
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +1 -1
- package/src/View/Layout/SaveLayoutButton.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +2 -2
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +4 -4
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +5 -5
- package/src/View/Layout/Wizard/sections/FilterSection.js +2 -2
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
- package/src/View/Query/ExpandedQueryPopup.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
- package/src/View/StatusBar/StatusBarPanel.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +26 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +23 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.d.ts +8 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +25 -0
- package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.d.ts → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts} +2 -2
- package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.js → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js} +21 -19
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.d.ts +1 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +4 -0
- package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.d.ts +5 -3
- package/src/agGrid/Adaptable.js +106 -121
- package/src/agGrid/FilterWrapper.js +3 -3
- package/src/agGrid/FloatingFilterWrapper.js +3 -3
- package/src/agGrid/PercentBarRenderer.js +6 -6
- package/src/agGrid/agGridHelper.js +3 -3
- package/src/agGrid/agGridMenuHelper.js +3 -3
- package/src/agGrid/weightedAverage.js +2 -2
- package/src/components/ExpressionEditor/BaseEditorInput.js +92 -7
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -1
- package/src/components/OverlayTrigger/index.js +6 -2
- package/src/components/OverlayTrigger/utils.d.ts +1 -1
- package/src/components/OverlayTrigger/utils.js +4 -4
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/open-in-new.d.ts +3 -0
- package/src/components/icons/open-in-new.js +7 -0
- package/src/env.js +1 -3
- package/src/metamodel/adaptable.metamodel.d.ts +30 -10
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/parser.js +644 -382
- package/src/parser/src/types.d.ts +9 -0
- package/src/types.d.ts +3 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/InternalApi.d.ts +0 -155
- package/src/Api/InternalApi.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AdaptableColumn, AdaptableFormat, AdaptablePredicateDef, AdaptableScope } from '../types';
|
|
1
|
+
import { FormatColumn, FormatColumnState } from '../PredefinedConfig/FormatColumnState';
|
|
2
|
+
import { AdaptableColumn, AdaptableFormat, AdaptableObjectLookupCriteria, AdaptablePredicateDef, AdaptableScope } from '../types';
|
|
3
3
|
import { RowNode } from '@ag-grid-community/core';
|
|
4
4
|
/**
|
|
5
5
|
* Provides run-time access to the Format Column Module and associated state
|
|
@@ -13,11 +13,11 @@ export interface FormatColumnApi {
|
|
|
13
13
|
* Retrieves all Format Columns in Adaptable State
|
|
14
14
|
* @returns format columns
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
getFormatColumns(config?: {
|
|
17
17
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
18
18
|
}): FormatColumn[];
|
|
19
19
|
/**
|
|
20
|
-
* Retrieves Format Column by
|
|
20
|
+
* Retrieves Format Column by the technical ID (from `FormatColumnState`)
|
|
21
21
|
* @param id Format Column id
|
|
22
22
|
* @returns format column
|
|
23
23
|
*/
|
|
@@ -26,32 +26,16 @@ export interface FormatColumnApi {
|
|
|
26
26
|
* Retrieves all active (not-suspended) Format Columns in Adaptable State
|
|
27
27
|
* @returns format columns
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
getActiveFormatColumns(config?: {
|
|
30
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
31
|
+
}): FormatColumn[];
|
|
30
32
|
/**
|
|
31
33
|
* Retrieves all suspended Format Columns in Adaptable State
|
|
32
34
|
* @returns format columns
|
|
33
35
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* @returns format columns
|
|
38
|
-
*/
|
|
39
|
-
getAllFormatColumnWithStyle(): FormatColumn[];
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves all Format Columns in Adaptable State with the `Style` or the `CellAlignment` property set
|
|
42
|
-
* @returns format columns
|
|
43
|
-
*/
|
|
44
|
-
getAllFormatColumnWithStyleAndCellAlignment(): FormatColumn[];
|
|
45
|
-
/**
|
|
46
|
-
* Retrieves all Format Columns in Adaptable State with `DisplayFormat` property set
|
|
47
|
-
* @returns format columns
|
|
48
|
-
*/
|
|
49
|
-
getAllFormatColumnWithDisplayFormat(): FormatColumn[];
|
|
50
|
-
/**
|
|
51
|
-
* Retrieves all Format Columns in Adaptable State with `CellAlignment` property set
|
|
52
|
-
* @returns format columns
|
|
53
|
-
*/
|
|
54
|
-
getAllFormatColumnWithCellAlignment(): FormatColumn[];
|
|
36
|
+
getSuspendedFormatColumns(config?: {
|
|
37
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
38
|
+
}): FormatColumn[];
|
|
55
39
|
/**
|
|
56
40
|
* Adds a Format Column to Format Column State
|
|
57
41
|
* @param formatColumn Format Column to Add
|
|
@@ -87,18 +71,10 @@ export interface FormatColumnApi {
|
|
|
87
71
|
* @returns format column
|
|
88
72
|
*/
|
|
89
73
|
unSuspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
90
|
-
/**
|
|
91
|
-
* Deletes all Format Columns in Adaptable State
|
|
92
|
-
*/
|
|
93
|
-
deleteAllFormatColumn(): void;
|
|
94
|
-
/**
|
|
95
|
-
* Applies display format for all Format Columns in AdapTable State
|
|
96
|
-
*/
|
|
97
|
-
applyFormatColumnDisplayFormats(): void;
|
|
98
74
|
/**
|
|
99
75
|
* Opens Settings Panel with Format Column section selected and visible
|
|
100
76
|
*/
|
|
101
|
-
|
|
77
|
+
openFormatColumnSettingsPanel(): void;
|
|
102
78
|
/**
|
|
103
79
|
* Gets all FormatColumns which are defined for the given column
|
|
104
80
|
* @param column The Column for which to retrieve the Format Column
|
|
@@ -116,107 +92,112 @@ export interface FormatColumnApi {
|
|
|
116
92
|
includeSuspended?: boolean;
|
|
117
93
|
}): FormatColumn[];
|
|
118
94
|
/**
|
|
119
|
-
*
|
|
120
|
-
* @param
|
|
121
|
-
|
|
95
|
+
* Checks if a Format Column contains a Custom Display Formatter
|
|
96
|
+
* @param formatColumn Format Column
|
|
97
|
+
*/
|
|
98
|
+
hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Increment the precedence of the given FormatColumn
|
|
101
|
+
* @param formatColumn
|
|
102
|
+
*/
|
|
103
|
+
incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
104
|
+
/**
|
|
105
|
+
* Decrement the precedence of the given FormatColumn
|
|
106
|
+
* @param formatColumn
|
|
107
|
+
*/
|
|
108
|
+
decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
109
|
+
/**
|
|
110
|
+
* Find all Flashing Cell Definitions which match the given criteria
|
|
111
|
+
* @param flashingCellLookupCriteria lookup criteria
|
|
112
|
+
*/
|
|
113
|
+
findFormatColumns(formatColumnLookupCriteria: AdaptableObjectLookupCriteria): FormatColumn[];
|
|
114
|
+
/**
|
|
115
|
+
* TO BE REMOVED
|
|
122
116
|
*/
|
|
123
|
-
getFormatColumnWithSingleColumnScope(columnId: string): FormatColumn | undefined;
|
|
124
117
|
/**
|
|
125
|
-
*
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
118
|
+
* @deprecated use `getFormatColumns()` instead
|
|
119
|
+
*/
|
|
120
|
+
getAllFormatColumn(config?: {
|
|
121
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
122
|
+
}): FormatColumn[];
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated use `getActiveFormatColumns()` instead
|
|
125
|
+
*/
|
|
126
|
+
getAllActiveFormatColumn(): FormatColumn[];
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated use `getSuspendedFormatColumns()` instead
|
|
129
|
+
*/
|
|
130
|
+
getAllSuspendedFormatColumn(): FormatColumn[];
|
|
131
|
+
/**
|
|
132
|
+
* @deprecated internal method, will be removed in next major release
|
|
133
|
+
*/
|
|
134
|
+
getAllFormatColumnWithStyle(): FormatColumn[];
|
|
135
|
+
/**
|
|
136
|
+
* @deprecated internal method, will be removed in next major release
|
|
137
|
+
*/
|
|
138
|
+
getAllFormatColumnWithStyleAndCellAlignment(): FormatColumn[];
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated internal method, will be removed in next major release
|
|
141
|
+
*/
|
|
142
|
+
getAllFormatColumnWithDisplayFormat(): FormatColumn[];
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated internal method, will be removed in next major release
|
|
145
|
+
*/
|
|
146
|
+
getAllFormatColumnWithCellAlignment(): FormatColumn[];
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated use `openFormatColumnSettingsPanel()` instead
|
|
149
|
+
*/
|
|
150
|
+
showFormatColumnPopup(): void;
|
|
151
|
+
/**
|
|
152
|
+
* @deprecated internal method, will be removed in next major release
|
|
129
153
|
*/
|
|
130
154
|
getFormatColumnsWithStyleForColumn(column: AdaptableColumn, config?: {
|
|
131
155
|
includeSuspended?: boolean;
|
|
132
156
|
}): FormatColumn[];
|
|
133
157
|
/**
|
|
134
|
-
*
|
|
135
|
-
* @param column The Column for which to retrieve the Format Column
|
|
136
|
-
* @returns format columns
|
|
158
|
+
* @deprecated internal method, will be removed in next major release
|
|
137
159
|
*/
|
|
138
160
|
getFormatColumnWithStyleClassNameForColumn(column: AdaptableColumn, config?: {
|
|
139
161
|
includeSuspended?: boolean;
|
|
140
162
|
}): FormatColumn[];
|
|
141
163
|
/**
|
|
142
|
-
*
|
|
143
|
-
* @param column
|
|
144
|
-
* @param config
|
|
145
|
-
* @returns list of FormatColumn
|
|
164
|
+
* @deprecated internal method, will be removed in next major release
|
|
146
165
|
*/
|
|
147
166
|
getFormatColumnsWithDisplayFormatForColumn(column: AdaptableColumn, config?: {
|
|
148
167
|
includeSuspended?: boolean;
|
|
149
168
|
}): FormatColumn[];
|
|
150
169
|
/**
|
|
151
|
-
*
|
|
152
|
-
*/
|
|
153
|
-
hasStyleFormatColumns(): boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Format value according to format options.
|
|
156
|
-
*
|
|
157
|
-
* @param customDisplayFormatterContext context that includes value to format
|
|
158
|
-
* @param options formatter options
|
|
170
|
+
* @deprecated internal method, will be removed in next major release
|
|
159
171
|
*/
|
|
160
172
|
getNumberFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): any;
|
|
161
173
|
/**
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
* @param value context that includes value to format
|
|
165
|
-
* @param options formatter options
|
|
174
|
+
* @deprecated internal method, will be removed in next major release
|
|
166
175
|
*/
|
|
167
176
|
getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
|
|
168
177
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
* @param customDisplayFormatterContext context that includes value to format
|
|
172
|
-
* @param options formatter options
|
|
178
|
+
* @deprecated internal method, will be removed in next major release
|
|
173
179
|
*/
|
|
174
180
|
getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
|
|
175
181
|
/**
|
|
176
|
-
*
|
|
177
|
-
* @param formatColumn Format Column
|
|
178
|
-
*/
|
|
179
|
-
hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
|
|
180
|
-
/**
|
|
181
|
-
* Returns all Predicates appropriate for the given Scope
|
|
182
|
-
* @param scope Scope to check
|
|
182
|
+
* @deprecated internal method, will be removed in next major release
|
|
183
183
|
*/
|
|
184
184
|
getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
* @param formatColumn
|
|
189
|
-
* @param column
|
|
190
|
-
* @param params
|
|
186
|
+
* @deprecated internal method, will be removed in next major release
|
|
191
187
|
*/
|
|
192
188
|
isFormatColumnRelevantForColumn(formatColumn: FormatColumn, column: AdaptableColumn, params: {
|
|
193
189
|
node: RowNode;
|
|
194
190
|
value: any;
|
|
195
191
|
}): boolean;
|
|
196
192
|
/**
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
* @param formatColumns
|
|
200
|
-
* @param column
|
|
201
|
-
* @param params
|
|
193
|
+
* @deprecated internal method, will be removed in next major release
|
|
202
194
|
*/
|
|
203
195
|
getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
|
|
204
196
|
node: RowNode;
|
|
205
197
|
value: any;
|
|
206
198
|
}): FormatColumn[];
|
|
207
199
|
/**
|
|
208
|
-
*
|
|
209
|
-
* @returns Format Columns with Expression
|
|
200
|
+
* @deprecated internal method, will be removed in next major release
|
|
210
201
|
*/
|
|
211
202
|
getFormatColumnsWithExpression(): FormatColumn[] | undefined;
|
|
212
|
-
/**
|
|
213
|
-
* Increment the precedence of the given FormatColumn
|
|
214
|
-
* @param formatColumn
|
|
215
|
-
*/
|
|
216
|
-
incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
217
|
-
/**
|
|
218
|
-
* Decrement the precedence of the given FormatColumn
|
|
219
|
-
* @param formatColumn
|
|
220
|
-
*/
|
|
221
|
-
decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
222
203
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../PredefinedConfig/FreeTextColumnState';
|
|
2
2
|
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
3
|
import { RowNode } from '@ag-grid-community/core';
|
|
4
4
|
/**
|
|
@@ -13,13 +13,19 @@ export interface FreeTextColumnApi {
|
|
|
13
13
|
* Gets all FreeTextColumns in Adaptable State
|
|
14
14
|
* @returns free text column
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
getFreeTextColumns(): FreeTextColumn[];
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves FreeTextColumn by the technical ID (from `FreeTextColumnState`)
|
|
19
|
+
* @param id technical ID
|
|
20
|
+
* @returns free text column
|
|
21
|
+
*/
|
|
22
|
+
getFreeTextColumnById(id: FreeTextColumn['Uuid']): FreeTextColumn | undefined;
|
|
17
23
|
/**
|
|
18
|
-
*
|
|
19
|
-
* @param columnId to
|
|
24
|
+
* Gets FreeText Column, if any, for given ColumnId
|
|
25
|
+
* @param columnId ColumnId for which to retrieve the FreeText Column
|
|
20
26
|
* @returns free text column
|
|
21
27
|
*/
|
|
22
|
-
|
|
28
|
+
getFreeTextColumnForColumnId(columnId: string): FreeTextColumn | undefined;
|
|
23
29
|
/**
|
|
24
30
|
* Adds new FreeTextColumn to Adaptable State
|
|
25
31
|
* @param freeTextColumn to add
|
|
@@ -31,21 +37,26 @@ export interface FreeTextColumnApi {
|
|
|
31
37
|
* @param freeTextColum to edit (ColumnId is mandatory)
|
|
32
38
|
* @returns free text column
|
|
33
39
|
*/
|
|
34
|
-
editFreeTextColumn(freeTextColumn:
|
|
35
|
-
ColumnId: string;
|
|
36
|
-
}): FreeTextColumn;
|
|
40
|
+
editFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
|
|
37
41
|
/**
|
|
38
|
-
* Deletes
|
|
39
|
-
* @param columnId
|
|
42
|
+
* Deletes FreeTextColumn with given ColumnId from Adaptable State
|
|
43
|
+
* @param columnId ColumnId of FreeTextColumn to delete
|
|
40
44
|
*/
|
|
41
45
|
deleteFreeTextColumn(columnId: string): void;
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @param
|
|
47
|
+
* Sets FreeTextStoredValue for the FreeTextColumn with the given ColumnId (replaces existing one if exists)
|
|
48
|
+
* @param columnId ColumnId of FreeTextColumn to which to add Stored Value
|
|
45
49
|
* @param storedValue FreeTextStored Value to add
|
|
46
50
|
* @returns free text column
|
|
47
51
|
*/
|
|
48
|
-
|
|
52
|
+
setStoredValue(columnId: string, storedValue: FreeTextStoredValue): FreeTextColumn;
|
|
53
|
+
/**
|
|
54
|
+
* Sets Stored Values to the FreeTextColumn with the given ColumnId
|
|
55
|
+
* @param columnId Free Text Column to which to add Stored Values
|
|
56
|
+
* @param storedValues Stored Values to Add
|
|
57
|
+
* @param replaceAction Function Behaviour: 'All' replaces ALL existing Stored Values; 'Conflicting' adds all stored values and replaces those which clash; 'None' only adds where no existing
|
|
58
|
+
*/
|
|
59
|
+
setStoredValues(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
49
60
|
/**
|
|
50
61
|
* Adds Stored Values to Existing FreeTextColumn
|
|
51
62
|
* @param columnId Free Text Column to which to add Stored Values
|
|
@@ -54,23 +65,44 @@ export interface FreeTextColumnApi {
|
|
|
54
65
|
*/
|
|
55
66
|
addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
56
67
|
/**
|
|
57
|
-
* Retrieves a Free Text Column value
|
|
68
|
+
* Retrieves a Free Text Column value for a given row node
|
|
58
69
|
* @param freeTextColumn column to lookup
|
|
59
70
|
* @param rowNode row to lookup
|
|
60
71
|
*/
|
|
72
|
+
getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
|
|
73
|
+
/**
|
|
74
|
+
* Opens Settings Panel with Free Text Column section selected and visible
|
|
75
|
+
*/
|
|
76
|
+
openFreeTextColumnSettingsPanel(): void;
|
|
77
|
+
/**
|
|
78
|
+
* TO BE REMOVED
|
|
79
|
+
*/
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated use `getFreeTextColumns()` instead
|
|
82
|
+
*/
|
|
83
|
+
getAllFreeTextColumn(): FreeTextColumn[];
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated use `setStoredValue()` instead
|
|
86
|
+
*/
|
|
87
|
+
addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated use `setStoredValues()` instead
|
|
90
|
+
*/
|
|
91
|
+
addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
92
|
+
/**
|
|
93
|
+
* @deprecated use `getFreeTextColumnValueForRowNode()` instead
|
|
94
|
+
*/
|
|
61
95
|
getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
|
|
62
96
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @param cellDataChangedInfo change to check
|
|
97
|
+
* @deprecated internal method, will be removed in next major release
|
|
65
98
|
*/
|
|
66
99
|
checkFreeTextColumnForDataChange(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
67
100
|
/**
|
|
68
|
-
*
|
|
101
|
+
* @deprecated internal method, will be removed in next major release
|
|
69
102
|
*/
|
|
70
|
-
|
|
103
|
+
getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
|
|
71
104
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @param freeTextColumn FreeTextColumn to be checked
|
|
105
|
+
* @deprecated use `openFreeTextColumnSettingsPanel()` instead
|
|
74
106
|
*/
|
|
75
|
-
|
|
107
|
+
showFreeTextColumnPopup(): void;
|
|
76
108
|
}
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export interface GridApi {
|
|
|
68
68
|
* Updates multiple cells
|
|
69
69
|
* @param gridCells cells to update
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
setCellValues(gridCells: {
|
|
72
72
|
columnId: any;
|
|
73
73
|
newValue: any;
|
|
74
74
|
primaryKeyValue: any;
|
|
@@ -189,6 +189,14 @@ export interface GridApi {
|
|
|
189
189
|
* @param clearSelection Whether to clear current selection in grid
|
|
190
190
|
*/
|
|
191
191
|
selectCellRange(gridCellRange: GridCellRange, clearSelection?: boolean): void;
|
|
192
|
+
/**
|
|
193
|
+
* Selects a group of cells in a given range using a query
|
|
194
|
+
*
|
|
195
|
+
* @param query query to use to select cells
|
|
196
|
+
* @param gridCellRange range to select
|
|
197
|
+
* @param clearSelection whether to clear current selection in grid
|
|
198
|
+
*/
|
|
199
|
+
selectCellRangeByQuery(query: string, gridCellRange?: GridCellRange, clearSelection?: boolean): void;
|
|
192
200
|
/**
|
|
193
201
|
* Retrieves the first Row Node in AdapTable
|
|
194
202
|
*/
|
|
@@ -219,6 +227,10 @@ export interface GridApi {
|
|
|
219
227
|
* @param primaryKeyValue Primary Key Value to look up
|
|
220
228
|
*/
|
|
221
229
|
getRowNodeForPrimaryKey(primaryKeyValue: any): RowNode;
|
|
230
|
+
/**
|
|
231
|
+
* Retrieves the displayed RowNode at the given index
|
|
232
|
+
* @param rowIndex row index
|
|
233
|
+
*/
|
|
222
234
|
getRowNodeForIndex(rowIndex: number): RowNode | undefined;
|
|
223
235
|
/**
|
|
224
236
|
* Returns the Primary Kev Value for a given Row Node
|
|
@@ -293,9 +305,9 @@ export interface GridApi {
|
|
|
293
305
|
*/
|
|
294
306
|
expandAllRowGroups(): void;
|
|
295
307
|
/**
|
|
296
|
-
*
|
|
308
|
+
* Collapse all open groups in Row Grouping
|
|
297
309
|
*/
|
|
298
|
-
|
|
310
|
+
collapseAllRowGroups(): void;
|
|
299
311
|
/**
|
|
300
312
|
* Get keys for any open rows in Row Grouping
|
|
301
313
|
*/
|
|
@@ -334,23 +346,6 @@ export interface GridApi {
|
|
|
334
346
|
* Redraws AdapTable (expensive operation so use sparingly)
|
|
335
347
|
*/
|
|
336
348
|
redrawGrid(): void;
|
|
337
|
-
/**
|
|
338
|
-
* Fires Search Changed Event - typically used to enable server searching and filtering
|
|
339
|
-
* This is now deprecated and will be removed in AdapTable 13
|
|
340
|
-
*/
|
|
341
|
-
fireSearchChangedEvent(searchChangedTrigger: 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort', searchAtDate?: Date): void;
|
|
342
|
-
/**
|
|
343
|
-
* Fires Grid Sorted Event
|
|
344
|
-
*/
|
|
345
|
-
fireGridSortedEvent(): void;
|
|
346
|
-
/**
|
|
347
|
-
* Fires Cell Changed Changed Event - when any data in AG Grid's dataset has changed
|
|
348
|
-
*/
|
|
349
|
-
fireCellChangedEvent(cellChangedInfo: CellDataChangedInfo): void;
|
|
350
|
-
/**
|
|
351
|
-
* Fires Grid Data Changed Event - when a row has changed in AG Grid
|
|
352
|
-
*/
|
|
353
|
-
fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
|
|
354
349
|
/**
|
|
355
350
|
* Grid will jump to Row containing given Primary Kev Value
|
|
356
351
|
* @param primaryKeyValue value in Primary Key Column
|
|
@@ -448,10 +443,15 @@ export interface GridApi {
|
|
|
448
443
|
*/
|
|
449
444
|
destroy(): void;
|
|
450
445
|
/**
|
|
451
|
-
* Checks if given
|
|
446
|
+
* Checks if given Grid Cell is editable
|
|
447
|
+
* @param gridCell cell to check
|
|
448
|
+
*/
|
|
449
|
+
isCellEditable(gridCell: GridCell): boolean;
|
|
450
|
+
/**
|
|
451
|
+
* Checks if all of given Grid Cells are editable
|
|
452
452
|
* @param gridCells cells to check
|
|
453
453
|
*/
|
|
454
|
-
|
|
454
|
+
isEveryCellEditable(gridCells: GridCell[]): boolean;
|
|
455
455
|
/**
|
|
456
456
|
* Retrieves the Entitlement Access Level for a given Adaptable Module
|
|
457
457
|
* @param adaptableModule Adaptable Mdoule for which to get the Entitlement Access Level
|
|
@@ -472,5 +472,40 @@ export interface GridApi {
|
|
|
472
472
|
/**
|
|
473
473
|
* Opens Settings Panel with Grid Info section selected and visible
|
|
474
474
|
*/
|
|
475
|
+
openGridInfoSettingsPanel(): void;
|
|
476
|
+
/**
|
|
477
|
+
* TO BE REMOVED
|
|
478
|
+
*/
|
|
479
|
+
/**
|
|
480
|
+
* @deprecated use `setCellValues()` instead
|
|
481
|
+
*/
|
|
482
|
+
setCellsValue(gridCells: {
|
|
483
|
+
columnId: any;
|
|
484
|
+
newValue: any;
|
|
485
|
+
primaryKeyValue: any;
|
|
486
|
+
}[]): void;
|
|
487
|
+
/**
|
|
488
|
+
* @deprecated use `collapseAllRowGroups()` instead
|
|
489
|
+
*/
|
|
490
|
+
closeAllRowGroups(): void;
|
|
491
|
+
/**
|
|
492
|
+
* @deprecated internal method, will be removed in next major release
|
|
493
|
+
*/
|
|
494
|
+
fireGridSortedEvent(): void;
|
|
495
|
+
/**
|
|
496
|
+
* @deprecated internal method, will be removed in next major release
|
|
497
|
+
*/
|
|
498
|
+
fireCellChangedEvent(cellChangedInfo: CellDataChangedInfo): void;
|
|
499
|
+
/**
|
|
500
|
+
* @deprecated internal method, will be removed in next major release
|
|
501
|
+
*/
|
|
502
|
+
fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
|
|
503
|
+
/**
|
|
504
|
+
* @deprecated use `openGridInfoSettingsPanel()` instead
|
|
505
|
+
*/
|
|
475
506
|
showGridInfoPopup(): void;
|
|
507
|
+
/**
|
|
508
|
+
* @deprecated use `isEveryCellEditable()` instead
|
|
509
|
+
*/
|
|
510
|
+
areCellsEditable(gridCells: GridCell[]): boolean;
|
|
476
511
|
}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { ActionApi, ActionColumn } from '../../../types';
|
|
1
|
+
import { ActionApi, ActionColumn, ActionRowButtonType } from '../../../types';
|
|
2
2
|
import { ApiBase } from './ApiBase';
|
|
3
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
4
|
+
import { ActionInternalApi } from '../Internal/ActionInternalApi';
|
|
3
5
|
export declare class ActionApiImpl extends ApiBase implements ActionApi {
|
|
4
|
-
|
|
6
|
+
internalApi: ActionInternalApi;
|
|
7
|
+
constructor(adaptable: IAdaptable);
|
|
8
|
+
getActionColumns(): ActionColumn[];
|
|
9
|
+
getActionRowButtons(): ActionRowButtonType[];
|
|
5
10
|
displayEditActionRow(primaryKey: any): void;
|
|
6
|
-
displayCreateActionRow(
|
|
11
|
+
displayCreateActionRow(): void;
|
|
7
12
|
displayCloneActionRow(clonedRowNodePrimaryKey?: any): void;
|
|
13
|
+
getAllActionColumn(): ActionColumn[];
|
|
8
14
|
}
|
|
@@ -4,19 +4,31 @@ exports.ActionApiImpl = void 0;
|
|
|
4
4
|
const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
|
|
5
5
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
|
+
const ActionInternalApi_1 = require("../Internal/ActionInternalApi");
|
|
8
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
7
9
|
class ActionApiImpl extends ApiBase_1.ApiBase {
|
|
8
|
-
|
|
10
|
+
constructor(adaptable) {
|
|
11
|
+
super(adaptable);
|
|
12
|
+
this.internalApi = new ActionInternalApi_1.ActionInternalApi(adaptable);
|
|
13
|
+
}
|
|
14
|
+
getActionColumns() {
|
|
9
15
|
var _a;
|
|
10
16
|
return (_a = this.getActionOptions().actionColumns) !== null && _a !== void 0 ? _a : [];
|
|
11
17
|
}
|
|
18
|
+
getActionRowButtons() {
|
|
19
|
+
const actionRowButtons = this.getActionOptions().actionRowButtons;
|
|
20
|
+
return typeof actionRowButtons === 'function'
|
|
21
|
+
? actionRowButtons({
|
|
22
|
+
adaptableApi: this.getAdaptableApi(),
|
|
23
|
+
})
|
|
24
|
+
: actionRowButtons !== null && actionRowButtons !== void 0 ? actionRowButtons : [];
|
|
25
|
+
}
|
|
12
26
|
displayEditActionRow(primaryKey) {
|
|
13
27
|
const rowNode = this.adaptable.api.gridApi.getRowNodeForPrimaryKey(primaryKey);
|
|
14
28
|
if (!rowNode) {
|
|
15
29
|
(0, LoggingHelper_1.LogAdaptableWarning)(`Can NOT edit row: rowNode not found for primaryKey ${primaryKey}`);
|
|
16
30
|
}
|
|
17
|
-
const editForm = this.
|
|
18
|
-
.getRowEditService()
|
|
19
|
-
.buildRowEditForm(rowNode);
|
|
31
|
+
const editForm = this.internalApi.buildRowEditForm(rowNode);
|
|
20
32
|
this.dispatchAction((0, PopupRedux_1.PopupShowForm)({
|
|
21
33
|
Id: 'edit_row_form',
|
|
22
34
|
Form: editForm,
|
|
@@ -26,10 +38,8 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
38
|
},
|
|
27
39
|
}));
|
|
28
40
|
}
|
|
29
|
-
displayCreateActionRow(
|
|
30
|
-
const createForm = this.
|
|
31
|
-
.getRowEditService()
|
|
32
|
-
.buildRowCreateForm();
|
|
41
|
+
displayCreateActionRow() {
|
|
42
|
+
const createForm = this.internalApi.buildRowCreateForm();
|
|
33
43
|
this.dispatchAction((0, PopupRedux_1.PopupShowForm)({
|
|
34
44
|
Id: 'create_row_form',
|
|
35
45
|
Form: createForm,
|
|
@@ -40,9 +50,7 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
|
|
|
40
50
|
if (!rowNode) {
|
|
41
51
|
(0, LoggingHelper_1.LogAdaptableWarning)(`Can NOT clone row: rowNode not found for primaryKey ${clonedRowNodePrimaryKey}`);
|
|
42
52
|
}
|
|
43
|
-
const createForm = this.
|
|
44
|
-
.getRowEditService()
|
|
45
|
-
.buildRowCreateForm(rowNode);
|
|
53
|
+
const createForm = this.internalApi.buildRowCreateForm(rowNode);
|
|
46
54
|
this.dispatchAction((0, PopupRedux_1.PopupShowForm)({
|
|
47
55
|
Id: 'create_row_form',
|
|
48
56
|
Form: createForm,
|
|
@@ -52,5 +60,9 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
|
|
|
52
60
|
},
|
|
53
61
|
}));
|
|
54
62
|
}
|
|
63
|
+
getAllActionColumn() {
|
|
64
|
+
(0, logDeprecation_1.logDeprecation)('ActionApi', 'getAllActionColumn', 'getActionColumns');
|
|
65
|
+
return this.getActionColumns();
|
|
66
|
+
}
|
|
55
67
|
}
|
|
56
68
|
exports.ActionApiImpl = ActionApiImpl;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
2
|
+
import { AdaptableInternalApi } from '../Internal/AdaptableInternalApi';
|
|
2
3
|
import { AdaptableApi, SettingsPanelApi } from '../../types';
|
|
3
4
|
import { AlertApi } from '../AlertApi';
|
|
4
5
|
import { BulkUpdateApi } from '../BulkUpdateApi';
|
|
@@ -16,7 +17,6 @@ import { PluginsApi } from '../PluginsApi';
|
|
|
16
17
|
import { ExportApi } from '../ExportApi';
|
|
17
18
|
import { FormatColumnApi } from '../FormatColumnApi';
|
|
18
19
|
import { FreeTextColumnApi } from '../FreeTextColumnApi';
|
|
19
|
-
import { InternalApi } from '../InternalApi';
|
|
20
20
|
import { LayoutApi } from '../LayoutApi';
|
|
21
21
|
import { PlusMinusApi } from '../PlusMinusApi';
|
|
22
22
|
import { QuickSearchApi } from '../QuickSearchApi';
|
|
@@ -43,6 +43,7 @@ import { ActionApi } from '../../../types';
|
|
|
43
43
|
import { StyledColumnApi } from '../StyledColumnApi';
|
|
44
44
|
export declare class AdaptableApiImpl implements AdaptableApi {
|
|
45
45
|
protected adaptable: IAdaptable;
|
|
46
|
+
internalApi: AdaptableInternalApi;
|
|
46
47
|
actionApi: ActionApi;
|
|
47
48
|
applicationApi: ApplicationApi;
|
|
48
49
|
alertApi: AlertApi;
|
|
@@ -63,7 +64,6 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
63
64
|
formatColumnApi: FormatColumnApi;
|
|
64
65
|
freeTextColumnApi: FreeTextColumnApi;
|
|
65
66
|
gridApi: GridApi;
|
|
66
|
-
internalApi: InternalApi;
|
|
67
67
|
layoutApi: LayoutApi;
|
|
68
68
|
plusMinusApi: PlusMinusApi;
|
|
69
69
|
quickSearchApi: QuickSearchApi;
|
|
@@ -27,7 +27,7 @@ const FilterApiImpl_1 = require("./FilterApiImpl");
|
|
|
27
27
|
const SystemStatusApiImpl_1 = require("./SystemStatusApiImpl");
|
|
28
28
|
const ThemeApiImpl_1 = require("./ThemeApiImpl");
|
|
29
29
|
const UserInterfaceApiImpl_1 = require("./UserInterfaceApiImpl");
|
|
30
|
-
const
|
|
30
|
+
const AdaptableInternalApi_1 = require("../Internal/AdaptableInternalApi");
|
|
31
31
|
const ScheduleApiImpl_1 = require("./ScheduleApiImpl");
|
|
32
32
|
const QueryApiImpl_1 = require("./QueryApiImpl");
|
|
33
33
|
const TeamSharingApiImpl_1 = require("./TeamSharingApiImpl");
|
|
@@ -42,6 +42,7 @@ const SettingsPanelApiImpl_1 = require("./SettingsPanelApiImpl");
|
|
|
42
42
|
const ActionApiImpl_1 = require("./ActionApiImpl");
|
|
43
43
|
const StyledColumnApiImpl_1 = require("./StyledColumnApiImpl");
|
|
44
44
|
const CalendarApiImpl_1 = require("./CalendarApiImpl");
|
|
45
|
+
const EntitlementApiImpl_1 = require("./EntitlementApiImpl");
|
|
45
46
|
class AdaptableApiImpl {
|
|
46
47
|
constructor(adaptable) {
|
|
47
48
|
this.adaptable = adaptable;
|
|
@@ -62,6 +63,7 @@ class AdaptableApiImpl {
|
|
|
62
63
|
this.customSortApi = new CustomSortApiImpl_1.CustomSortApiImpl(adaptable);
|
|
63
64
|
this.dashboardApi = new DashboardApiImpl_1.DashboardApiImpl(adaptable);
|
|
64
65
|
this.dataSetApi = new DataSetApiImpl_1.DataSetApiImpl(adaptable);
|
|
66
|
+
this.entitlementApi = new EntitlementApiImpl_1.EntitlementApiImpl(adaptable);
|
|
65
67
|
this.eventApi = new EventApiImpl_1.EventApiImpl(adaptable);
|
|
66
68
|
this.exportApi = new ExportApiImpl_1.ExportApiImpl(adaptable);
|
|
67
69
|
this.formatColumnApi = new FormatColumnApiImpl_1.FormatColumnApiImpl(adaptable);
|
|
@@ -87,7 +89,8 @@ class AdaptableApiImpl {
|
|
|
87
89
|
this.dataChangeHistoryApi = new DataChangeHistoryApiImpl_1.DataChangeHistoryApiImpl(adaptable);
|
|
88
90
|
this.chartingApi = new ChartingApiImpl_1.ChartingApiImpl(adaptable);
|
|
89
91
|
this.statusBarApi = new StatusBarApiImpl_1.StatusBarApiImpl(adaptable);
|
|
90
|
-
|
|
92
|
+
// adaptable internal api
|
|
93
|
+
this.internalApi = new AdaptableInternalApi_1.AdaptableInternalApi(adaptable);
|
|
91
94
|
}
|
|
92
95
|
/**
|
|
93
96
|
* This is only meant to be called by the Adaptable instance.
|