@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
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -434,6 +434,7 @@ class Adaptable {
|
|
|
434
434
|
this.QueryLanguageService = new QueryLanguageService_1.QueryLanguageService(this.api);
|
|
435
435
|
this.AlertService = new AlertService_1.AlertService(this.api);
|
|
436
436
|
this.TeamSharingService = new TeamSharingService_1.TeamSharingService(this.api);
|
|
437
|
+
// @ts-ignore
|
|
437
438
|
this.RowEditService = new RowEditService_1.RowEditService(this.api);
|
|
438
439
|
this.MetamodelService = new MetamodelService_1.MetamodelService(() => this.api.internalApi.getAdaptableOptions());
|
|
439
440
|
this.forPlugins((plugin) => plugin.afterInitServices(this));
|
|
@@ -900,7 +901,7 @@ class Adaptable {
|
|
|
900
901
|
allColumns.push(this.createAdaptableColumn(agGridColumn, colsToGroups));
|
|
901
902
|
}
|
|
902
903
|
});
|
|
903
|
-
this.api.internalApi.setColumns(allColumns);
|
|
904
|
+
this.api.gridApi.internalApi.setColumns(allColumns);
|
|
904
905
|
}
|
|
905
906
|
createAdaptableColumn(agGridColumn, colsToGroups) {
|
|
906
907
|
const abColumn = this.agGridHelper.createAdaptableColumnFromAgGridColumn(agGridColumn, colsToGroups);
|
|
@@ -931,8 +932,8 @@ class Adaptable {
|
|
|
931
932
|
let colValue = params.value;
|
|
932
933
|
if (this.api.gridApi.isGroupRowNode(params.node)) {
|
|
933
934
|
if (styledColumn.IncludeGroupedRows) {
|
|
934
|
-
const minColumnValue = this.api.
|
|
935
|
-
const maxColumnValue = this.api.
|
|
935
|
+
const minColumnValue = this.api.styledColumnApi.internalApi.getMinValueForNumericColumn(abColumn);
|
|
936
|
+
const maxColumnValue = this.api.styledColumnApi.internalApi.getMaxValueForNumericColumn(abColumn);
|
|
936
937
|
/**
|
|
937
938
|
* Color should always be in bounds, it should not overflow.
|
|
938
939
|
* If the value is out of range, it shoul set the maximum/minimum color.
|
|
@@ -944,15 +945,15 @@ class Adaptable {
|
|
|
944
945
|
}
|
|
945
946
|
}
|
|
946
947
|
if (gradientStyle) {
|
|
947
|
-
const min = this.api.styledColumnApi.getNumericStyleMinValue(styledColumn, abColumn, params.node, colValue);
|
|
948
|
-
const max = this.api.styledColumnApi.getNumericStyleMaxValue(styledColumn, abColumn, params.node, colValue);
|
|
948
|
+
const min = this.api.styledColumnApi.internalApi.getNumericStyleMinValue(styledColumn, abColumn, params.node, colValue);
|
|
949
|
+
const max = this.api.styledColumnApi.internalApi.getNumericStyleMaxValue(styledColumn, abColumn, params.node, colValue);
|
|
949
950
|
let cellBackColor;
|
|
950
951
|
let reverseGradient = false;
|
|
951
952
|
if (gradientStyle.ColumnComparison) {
|
|
952
953
|
cellBackColor = gradientStyle.ColumnComparison.Color;
|
|
953
954
|
}
|
|
954
955
|
else {
|
|
955
|
-
const matchingRange = this.api.styledColumnApi.findRangeForColumn(gradientStyle.CellRanges, abColumn, gradientStyle.RangeValueType, colValue);
|
|
956
|
+
const matchingRange = this.api.styledColumnApi.internalApi.findRangeForColumn(gradientStyle.CellRanges, abColumn, gradientStyle.RangeValueType, colValue);
|
|
956
957
|
if (matchingRange) {
|
|
957
958
|
cellBackColor = matchingRange.Color;
|
|
958
959
|
reverseGradient = matchingRange.ReverseGradient;
|
|
@@ -1003,7 +1004,7 @@ class Adaptable {
|
|
|
1003
1004
|
return {};
|
|
1004
1005
|
}
|
|
1005
1006
|
const relevantFormatColumnsWithStyle = activeFormatColumnsWithStyle.filter((formatColumn) => {
|
|
1006
|
-
return this.api.formatColumnApi.isFormatColumnRelevantForColumn(formatColumn, abColumn, params);
|
|
1007
|
+
return this.api.formatColumnApi.internalApi.isFormatColumnRelevantForColumn(formatColumn, abColumn, params);
|
|
1007
1008
|
});
|
|
1008
1009
|
return this.getFormatColumnAdaptableStyle(relevantFormatColumnsWithStyle);
|
|
1009
1010
|
}
|
|
@@ -1012,7 +1013,7 @@ class Adaptable {
|
|
|
1012
1013
|
.map((formatColumn) => {
|
|
1013
1014
|
var _a, _b;
|
|
1014
1015
|
if (((_a = formatColumn.Style) === null || _a === void 0 ? void 0 : _a.ClassName) &&
|
|
1015
|
-
this.api.formatColumnApi.isFormatColumnRelevantForColumn(formatColumn, abColumn, params)) {
|
|
1016
|
+
this.api.formatColumnApi.internalApi.isFormatColumnRelevantForColumn(formatColumn, abColumn, params)) {
|
|
1016
1017
|
return (_b = formatColumn.Style) === null || _b === void 0 ? void 0 : _b.ClassName;
|
|
1017
1018
|
}
|
|
1018
1019
|
})
|
|
@@ -1020,10 +1021,10 @@ class Adaptable {
|
|
|
1020
1021
|
return classNames;
|
|
1021
1022
|
}
|
|
1022
1023
|
getActiveAlertWithHighlightCell(col, params) {
|
|
1023
|
-
return this.api.internalApi.getAdaptableAlertWithHighlightCell(col.columnId, params.node);
|
|
1024
|
+
return this.api.alertApi.internalApi.getAdaptableAlertWithHighlightCell(col.columnId, params.node);
|
|
1024
1025
|
}
|
|
1025
1026
|
getActiveAlertWithHighlightRow(params) {
|
|
1026
|
-
return this.api.internalApi.getAdaptableAlertWithHighlightRow(params.node);
|
|
1027
|
+
return this.api.alertApi.internalApi.getAdaptableAlertWithHighlightRow(params.node);
|
|
1027
1028
|
}
|
|
1028
1029
|
getAlertCellStyle(col, params) {
|
|
1029
1030
|
const alert = this.getActiveAlertWithHighlightCell(col, params);
|
|
@@ -1071,7 +1072,7 @@ class Adaptable {
|
|
|
1071
1072
|
const primaryKey = params.node.aggData
|
|
1072
1073
|
? params.node.id
|
|
1073
1074
|
: this.getPrimaryKeyValueFromRowNode(params.node);
|
|
1074
|
-
const flashingCell = this.api.internalApi.getAdaptableFlashingCellFor(primaryKey, col.columnId);
|
|
1075
|
+
const flashingCell = this.api.flashingCellApi.internalApi.getAdaptableFlashingCellFor(primaryKey, col.columnId);
|
|
1075
1076
|
if (!flashingCell) {
|
|
1076
1077
|
return {};
|
|
1077
1078
|
}
|
|
@@ -1086,7 +1087,7 @@ class Adaptable {
|
|
|
1086
1087
|
const primaryKey = params.node.aggData
|
|
1087
1088
|
? params.node.id
|
|
1088
1089
|
: this.getPrimaryKeyValueFromRowNode(params.node);
|
|
1089
|
-
const flashingCell = this.api.internalApi.getAdaptableFlashingCellFor(primaryKey, col.columnId);
|
|
1090
|
+
const flashingCell = this.api.flashingCellApi.internalApi.getAdaptableFlashingCellFor(primaryKey, col.columnId);
|
|
1090
1091
|
if (!flashingCell) {
|
|
1091
1092
|
return;
|
|
1092
1093
|
}
|
|
@@ -1148,7 +1149,7 @@ class Adaptable {
|
|
|
1148
1149
|
}
|
|
1149
1150
|
const gridCell = this.getGridCellFromRowNode(params.node, abColumn.columnId);
|
|
1150
1151
|
if (gridCell) {
|
|
1151
|
-
if (this.api.gridApi.
|
|
1152
|
+
if (this.api.gridApi.isCellEditable(gridCell)) {
|
|
1152
1153
|
return this.convertAdaptableStyleToCSS(editableCellStyle);
|
|
1153
1154
|
}
|
|
1154
1155
|
}
|
|
@@ -1161,7 +1162,7 @@ class Adaptable {
|
|
|
1161
1162
|
}
|
|
1162
1163
|
const gridCell = this.getGridCellFromRowNode(params.node, abColumn.columnId);
|
|
1163
1164
|
if (gridCell) {
|
|
1164
|
-
if (!this.api.gridApi.
|
|
1165
|
+
if (!this.api.gridApi.isCellEditable(gridCell)) {
|
|
1165
1166
|
return this.convertAdaptableStyleToCSS(editableCellStyle);
|
|
1166
1167
|
}
|
|
1167
1168
|
}
|
|
@@ -1172,9 +1173,7 @@ class Adaptable {
|
|
|
1172
1173
|
if (!(editableCellStyle === null || editableCellStyle === void 0 ? void 0 : editableCellStyle.ClassName)) {
|
|
1173
1174
|
return null;
|
|
1174
1175
|
}
|
|
1175
|
-
const isCellEditable = this.api.gridApi.
|
|
1176
|
-
this.getGridCellFromRowNode(params.node, abColumn.columnId),
|
|
1177
|
-
]);
|
|
1176
|
+
const isCellEditable = this.api.gridApi.isCellEditable(this.getGridCellFromRowNode(params.node, abColumn.columnId));
|
|
1178
1177
|
return isCellEditable ? editableCellStyle.ClassName : null;
|
|
1179
1178
|
}
|
|
1180
1179
|
getReadonlyCellClass(abColumn, params) {
|
|
@@ -1182,9 +1181,7 @@ class Adaptable {
|
|
|
1182
1181
|
if (!(readonlyCellStyle === null || readonlyCellStyle === void 0 ? void 0 : readonlyCellStyle.ClassName)) {
|
|
1183
1182
|
return null;
|
|
1184
1183
|
}
|
|
1185
|
-
const isCellReadonly = !this.api.gridApi.
|
|
1186
|
-
this.getGridCellFromRowNode(params.node, abColumn.columnId),
|
|
1187
|
-
]);
|
|
1184
|
+
const isCellReadonly = !this.api.gridApi.isCellEditable(this.getGridCellFromRowNode(params.node, abColumn.columnId));
|
|
1188
1185
|
return isCellReadonly ? readonlyCellStyle.ClassName : null;
|
|
1189
1186
|
}
|
|
1190
1187
|
isQuickSearchActive(abColumn, params) {
|
|
@@ -1278,7 +1275,7 @@ class Adaptable {
|
|
|
1278
1275
|
this.api.layoutApi.createOrUpdateLayout(layout);
|
|
1279
1276
|
}
|
|
1280
1277
|
else {
|
|
1281
|
-
this.api.internalApi.updateCurrentDraftLayout(layout);
|
|
1278
|
+
this.api.layoutApi.internalApi.updateCurrentDraftLayout(layout);
|
|
1282
1279
|
}
|
|
1283
1280
|
}
|
|
1284
1281
|
setLayout(layout) {
|
|
@@ -1436,7 +1433,7 @@ class Adaptable {
|
|
|
1436
1433
|
this.gridOptions.columnApi.getColumns().forEach((col) => {
|
|
1437
1434
|
const colDef = col.getColDef();
|
|
1438
1435
|
const colId = col.getColId();
|
|
1439
|
-
const abColumn = this.api.columnApi.
|
|
1436
|
+
const abColumn = this.api.columnApi.getColumnWithColumnId(colId);
|
|
1440
1437
|
const colSetupInfo = {
|
|
1441
1438
|
col,
|
|
1442
1439
|
colDef,
|
|
@@ -1504,7 +1501,7 @@ class Adaptable {
|
|
|
1504
1501
|
if (!layout) {
|
|
1505
1502
|
layout = this.api.layoutApi.getCurrentLayout();
|
|
1506
1503
|
}
|
|
1507
|
-
if (this.api.layoutApi.areExpandedRowGroupsSavedInLayouts() &&
|
|
1504
|
+
if (this.api.layoutApi.internalApi.areExpandedRowGroupsSavedInLayouts() &&
|
|
1508
1505
|
ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(layout.ExpandedRowGroupValues)) {
|
|
1509
1506
|
this.expandRowGroupsForValues(layout.ExpandedRowGroupValues);
|
|
1510
1507
|
}
|
|
@@ -1569,7 +1566,7 @@ class Adaptable {
|
|
|
1569
1566
|
});
|
|
1570
1567
|
groupedColumns = groupedColumns.filter((x) => !!x);
|
|
1571
1568
|
pivotedColumns = pivotedColumns.filter((x) => !!x);
|
|
1572
|
-
if ((_b = (_a = this.adaptableOptions) === null || _a === void 0 ? void 0 : _a.generalOptions) === null || _b === void 0 ? void 0 : _b.
|
|
1569
|
+
if ((_b = (_a = this.adaptableOptions) === null || _a === void 0 ? void 0 : _a.generalOptions) === null || _b === void 0 ? void 0 : _b.restoreUngroupedColumns) {
|
|
1573
1570
|
columnOrder = this.restoreUnGroupColumnOrder({
|
|
1574
1571
|
columnOrder,
|
|
1575
1572
|
newGroupColumns: groupedColumns,
|
|
@@ -1590,7 +1587,7 @@ class Adaptable {
|
|
|
1590
1587
|
}
|
|
1591
1588
|
layout.EnablePivot = this.gridOptions.columnApi.isPivotMode();
|
|
1592
1589
|
layout.PivotColumns = pivotColumns;
|
|
1593
|
-
if (this.api.layoutApi.areExpandedRowGroupsSavedInLayouts()) {
|
|
1590
|
+
if (this.api.layoutApi.internalApi.areExpandedRowGroupsSavedInLayouts()) {
|
|
1594
1591
|
layout.ExpandedRowGroupValues = this.getExpandRowGroupsKeys();
|
|
1595
1592
|
}
|
|
1596
1593
|
this.persistLayout(layout);
|
|
@@ -1628,7 +1625,7 @@ class Adaptable {
|
|
|
1628
1625
|
for (const column of rangeSelection.columns) {
|
|
1629
1626
|
if (column != null) {
|
|
1630
1627
|
const colId = column.getColId();
|
|
1631
|
-
const selectedColumn = this.api.columnApi.
|
|
1628
|
+
const selectedColumn = this.api.columnApi.getColumnWithColumnId(colId);
|
|
1632
1629
|
if (selectedColumn &&
|
|
1633
1630
|
columns.find((c) => c.columnId == selectedColumn.columnId) == null) {
|
|
1634
1631
|
columns.push(selectedColumn);
|
|
@@ -1652,7 +1649,7 @@ class Adaptable {
|
|
|
1652
1649
|
columns: columns,
|
|
1653
1650
|
gridCells: selectedCells,
|
|
1654
1651
|
};
|
|
1655
|
-
this.api.internalApi.setSelectedCells(selectedCellInfo);
|
|
1652
|
+
this.api.gridApi.internalApi.setSelectedCells(selectedCellInfo);
|
|
1656
1653
|
this._emit('CellsSelected');
|
|
1657
1654
|
this.agGridHelper.fireSelectionChangedEvent();
|
|
1658
1655
|
return selectedCellInfo;
|
|
@@ -1687,7 +1684,7 @@ class Adaptable {
|
|
|
1687
1684
|
});
|
|
1688
1685
|
}
|
|
1689
1686
|
const selectedRowInfo = { gridRows: selectedRows };
|
|
1690
|
-
this.api.internalApi.setSelectedRows(selectedRowInfo);
|
|
1687
|
+
this.api.gridApi.internalApi.setSelectedRows(selectedRowInfo);
|
|
1691
1688
|
this.agGridHelper.fireSelectionChangedEvent();
|
|
1692
1689
|
return selectedRowInfo;
|
|
1693
1690
|
}
|
|
@@ -1832,7 +1829,7 @@ class Adaptable {
|
|
|
1832
1829
|
let permittedMap = new Map();
|
|
1833
1830
|
// check if there are permitted column values for that column
|
|
1834
1831
|
// NB. this currently contains a small bug as we dont check for visibility so if using permitted values then ALL are returned :(
|
|
1835
|
-
const abColumn = this.api.columnApi.
|
|
1832
|
+
const abColumn = this.api.columnApi.getColumnWithColumnId(columnId);
|
|
1836
1833
|
const permittedValuesForColumn = this.api.userInterfaceApi.getPermittedValuesForColumn(abColumn);
|
|
1837
1834
|
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(permittedValuesForColumn)) {
|
|
1838
1835
|
permittedValuesForColumn.forEach((pv) => {
|
|
@@ -1886,23 +1883,6 @@ class Adaptable {
|
|
|
1886
1883
|
return undefined;
|
|
1887
1884
|
}
|
|
1888
1885
|
}
|
|
1889
|
-
isCustomRenderedColumn(column) {
|
|
1890
|
-
if (!column || column.isGrouped) {
|
|
1891
|
-
return false;
|
|
1892
|
-
}
|
|
1893
|
-
// we need to return false if the column has a cell renderer i think...
|
|
1894
|
-
const colDef = this.gridOptions.api.getColumnDef(column.columnId);
|
|
1895
|
-
if (colDef && colDef.cellRenderer != null) {
|
|
1896
|
-
return true;
|
|
1897
|
-
}
|
|
1898
|
-
if (this.api.columnApi.isStyledNumericColumn(column)) {
|
|
1899
|
-
return true;
|
|
1900
|
-
}
|
|
1901
|
-
if (this.api.columnApi.isBooleanColumn(column)) {
|
|
1902
|
-
return true;
|
|
1903
|
-
}
|
|
1904
|
-
return false;
|
|
1905
|
-
}
|
|
1906
1886
|
getDisplayValue(primaryKey, columnId) {
|
|
1907
1887
|
let returnValue;
|
|
1908
1888
|
if (this.useRowNodeLookUp) {
|
|
@@ -1927,7 +1907,7 @@ class Adaptable {
|
|
|
1927
1907
|
if (rowNode == null) {
|
|
1928
1908
|
return undefined;
|
|
1929
1909
|
}
|
|
1930
|
-
const abColumn = this.api.columnApi.
|
|
1910
|
+
const abColumn = this.api.columnApi.getColumnWithColumnId(columnId);
|
|
1931
1911
|
const pkValue = this.getPrimaryKeyValueFromRowNode(rowNode);
|
|
1932
1912
|
const rawValue = this.getRawValueFromRowNode(rowNode, columnId);
|
|
1933
1913
|
const displayValue = this.getDisplayValueFromRawValue(rowNode, columnId, rawValue);
|
|
@@ -1949,15 +1929,16 @@ class Adaptable {
|
|
|
1949
1929
|
return this.getDisplayValueFromRawValue(rowNode, columnId, rawValue);
|
|
1950
1930
|
}
|
|
1951
1931
|
getDisplayValueFromRawValue(rowNode, columnId, rawValue) {
|
|
1952
|
-
|
|
1953
|
-
const
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1932
|
+
// no need for this case, it's handled below after the ActionColumn logic
|
|
1933
|
+
// const abColumn: AdaptableColumn = this.api.columnApi.getColumnWithColumnId(columnId);
|
|
1934
|
+
// const isCustomRenderedColumn = this.api.styledColumnApi.hasPercentBarStyle(columnId);
|
|
1935
|
+
// if (isCustomRenderedColumn) {
|
|
1936
|
+
// const colDef = this.gridOptions.api!.getColumnDef(columnId);
|
|
1937
|
+
// if (typeof colDef.valueFormatter == 'function') {
|
|
1938
|
+
// return this.getFormattedValue(rowNode, rawValue, columnId, colDef, colDef.valueFormatter);
|
|
1939
|
+
// }
|
|
1940
|
+
// return this.agGridHelper.getCleanValue(rawValue);
|
|
1941
|
+
// }
|
|
1961
1942
|
const isActionColumn = this.api.columnApi.isActionColumn(columnId);
|
|
1962
1943
|
if (isActionColumn) {
|
|
1963
1944
|
return this.agGridHelper.getCleanValue(rawValue);
|
|
@@ -2069,9 +2050,13 @@ class Adaptable {
|
|
|
2069
2050
|
}
|
|
2070
2051
|
return rowNodes;
|
|
2071
2052
|
}
|
|
2072
|
-
forAllRowNodesDo(func) {
|
|
2053
|
+
forAllRowNodesDo(func, config) {
|
|
2073
2054
|
this.gridOptions.api.forEachNode((rowNode) => {
|
|
2074
|
-
|
|
2055
|
+
const includeGroupRows = (config === null || config === void 0 ? void 0 : config.includeGroupRows) || !this.isGroupRowNode(rowNode);
|
|
2056
|
+
const filterFnFulfilled = !(config === null || config === void 0 ? void 0 : config.filterFn) || (config === null || config === void 0 ? void 0 : config.filterFn(rowNode));
|
|
2057
|
+
if (includeGroupRows && filterFnFulfilled) {
|
|
2058
|
+
func(rowNode);
|
|
2059
|
+
}
|
|
2075
2060
|
});
|
|
2076
2061
|
}
|
|
2077
2062
|
forAllVisibleRowNodesDo(func) {
|
|
@@ -2088,13 +2073,7 @@ class Adaptable {
|
|
|
2088
2073
|
}
|
|
2089
2074
|
getAllRowNodes(config) {
|
|
2090
2075
|
let rowNodes = [];
|
|
2091
|
-
this.
|
|
2092
|
-
const includeGroupRows = (config === null || config === void 0 ? void 0 : config.includeGroupRows) || !this.isGroupRowNode(rowNode);
|
|
2093
|
-
const filterFnFulfilled = !(config === null || config === void 0 ? void 0 : config.filterFn) || (config === null || config === void 0 ? void 0 : config.filterFn(rowNode));
|
|
2094
|
-
if (includeGroupRows && filterFnFulfilled) {
|
|
2095
|
-
rowNodes.push(rowNode);
|
|
2096
|
-
}
|
|
2097
|
-
});
|
|
2076
|
+
this.forAllRowNodesDo((rowNode) => rowNodes.push(rowNode), config);
|
|
2098
2077
|
return rowNodes;
|
|
2099
2078
|
}
|
|
2100
2079
|
getRowsInViewport() {
|
|
@@ -2206,7 +2185,7 @@ class Adaptable {
|
|
|
2206
2185
|
}
|
|
2207
2186
|
getColDefsForFreeTextColumns() {
|
|
2208
2187
|
const defaultFreeTextColumnSettings = (0, ObjectFactory_1.CreateEmptyFreeTextColumn)().FreeTextColumnSettings;
|
|
2209
|
-
return this.api.freeTextColumnApi.
|
|
2188
|
+
return this.api.freeTextColumnApi.getFreeTextColumns().map((freeTextColumn) => {
|
|
2210
2189
|
var _a;
|
|
2211
2190
|
const freeTextColumnSettings = Object.assign(Object.assign({}, defaultFreeTextColumnSettings), freeTextColumn.FreeTextColumnSettings);
|
|
2212
2191
|
const dataTypeEditor = freeTextColumn.DataType === 'Number'
|
|
@@ -2246,7 +2225,7 @@ class Adaptable {
|
|
|
2246
2225
|
cellRenderer: freeTextColumn.DataType && freeTextColumn.DataType == 'Boolean'
|
|
2247
2226
|
? this.agGridHelper.createCheckboxRendererComp(freeTextColumn.ColumnId, false)
|
|
2248
2227
|
: undefined,
|
|
2249
|
-
valueGetter: (params) => this.api.freeTextColumnApi.
|
|
2228
|
+
valueGetter: (params) => this.api.freeTextColumnApi.getFreeTextColumnValueForRowNode(freeTextColumn, params.node),
|
|
2250
2229
|
};
|
|
2251
2230
|
if (freeTextColumnSettings.HeaderToolTip) {
|
|
2252
2231
|
newColDef.headerTooltip = freeTextColumnSettings.HeaderToolTip;
|
|
@@ -2272,7 +2251,7 @@ class Adaptable {
|
|
|
2272
2251
|
}
|
|
2273
2252
|
}
|
|
2274
2253
|
getColDefsForRowEditColumns() {
|
|
2275
|
-
const actionRowButtons = this.
|
|
2254
|
+
const actionRowButtons = this.api.actionApi.getActionRowButtons();
|
|
2276
2255
|
if (!(actionRowButtons === null || actionRowButtons === void 0 ? void 0 : actionRowButtons.length)) {
|
|
2277
2256
|
return [];
|
|
2278
2257
|
}
|
|
@@ -2378,7 +2357,7 @@ class Adaptable {
|
|
|
2378
2357
|
suppressMenu: false,
|
|
2379
2358
|
suppressMovable: false,
|
|
2380
2359
|
};
|
|
2381
|
-
return this.api.actionApi.
|
|
2360
|
+
return this.api.actionApi.getActionColumns().map((actionColumn) => {
|
|
2382
2361
|
const actionColumnSettings = Object.assign(Object.assign({}, defaultActionColumnSettings), actionColumn.actionColumnSettings);
|
|
2383
2362
|
const newColDef = {
|
|
2384
2363
|
headerName: actionColumn.friendlyName ? actionColumn.friendlyName : actionColumn.columnId,
|
|
@@ -2455,7 +2434,7 @@ class Adaptable {
|
|
|
2455
2434
|
}
|
|
2456
2435
|
getColDefsForCalculatedColumns() {
|
|
2457
2436
|
const defaultCalculatedColumnSettings = (0, ObjectFactory_1.CreateEmptyCalculatedColumn)().CalculatedColumnSettings;
|
|
2458
|
-
return this.api.calculatedColumnApi.
|
|
2437
|
+
return this.api.calculatedColumnApi.getCalculatedColumns().map((calculatedColumn) => {
|
|
2459
2438
|
const calculatedColumnSettings = Object.assign(Object.assign({}, defaultCalculatedColumnSettings), calculatedColumn.CalculatedColumnSettings);
|
|
2460
2439
|
if (!calculatedColumnSettings.DataType) {
|
|
2461
2440
|
calculatedColumnSettings.DataType =
|
|
@@ -2468,7 +2447,7 @@ class Adaptable {
|
|
|
2468
2447
|
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(calculatedColumnSettings.ColumnTypes)) {
|
|
2469
2448
|
columnTypes.push(...calculatedColumnSettings.ColumnTypes);
|
|
2470
2449
|
}
|
|
2471
|
-
const isExternalEvaluation = !this.api.internalApi.evaluateExpressionInAdaptableQL('CalculatedColumn', this.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query));
|
|
2450
|
+
const isExternalEvaluation = !this.api.queryLanguageApi.internalApi.evaluateExpressionInAdaptableQL('CalculatedColumn', this.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query));
|
|
2472
2451
|
const newColDef = {
|
|
2473
2452
|
headerName: calculatedColumn.FriendlyName
|
|
2474
2453
|
? calculatedColumn.FriendlyName
|
|
@@ -2861,7 +2840,7 @@ class Adaptable {
|
|
|
2861
2840
|
if (this.api.internalApi.isGridInPivotMode()) {
|
|
2862
2841
|
return;
|
|
2863
2842
|
}
|
|
2864
|
-
if ((_b = (_a = this.adaptableOptions) === null || _a === void 0 ? void 0 : _a.generalOptions) === null || _b === void 0 ? void 0 : _b.
|
|
2843
|
+
if ((_b = (_a = this.adaptableOptions) === null || _a === void 0 ? void 0 : _a.generalOptions) === null || _b === void 0 ? void 0 : _b.restoreUngroupedColumns) {
|
|
2865
2844
|
this.persistColumnIndexBeforeGrouping(params);
|
|
2866
2845
|
}
|
|
2867
2846
|
if (this.adaptableOptions.columnOptions.hideColumnWhenGrouped === true &&
|
|
@@ -2999,7 +2978,7 @@ class Adaptable {
|
|
|
2999
2978
|
if (!this.isGroupRowNode(node)) {
|
|
3000
2979
|
const currentQuery = this.api.queryApi.getCurrentQuery();
|
|
3001
2980
|
if (currentQuery) {
|
|
3002
|
-
const evaluateQueryOnClient = this.api.internalApi.evaluateExpressionInAdaptableQL('Query', currentQuery);
|
|
2981
|
+
const evaluateQueryOnClient = this.api.queryLanguageApi.internalApi.evaluateExpressionInAdaptableQL('Query', currentQuery);
|
|
3003
2982
|
if (evaluateQueryOnClient) {
|
|
3004
2983
|
const isCurrentQueryValid = this.api.queryLanguageApi.isValidBooleanExpression(currentQuery, ModuleConstants_1.QueryModuleId, `Invalid CurrentQuery '${currentQuery}'`);
|
|
3005
2984
|
if (!isCurrentQueryValid ||
|
|
@@ -3011,14 +2990,14 @@ class Adaptable {
|
|
|
3011
2990
|
}
|
|
3012
2991
|
}
|
|
3013
2992
|
}
|
|
3014
|
-
const evaluateFilterOnClient = this.api.internalApi.evaluateExpressionInAdaptableQL('Filter');
|
|
2993
|
+
const evaluateFilterOnClient = this.api.queryLanguageApi.internalApi.evaluateExpressionInAdaptableQL('Filter');
|
|
3015
2994
|
try {
|
|
3016
2995
|
// we then assess filters (if running locally)
|
|
3017
2996
|
if (evaluateFilterOnClient) {
|
|
3018
2997
|
const columnFilters = this.api.filterApi.getActiveColumnFilters();
|
|
3019
2998
|
if (columnFilters.length > 0) {
|
|
3020
2999
|
for (const columnFilter of columnFilters) {
|
|
3021
|
-
if (!this.api.filterApi.evaluateColumnFilter(columnFilter, node)) {
|
|
3000
|
+
if (!this.api.filterApi.internalApi.evaluateColumnFilter(columnFilter, node)) {
|
|
3022
3001
|
return false;
|
|
3023
3002
|
}
|
|
3024
3003
|
}
|
|
@@ -3104,7 +3083,7 @@ class Adaptable {
|
|
|
3104
3083
|
cols.forEach((col) => {
|
|
3105
3084
|
const colDef = col.getColDef();
|
|
3106
3085
|
const colId = col.getColId();
|
|
3107
|
-
const abColumn = this.api.columnApi.
|
|
3086
|
+
const abColumn = this.api.columnApi.getColumnWithColumnId(colId);
|
|
3108
3087
|
const colSetupInfo = {
|
|
3109
3088
|
col,
|
|
3110
3089
|
colDef,
|
|
@@ -3224,8 +3203,8 @@ class Adaptable {
|
|
|
3224
3203
|
fontSize: null,
|
|
3225
3204
|
borderColor: null,
|
|
3226
3205
|
};
|
|
3227
|
-
const activeFormatColumnsWithStyle = this.api.formatColumnApi.getFormatColumnsWithStyleForColumn(abColumn);
|
|
3228
|
-
let styledColumn = this.api.styledColumnApi.
|
|
3206
|
+
const activeFormatColumnsWithStyle = this.api.formatColumnApi.internalApi.getFormatColumnsWithStyleForColumn(abColumn);
|
|
3207
|
+
let styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(colId);
|
|
3229
3208
|
if (styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.IsSuspended) {
|
|
3230
3209
|
styledColumn = null;
|
|
3231
3210
|
}
|
|
@@ -3243,7 +3222,7 @@ class Adaptable {
|
|
|
3243
3222
|
}
|
|
3244
3223
|
setupColumnCellClass({ col, colId, abColumn }) {
|
|
3245
3224
|
this.setColDefProperty(col, 'cellClass', (userCellClass) => {
|
|
3246
|
-
const formatColumns = this.api.formatColumnApi.getFormatColumnWithStyleClassNameForColumn(abColumn);
|
|
3225
|
+
const formatColumns = this.api.formatColumnApi.internalApi.getFormatColumnWithStyleClassNameForColumn(abColumn);
|
|
3247
3226
|
const quickSearchStyleClassName = this.api.quickSearchApi.getQuickSearchStyle().ClassName;
|
|
3248
3227
|
const hasQuickSearchStyleClassName = StringExtensions_1.StringExtensions.IsNotNullOrEmpty(quickSearchStyleClassName);
|
|
3249
3228
|
const cellClass = (params) => {
|
|
@@ -3253,7 +3232,7 @@ class Adaptable {
|
|
|
3253
3232
|
const readonlyClassName = this.getReadonlyCellClass(abColumn, params);
|
|
3254
3233
|
const highlightAlertClassName = this.getAlertCellClass(abColumn, params);
|
|
3255
3234
|
const flashingClassName = this.getFlashingCellClass(abColumn, params);
|
|
3256
|
-
const styledColumn = this.api.styledColumnApi.
|
|
3235
|
+
const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(colId);
|
|
3257
3236
|
const hasStyledColumn = !!styledColumn && !styledColumn.IsSuspended;
|
|
3258
3237
|
const returnValue = [
|
|
3259
3238
|
this.getExcelClassNameForCell(colId, primaryKeyValue),
|
|
@@ -3285,7 +3264,7 @@ class Adaptable {
|
|
|
3285
3264
|
return excelClassName;
|
|
3286
3265
|
}
|
|
3287
3266
|
setupColumnCellEditor({ colId, col }) {
|
|
3288
|
-
const adaptableColumn = this.api.columnApi.
|
|
3267
|
+
const adaptableColumn = this.api.columnApi.getColumnWithColumnId(colId);
|
|
3289
3268
|
const editLookUpItem = this.api.userInterfaceApi.getEditLookUpItemForColumn(adaptableColumn);
|
|
3290
3269
|
const hasRichSelectCellEditor = this.isAgGridModulePresent(core_1.ModuleNames.RichSelectModule);
|
|
3291
3270
|
this.setColDefProperty(col, 'cellEditor', () => {
|
|
@@ -3317,7 +3296,7 @@ class Adaptable {
|
|
|
3317
3296
|
}
|
|
3318
3297
|
setupColumnCellRenderer({ col, colId, abColumn }) {
|
|
3319
3298
|
this.setColDefProperty(col, 'cellRenderer', () => {
|
|
3320
|
-
const styledColumn = this.api.styledColumnApi.
|
|
3299
|
+
const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(abColumn.columnId);
|
|
3321
3300
|
if (styledColumn && !styledColumn.IsSuspended) {
|
|
3322
3301
|
if (styledColumn.PercentBarStyle) {
|
|
3323
3302
|
return this.agGridHelper.createPercentBarRendererComp(styledColumn, abColumn);
|
|
@@ -3331,7 +3310,7 @@ class Adaptable {
|
|
|
3331
3310
|
}
|
|
3332
3311
|
});
|
|
3333
3312
|
this.setColDefProperty(col, 'cellRendererParams', (userDefined) => {
|
|
3334
|
-
const styledColumn = this.api.styledColumnApi.
|
|
3313
|
+
const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(abColumn.columnId);
|
|
3335
3314
|
if (styledColumn && !styledColumn.IsSuspended) {
|
|
3336
3315
|
if (styledColumn.SparkLineStyle) {
|
|
3337
3316
|
const sparklineOptions = (0, merge_1.default)({}, userDefined === null || userDefined === void 0 ? void 0 : userDefined.sparklineOptions, styledColumn.SparkLineStyle.options);
|
|
@@ -3342,15 +3321,15 @@ class Adaptable {
|
|
|
3342
3321
|
}
|
|
3343
3322
|
setupColumnTooltipValueGetter({ col, colId, abColumn }) {
|
|
3344
3323
|
this.setColDefProperty(col, 'tooltipValueGetter', () => {
|
|
3345
|
-
const styledColumn = this.api.styledColumnApi.
|
|
3324
|
+
const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(colId);
|
|
3346
3325
|
if (styledColumn &&
|
|
3347
3326
|
!styledColumn.IsSuspended &&
|
|
3348
3327
|
styledColumn.PercentBarStyle &&
|
|
3349
3328
|
styledColumn.PercentBarStyle.ToolTipText) {
|
|
3350
3329
|
if (styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.PercentBarStyle) {
|
|
3351
3330
|
return (params) => {
|
|
3352
|
-
const min = this.api.styledColumnApi.getNumericStyleMinValue(styledColumn, abColumn, params.node, params.value);
|
|
3353
|
-
const max = this.api.styledColumnApi.getNumericStyleMaxValue(styledColumn, abColumn, params.node, params.value);
|
|
3331
|
+
const min = this.api.styledColumnApi.internalApi.getNumericStyleMinValue(styledColumn, abColumn, params.node, params.value);
|
|
3332
|
+
const max = this.api.styledColumnApi.internalApi.getNumericStyleMaxValue(styledColumn, abColumn, params.node, params.value);
|
|
3354
3333
|
const textOptions = styledColumn.PercentBarStyle.ToolTipText;
|
|
3355
3334
|
let returnValue = '';
|
|
3356
3335
|
if (textOptions.includes('CellValue')) {
|
|
@@ -3390,7 +3369,7 @@ class Adaptable {
|
|
|
3390
3369
|
triggerSetupColumnKeyCreator(colId) {
|
|
3391
3370
|
const col = this.gridOptions.columnApi.getColumn(colId);
|
|
3392
3371
|
const colDef = col.getColDef();
|
|
3393
|
-
const abColumn = this.api.columnApi.
|
|
3372
|
+
const abColumn = this.api.columnApi.getColumnWithColumnId(colId);
|
|
3394
3373
|
const colSetupInfo = {
|
|
3395
3374
|
col,
|
|
3396
3375
|
colDef,
|
|
@@ -3449,7 +3428,7 @@ class Adaptable {
|
|
|
3449
3428
|
if (!colDef.filter) {
|
|
3450
3429
|
return;
|
|
3451
3430
|
}
|
|
3452
|
-
if (!this.api.columnApi.usesAdaptableFilterForm(col.getColId())) {
|
|
3431
|
+
if (!this.api.columnApi.internalApi.usesAdaptableFilterForm(col.getColId())) {
|
|
3453
3432
|
return;
|
|
3454
3433
|
}
|
|
3455
3434
|
this.gridOptions.api.destroyFilter(col);
|
|
@@ -3457,7 +3436,8 @@ class Adaptable {
|
|
|
3457
3436
|
});
|
|
3458
3437
|
}
|
|
3459
3438
|
setupColumnFloatingFilter({ col, colDef }) {
|
|
3460
|
-
const isFloatingFilterDisabled = !colDef.floatingFilter ||
|
|
3439
|
+
const isFloatingFilterDisabled = !colDef.floatingFilter ||
|
|
3440
|
+
!this.api.columnApi.internalApi.usesAdaptableQuickFilter(col.getColId());
|
|
3461
3441
|
this.setColDefProperty(col, 'floatingFilterComponent', () => {
|
|
3462
3442
|
if (isFloatingFilterDisabled) {
|
|
3463
3443
|
return;
|
|
@@ -3475,13 +3455,13 @@ class Adaptable {
|
|
|
3475
3455
|
}
|
|
3476
3456
|
setupColumnValueFormatter({ col, abColumn }) {
|
|
3477
3457
|
this.setColDefProperty(col, 'valueFormatter', (params) => {
|
|
3478
|
-
const activeFormatColumnsWithDisplayFormat = this.api.formatColumnApi.getFormatColumnsWithDisplayFormatForColumn(abColumn);
|
|
3458
|
+
const activeFormatColumnsWithDisplayFormat = this.api.formatColumnApi.internalApi.getFormatColumnsWithDisplayFormatForColumn(abColumn);
|
|
3479
3459
|
if (!activeFormatColumnsWithDisplayFormat.length) {
|
|
3480
3460
|
return;
|
|
3481
3461
|
}
|
|
3482
3462
|
return (params) => {
|
|
3483
3463
|
const { node, value } = params;
|
|
3484
|
-
const [mostRelevantFormatColumn] = this.api.formatColumnApi.getFormatColumnsRelevantForColumn(activeFormatColumnsWithDisplayFormat, abColumn, { node, value });
|
|
3464
|
+
const [mostRelevantFormatColumn] = this.api.formatColumnApi.internalApi.getFormatColumnsRelevantForColumn(activeFormatColumnsWithDisplayFormat, abColumn, { node, value });
|
|
3485
3465
|
if (!mostRelevantFormatColumn) {
|
|
3486
3466
|
// ALL FormatColumns are conditional and NONE of them are relevant for this row
|
|
3487
3467
|
return value;
|
|
@@ -3490,19 +3470,19 @@ class Adaptable {
|
|
|
3490
3470
|
if (mostRelevantFormatColumn.DisplayFormat.Formatter === 'NumberFormatter') {
|
|
3491
3471
|
// change the Number format - if the scope allows it
|
|
3492
3472
|
if (this.api.scopeApi.isColumnInNumericScope(abColumn, mostRelevantFormatColumn.Scope)) {
|
|
3493
|
-
return this.api.formatColumnApi.getNumberFormattedValue(params.value, params.node, abColumn, options);
|
|
3473
|
+
return this.api.formatColumnApi.internalApi.getNumberFormattedValue(params.value, params.node, abColumn, options);
|
|
3494
3474
|
}
|
|
3495
3475
|
}
|
|
3496
3476
|
if (mostRelevantFormatColumn.DisplayFormat.Formatter === 'DateFormatter') {
|
|
3497
3477
|
// change the Date format - if the scope allows it
|
|
3498
3478
|
if (this.api.scopeApi.isColumnInDateScope(abColumn, mostRelevantFormatColumn.Scope)) {
|
|
3499
|
-
return this.api.formatColumnApi.getDateFormattedValue(params.value, params.node, abColumn, options);
|
|
3479
|
+
return this.api.formatColumnApi.internalApi.getDateFormattedValue(params.value, params.node, abColumn, options);
|
|
3500
3480
|
}
|
|
3501
3481
|
}
|
|
3502
3482
|
if (mostRelevantFormatColumn.DisplayFormat.Formatter === 'StringFormatter') {
|
|
3503
3483
|
// change the String format - if the scope allows it
|
|
3504
3484
|
if (this.api.scopeApi.isColumnInStringsScope(abColumn, mostRelevantFormatColumn.Scope)) {
|
|
3505
|
-
return this.api.formatColumnApi.getStringFormattedValue(params.value, params.node, abColumn, options);
|
|
3485
|
+
return this.api.formatColumnApi.internalApi.getStringFormattedValue(params.value, params.node, abColumn, options);
|
|
3506
3486
|
}
|
|
3507
3487
|
}
|
|
3508
3488
|
// should NEVER arrive at this line, but just to be sure
|
|
@@ -3530,7 +3510,7 @@ class Adaptable {
|
|
|
3530
3510
|
setupColumnValueSetter({ col, colId, abColumn }) {
|
|
3531
3511
|
this.setColDefProperty(col, 'valueSetter', (userValueSetter) => {
|
|
3532
3512
|
var _a;
|
|
3533
|
-
const preventEditAlertsForColumn = this.api.alertApi
|
|
3513
|
+
const preventEditAlertsForColumn = this.api.alertApi.internalApi
|
|
3534
3514
|
.getAlertDefinitionsWithPreventEdit()
|
|
3535
3515
|
.filter((alertDefinition) => {
|
|
3536
3516
|
return this.api.scopeApi.isColumnInScope(abColumn, alertDefinition.Scope);
|
|
@@ -3559,7 +3539,7 @@ class Adaptable {
|
|
|
3559
3539
|
const cellDataChangedInfo = this.api.internalApi.buildDataChangedInfo({
|
|
3560
3540
|
oldValue: params.oldValue,
|
|
3561
3541
|
newValue: params.newValue,
|
|
3562
|
-
column: this.api.columnApi.
|
|
3542
|
+
column: this.api.columnApi.getColumnWithColumnId(params.column.getColId()),
|
|
3563
3543
|
primaryKeyValue: this.getPrimaryKeyValueFromRowNode(params.node),
|
|
3564
3544
|
rowNode: params.node,
|
|
3565
3545
|
trigger: 'edit',
|
|
@@ -3599,8 +3579,8 @@ class Adaptable {
|
|
|
3599
3579
|
});
|
|
3600
3580
|
}
|
|
3601
3581
|
setupColumnComparator({ col, colId, abColumn }) {
|
|
3602
|
-
const customSort = this.api.customSortApi.
|
|
3603
|
-
const columnSortComparer = this.api.internalApi.getCustomSortComparer(abColumn);
|
|
3582
|
+
const customSort = this.api.customSortApi.getCustomSortForColumn(colId);
|
|
3583
|
+
const columnSortComparer = this.api.customSortApi.internalApi.getCustomSortComparer(abColumn);
|
|
3604
3584
|
const comparatorGetter = (propName) => {
|
|
3605
3585
|
return () => {
|
|
3606
3586
|
return this.getActiveColumnComparator(colId, customSort, columnSortComparer);
|
|
@@ -3642,14 +3622,14 @@ class Adaptable {
|
|
|
3642
3622
|
// rowNode = this.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
3643
3623
|
let cellDataChangedInfos = [];
|
|
3644
3624
|
Object.keys(oldData).forEach((key) => {
|
|
3645
|
-
if (this.api.columnApi.
|
|
3625
|
+
if (this.api.columnApi.isColumnInGrid(key)) {
|
|
3646
3626
|
const oldValue = oldData[key];
|
|
3647
3627
|
const newValue = newData[key];
|
|
3648
3628
|
if (oldValue != newValue) {
|
|
3649
3629
|
const cellDataChangedInfo = this.api.internalApi.buildDataChangedInfo({
|
|
3650
3630
|
oldValue: oldValue,
|
|
3651
3631
|
newValue: newValue,
|
|
3652
|
-
column: this.api.columnApi.
|
|
3632
|
+
column: this.api.columnApi.getColumnWithColumnId(key),
|
|
3653
3633
|
primaryKeyValue: primaryKeyValue,
|
|
3654
3634
|
rowNode: rowNode,
|
|
3655
3635
|
trigger: 'tick',
|
|
@@ -3667,7 +3647,7 @@ class Adaptable {
|
|
|
3667
3647
|
if (oldValue == newValue) {
|
|
3668
3648
|
return;
|
|
3669
3649
|
}
|
|
3670
|
-
const abColumn = this.api.columnApi.
|
|
3650
|
+
const abColumn = this.api.columnApi.getColumnWithColumnId(colId);
|
|
3671
3651
|
if (!abColumn) {
|
|
3672
3652
|
return;
|
|
3673
3653
|
}
|
|
@@ -3723,7 +3703,7 @@ class Adaptable {
|
|
|
3723
3703
|
}
|
|
3724
3704
|
if (cellDataChangedInfo.trigger === 'edit' || cellDataChangedInfo.trigger === 'undo') {
|
|
3725
3705
|
this.checkChangedCellCurrentlySelected(cellDataChangedInfo);
|
|
3726
|
-
this.api.freeTextColumnApi.
|
|
3706
|
+
this.api.freeTextColumnApi.internalApi.handleFreeTextColumnDataChange(cellDataChangedInfo);
|
|
3727
3707
|
}
|
|
3728
3708
|
this.DataService.CreateDataChangedEvent(cellDataChangedInfo);
|
|
3729
3709
|
this.resetMinMaxCachedValueForColumn(cellDataChangedInfo.column);
|
|
@@ -3752,7 +3732,7 @@ class Adaptable {
|
|
|
3752
3732
|
}
|
|
3753
3733
|
getExpressionStylesChanges(dataChangedScope, cellDataChangedInfos) {
|
|
3754
3734
|
const formatColumnsWithExpression = [];
|
|
3755
|
-
formatColumnsWithExpression.push(...this.api.formatColumnApi.getFormatColumnsWithExpression());
|
|
3735
|
+
formatColumnsWithExpression.push(...this.api.formatColumnApi.internalApi.getFormatColumnsWithExpression());
|
|
3756
3736
|
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(formatColumnsWithExpression)) {
|
|
3757
3737
|
return;
|
|
3758
3738
|
}
|
|
@@ -3781,10 +3761,10 @@ class Adaptable {
|
|
|
3781
3761
|
});
|
|
3782
3762
|
}
|
|
3783
3763
|
getStyledColumnComparisonChanges(dataChangedScope, cellDataChangedInfos) {
|
|
3784
|
-
this.api.styledColumnApi.
|
|
3785
|
-
let columnComparison = this.api.styledColumnApi.getColumnComparisonForStyledColumn(sc);
|
|
3764
|
+
this.api.styledColumnApi.getStyledColumns().forEach((sc) => {
|
|
3765
|
+
let columnComparison = this.api.styledColumnApi.internalApi.getColumnComparisonForStyledColumn(sc);
|
|
3786
3766
|
if (columnComparison) {
|
|
3787
|
-
let affectedColumnIds = this.api.styledColumnApi.getColumnIdsFromColumnComparison(columnComparison);
|
|
3767
|
+
let affectedColumnIds = this.api.styledColumnApi.internalApi.getColumnIdsFromColumnComparison(columnComparison);
|
|
3788
3768
|
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(affectedColumnIds)) {
|
|
3789
3769
|
cellDataChangedInfos.forEach((cellDataChangedInfo) => {
|
|
3790
3770
|
if (affectedColumnIds.includes(cellDataChangedInfo.column.columnId)) {
|
|
@@ -3816,7 +3796,8 @@ class Adaptable {
|
|
|
3816
3796
|
const columnIdMap = new Set();
|
|
3817
3797
|
cellDataChangedInfos.forEach((cellDataChangeInfo) => {
|
|
3818
3798
|
const styledColumn = this.api.styledColumnApi.getActiveStyledColumnForColumn(cellDataChangeInfo.column);
|
|
3819
|
-
if (styledColumn &&
|
|
3799
|
+
if (styledColumn &&
|
|
3800
|
+
this.api.styledColumnApi.internalApi.hasStyledColumnRelativeCellRange(styledColumn)) {
|
|
3820
3801
|
columnIdMap.add(styledColumn.ColumnId);
|
|
3821
3802
|
}
|
|
3822
3803
|
});
|
|
@@ -3904,7 +3885,7 @@ class Adaptable {
|
|
|
3904
3885
|
}
|
|
3905
3886
|
getExpandRowGroupsKeys() {
|
|
3906
3887
|
let returnValues = [];
|
|
3907
|
-
if (this.api.layoutApi.areExpandedRowGroupsSavedInLayouts()) {
|
|
3888
|
+
if (this.api.layoutApi.internalApi.areExpandedRowGroupsSavedInLayouts()) {
|
|
3908
3889
|
this.gridOptions.api.forEachNode((node) => {
|
|
3909
3890
|
if (node.group && node.expanded) {
|
|
3910
3891
|
let current = node;
|
|
@@ -4138,7 +4119,7 @@ class Adaptable {
|
|
|
4138
4119
|
let groupedColumns = this.gridOptions.columnApi.getRowGroupColumns();
|
|
4139
4120
|
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(groupedColumns)) {
|
|
4140
4121
|
let groupedColumn = groupedColumns[0];
|
|
4141
|
-
return this.api.columnApi.
|
|
4122
|
+
return this.api.columnApi.getColumnWithColumnId(groupedColumn.getColId());
|
|
4142
4123
|
}
|
|
4143
4124
|
}
|
|
4144
4125
|
checkColumnsDataTypeSet() {
|
|
@@ -4301,7 +4282,7 @@ class Adaptable {
|
|
|
4301
4282
|
const themeName = typeof theme === 'string' ? theme : theme.Name;
|
|
4302
4283
|
const themeClassNamesToRemove = [];
|
|
4303
4284
|
const themesToRemove = [];
|
|
4304
|
-
const allThemes = this.api.themeApi.
|
|
4285
|
+
const allThemes = this.api.themeApi.getThemes().map((t) => {
|
|
4305
4286
|
// we mutate the theme later,
|
|
4306
4287
|
// and since we don't want the mutation to end up in state
|
|
4307
4288
|
// we better clone it here
|
|
@@ -4349,7 +4330,7 @@ class Adaptable {
|
|
|
4349
4330
|
}
|
|
4350
4331
|
return val;
|
|
4351
4332
|
});
|
|
4352
|
-
const systemThemes = this.api.themeApi.
|
|
4333
|
+
const systemThemes = this.api.themeApi.getSystemThemes();
|
|
4353
4334
|
const isSystemTheme = !!systemThemes.filter((t) => t.Name === themeName)[0];
|
|
4354
4335
|
const container = this.getAgGridContainerElement();
|
|
4355
4336
|
const getAgGridLightThemeName = () => this.getAgGridLightThemeName();
|
|
@@ -4682,7 +4663,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4682
4663
|
return;
|
|
4683
4664
|
}
|
|
4684
4665
|
let rawValue = rowNode.key;
|
|
4685
|
-
if (this.api.columnApi.
|
|
4666
|
+
if (this.api.columnApi.getColumnDataTypeForColumnId(columnId) === 'Date' &&
|
|
4686
4667
|
typeof rawValue === 'string') {
|
|
4687
4668
|
// AG-Grid converts the value to string, we have to reconvert it back
|
|
4688
4669
|
const dateRawValue = (0, DateHelper_1.parseDateValue)(rawValue);
|
|
@@ -4815,7 +4796,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4815
4796
|
if (value !== undefined) {
|
|
4816
4797
|
return value;
|
|
4817
4798
|
}
|
|
4818
|
-
const distinctRawValues = this.api.
|
|
4799
|
+
const distinctRawValues = this.api.gridApi.internalApi
|
|
4819
4800
|
.getUnsortedDistinctRawValuesForColumn(columnId)
|
|
4820
4801
|
.map((item) => item.rawValue);
|
|
4821
4802
|
value = minMax === 'min' ? Math.min(...distinctRawValues) : Math.max(...distinctRawValues);
|
|
@@ -4829,7 +4810,8 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4829
4810
|
// what is new
|
|
4830
4811
|
const newGroups = columnGroupsInGrid.filter((colId) => !columnGroupsInLayout.includes(colId));
|
|
4831
4812
|
newGroups.forEach((colId) => {
|
|
4832
|
-
const columnIndex = layout.Columns.
|
|
4813
|
+
const columnIndex = layout.Columns.filter((colId) => !(this.api.columnApi.isAutoRowGroupColumn(colId) ||
|
|
4814
|
+
this.api.columnApi.isAutoPivotColumn(colId))).findIndex((columnIdInLayout) => columnIdInLayout === colId);
|
|
4833
4815
|
// user may group after a column not in layout
|
|
4834
4816
|
if (columnIndex !== -1) {
|
|
4835
4817
|
this.api.internalApi.persistPreviousGroupedColumnsIndex(layout.Uuid, colId, columnIndex);
|
|
@@ -4838,7 +4820,7 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4838
4820
|
}
|
|
4839
4821
|
/**
|
|
4840
4822
|
* Restores the order previous grouping order.
|
|
4841
|
-
|
|
4823
|
+
|
|
4842
4824
|
*/
|
|
4843
4825
|
restoreUnGroupColumnOrder({ newGroupColumns, columnOrder, }) {
|
|
4844
4826
|
var _a;
|
|
@@ -4856,22 +4838,25 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
4856
4838
|
const isStillGrouped = newGroupColumns.includes(colId);
|
|
4857
4839
|
const isAlreadyInGrid = currentLayout.Columns.includes(colId); // was not just added by ungrouping
|
|
4858
4840
|
if (isStillGrouped) {
|
|
4859
|
-
|
|
4841
|
+
continue;
|
|
4860
4842
|
}
|
|
4861
4843
|
if (isAlreadyInGrid) {
|
|
4862
4844
|
// no longer grouped, but already in grid, this means it was already in grid before ungrouping
|
|
4863
4845
|
// in this case the state can be cleared
|
|
4864
4846
|
this.api.internalApi.persistPreviousGroupedColumnsIndex(currentLayout.Uuid, colId, null);
|
|
4865
|
-
|
|
4847
|
+
continue;
|
|
4866
4848
|
}
|
|
4849
|
+
// need to ajust index based if grouped
|
|
4850
|
+
const numberOfGroupedColumns = newColumnOrder.filter((colId) => this.api.columnApi.isAutoRowGroupColumn(colId)).length;
|
|
4851
|
+
const adjustedPreviousIndex = previousIndex + numberOfGroupedColumns;
|
|
4867
4852
|
const indexInGrid = newColumnOrder.indexOf(colId);
|
|
4868
|
-
const hasDifferentPositionAsPreviousLayout =
|
|
4853
|
+
const hasDifferentPositionAsPreviousLayout = adjustedPreviousIndex !== null && // if null, the reorder was already applied
|
|
4869
4854
|
indexInGrid > 0 && // needs to be in grid
|
|
4870
|
-
|
|
4871
|
-
const isPreviousPositionInRange =
|
|
4855
|
+
adjustedPreviousIndex !== indexInGrid;
|
|
4856
|
+
const isPreviousPositionInRange = adjustedPreviousIndex < newColumnOrder.length;
|
|
4872
4857
|
if (hasDifferentPositionAsPreviousLayout && isPreviousPositionInRange) {
|
|
4873
4858
|
newColumnOrder.splice(indexInGrid, 1);
|
|
4874
|
-
newColumnOrder.splice(
|
|
4859
|
+
newColumnOrder.splice(adjustedPreviousIndex, 0, colId);
|
|
4875
4860
|
}
|
|
4876
4861
|
this.api.internalApi.persistPreviousGroupedColumnsIndex(currentLayout.Uuid, colId, null);
|
|
4877
4862
|
}
|