@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
|
@@ -3,12 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ColumnApiImpl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
|
-
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
7
6
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
8
7
|
const GeneralConstants = tslib_1.__importStar(require("../../Utilities/Constants/GeneralConstants"));
|
|
9
8
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
10
9
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
10
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
11
|
+
const ColumnInternalApi_1 = require("../Internal/ColumnInternalApi");
|
|
11
12
|
class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
13
|
+
constructor(adaptable) {
|
|
14
|
+
super(adaptable);
|
|
15
|
+
this.internalApi = new ColumnInternalApi_1.ColumnInternalApi(adaptable);
|
|
16
|
+
}
|
|
12
17
|
getColumns() {
|
|
13
18
|
var _a;
|
|
14
19
|
return (_a = this.adaptable.api.gridApi.getGridState().Columns) !== null && _a !== void 0 ? _a : [];
|
|
@@ -52,7 +57,8 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
52
57
|
this.adaptable.showColumn(columnId);
|
|
53
58
|
}
|
|
54
59
|
getAgGridColumnType(columnId) {
|
|
55
|
-
|
|
60
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getAgGridColumnType');
|
|
61
|
+
return this.internalApi.getAgGridColumnType(columnId);
|
|
56
62
|
}
|
|
57
63
|
isAutoRowGroupColumn(columnId) {
|
|
58
64
|
// put this here as there might be other indicators we are not aware of
|
|
@@ -66,81 +72,153 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
66
72
|
}
|
|
67
73
|
isCalculatedColumn(columnId) {
|
|
68
74
|
return (this.adaptable.api.calculatedColumnApi
|
|
69
|
-
.
|
|
75
|
+
.getCalculatedColumns()
|
|
70
76
|
.find((cc) => cc.ColumnId == columnId) != null);
|
|
71
77
|
}
|
|
72
78
|
isFreeTextColumn(columnId) {
|
|
73
79
|
return (this.adaptable.api.freeTextColumnApi
|
|
74
|
-
.
|
|
80
|
+
.getFreeTextColumns()
|
|
75
81
|
.find((cc) => cc.ColumnId == columnId) != null);
|
|
76
82
|
}
|
|
77
83
|
isActionColumn(columnId) {
|
|
78
84
|
var _a;
|
|
79
|
-
return (((_a = this.adaptable.api.actionApi.
|
|
80
|
-
null);
|
|
85
|
+
return (((_a = this.adaptable.api.actionApi.getActionColumns()) === null || _a === void 0 ? void 0 : _a.find((cc) => cc.columnId == columnId)) != null);
|
|
81
86
|
}
|
|
82
87
|
isStyledNumericColumn(column) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return
|
|
88
|
+
(0, logDeprecation_1.logDeprecationExternal)('ColumnApi', 'isStyledNumericColumn', 'StyledColumnApi',
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
'hasPercentBarStyle() or StyledColumnApi.hasGradientStyle');
|
|
91
|
+
if (!column) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return (this.getStyledColumnApi().hasPercentBarStyle(column.columnId) ||
|
|
95
|
+
this.getStyledColumnApi().hasGradientStyle(column.columnId));
|
|
96
|
+
}
|
|
97
|
+
getColumnWithColumnId(columnId, logWarning) {
|
|
98
|
+
if (columnId == undefined) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
102
|
+
if (ArrayExtensions_1.default.IsNullOrEmpty(this.getColumns())) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (this.isAutoPivotColumn(columnId)) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const foundColumn = this.getColumns().find((c) => c.columnId == columnId);
|
|
109
|
+
if (foundColumn) {
|
|
110
|
+
return foundColumn;
|
|
111
|
+
}
|
|
112
|
+
if (logWarning) {
|
|
113
|
+
this.logMissingColumnWarning(columnId);
|
|
88
114
|
}
|
|
89
|
-
return
|
|
115
|
+
return undefined;
|
|
90
116
|
}
|
|
91
117
|
isNumericColumn(column) {
|
|
118
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'isNumericColumn', 'hasNumberDataType');
|
|
119
|
+
return this.hasNumberDataType(column === null || column === void 0 ? void 0 : column.columnId);
|
|
120
|
+
}
|
|
121
|
+
hasNumberDataType(columnId) {
|
|
122
|
+
const column = this.getColumnWithColumnId(columnId);
|
|
123
|
+
if (!column) {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
92
126
|
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Number';
|
|
93
127
|
}
|
|
94
128
|
isBooleanColumn(column) {
|
|
129
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'isBooleanColumn', 'hasBooleanDataType');
|
|
130
|
+
return this.hasBooleanDataType(column === null || column === void 0 ? void 0 : column.columnId);
|
|
131
|
+
}
|
|
132
|
+
hasBooleanDataType(columnId) {
|
|
133
|
+
const column = this.getColumnWithColumnId(columnId);
|
|
134
|
+
if (!column) {
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
95
137
|
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Boolean';
|
|
96
138
|
}
|
|
139
|
+
hasArrayDataType(columnId) {
|
|
140
|
+
const column = this.getColumnWithColumnId(columnId);
|
|
141
|
+
if (!column) {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
return ((column === null || column === void 0 ? void 0 : column.dataType) == 'NumberArray' ||
|
|
145
|
+
(column === null || column === void 0 ? void 0 : column.dataType) == 'TupleNumberArray' ||
|
|
146
|
+
(column === null || column === void 0 ? void 0 : column.dataType) == 'ObjectNumberArray');
|
|
147
|
+
}
|
|
97
148
|
isDateColumn(column) {
|
|
149
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'isDateColumn', 'hasDateDataType');
|
|
150
|
+
return this.hasDateDataType(column === null || column === void 0 ? void 0 : column.columnId);
|
|
151
|
+
}
|
|
152
|
+
hasDateDataType(columnId) {
|
|
153
|
+
const column = this.getColumnWithColumnId(columnId);
|
|
154
|
+
if (!column) {
|
|
155
|
+
return false;
|
|
156
|
+
}
|
|
98
157
|
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Date';
|
|
99
158
|
}
|
|
100
159
|
getColumnDataTypeFromColumnId(columnId) {
|
|
101
|
-
|
|
160
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnDataTypeFromColumnId', 'getColumnDataTypeForColumnId');
|
|
161
|
+
return this.getColumnDataTypeForColumnId(columnId);
|
|
162
|
+
}
|
|
163
|
+
getColumnDataTypeForColumnId(columnId) {
|
|
164
|
+
const column = this.getColumnWithColumnId(columnId); // this.getColumns().find(c => c.ColumnId == columnId);
|
|
102
165
|
if (!column) {
|
|
103
166
|
return undefined;
|
|
104
167
|
}
|
|
105
168
|
return column.dataType;
|
|
106
169
|
}
|
|
107
170
|
getFriendlyNameFromColumn(columnId, column) {
|
|
171
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getFriendlyNameFromColumn');
|
|
108
172
|
if (columnId.includes(GeneralConstants.MISSING_COLUMN)) {
|
|
109
173
|
return columnId;
|
|
110
174
|
}
|
|
111
175
|
if (column) {
|
|
112
176
|
return column.friendlyName;
|
|
113
177
|
}
|
|
114
|
-
this.
|
|
178
|
+
this.logMissingColumnWarning(columnId);
|
|
115
179
|
return columnId + GeneralConstants.MISSING_COLUMN;
|
|
116
180
|
}
|
|
117
181
|
getFriendlyNameFromColumnId(columnId) {
|
|
182
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getFriendlyNameFromColumnId', 'getFriendlyNameForColumnId');
|
|
183
|
+
return this.getFriendlyNameForColumnId(columnId);
|
|
184
|
+
}
|
|
185
|
+
getFriendlyNameForColumnId(columnId) {
|
|
118
186
|
if (this.isAutoPivotColumn(columnId)) {
|
|
119
187
|
return GeneralConstants.EMPTY_STRING;
|
|
120
188
|
}
|
|
121
189
|
const foundColumn = this.getColumns().find((c) => c.columnId == columnId);
|
|
122
190
|
if (foundColumn) {
|
|
123
|
-
return
|
|
191
|
+
return foundColumn.friendlyName;
|
|
124
192
|
}
|
|
125
193
|
let result = columnId + GeneralConstants.MISSING_COLUMN;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
194
|
+
if (this.isAutoRowGroupColumn(columnId)) {
|
|
195
|
+
const currentLayout = this.adaptable.api.layoutApi.getCurrentLayout();
|
|
196
|
+
if (currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.RowGroupedColumns) {
|
|
197
|
+
result = `[Grouped column: ${currentLayout.RowGroupedColumns.join(', ')}]`;
|
|
198
|
+
}
|
|
129
199
|
}
|
|
130
|
-
this.
|
|
200
|
+
this.logMissingColumnWarning(columnId);
|
|
131
201
|
return result;
|
|
132
202
|
}
|
|
133
203
|
getFriendlyNamesFromColumnIds(columnIds) {
|
|
204
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getFriendlyNamesFromColumnIds', 'getFriendlyNamesForColumnIds');
|
|
205
|
+
return this.getFriendlyNamesForColumnIds(columnIds);
|
|
206
|
+
}
|
|
207
|
+
getFriendlyNamesForColumnIds(columnIds) {
|
|
134
208
|
const friendlyNames = [];
|
|
135
209
|
if (ArrayExtensions_1.default.IsNullOrEmpty(columnIds)) {
|
|
136
210
|
return friendlyNames;
|
|
137
211
|
}
|
|
138
212
|
columnIds.forEach((c) => {
|
|
139
|
-
friendlyNames.push(this.
|
|
213
|
+
friendlyNames.push(this.getFriendlyNameForColumnId(c));
|
|
140
214
|
});
|
|
141
215
|
return friendlyNames;
|
|
142
216
|
}
|
|
143
217
|
getColumnIdFromFriendlyName(friendlyName) {
|
|
218
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnIdFromFriendlyName', 'getColumnIdForFriendlyName');
|
|
219
|
+
return this.getColumnIdForFriendlyName(friendlyName);
|
|
220
|
+
}
|
|
221
|
+
getColumnIdForFriendlyName(friendlyName) {
|
|
144
222
|
if (friendlyName.includes(GeneralConstants.MISSING_COLUMN)) {
|
|
145
223
|
return friendlyName.replace(GeneralConstants.MISSING_COLUMN, ''); // Ids should stay "pure"
|
|
146
224
|
}
|
|
@@ -148,83 +226,80 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
148
226
|
if (foundColumn) {
|
|
149
227
|
return foundColumn.columnId;
|
|
150
228
|
}
|
|
151
|
-
this.
|
|
229
|
+
this.logMissingColumnWarning(friendlyName);
|
|
152
230
|
return friendlyName + GeneralConstants.MISSING_COLUMN;
|
|
153
231
|
}
|
|
154
232
|
getColumnIdsFromFriendlyNames(friendlyNames) {
|
|
233
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnIdsFromFriendlyNames', 'getColumnIdsForFriendlyNames');
|
|
234
|
+
return this.getColumnIdsForFriendlyNames(friendlyNames);
|
|
235
|
+
}
|
|
236
|
+
getColumnIdsForFriendlyNames(friendlyNames) {
|
|
155
237
|
const columnIds = [];
|
|
156
238
|
if (ArrayExtensions_1.default.IsNullOrEmpty(friendlyNames)) {
|
|
157
239
|
return columnIds;
|
|
158
240
|
}
|
|
159
241
|
friendlyNames.forEach((c) => {
|
|
160
|
-
columnIds.push(this.
|
|
242
|
+
columnIds.push(this.getColumnIdForFriendlyName(c));
|
|
161
243
|
});
|
|
162
244
|
return columnIds;
|
|
163
245
|
}
|
|
164
246
|
getColumnsFromFriendlyNames(friendlyNames) {
|
|
165
|
-
|
|
166
|
-
return
|
|
247
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnsFromFriendlyNames', 'getColumnsWithFriendlyNames');
|
|
248
|
+
return this.getColumnsWithFriendlyNames(friendlyNames);
|
|
249
|
+
}
|
|
250
|
+
getColumnsWithFriendlyNames(friendlyNames) {
|
|
251
|
+
return friendlyNames
|
|
252
|
+
.map((friendlyName) => this.getColumns().find((x) => x.friendlyName == friendlyName))
|
|
253
|
+
.filter(Boolean);
|
|
167
254
|
}
|
|
168
255
|
getColumnsFromIds(columnIds, logWarning = true) {
|
|
256
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnsFromIds', 'getColumnsWithColumnIds');
|
|
257
|
+
return this.getColumnsWithColumnIds(columnIds, logWarning);
|
|
258
|
+
}
|
|
259
|
+
getColumnsWithColumnIds(columnIds, logWarning = true) {
|
|
169
260
|
let returnCols = [];
|
|
170
261
|
columnIds.forEach((c) => {
|
|
171
|
-
|
|
262
|
+
const column = this.getColumnWithColumnId(c, logWarning);
|
|
263
|
+
if (column) {
|
|
264
|
+
returnCols.push(column);
|
|
265
|
+
}
|
|
172
266
|
});
|
|
173
267
|
return returnCols;
|
|
174
268
|
}
|
|
175
269
|
doesColumnExist(columnId) {
|
|
176
|
-
|
|
270
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'doesColumnExist', 'isColumnInGrid');
|
|
271
|
+
return this.isColumnInGrid(columnId);
|
|
177
272
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
183
|
-
if (ArrayExtensions_1.default.IsNullOrEmpty(this.getColumns())) {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
if (this.isAutoPivotColumn(columnId)) {
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
const foundColumn = this.getColumns().find((c) => c.columnId == columnId);
|
|
190
|
-
if (foundColumn) {
|
|
191
|
-
return foundColumn;
|
|
192
|
-
}
|
|
193
|
-
if (logWarning) {
|
|
194
|
-
this.LogMissingColumnWarning(columnId);
|
|
195
|
-
}
|
|
196
|
-
return undefined;
|
|
273
|
+
isColumnInGrid(columnId) {
|
|
274
|
+
return !!this.getColumnWithColumnId(columnId, false);
|
|
197
275
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (this.isCalculatedColumn(col.columnId)) {
|
|
202
|
-
return this.adaptable.api.calculatedColumnApi.getReferencedColumnIdsForCalculatedColumnId(col.columnId);
|
|
203
|
-
}
|
|
204
|
-
else {
|
|
205
|
-
return [col.columnId];
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return undefined;
|
|
276
|
+
getColumnFromId(columnId, logWarning = true) {
|
|
277
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnFromId', 'getColumnWithColumnId');
|
|
278
|
+
return this.getColumnWithColumnId(columnId, logWarning);
|
|
209
279
|
}
|
|
210
280
|
getAgGridColumnFieldForAdaptableColumn(colId) {
|
|
211
|
-
|
|
212
|
-
return
|
|
281
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getAgGridColumnFieldForAdaptableColumn');
|
|
282
|
+
return this.internalApi.getAgGridColumnFieldForAdaptableColumn(colId);
|
|
213
283
|
}
|
|
214
284
|
getAgGridColumnForAdaptableColumn(columnId) {
|
|
215
|
-
|
|
285
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getAgGridColumnForAdaptableColumn');
|
|
286
|
+
return this.internalApi.getAgGridColumnForAdaptableColumn(columnId);
|
|
216
287
|
}
|
|
217
288
|
getColumnFromFriendlyName(columnName, logWarning = true) {
|
|
289
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnFromFriendlyName', 'getColumnWithFriendlyName');
|
|
290
|
+
return this.getColumnWithFriendlyName(columnName, logWarning);
|
|
291
|
+
}
|
|
292
|
+
getColumnWithFriendlyName(columnFriendlyName, logWarning = true) {
|
|
218
293
|
// just return null if no columns rather than logging a warning - otherwise get lots at startup
|
|
219
294
|
if (ArrayExtensions_1.default.IsNullOrEmpty(this.getColumns())) {
|
|
220
295
|
return null;
|
|
221
296
|
}
|
|
222
|
-
const foundColumn = this.getColumns().find((c) => c.friendlyName ==
|
|
297
|
+
const foundColumn = this.getColumns().find((c) => c.friendlyName == columnFriendlyName);
|
|
223
298
|
if (foundColumn) {
|
|
224
299
|
return foundColumn;
|
|
225
300
|
}
|
|
226
301
|
if (logWarning) {
|
|
227
|
-
this.
|
|
302
|
+
this.logMissingColumnWarning(columnFriendlyName);
|
|
228
303
|
}
|
|
229
304
|
return null;
|
|
230
305
|
}
|
|
@@ -240,6 +315,10 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
240
315
|
return this.getStringColumns();
|
|
241
316
|
case 'NumberArray':
|
|
242
317
|
return this.getNumberArrayColumns();
|
|
318
|
+
case 'ObjectNumberArray':
|
|
319
|
+
return this.getObjectNumberArrayColumns();
|
|
320
|
+
case 'TupleNumberArray':
|
|
321
|
+
return this.getTupleNumberArrayColumns();
|
|
243
322
|
default:
|
|
244
323
|
return this.getColumns();
|
|
245
324
|
}
|
|
@@ -265,29 +344,39 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
265
344
|
getBooleanColumns() {
|
|
266
345
|
return this.getColumns().filter((c) => c.dataType == 'Boolean');
|
|
267
346
|
}
|
|
347
|
+
getArrayColumns() {
|
|
348
|
+
return this.getColumns().filter((c) => c.dataType == 'NumberArray' ||
|
|
349
|
+
c.dataType == 'TupleNumberArray' ||
|
|
350
|
+
c.dataType == 'ObjectNumberArray');
|
|
351
|
+
}
|
|
268
352
|
getSortableColumns() {
|
|
269
353
|
return this.getColumns().filter((c) => c.sortable);
|
|
270
354
|
}
|
|
271
|
-
|
|
355
|
+
getFilterableColumns() {
|
|
272
356
|
return this.getColumns().filter((c) => c.filterable);
|
|
273
357
|
}
|
|
358
|
+
getFiltrableColumns() {
|
|
359
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getFiltrableColumns', 'getFilterableColumns');
|
|
360
|
+
return this.getFilterableColumns();
|
|
361
|
+
}
|
|
274
362
|
getGroupableColumns() {
|
|
275
363
|
return this.getColumns().filter((c) => c.groupable);
|
|
276
364
|
}
|
|
277
365
|
getPivotableColumns() {
|
|
278
366
|
return this.getColumns().filter((c) => c.pivotable);
|
|
279
367
|
}
|
|
368
|
+
getAggregatableColumns() {
|
|
369
|
+
return this.getColumns().filter((c) => c.aggregatable && c.dataType == 'Number');
|
|
370
|
+
}
|
|
280
371
|
getAggregetableColumns() {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
.filter((c) => c.dataType == 'Number');
|
|
372
|
+
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getAggregetableColumns', 'getAggregatableColumns');
|
|
373
|
+
return this.getAggregatableColumns();
|
|
284
374
|
}
|
|
285
375
|
getQueryableColumns() {
|
|
286
376
|
return this.getColumns().filter((c) => c.queryable);
|
|
287
377
|
}
|
|
288
|
-
|
|
289
|
-
if (this.adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning
|
|
290
|
-
this.adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning === true) {
|
|
378
|
+
logMissingColumnWarning(columnId) {
|
|
379
|
+
if (this.adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning === true) {
|
|
291
380
|
if (!this.isAutoRowGroupColumn(columnId) &&
|
|
292
381
|
!this.isCalculatedColumn(columnId) &&
|
|
293
382
|
!this.isFreeTextColumn(columnId) &&
|
|
@@ -297,166 +386,66 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
297
386
|
}
|
|
298
387
|
}
|
|
299
388
|
getDistinctDisplayValuesForColumn(columnId) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
return [];
|
|
303
|
-
}
|
|
304
|
-
const returnValues = this.adaptable.getDistinctValuesForColumn(abColumn, false);
|
|
305
|
-
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
306
|
-
return cv.normalisedValue;
|
|
307
|
-
});
|
|
389
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctDisplayValuesForColumn');
|
|
390
|
+
return this.getGridApi().internalApi.getDistinctDisplayValuesForColumn(columnId);
|
|
308
391
|
}
|
|
309
392
|
async getDistinctFilterDisplayValuesForColumn(columnId, filter, showFilteredRowsOnly) {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return {
|
|
313
|
-
values: [],
|
|
314
|
-
suppressClientSideFilter: false,
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
const { gridCells, suppressClientSideFilter } = await this.adaptable.getDistinctFilterValuesForColumn(abColumn, showFilteredRowsOnly, filter);
|
|
318
|
-
return {
|
|
319
|
-
values: this.sortDistinctValues(gridCells, abColumn).map((cv) => {
|
|
320
|
-
return {
|
|
321
|
-
label: cv.displayValue,
|
|
322
|
-
value: cv.normalisedValue,
|
|
323
|
-
};
|
|
324
|
-
}),
|
|
325
|
-
suppressClientSideFilter,
|
|
326
|
-
};
|
|
393
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctFilterDisplayValuesForColumn');
|
|
394
|
+
return this.getGridApi().internalApi.getDistinctFilterDisplayValuesForColumn(columnId, filter, showFilteredRowsOnly);
|
|
327
395
|
}
|
|
328
396
|
async getDistinctCustomSortDisplayValuesForColumn(columnId) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
return [];
|
|
332
|
-
}
|
|
333
|
-
const gridCells = await this.adaptable.getDistinctCustomSortValuesForColumn(abColumn, false);
|
|
334
|
-
return this.sortDistinctValues(gridCells, abColumn).map((cv) => {
|
|
335
|
-
return cv.normalisedValue;
|
|
336
|
-
});
|
|
397
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctCustomSortDisplayValuesForColumn');
|
|
398
|
+
return this.getGridApi().internalApi.getDistinctCustomSortDisplayValuesForColumn(columnId);
|
|
337
399
|
}
|
|
338
400
|
async getDistinctBulkUpdateDisplayValuesForColumn(columnId, selectedGridCells) {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
return [];
|
|
342
|
-
}
|
|
343
|
-
const gridCells = await this.adaptable.getDistinctBulkUpdateValuesForColumn(abColumn, false, selectedGridCells);
|
|
344
|
-
return this.sortDistinctValues(gridCells, abColumn).map((cv) => {
|
|
345
|
-
return cv.normalisedValue;
|
|
346
|
-
});
|
|
401
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctBulkUpdateDisplayValuesForColumn');
|
|
402
|
+
return this.getGridApi().internalApi.getDistinctBulkUpdateDisplayValuesForColumn(columnId, selectedGridCells);
|
|
347
403
|
}
|
|
348
404
|
getDistinctVisibleDisplayValuesForColumn(columnId) {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
return [];
|
|
352
|
-
}
|
|
353
|
-
const returnValues = this.adaptable.getDistinctValuesForColumn(abColumn, true);
|
|
354
|
-
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
355
|
-
return cv.normalisedValue;
|
|
356
|
-
});
|
|
405
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctVisibleDisplayValuesForColumn');
|
|
406
|
+
return this.getGridApi().internalApi.getDistinctVisibleDisplayValuesForColumn(columnId);
|
|
357
407
|
}
|
|
358
408
|
getDistinctRawValuesForColumn(columnId, skipRowNode) {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
return [];
|
|
362
|
-
}
|
|
363
|
-
return this.sortDistinctValues(this.getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode), abColumn).map((cv) => {
|
|
364
|
-
return cv.rawValue;
|
|
365
|
-
});
|
|
409
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctRawValuesForColumn');
|
|
410
|
+
return this.getGridApi().internalApi.getDistinctRawValuesForColumn(columnId, skipRowNode);
|
|
366
411
|
}
|
|
367
412
|
getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode) {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
return [];
|
|
371
|
-
}
|
|
372
|
-
return this.adaptable.getDistinctValuesForColumn(abColumn, false, skipRowNode);
|
|
413
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getUnsortedDistinctRawValuesForColumn');
|
|
414
|
+
return this.getGridApi().internalApi.getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode);
|
|
373
415
|
}
|
|
374
416
|
getDistinctVisibleRawValuesForColumn(columnId) {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
return [];
|
|
378
|
-
}
|
|
379
|
-
const returnValues = this.adaptable.getDistinctValuesForColumn(abColumn, true);
|
|
380
|
-
return this.sortDistinctValues(returnValues, abColumn).map((cv) => {
|
|
381
|
-
return cv.rawValue;
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
sortDistinctValues(returnValues, column) {
|
|
385
|
-
// this does NOT into account Custom Sort - far too hard for now...
|
|
386
|
-
let sortOrder = Enums_1.SortOrder.Asc;
|
|
387
|
-
if (this.getFilterOptions().sortColumnValuesInFilter) {
|
|
388
|
-
let columnSort = this.adaptable.api.gridApi.getColumnSortForColumn(column.columnId);
|
|
389
|
-
if (columnSort && columnSort.SortOrder == 'Desc') {
|
|
390
|
-
sortOrder = Enums_1.SortOrder.Desc;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
if (this.isNumericColumn(column)) {
|
|
394
|
-
returnValues = ArrayExtensions_1.default.sortCellValueArrayNumeric(returnValues, sortOrder);
|
|
395
|
-
}
|
|
396
|
-
else if (this.isDateColumn(column)) {
|
|
397
|
-
returnValues = ArrayExtensions_1.default.sortCellValueArrayDates(returnValues, sortOrder);
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
returnValues = ArrayExtensions_1.default.sortCellValueArray(returnValues, sortOrder);
|
|
401
|
-
}
|
|
402
|
-
return returnValues;
|
|
417
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctVisibleRawValuesForColumn');
|
|
418
|
+
return this.getGridApi().internalApi.getDistinctVisibleRawValuesForColumn(columnId);
|
|
403
419
|
}
|
|
404
420
|
getPrimaryKeyColumn() {
|
|
405
|
-
return this.
|
|
421
|
+
return this.getColumnWithColumnId(this.adaptable.adaptableOptions.primaryKey);
|
|
406
422
|
}
|
|
407
423
|
getAllColumnFriendlyNames() {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
});
|
|
424
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getAllColumnFriendlyNames');
|
|
425
|
+
return this.internalApi.getAllColumnFriendlyNames();
|
|
411
426
|
}
|
|
412
427
|
usesAdaptableFilterForm(columnId) {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
return false;
|
|
416
|
-
}
|
|
417
|
-
if (Array.isArray(useAdaptableFilterForm) && !useAdaptableFilterForm.includes(columnId)) {
|
|
418
|
-
return false;
|
|
419
|
-
}
|
|
420
|
-
return true;
|
|
428
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'usesAdaptableFilterForm');
|
|
429
|
+
return this.internalApi.usesAdaptableFilterForm(columnId);
|
|
421
430
|
}
|
|
422
431
|
usesAdaptableQuickFilter(columnId) {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
return false;
|
|
426
|
-
}
|
|
427
|
-
if (Array.isArray(useAdaptableQuickFilter) && !useAdaptableQuickFilter.includes(columnId)) {
|
|
428
|
-
return false;
|
|
429
|
-
}
|
|
430
|
-
return true;
|
|
431
|
-
}
|
|
432
|
-
isColumnReferencedInExpression(columnId, expression) {
|
|
433
|
-
const colIds = this.adaptable.api.queryLanguageApi.getColumnsFromExpression(expression);
|
|
434
|
-
return colIds.some((c) => c === columnId);
|
|
432
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'usesAdaptableQuickFilter');
|
|
433
|
+
return this.internalApi.usesAdaptableQuickFilter(columnId);
|
|
435
434
|
}
|
|
436
435
|
isActionRowButtonColumn(columnId) {
|
|
437
436
|
return columnId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS;
|
|
438
437
|
}
|
|
439
438
|
getDefaultAggFunc(columnId) {
|
|
440
439
|
var _a, _b, _c;
|
|
441
|
-
const abColumn = this.
|
|
440
|
+
const abColumn = this.getColumnWithColumnId(columnId);
|
|
442
441
|
const availableAggregationFunctions = abColumn.availableAggregationFunctions;
|
|
443
|
-
const agColumn = (_b = (_a = this.getAgGridColumnForAdaptableColumn(columnId)) === null || _a === void 0 ? void 0 : _a.getColDef) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
442
|
+
const agColumn = (_b = (_a = this.internalApi.getAgGridColumnForAdaptableColumn(columnId)) === null || _a === void 0 ? void 0 : _a.getColDef) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
444
443
|
return (_c = agColumn === null || agColumn === void 0 ? void 0 : agColumn.defaultAggFunc) !== null && _c !== void 0 ? _c : availableAggregationFunctions[0];
|
|
445
444
|
}
|
|
446
|
-
getMinValueForNumericColumn(column) {
|
|
447
|
-
if (column.dataType !== 'Number') {
|
|
448
|
-
return undefined;
|
|
449
|
-
}
|
|
450
|
-
return this.adaptable.getMinMaxCachedValueForColumn(column, 'min');
|
|
451
|
-
}
|
|
452
|
-
getMaxValueForNumericColumn(column) {
|
|
453
|
-
if (column.dataType !== 'Number') {
|
|
454
|
-
return undefined;
|
|
455
|
-
}
|
|
456
|
-
return this.adaptable.getMinMaxCachedValueForColumn(column, 'max');
|
|
457
|
-
}
|
|
458
445
|
getTypesForColumn(columnId) {
|
|
459
446
|
var _a;
|
|
447
|
+
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getTypesForColumn');
|
|
448
|
+
// nobody uses this, we should delete it
|
|
460
449
|
const agGridColumn = this.getAgGridColumnForAdaptableColumn(columnId);
|
|
461
450
|
return (_a = agGridColumn === null || agGridColumn === void 0 ? void 0 : agGridColumn.getColDef()) === null || _a === void 0 ? void 0 : _a.type;
|
|
462
451
|
}
|
|
@@ -16,7 +16,7 @@ import { ApplicationState } from '../../PredefinedConfig/ApplicationState';
|
|
|
16
16
|
import { FreeTextColumnState } from '../../PredefinedConfig/FreeTextColumnState';
|
|
17
17
|
import { ToolPanelState } from '../../PredefinedConfig/ToolPanelState';
|
|
18
18
|
import { ConfigApi } from '../ConfigApi';
|
|
19
|
-
import {
|
|
19
|
+
import { AdaptableModule, AdaptableStateKey } from '../../PredefinedConfig/Common/Types';
|
|
20
20
|
import { AdaptableSearchState, AdaptableSortState, ScheduleState } from '../../types';
|
|
21
21
|
import { QueryState } from '../../PredefinedConfig/QueryState';
|
|
22
22
|
import { PredefinedConfig } from '../../PredefinedConfig/PredefinedConfig';
|
|
@@ -109,7 +109,7 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
109
109
|
getAdaptableSortState() {
|
|
110
110
|
const adaptableSortState = {
|
|
111
111
|
columnSorts: this.adaptable.api.gridApi.getColumnSorts(),
|
|
112
|
-
customSorts: this.adaptable.api.customSortApi.
|
|
112
|
+
customSorts: this.adaptable.api.customSortApi.getCustomSorts(),
|
|
113
113
|
};
|
|
114
114
|
return adaptableSortState;
|
|
115
115
|
}
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import { ApiBase, LayoutAssociatedObjectLoadConfig } from './ApiBase';
|
|
2
2
|
import { CustomSortApi } from '../CustomSortApi';
|
|
3
|
-
import {
|
|
3
|
+
import { CustomSort, CustomSortState } from '../../PredefinedConfig/CustomSortState';
|
|
4
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
5
|
+
import { CustomSortInternalApi } from '../Internal/CustomSortInternalApi';
|
|
4
6
|
export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi {
|
|
7
|
+
internalApi: CustomSortInternalApi;
|
|
8
|
+
constructor(adaptable: IAdaptable);
|
|
5
9
|
getCustomSortState(): CustomSortState;
|
|
6
10
|
getAllCustomSort(config?: LayoutAssociatedObjectLoadConfig): CustomSort[];
|
|
11
|
+
getCustomSorts(config?: {
|
|
12
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
13
|
+
}): CustomSort[];
|
|
7
14
|
getCustomSortById(id: CustomSort['Uuid']): CustomSort;
|
|
8
15
|
getAllActiveCustomSort(): CustomSort[];
|
|
16
|
+
getActiveCustomSorts(config?: {
|
|
17
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
18
|
+
}): CustomSort[];
|
|
9
19
|
getAllSuspendedCustomSort(): CustomSort[];
|
|
20
|
+
getSuspendedCustomSorts(config?: {
|
|
21
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
22
|
+
}): CustomSort[];
|
|
10
23
|
getCustomSortByColumn(column: string): CustomSort;
|
|
24
|
+
getCustomSortForColumn(columnId: string): CustomSort | undefined;
|
|
11
25
|
addCustomSort(customSort: CustomSort): CustomSort;
|
|
12
26
|
createCustomSort(columnId: string, values: string[]): CustomSort;
|
|
13
27
|
editCustomSort(columnId: string, values: string[]): CustomSort;
|
|
@@ -15,4 +29,5 @@ export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi
|
|
|
15
29
|
suspendCustomSort(customSort: CustomSort): CustomSort;
|
|
16
30
|
unSuspendCustomSort(customSort: CustomSort): CustomSort;
|
|
17
31
|
showCustomSortPopup(): void;
|
|
32
|
+
openCustomSortSettingsPanel(): void;
|
|
18
33
|
}
|