@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
|
@@ -5,20 +5,26 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
6
6
|
const LayoutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/LayoutRedux"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
|
-
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
9
8
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
10
9
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
10
|
+
const FilterInternalApi_1 = require("../Internal/FilterInternalApi");
|
|
11
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
11
12
|
class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
13
|
+
constructor(adaptable) {
|
|
14
|
+
super(adaptable);
|
|
15
|
+
this.internalApi = new FilterInternalApi_1.FilterInternalApi(adaptable);
|
|
16
|
+
}
|
|
12
17
|
findPredicateDefByShortcut(shortcut, column) {
|
|
13
|
-
|
|
18
|
+
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'findPredicateDefByShortcut');
|
|
19
|
+
return this.internalApi.findPredicateDefByShortcut(shortcut, column);
|
|
14
20
|
}
|
|
15
21
|
getFilterPredicateDefsForColumn(column) {
|
|
16
22
|
return this.getAdaptableApi()
|
|
17
|
-
.predicateApi.getFilterPredicateDefs()
|
|
23
|
+
.predicateApi.internalApi.getFilterPredicateDefs()
|
|
18
24
|
.filter((predicate) => this.adaptable.api.scopeApi.isColumnInScope(column, predicate.columnScope));
|
|
19
25
|
}
|
|
20
26
|
getFilterPredicateDefsForColumnId(columnId) {
|
|
21
|
-
const column = this.getAdaptableApi().columnApi.
|
|
27
|
+
const column = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
|
|
22
28
|
return column ? this.getFilterPredicateDefsForColumn(column) : undefined;
|
|
23
29
|
}
|
|
24
30
|
showQuickFilterBar() {
|
|
@@ -42,13 +48,10 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
42
48
|
getActiveColumnFilters() {
|
|
43
49
|
return this.getColumnFilters().filter((columnFilter) => !columnFilter.IsSuspended);
|
|
44
50
|
}
|
|
45
|
-
getColumnFilter(columnId) {
|
|
46
|
-
return this.getColumnFilters().find((columnFilter) => columnFilter.ColumnId == columnId);
|
|
47
|
-
}
|
|
48
51
|
getColumnFilterDefs() {
|
|
49
52
|
const filters = this.getColumnFilters();
|
|
50
53
|
return filters.map((columnFilter) => {
|
|
51
|
-
const column = this.getAdaptableApi().columnApi.
|
|
54
|
+
const column = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnFilter.ColumnId);
|
|
52
55
|
const predicate = this.getAdaptableApi().predicateApi.getPredicateDefById(columnFilter.Predicate.PredicateId);
|
|
53
56
|
return {
|
|
54
57
|
predicate,
|
|
@@ -63,6 +66,10 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
63
66
|
return (_a = layout.ColumnFilters) !== null && _a !== void 0 ? _a : [];
|
|
64
67
|
}
|
|
65
68
|
setColumnFilter(columnFilters) {
|
|
69
|
+
(0, logDeprecation_1.logDeprecation)('FilterApi', 'setColumnFilter', 'setColumnFilters');
|
|
70
|
+
return this.setColumnFilters(columnFilters);
|
|
71
|
+
}
|
|
72
|
+
setColumnFilters(columnFilters) {
|
|
66
73
|
columnFilters.forEach((columnFilter) => {
|
|
67
74
|
if (!columnFilter.Predicate) {
|
|
68
75
|
(0, LoggingHelper_1.LogAdaptableWarning)('Column Filter has no Predicate', columnFilter);
|
|
@@ -81,124 +88,65 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
81
88
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterAdd(columnFilter));
|
|
82
89
|
}
|
|
83
90
|
}
|
|
84
|
-
return columnFilters === null || columnFilters === void 0 ? void 0 : columnFilters.map((columnFilter) => this.getColumnFilterById(columnFilter.Uuid));
|
|
85
91
|
}
|
|
86
92
|
});
|
|
87
|
-
return null;
|
|
93
|
+
return columnFilters === null || columnFilters === void 0 ? void 0 : columnFilters.map((columnFilter) => this.getColumnFilterById(columnFilter.Uuid)).filter(Boolean);
|
|
88
94
|
}
|
|
89
95
|
clearColumnFilter(columnFilter) {
|
|
90
96
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterClear(columnFilter));
|
|
91
97
|
}
|
|
92
98
|
clearColumnFilterByColumns(columns) {
|
|
99
|
+
(0, logDeprecation_1.logDeprecation)('FilterApi', 'clearColumnFilterByColumns', 'clearColumnFiltersForColumns');
|
|
100
|
+
this.clearColumnFiltersForColumns(columns);
|
|
101
|
+
}
|
|
102
|
+
clearColumnFiltersForColumns(columns) {
|
|
93
103
|
columns.forEach((c) => {
|
|
94
|
-
this.
|
|
104
|
+
this.clearColumnFilterForColumn(c);
|
|
95
105
|
});
|
|
96
106
|
}
|
|
97
107
|
clearColumnFilterByColumn(column) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
columnFiltersForColumn.forEach((cf) => {
|
|
101
|
-
this.dispatchAction(LayoutRedux.LayoutColumnFilterClear(cf));
|
|
102
|
-
});
|
|
103
|
-
this.adaptable.clearColumnFiltering([column]);
|
|
104
|
-
}
|
|
108
|
+
(0, logDeprecation_1.logDeprecation)('FilterApi', 'clearColumnFilterByColumn', 'clearColumnFilterForColumn');
|
|
109
|
+
this.clearColumnFilterForColumn(column);
|
|
105
110
|
}
|
|
106
111
|
clearColumnFilters() {
|
|
107
112
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterClearAll());
|
|
108
113
|
this.adaptable.clearGridFiltering();
|
|
109
114
|
}
|
|
110
115
|
clearAndSetColumnFilter(columnFilters) {
|
|
116
|
+
(0, logDeprecation_1.logDeprecation)('FilterApi', 'clearAndSetColumnFilter', 'clearAndSetColumnFilters');
|
|
117
|
+
this.clearAndSetColumnFilters(columnFilters);
|
|
118
|
+
}
|
|
119
|
+
clearAndSetColumnFilters(columnFilters) {
|
|
111
120
|
this.clearColumnFilters();
|
|
112
|
-
|
|
113
|
-
if (this.getColumnFilters().find((cf) => cf.ColumnId == columnFilter.ColumnId)) {
|
|
114
|
-
this.dispatchAction(LayoutRedux.LayoutColumnFilterSet(columnFilter));
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
this.dispatchAction(LayoutRedux.LayoutColumnFilterAdd(columnFilter));
|
|
118
|
-
}
|
|
119
|
-
});
|
|
121
|
+
this.setColumnFilters(columnFilters);
|
|
120
122
|
}
|
|
121
123
|
getAllColumnFilterForColumn(column) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
124
|
+
(0, logDeprecation_1.logDeprecation)('FilterApi', 'getAllColumnFilterForColumn', 'getColumnFilterForColumn', 'One Column may have at most one ColumnFilter applied!');
|
|
125
|
+
return [this.getColumnFilterForColumn(column)];
|
|
126
|
+
}
|
|
127
|
+
getColumnFilter(columnId) {
|
|
128
|
+
(0, logDeprecation_1.logDeprecation)('FilterApi', 'getColumnFilter', 'getColumnFilterForColumn');
|
|
129
|
+
return this.getColumnFilterForColumn(columnId);
|
|
129
130
|
}
|
|
130
131
|
createValuesColumnFilterForCells(gridCells) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
const filter = {
|
|
135
|
-
ColumnId: gridCells[0].column.columnId,
|
|
136
|
-
Predicate: {
|
|
137
|
-
PredicateId: 'Values',
|
|
138
|
-
Inputs: [...new Set(gridCells.map((gc) => gc.displayValue))],
|
|
139
|
-
},
|
|
140
|
-
};
|
|
141
|
-
const [savedFilter] = this.setColumnFilter([filter]) || [null];
|
|
142
|
-
return savedFilter;
|
|
132
|
+
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'createValuesColumnFilterForCells');
|
|
133
|
+
return this.internalApi.createValuesColumnFilterForCells(gridCells);
|
|
143
134
|
}
|
|
144
135
|
createEqualityColumnFilterForCell(gridCell) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
const column = gridCell.column;
|
|
149
|
-
const filter = {
|
|
150
|
-
ColumnId: column.columnId,
|
|
151
|
-
Predicate: {
|
|
152
|
-
PredicateId: this.adaptable.api.predicateApi.getEqualityPredicateForDataType(column.dataType),
|
|
153
|
-
Inputs: [...new Set([gridCell.rawValue])],
|
|
154
|
-
},
|
|
155
|
-
};
|
|
156
|
-
const [savedFilter] = this.setColumnFilter([filter]) || [null];
|
|
157
|
-
return savedFilter;
|
|
136
|
+
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'createEqualityColumnFilterForCell');
|
|
137
|
+
return this.internalApi.createEqualityColumnFilterForCell(gridCell);
|
|
158
138
|
}
|
|
159
139
|
columnFilterToString(columnFilter) {
|
|
160
|
-
|
|
161
|
-
return (
|
|
162
|
-
friendlyName +
|
|
163
|
-
'] ' +
|
|
164
|
-
this.adaptable.api.predicateApi.predicateToString(columnFilter.Predicate));
|
|
140
|
+
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'columnFilterToString');
|
|
141
|
+
return this.internalApi.columnFilterToString(columnFilter);
|
|
165
142
|
}
|
|
166
143
|
columnFiltersToString(columnFilters) {
|
|
167
|
-
|
|
144
|
+
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'columnFiltersToString');
|
|
145
|
+
return this.internalApi.columnFiltersToString(columnFilters);
|
|
168
146
|
}
|
|
169
147
|
evaluateColumnFilter(columnFilter, node) {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return true;
|
|
173
|
-
}
|
|
174
|
-
const someInputsAreEmpty = (_a = columnFilter.Predicate.Inputs) === null || _a === void 0 ? void 0 : _a.some((input) => {
|
|
175
|
-
if (typeof input === 'string') {
|
|
176
|
-
return StringExtensions_1.default.IsNullOrEmpty(input);
|
|
177
|
-
}
|
|
178
|
-
if (typeof input === 'number') {
|
|
179
|
-
return isNaN(input);
|
|
180
|
-
}
|
|
181
|
-
return !input;
|
|
182
|
-
});
|
|
183
|
-
if (someInputsAreEmpty) {
|
|
184
|
-
return true;
|
|
185
|
-
}
|
|
186
|
-
const column = this.adaptable.api.columnApi.getColumnFromId(columnFilter.ColumnId);
|
|
187
|
-
if (!column) {
|
|
188
|
-
return true;
|
|
189
|
-
}
|
|
190
|
-
const gridCell = this.adaptable.api.gridApi.getGridCellFromRowNode(node, columnFilter.ColumnId);
|
|
191
|
-
if (!gridCell) {
|
|
192
|
-
return true;
|
|
193
|
-
}
|
|
194
|
-
let value = gridCell.normalisedValue;
|
|
195
|
-
return this.adaptable.api.predicateApi.handlePredicate(columnFilter.Predicate, {
|
|
196
|
-
value: value,
|
|
197
|
-
oldValue: null,
|
|
198
|
-
displayValue: gridCell.displayValue,
|
|
199
|
-
node,
|
|
200
|
-
column,
|
|
201
|
-
}, true);
|
|
148
|
+
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'evaluateColumnFilter');
|
|
149
|
+
return this.internalApi.evaluateColumnFilter(columnFilter, node);
|
|
202
150
|
}
|
|
203
151
|
getColumnFilterById(id) {
|
|
204
152
|
var _a;
|
|
@@ -218,7 +166,7 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
218
166
|
const predicateDef = this.adaptable.api.predicateApi.getPredicateDefById(filter === null || filter === void 0 ? void 0 : filter.Predicate.PredicateId);
|
|
219
167
|
if (ArrayExtensions_1.default.IsNull(predicateDef.inputs) &&
|
|
220
168
|
// values predicates have no inputs in the definition
|
|
221
|
-
!this.adaptable.api.predicateApi.hasPredicateValues(filter.Predicate)) {
|
|
169
|
+
!this.adaptable.api.predicateApi.internalApi.hasPredicateValues(filter.Predicate)) {
|
|
222
170
|
return true;
|
|
223
171
|
}
|
|
224
172
|
const inputs = filter.Predicate.Inputs;
|
|
@@ -232,70 +180,16 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
232
180
|
return allInputsHaveValues;
|
|
233
181
|
}
|
|
234
182
|
shouldNewColumnFilterTriggerGridFiltering(action) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
// - clear -> previous filters was active
|
|
238
|
-
// - clearAll -> a filter was active
|
|
239
|
-
// - edit -> same => input change
|
|
240
|
-
// - edit -> different & new is active
|
|
241
|
-
// - edit -> different & old was active
|
|
242
|
-
// - set -> new filter is active
|
|
243
|
-
// filter -> suspend changes
|
|
244
|
-
var _a, _b;
|
|
245
|
-
const isNewAndActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_ADD &&
|
|
246
|
-
this.adaptable.api.filterApi.isFilterActive(action.columnFilter);
|
|
247
|
-
const isClearAndPreviousWasActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR &&
|
|
248
|
-
this.adaptable.api.filterApi.isFilterActive(action.columnFilter);
|
|
249
|
-
const isClearAllAtLeastOneActiveFilter = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL &&
|
|
250
|
-
this.adaptable.api.filterApi
|
|
251
|
-
.getColumnFilters()
|
|
252
|
-
.some((columnFilter) => this.adaptable.api.filterApi.isFilterActive(columnFilter));
|
|
253
|
-
let isEditTrigger = false;
|
|
254
|
-
if (action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT) {
|
|
255
|
-
const newFilter = action.columnFilter;
|
|
256
|
-
const previous = this.adaptable.api.filterApi.getColumnFilter(newFilter.ColumnId);
|
|
257
|
-
// same filter edit, so always trigger
|
|
258
|
-
if (((_a = previous === null || previous === void 0 ? void 0 : previous.Predicate) === null || _a === void 0 ? void 0 : _a.PredicateId) === ((_b = newFilter === null || newFilter === void 0 ? void 0 : newFilter.Predicate) === null || _b === void 0 ? void 0 : _b.PredicateId)) {
|
|
259
|
-
isEditTrigger = true;
|
|
260
|
-
// new filter is active
|
|
261
|
-
}
|
|
262
|
-
else if (this.adaptable.api.filterApi.isFilterActive(newFilter)) {
|
|
263
|
-
isEditTrigger = true;
|
|
264
|
-
}
|
|
265
|
-
else if (this.adaptable.api.filterApi.isFilterActive(previous)) {
|
|
266
|
-
// previous filter was active
|
|
267
|
-
isEditTrigger = true;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
const isSetAndActive = action.type === LayoutRedux.LAYOUT_COLUMN_FILTER_SET &&
|
|
271
|
-
this.adaptable.api.filterApi.isFilterActive(action.columnFilter);
|
|
272
|
-
const isSuspendChanged = [
|
|
273
|
-
LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND,
|
|
274
|
-
LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND_ALL,
|
|
275
|
-
LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND,
|
|
276
|
-
LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL,
|
|
277
|
-
].includes(action.type);
|
|
278
|
-
return (isNewAndActive ||
|
|
279
|
-
isClearAndPreviousWasActive ||
|
|
280
|
-
isClearAllAtLeastOneActiveFilter ||
|
|
281
|
-
isEditTrigger ||
|
|
282
|
-
isSetAndActive ||
|
|
283
|
-
isSuspendChanged);
|
|
183
|
+
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'shouldNewColumnFilterTriggerGridFiltering');
|
|
184
|
+
return this.internalApi.shouldNewColumnFilterTriggerGridFiltering(action);
|
|
284
185
|
}
|
|
285
186
|
areColumnFiltersDifferent(oldFilters, newFilters) {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
return ArrayExtensions_1.default.areArraysNotEqual(oldFilters, newFilters);
|
|
187
|
+
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'areColumnFiltersDifferent');
|
|
188
|
+
return this.internalApi.areColumnFiltersDifferent(oldFilters, newFilters);
|
|
290
189
|
}
|
|
291
190
|
fireFilterAppliedEvent() {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
columnFilters: this.getColumnFilters(),
|
|
295
|
-
adaptableApi: this.getAdaptableApi(),
|
|
296
|
-
};
|
|
297
|
-
this.adaptable.api.eventApi.emit('FilterApplied', filterAppliedInfo);
|
|
298
|
-
}
|
|
191
|
+
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'fireFilterAppliedEvent');
|
|
192
|
+
this.internalApi.fireFilterAppliedEvent();
|
|
299
193
|
}
|
|
300
194
|
suspendColumnFilter(columnFilter) {
|
|
301
195
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterSuspend(columnFilter));
|
|
@@ -309,5 +203,15 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
309
203
|
unSuspendAllColumnFilters() {
|
|
310
204
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterUnSuspendAll());
|
|
311
205
|
}
|
|
206
|
+
getColumnFilterForColumn(columnId) {
|
|
207
|
+
return this.getColumnFilters().find((columnFilter) => columnFilter.ColumnId == columnId);
|
|
208
|
+
}
|
|
209
|
+
clearColumnFilterForColumn(columnId) {
|
|
210
|
+
let columnFilterForColumn = this.getColumnFilterForColumn(columnId);
|
|
211
|
+
if (columnFilterForColumn) {
|
|
212
|
+
this.dispatchAction(LayoutRedux.LayoutColumnFilterClear(columnFilterForColumn));
|
|
213
|
+
this.adaptable.clearColumnFiltering([columnId]);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
312
216
|
}
|
|
313
217
|
exports.FilterApiImpl = FilterApiImpl;
|
|
@@ -4,7 +4,12 @@ import { FlashingCellApi } from '../FlashingCellApi';
|
|
|
4
4
|
import { FlashingCellDefinition, FlashingCellState } from '../../PredefinedConfig/FlashingCellState';
|
|
5
5
|
import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
6
6
|
import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
|
|
7
|
+
import { FlashingCellInternalApi } from '../Internal/FlashingCellInternalApi';
|
|
8
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
9
|
+
import { AdaptableObjectLookupCriteria } from '../../types';
|
|
7
10
|
export declare class FlashingCellApiImpl extends ApiBase implements FlashingCellApi {
|
|
11
|
+
internalApi: FlashingCellInternalApi;
|
|
12
|
+
constructor(adaptable: IAdaptable);
|
|
8
13
|
getFlashingCellState(): FlashingCellState;
|
|
9
14
|
getFlashingCellDefinitions(config?: LayoutAssociatedObjectLoadConfig): FlashingCellDefinition[];
|
|
10
15
|
mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition: FlashingCellDefinition): FlashingCellDefinition;
|
|
@@ -21,5 +26,8 @@ export declare class FlashingCellApiImpl extends ApiBase implements FlashingCell
|
|
|
21
26
|
editFlashingCellDefinitions(flashingCellDefinitions: FlashingCellDefinition[]): FlashingCellDefinition[];
|
|
22
27
|
getFlashingCellPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
23
28
|
clearGridFlashing(): void;
|
|
29
|
+
clearAllFlashingCells(): void;
|
|
24
30
|
areCellsCurrentlyFlashed(): boolean;
|
|
31
|
+
isAnyFlashingCellActive(): boolean;
|
|
32
|
+
findFlashingCellDefinitions(criteria: AdaptableObjectLookupCriteria): FlashingCellDefinition[];
|
|
25
33
|
}
|
|
@@ -5,8 +5,13 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
6
6
|
const FlashingCellRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FlashingCellRedux"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
|
-
const
|
|
8
|
+
const FlashingCellInternalApi_1 = require("../Internal/FlashingCellInternalApi");
|
|
9
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
10
|
class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
+
constructor(adaptable) {
|
|
12
|
+
super(adaptable);
|
|
13
|
+
this.internalApi = new FlashingCellInternalApi_1.FlashingCellInternalApi(adaptable);
|
|
14
|
+
}
|
|
10
15
|
getFlashingCellState() {
|
|
11
16
|
return this.getAdaptableState().FlashingCell;
|
|
12
17
|
}
|
|
@@ -14,32 +19,12 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
14
19
|
var _a;
|
|
15
20
|
const flashingCellDefinitions = (_a = this.handleLayoutAssociatedObjects(this.getFlashingCellState().FlashingCellDefinitions, 'FlashingCell', config)) !== null && _a !== void 0 ? _a : [];
|
|
16
21
|
return flashingCellDefinitions.map((flashingCellDefinition) => {
|
|
17
|
-
return this.mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition);
|
|
22
|
+
return this.internalApi.mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition);
|
|
18
23
|
});
|
|
19
24
|
}
|
|
20
25
|
mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return flashingCellDefinition;
|
|
24
|
-
}
|
|
25
|
-
// deep clone it, otherwise we will mutate&share(!!) the global flashingCellOptions object
|
|
26
|
-
flashingDefaults = (0, Helper_1.cloneObject)(flashingDefaults);
|
|
27
|
-
if (!flashingCellDefinition.DownChangeStyle && flashingDefaults.defaultDownChangeStyle) {
|
|
28
|
-
flashingCellDefinition.DownChangeStyle = flashingDefaults.defaultDownChangeStyle;
|
|
29
|
-
}
|
|
30
|
-
if (!flashingCellDefinition.UpChangeStyle && flashingDefaults.defaultUpChangeStyle) {
|
|
31
|
-
flashingCellDefinition.UpChangeStyle = flashingDefaults.defaultUpChangeStyle;
|
|
32
|
-
}
|
|
33
|
-
if (!flashingCellDefinition.NeutralChangeStyle && flashingDefaults.defaultNeutralChangeStyle) {
|
|
34
|
-
flashingCellDefinition.NeutralChangeStyle = flashingDefaults.defaultNeutralChangeStyle;
|
|
35
|
-
}
|
|
36
|
-
if (!flashingCellDefinition.FlashDuration && flashingDefaults.defaultFlashDuration) {
|
|
37
|
-
flashingCellDefinition.FlashDuration = flashingDefaults.defaultFlashDuration;
|
|
38
|
-
}
|
|
39
|
-
if (!flashingCellDefinition.FlashTarget && flashingDefaults.defaultFlashTarget) {
|
|
40
|
-
flashingCellDefinition.FlashTarget = flashingDefaults.defaultFlashTarget;
|
|
41
|
-
}
|
|
42
|
-
return flashingCellDefinition;
|
|
26
|
+
(0, logDeprecation_1.logDeprecationInternal)('FlashingCellApi', 'mergeFlashingCellDefinitionWithDefaults');
|
|
27
|
+
return this.internalApi.mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition);
|
|
43
28
|
}
|
|
44
29
|
getFlashingCellDefinitionById(id) {
|
|
45
30
|
var _a;
|
|
@@ -105,16 +90,28 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
105
90
|
}
|
|
106
91
|
getFlashingCellPredicateDefsForScope(scope) {
|
|
107
92
|
return this.getAdaptableApi()
|
|
108
|
-
.predicateApi.getFlashingCellPredicateDefs()
|
|
93
|
+
.predicateApi.internalApi.getFlashingCellPredicateDefs()
|
|
109
94
|
.filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
110
95
|
}
|
|
111
96
|
clearGridFlashing() {
|
|
112
|
-
|
|
97
|
+
(0, logDeprecation_1.logDeprecation)('FlashingCellApi', 'clearGridFlashing', 'clearAllFlashingCells');
|
|
98
|
+
this.clearAllFlashingCells();
|
|
99
|
+
}
|
|
100
|
+
clearAllFlashingCells() {
|
|
113
101
|
this.dispatchAction(SystemRedux.SystemFlashingCellDeleteAll());
|
|
114
102
|
}
|
|
115
103
|
areCellsCurrentlyFlashed() {
|
|
104
|
+
(0, logDeprecation_1.logDeprecation)('FlashingCellApi', 'areCellsCurrentlyFlashed', 'isAnyFlashingCellActive');
|
|
105
|
+
return this.isAnyFlashingCellActive();
|
|
106
|
+
}
|
|
107
|
+
isAnyFlashingCellActive() {
|
|
116
108
|
const currentFlashingCells = this.getAdaptableState().System.AdaptableFlashingCells;
|
|
117
109
|
return currentFlashingCells.keys != null;
|
|
118
110
|
}
|
|
111
|
+
findFlashingCellDefinitions(criteria) {
|
|
112
|
+
return this.getAdaptableApi().internalApi.findAdaptableObjectsByLookupCriteria(criteria, this.getFlashingCellDefinitions({
|
|
113
|
+
includeLayoutNotAssociatedObjects: true,
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
119
116
|
}
|
|
120
117
|
exports.FlashingCellApiImpl = FlashingCellApiImpl;
|
|
@@ -4,14 +4,27 @@ import { FormatColumnApi } from '../FormatColumnApi';
|
|
|
4
4
|
import { FormatColumn, FormatColumnState } from '../../PredefinedConfig/FormatColumnState';
|
|
5
5
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
6
6
|
import { RowNode } from '@ag-grid-community/core';
|
|
7
|
-
import {
|
|
8
|
-
import { AdaptablePredicateDef, AdaptableScope } from '../../../types';
|
|
7
|
+
import { StringFormatterOptions } from '../../types';
|
|
8
|
+
import { AdaptableObjectLookupCriteria, AdaptablePredicateDef, AdaptableScope, DateFormatterOptions, NumberFormatterOptions } from '../../../types';
|
|
9
|
+
import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
|
|
10
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
9
11
|
export declare class FormatColumnApiImpl extends ApiBase implements FormatColumnApi {
|
|
12
|
+
internalApi: FormatColumnInternalApi;
|
|
13
|
+
constructor(adaptable: IAdaptable);
|
|
10
14
|
getFormatColumnState(): FormatColumnState;
|
|
11
15
|
getAllFormatColumn(config?: LayoutAssociatedObjectLoadConfig): FormatColumn[];
|
|
16
|
+
getFormatColumns(config?: {
|
|
17
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
18
|
+
}): FormatColumn[];
|
|
12
19
|
getFormatColumnById(id: FormatColumn['Uuid']): FormatColumn;
|
|
13
20
|
getAllActiveFormatColumn(): FormatColumn[];
|
|
21
|
+
getActiveFormatColumns(config?: {
|
|
22
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
23
|
+
}): FormatColumn[];
|
|
14
24
|
getAllSuspendedFormatColumn(): FormatColumn[];
|
|
25
|
+
getSuspendedFormatColumns(config?: {
|
|
26
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
27
|
+
}): FormatColumn[];
|
|
15
28
|
getAllFormatColumnWithStyle(): FormatColumn[];
|
|
16
29
|
getAllFormatColumnWithStyleAndCellAlignment(): FormatColumn[];
|
|
17
30
|
getAllFormatColumnWithDisplayFormat(): FormatColumn[];
|
|
@@ -22,10 +35,8 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
22
35
|
addFormatColumnStyle(formatColumn: FormatColumn, style: AdaptableStyle): void;
|
|
23
36
|
updateFormatColumnStyle(formatColumn: FormatColumn, style: AdaptableStyle): void;
|
|
24
37
|
deleteFormatColumn(formatColumn: FormatColumn): void;
|
|
25
|
-
deleteAllFormatColumn(): void;
|
|
26
38
|
suspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
27
39
|
unSuspendFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
28
|
-
applyFormatColumnDisplayFormats(): void;
|
|
29
40
|
getFormatColumnsForColumn(column: AdaptableColumn, config?: {
|
|
30
41
|
includeSuspended?: boolean;
|
|
31
42
|
}): FormatColumn[];
|
|
@@ -41,18 +52,14 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
41
52
|
getFormatColumnsWithDisplayFormatForColumn(column: AdaptableColumn, config?: {
|
|
42
53
|
includeSuspended?: boolean;
|
|
43
54
|
}): FormatColumn[];
|
|
44
|
-
getFormatColumnWithSingleColumnScope(columnId: string): FormatColumn | undefined;
|
|
45
|
-
private getFormatColumnInColumnScope;
|
|
46
|
-
private getFormatColumnWithColumnInScope;
|
|
47
|
-
hasStyleFormatColumns(): boolean;
|
|
48
55
|
showFormatColumnPopup(): void;
|
|
56
|
+
openFormatColumnSettingsPanel(): void;
|
|
49
57
|
getFormatColumnsWithAllScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
50
58
|
getFormatColumnsWithDataTypeScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
51
59
|
getFormatColumnsWithColumnScope(formatColumns: FormatColumn[]): FormatColumn[] | undefined;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: AdaptableFormat['Options']): string;
|
|
60
|
+
getNumberFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: NumberFormatterOptions): string;
|
|
61
|
+
getStringFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: StringFormatterOptions): string;
|
|
62
|
+
getDateFormattedValue(value: any, node: RowNode, abColumn: AdaptableColumn, options: DateFormatterOptions): string;
|
|
56
63
|
hasCustomDisplayFormatter(formatColumn: FormatColumn): boolean;
|
|
57
64
|
getFormatColumnDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
58
65
|
getFormatColumnsRelevantForColumn(formatColumns: FormatColumn[], column: AdaptableColumn, params: {
|
|
@@ -63,10 +70,8 @@ export declare class FormatColumnApiImpl extends ApiBase implements FormatColumn
|
|
|
63
70
|
node: RowNode;
|
|
64
71
|
value: any;
|
|
65
72
|
}): boolean;
|
|
66
|
-
private evaluatePredicate;
|
|
67
|
-
private shouldRunStyle;
|
|
68
|
-
private evaluateExpression;
|
|
69
73
|
getFormatColumnsWithExpression(): FormatColumn[] | undefined;
|
|
70
74
|
incrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
71
75
|
decrementFormatColumnPrecedence(formatColumn: FormatColumn): void;
|
|
76
|
+
findFormatColumns(criteria: AdaptableObjectLookupCriteria): FormatColumn[];
|
|
72
77
|
}
|