@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,39 +5,56 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const FormatColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FormatColumnRedux"));
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const FormatHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/FormatHelper"));
|
|
11
|
-
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
12
|
-
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
8
|
+
const FormatColumnInternalApi_1 = require("../Internal/FormatColumnInternalApi");
|
|
9
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
13
10
|
class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
+
constructor(adaptable) {
|
|
12
|
+
super(adaptable);
|
|
13
|
+
this.internalApi = new FormatColumnInternalApi_1.FormatColumnInternalApi(adaptable);
|
|
14
|
+
}
|
|
14
15
|
getFormatColumnState() {
|
|
15
16
|
return this.getAdaptableState().FormatColumn;
|
|
16
17
|
}
|
|
17
18
|
getAllFormatColumn(config) {
|
|
19
|
+
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllFormatColumn', 'getFormatColumns');
|
|
20
|
+
return this.getFormatColumns(config);
|
|
21
|
+
}
|
|
22
|
+
getFormatColumns(config) {
|
|
18
23
|
var _a;
|
|
19
24
|
return ((_a = this.handleLayoutAssociatedObjects(this.getFormatColumnState().FormatColumns, 'FormatColumn', config)) !== null && _a !== void 0 ? _a : []);
|
|
20
25
|
}
|
|
21
26
|
getFormatColumnById(id) {
|
|
22
|
-
return this.
|
|
27
|
+
return this.getFormatColumns({ includeLayoutNotAssociatedObjects: true }).find((formatColumn) => formatColumn.Uuid === id);
|
|
23
28
|
}
|
|
24
29
|
getAllActiveFormatColumn() {
|
|
25
|
-
|
|
30
|
+
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllActiveFormatColumn', 'getActiveFormatColumns');
|
|
31
|
+
return this.getActiveFormatColumns({ includeLayoutNotAssociatedObjects: true });
|
|
32
|
+
}
|
|
33
|
+
getActiveFormatColumns(config) {
|
|
34
|
+
return this.getFormatColumns(config).filter((formatColumn) => !formatColumn.IsSuspended);
|
|
26
35
|
}
|
|
27
36
|
getAllSuspendedFormatColumn() {
|
|
28
|
-
|
|
37
|
+
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllSuspendedFormatColumn', 'getSuspendedFormatColumns');
|
|
38
|
+
return this.getSuspendedFormatColumns({ includeLayoutNotAssociatedObjects: true });
|
|
39
|
+
}
|
|
40
|
+
getSuspendedFormatColumns(config) {
|
|
41
|
+
return this.getFormatColumns(config).filter((formatColumn) => formatColumn.IsSuspended);
|
|
29
42
|
}
|
|
30
43
|
getAllFormatColumnWithStyle() {
|
|
31
|
-
|
|
44
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithStyle');
|
|
45
|
+
return this.internalApi.getAllFormatColumnWithStyle();
|
|
32
46
|
}
|
|
33
47
|
getAllFormatColumnWithStyleAndCellAlignment() {
|
|
34
|
-
|
|
48
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithStyleAndCellAlignment');
|
|
49
|
+
return this.internalApi.getAllFormatColumnWithStyleAndCellAlignment();
|
|
35
50
|
}
|
|
36
51
|
getAllFormatColumnWithDisplayFormat() {
|
|
37
|
-
|
|
52
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithDisplayFormat');
|
|
53
|
+
return this.internalApi.getAllFormatColumnWithDisplayFormat();
|
|
38
54
|
}
|
|
39
55
|
getAllFormatColumnWithCellAlignment() {
|
|
40
|
-
|
|
56
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithCellAlignment');
|
|
57
|
+
return this.internalApi.getAllFormatColumnWithCellAlignment();
|
|
41
58
|
}
|
|
42
59
|
addFormatColumn(formatColumn) {
|
|
43
60
|
this.addUidToAdaptableObject(formatColumn);
|
|
@@ -65,11 +82,6 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
65
82
|
deleteFormatColumn(formatColumn) {
|
|
66
83
|
this.dispatchAction(FormatColumnRedux.FormatColumnDelete(formatColumn));
|
|
67
84
|
}
|
|
68
|
-
deleteAllFormatColumn() {
|
|
69
|
-
this.getAllFormatColumn().forEach((fc) => {
|
|
70
|
-
this.deleteFormatColumn(fc);
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
85
|
suspendFormatColumn(formatColumn) {
|
|
74
86
|
this.dispatchAction(FormatColumnRedux.FormatColumnSuspend(formatColumn));
|
|
75
87
|
return this.getFormatColumnById(formatColumn.Uuid);
|
|
@@ -78,68 +90,34 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
78
90
|
this.dispatchAction(FormatColumnRedux.FormatColumnUnSuspend(formatColumn));
|
|
79
91
|
return this.getFormatColumnById(formatColumn.Uuid);
|
|
80
92
|
}
|
|
81
|
-
applyFormatColumnDisplayFormats() {
|
|
82
|
-
throw 'This API method is deprecated - it is not needed anymore.';
|
|
83
|
-
}
|
|
84
93
|
getFormatColumnsForColumn(column, config) {
|
|
85
|
-
const formatColumns = this.
|
|
86
|
-
return this.getFormatColumnWithColumnInScope(formatColumns, column);
|
|
94
|
+
const formatColumns = this.getFormatColumns().filter((formatColumn) => (config === null || config === void 0 ? void 0 : config.includeSuspended) || !formatColumn.IsSuspended);
|
|
95
|
+
return this.internalApi.getFormatColumnWithColumnInScope(formatColumns, column);
|
|
87
96
|
}
|
|
88
97
|
getFormatColumnsWithStyleForColumn(column, config) {
|
|
89
|
-
|
|
90
|
-
return this.
|
|
98
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithStyleForColumn');
|
|
99
|
+
return this.internalApi.getFormatColumnsWithStyleForColumn(column, config);
|
|
91
100
|
}
|
|
92
101
|
getFormatColumnsForColumnId(columnId, config) {
|
|
93
|
-
const abColumn = this.adaptable.api.columnApi.
|
|
102
|
+
const abColumn = this.adaptable.api.columnApi.getColumnWithColumnId(columnId);
|
|
94
103
|
if (!abColumn) {
|
|
95
|
-
return
|
|
104
|
+
return [];
|
|
96
105
|
}
|
|
97
106
|
return this.getFormatColumnsForColumn(abColumn, config);
|
|
98
107
|
}
|
|
99
108
|
getFormatColumnWithStyleClassNameForColumn(column, config) {
|
|
100
|
-
|
|
109
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnWithStyleClassNameForColumn');
|
|
110
|
+
return this.internalApi.getFormatColumnWithStyleClassNameForColumn(column, config);
|
|
101
111
|
}
|
|
102
112
|
getFormatColumnsWithDisplayFormatForColumn(column, config) {
|
|
103
|
-
|
|
104
|
-
return this.
|
|
105
|
-
}
|
|
106
|
-
getFormatColumnWithSingleColumnScope(columnId) {
|
|
107
|
-
const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
|
|
108
|
-
if (!abColumn) {
|
|
109
|
-
return undefined;
|
|
110
|
-
}
|
|
111
|
-
const formatColumnsWithColumnScope = this.getFormatColumnsWithColumnScope(this.getAllFormatColumn());
|
|
112
|
-
let returnFormatColumn = undefined;
|
|
113
|
-
formatColumnsWithColumnScope.forEach((fc) => {
|
|
114
|
-
if (returnFormatColumn == undefined) {
|
|
115
|
-
if (this.adaptable.api.scopeApi.isSingleColumnScope(fc.Scope) &&
|
|
116
|
-
this.adaptable.api.scopeApi.isColumnInScope(abColumn, fc.Scope)) {
|
|
117
|
-
returnFormatColumn = fc;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
return returnFormatColumn;
|
|
122
|
-
}
|
|
123
|
-
// TODO is this really needed, I don't think it achieves anything
|
|
124
|
-
getFormatColumnInColumnScope(formatColumns) {
|
|
125
|
-
// we need to maintain the format columns order, therefore we will extract all 3 scope types in a single iteration
|
|
126
|
-
return formatColumns.filter((fc) => {
|
|
127
|
-
return (
|
|
128
|
-
// this.getFormatColumnsWithColumnScope(formatColumns)
|
|
129
|
-
this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope) ||
|
|
130
|
-
// this.getFormatColumnsWithDataTypeScope(formatColumns)
|
|
131
|
-
this.adaptable.api.scopeApi.scopeHasDataType(fc.Scope) ||
|
|
132
|
-
// this.getFormatColumnsWithAllScope(formatColumns)
|
|
133
|
-
this.adaptable.api.scopeApi.scopeIsAll(fc.Scope));
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
getFormatColumnWithColumnInScope(formatColumns, column) {
|
|
137
|
-
return this.getFormatColumnInColumnScope(formatColumns).filter((scopedFormatColumn) => this.adaptable.api.scopeApi.isColumnInScope(column, scopedFormatColumn.Scope));
|
|
138
|
-
}
|
|
139
|
-
hasStyleFormatColumns() {
|
|
140
|
-
return ArrayExtensions_1.default.IsNotNullOrEmpty(this.getAllFormatColumnWithStyle());
|
|
113
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithDisplayFormatForColumn');
|
|
114
|
+
return this.internalApi.getFormatColumnsWithDisplayFormatForColumn(column, config);
|
|
141
115
|
}
|
|
142
116
|
showFormatColumnPopup() {
|
|
117
|
+
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'showFormatColumnPopup', 'openFormatColumnSettingsPanel');
|
|
118
|
+
this.openFormatColumnSettingsPanel();
|
|
119
|
+
}
|
|
120
|
+
openFormatColumnSettingsPanel() {
|
|
143
121
|
this.showModulePopup(ModuleConstants.FormatColumnModuleId);
|
|
144
122
|
}
|
|
145
123
|
getFormatColumnsWithAllScope(formatColumns) {
|
|
@@ -151,45 +129,17 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
151
129
|
getFormatColumnsWithColumnScope(formatColumns) {
|
|
152
130
|
return formatColumns.filter((fc) => this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope));
|
|
153
131
|
}
|
|
154
|
-
applyCustomFormatters(value, node, abColumn, options) {
|
|
155
|
-
var _a, _b, _c;
|
|
156
|
-
const columnCustomFormatters = (_a = options === null || options === void 0 ? void 0 : options.CustomDisplayFormats) !== null && _a !== void 0 ? _a : [];
|
|
157
|
-
if (!(columnCustomFormatters === null || columnCustomFormatters === void 0 ? void 0 : columnCustomFormatters.length)) {
|
|
158
|
-
return value;
|
|
159
|
-
}
|
|
160
|
-
const adaptableOptions = this.adaptable.adaptableOptions;
|
|
161
|
-
const customFormattersFromOptions = (_c = (_b = adaptableOptions === null || adaptableOptions === void 0 ? void 0 : adaptableOptions.userInterfaceOptions) === null || _b === void 0 ? void 0 : _b.customDisplayFormatters) !== null && _c !== void 0 ? _c : [];
|
|
162
|
-
// formatters are applied in the order they are defined in the options
|
|
163
|
-
const customFormatters = customFormattersFromOptions.filter((customFormatterOption) => columnCustomFormatters.includes(customFormatterOption.id));
|
|
164
|
-
const customDisplayFormatterContext = ObjectFactory_1.default.CreateCustomDisplayFormatterContext(value, node, abColumn, this.getAdaptableApi());
|
|
165
|
-
return customFormatters.reduce((context, formatter) => {
|
|
166
|
-
if (formatter && formatter.handler) {
|
|
167
|
-
return formatter.handler(context);
|
|
168
|
-
}
|
|
169
|
-
return context.cellValue;
|
|
170
|
-
}, customDisplayFormatterContext);
|
|
171
|
-
}
|
|
172
132
|
getNumberFormattedValue(value, node, abColumn, options) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
const preparedValue = this.applyCustomFormatters(value, node, abColumn, options);
|
|
177
|
-
return FormatHelper_1.default.NumberFormatter(preparedValue, options);
|
|
133
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getNumberFormattedValue');
|
|
134
|
+
return this.internalApi.getNumberFormattedValue(value, node, abColumn, options);
|
|
178
135
|
}
|
|
179
136
|
getStringFormattedValue(value, node, abColumn, options) {
|
|
180
|
-
|
|
181
|
-
return
|
|
137
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getStringFormattedValue');
|
|
138
|
+
return this.internalApi.getStringFormattedValue(value, node, abColumn, options);
|
|
182
139
|
}
|
|
183
140
|
getDateFormattedValue(value, node, abColumn, options) {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
const preparedValue = this.applyCustomFormatters(value, node, abColumn, options);
|
|
188
|
-
const dateFormatterOptions = options;
|
|
189
|
-
// only use DateFormatter if we have a pattern
|
|
190
|
-
return dateFormatterOptions.Pattern
|
|
191
|
-
? FormatHelper_1.default.DateFormatter(preparedValue, options)
|
|
192
|
-
: preparedValue;
|
|
141
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getDateFormattedValue');
|
|
142
|
+
return this.internalApi.getDateFormattedValue(value, node, abColumn, options);
|
|
193
143
|
}
|
|
194
144
|
hasCustomDisplayFormatter(formatColumn) {
|
|
195
145
|
var _a;
|
|
@@ -204,66 +154,20 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
204
154
|
return true;
|
|
205
155
|
}
|
|
206
156
|
getFormatColumnDefsForScope(scope) {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
.filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
157
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnDefsForScope');
|
|
158
|
+
return this.internalApi.getFormatColumnDefsForScope(scope);
|
|
210
159
|
}
|
|
211
160
|
getFormatColumnsRelevantForColumn(formatColumns, column, params) {
|
|
212
|
-
|
|
161
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsRelevantForColumn');
|
|
162
|
+
return this.internalApi.getFormatColumnsRelevantForColumn(formatColumns, column, params);
|
|
213
163
|
}
|
|
214
164
|
isFormatColumnRelevantForColumn(formatColumn, column, params) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
return false;
|
|
218
|
-
}
|
|
219
|
-
if (!formatColumn.IncludeGroupedRows &&
|
|
220
|
-
this.adaptable.api.gridApi.isGroupRowNode(params.node)) {
|
|
221
|
-
return false;
|
|
222
|
-
}
|
|
223
|
-
if (!formatColumn.Rule) {
|
|
224
|
-
return true;
|
|
225
|
-
}
|
|
226
|
-
// first run the predicate
|
|
227
|
-
if (formatColumn.Rule.Predicate && formatColumn.Rule.Predicate.PredicateId) {
|
|
228
|
-
return this.evaluatePredicate({
|
|
229
|
-
formatColumn,
|
|
230
|
-
column,
|
|
231
|
-
value: params.value,
|
|
232
|
-
node: params.node,
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
else if (formatColumn.Rule.BooleanExpression) {
|
|
236
|
-
return this.evaluateExpression(formatColumn, params.node);
|
|
237
|
-
}
|
|
238
|
-
// nothing has passed then return false
|
|
239
|
-
return false;
|
|
240
|
-
}
|
|
241
|
-
evaluatePredicate({ formatColumn, column, value, node, }) {
|
|
242
|
-
const params = {
|
|
243
|
-
value: value,
|
|
244
|
-
oldValue: null,
|
|
245
|
-
displayValue: value,
|
|
246
|
-
node: node,
|
|
247
|
-
column: column,
|
|
248
|
-
};
|
|
249
|
-
const result = this.adaptable.api.predicateApi.handlePredicate(formatColumn.Rule.Predicate, params, false);
|
|
250
|
-
return result;
|
|
251
|
-
}
|
|
252
|
-
shouldRunStyle(formatColumn, node) {
|
|
253
|
-
if (!formatColumn.IncludeGroupedRows && this.adaptable.api.gridApi.isGroupRowNode(node)) {
|
|
254
|
-
return false;
|
|
255
|
-
}
|
|
256
|
-
return true;
|
|
257
|
-
}
|
|
258
|
-
evaluateExpression(formatColumn, node) {
|
|
259
|
-
const isValidExpression = this.adaptable.api.queryLanguageApi.isValidBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, `Invalid format column rule '${formatColumn.Rule.BooleanExpression}'`);
|
|
260
|
-
return (isValidExpression &&
|
|
261
|
-
this.adaptable.api.internalApi
|
|
262
|
-
.getQueryLanguageService()
|
|
263
|
-
.evaluateBooleanExpression(formatColumn.Rule.BooleanExpression, ModuleConstants.FormatColumnModuleId, node));
|
|
165
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'isFormatColumnRelevantForColumn');
|
|
166
|
+
return this.internalApi.isFormatColumnRelevantForColumn(formatColumn, column, params);
|
|
264
167
|
}
|
|
265
168
|
getFormatColumnsWithExpression() {
|
|
266
|
-
|
|
169
|
+
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithExpression');
|
|
170
|
+
return this.internalApi.getFormatColumnsWithExpression();
|
|
267
171
|
}
|
|
268
172
|
incrementFormatColumnPrecedence(formatColumn) {
|
|
269
173
|
this.dispatchAction(FormatColumnRedux.FormatColumnMoveUp(formatColumn));
|
|
@@ -271,5 +175,10 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
271
175
|
decrementFormatColumnPrecedence(formatColumn) {
|
|
272
176
|
this.dispatchAction(FormatColumnRedux.FormatColumnMoveDown(formatColumn));
|
|
273
177
|
}
|
|
178
|
+
findFormatColumns(criteria) {
|
|
179
|
+
return this.getAdaptableApi().internalApi.findAdaptableObjectsByLookupCriteria(criteria, this.getFormatColumns({
|
|
180
|
+
includeLayoutNotAssociatedObjects: true,
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
274
183
|
}
|
|
275
184
|
exports.FormatColumnApiImpl = FormatColumnApiImpl;
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { FreeTextColumnApi } from '../FreeTextColumnApi';
|
|
3
|
-
import {
|
|
3
|
+
import { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue } from '../../PredefinedConfig/FreeTextColumnState';
|
|
4
4
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
5
5
|
import { RowNode } from '@ag-grid-community/core';
|
|
6
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
7
|
+
import { FreeTextColumnInternalApi } from '../Internal/FreeTextColumnInternalApi';
|
|
6
8
|
export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextColumnApi {
|
|
9
|
+
internalApi: FreeTextColumnInternalApi;
|
|
10
|
+
constructor(adaptable: IAdaptable);
|
|
7
11
|
getFreeTextColumnState(): FreeTextColumnState;
|
|
8
12
|
getAllFreeTextColumn(): FreeTextColumn[];
|
|
9
|
-
|
|
13
|
+
getFreeTextColumns(): FreeTextColumn[];
|
|
14
|
+
getFreeTextColumnById(technicalId: FreeTextColumn['Uuid']): FreeTextColumn | undefined;
|
|
15
|
+
getFreeTextColumnForColumnId(columnId: string): FreeTextColumn | undefined;
|
|
10
16
|
addFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
|
|
11
|
-
editFreeTextColumn(freeTextColumn:
|
|
12
|
-
ColumnId: string;
|
|
13
|
-
}): FreeTextColumn;
|
|
17
|
+
editFreeTextColumn(freeTextColumn: FreeTextColumn): FreeTextColumn;
|
|
14
18
|
addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
|
|
19
|
+
setStoredValue(columnId: string, storedValue: FreeTextStoredValue): FreeTextColumn;
|
|
15
20
|
addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
21
|
+
setStoredValues(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
|
|
16
22
|
deleteFreeTextColumn(columnId: string): void;
|
|
17
23
|
showFreeTextColumnPopup(): void;
|
|
24
|
+
openFreeTextColumnSettingsPanel(): void;
|
|
18
25
|
getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
|
|
26
|
+
getFreeTextColumnValueForRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
|
|
19
27
|
checkFreeTextColumnForDataChange(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
20
28
|
getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
|
|
21
29
|
}
|
|
@@ -7,16 +7,29 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
9
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
10
|
+
const FreeTextColumnInternalApi_1 = require("../Internal/FreeTextColumnInternalApi");
|
|
11
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
10
12
|
class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
13
|
+
constructor(adaptable) {
|
|
14
|
+
super(adaptable);
|
|
15
|
+
this.internalApi = new FreeTextColumnInternalApi_1.FreeTextColumnInternalApi(adaptable);
|
|
16
|
+
}
|
|
11
17
|
getFreeTextColumnState() {
|
|
12
18
|
return this.getAdaptableState().FreeTextColumn;
|
|
13
19
|
}
|
|
14
20
|
getAllFreeTextColumn() {
|
|
21
|
+
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'getAllFreeTextColumn', 'getFreeTextColumns');
|
|
22
|
+
return this.getFreeTextColumns();
|
|
23
|
+
}
|
|
24
|
+
getFreeTextColumns() {
|
|
15
25
|
var _a;
|
|
16
26
|
return (_a = this.getFreeTextColumnState().FreeTextColumns) !== null && _a !== void 0 ? _a : [];
|
|
17
27
|
}
|
|
18
|
-
getFreeTextColumnById(
|
|
19
|
-
return this.
|
|
28
|
+
getFreeTextColumnById(technicalId) {
|
|
29
|
+
return this.getFreeTextColumns().find((ftc) => ftc.Uuid === technicalId);
|
|
30
|
+
}
|
|
31
|
+
getFreeTextColumnForColumnId(columnId) {
|
|
32
|
+
return this.getFreeTextColumns().find((ftc) => ftc.ColumnId === columnId);
|
|
20
33
|
}
|
|
21
34
|
addFreeTextColumn(freeTextColumn) {
|
|
22
35
|
this.addUidToAdaptableObject(freeTextColumn);
|
|
@@ -28,11 +41,24 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
28
41
|
return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
|
|
29
42
|
}
|
|
30
43
|
addEditFreeTextColumnStoredValue(freeTextColumn, storedValue) {
|
|
44
|
+
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'addEditFreeTextColumnStoredValue', 'setStoredValue');
|
|
45
|
+
return this.setStoredValue(freeTextColumn.ColumnId, storedValue);
|
|
46
|
+
}
|
|
47
|
+
setStoredValue(columnId, storedValue) {
|
|
48
|
+
const freeTextColumn = this.getFreeTextColumnForColumnId(columnId);
|
|
49
|
+
if (!freeTextColumn) {
|
|
50
|
+
(0, LoggingHelper_1.LogAdaptableWarning)(`No FreeTextColumn with columnId=${columnId} was found!`);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
31
53
|
this.dispatchAction(FreeTextColumnRedux.FreeTextColumnAddEditStoredValue(freeTextColumn, storedValue));
|
|
32
54
|
return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
|
|
33
55
|
}
|
|
34
56
|
addStoredValuesToFreeTextColumn(columnId, storedValues, replaceAction) {
|
|
35
|
-
|
|
57
|
+
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'addStoredValuesToFreeTextColumn', 'setStoredValues');
|
|
58
|
+
this.setStoredValues(columnId, storedValues, replaceAction);
|
|
59
|
+
}
|
|
60
|
+
setStoredValues(columnId, storedValues, replaceAction) {
|
|
61
|
+
const freeTextColumn = this.getFreeTextColumnForColumnId(columnId);
|
|
36
62
|
if (freeTextColumn) {
|
|
37
63
|
if (replaceAction == 'All') {
|
|
38
64
|
freeTextColumn.FreeTextStoredValues = storedValues;
|
|
@@ -67,15 +93,23 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
67
93
|
}
|
|
68
94
|
}
|
|
69
95
|
deleteFreeTextColumn(columnId) {
|
|
70
|
-
let freeTextColumn = this.
|
|
96
|
+
let freeTextColumn = this.getFreeTextColumns().find((ftc) => ftc.ColumnId == columnId);
|
|
71
97
|
if (this.checkItemExists(freeTextColumn, columnId, ModuleConstants.FreeTextColumnModuleId)) {
|
|
72
98
|
this.dispatchAction(FreeTextColumnRedux.FreeTextColumnDelete(freeTextColumn));
|
|
73
99
|
}
|
|
74
100
|
}
|
|
75
101
|
showFreeTextColumnPopup() {
|
|
102
|
+
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'showFreeTextColumnPopup', 'openFreeTextColumnSettingsPanel');
|
|
103
|
+
this.openFreeTextColumnSettingsPanel();
|
|
104
|
+
}
|
|
105
|
+
openFreeTextColumnSettingsPanel() {
|
|
76
106
|
this.showModulePopup(ModuleConstants.FreeTextColumnModuleId);
|
|
77
107
|
}
|
|
78
108
|
getFreeTextColumnValueFromRowNode(freeTextColumn, rowNode) {
|
|
109
|
+
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'getFreeTextColumnValueFromRowNode', 'getFreeTextColumnValueForRowNode');
|
|
110
|
+
return this.getFreeTextColumnValueForRowNode(freeTextColumn, rowNode);
|
|
111
|
+
}
|
|
112
|
+
getFreeTextColumnValueForRowNode(freeTextColumn, rowNode) {
|
|
79
113
|
try {
|
|
80
114
|
if (this.adaptable.api.gridApi.isGroupRowNode(rowNode)) {
|
|
81
115
|
return null;
|
|
@@ -95,31 +129,12 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
95
129
|
}
|
|
96
130
|
}
|
|
97
131
|
checkFreeTextColumnForDataChange(cellDataChangedInfo) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
let freeTextStoredValue = {
|
|
101
|
-
PrimaryKey: cellDataChangedInfo.primaryKeyValue,
|
|
102
|
-
FreeText: cellDataChangedInfo.newValue,
|
|
103
|
-
};
|
|
104
|
-
this.addEditFreeTextColumnStoredValue(freeTextColumn, freeTextStoredValue);
|
|
105
|
-
var colsToRefresh = [cellDataChangedInfo.column.columnId];
|
|
106
|
-
const refencedCalcColumns = this.adaptable.api.calculatedColumnApi.getCalculatedColumnsReferencingColumnId(cellDataChangedInfo.column.columnId);
|
|
107
|
-
refencedCalcColumns.forEach((calculatedColumn) => {
|
|
108
|
-
colsToRefresh.push(calculatedColumn.ColumnId);
|
|
109
|
-
});
|
|
110
|
-
this.adaptable.refreshCells([cellDataChangedInfo.rowNode], colsToRefresh, false);
|
|
111
|
-
}
|
|
132
|
+
(0, logDeprecation_1.logDeprecationInternal)('FreeTextColumnApi', 'checkFreeTextColumnForDataChange');
|
|
133
|
+
return this.internalApi.handleFreeTextColumnDataChange(cellDataChangedInfo);
|
|
112
134
|
}
|
|
113
135
|
getFreeTextColumnModuleReferences(freeTextColumn) {
|
|
114
|
-
|
|
115
|
-
this.
|
|
116
|
-
if (module
|
|
117
|
-
.getModuleFreeTextColumnReferences()
|
|
118
|
-
.some((moduleReference) => moduleReference.Uuid === freeTextColumn.Uuid)) {
|
|
119
|
-
references.push(module.moduleInfo.FriendlyName);
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
return references;
|
|
136
|
+
(0, logDeprecation_1.logDeprecationInternal)('FreeTextColumnApi', 'getFreeTextColumnModuleReferences');
|
|
137
|
+
return this.internalApi.getFreeTextColumnModuleReferences(freeTextColumn);
|
|
123
138
|
}
|
|
124
139
|
}
|
|
125
140
|
exports.FreeTextColumnApiImpl = FreeTextColumnApiImpl;
|
|
@@ -14,7 +14,11 @@ import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChang
|
|
|
14
14
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
15
15
|
import { RowsHighlightInfo } from '../../PredefinedConfig/Common/RowsHighlightInfo';
|
|
16
16
|
import { AccessLevel } from '../../PredefinedConfig/Common/Entitlement';
|
|
17
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
18
|
+
import { GridInternalApi } from '../Internal/GridInternalApi';
|
|
17
19
|
export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
20
|
+
internalApi: GridInternalApi;
|
|
21
|
+
constructor(adaptable: IAdaptable);
|
|
18
22
|
getGridState(): GridState;
|
|
19
23
|
setGridData(dataSource: any[]): void;
|
|
20
24
|
getGridData(): any[];
|
|
@@ -30,6 +34,11 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
30
34
|
newValue: any;
|
|
31
35
|
primaryKeyValue: any;
|
|
32
36
|
}[]): void;
|
|
37
|
+
setCellValues(gridCells: {
|
|
38
|
+
columnId: any;
|
|
39
|
+
newValue: any;
|
|
40
|
+
primaryKeyValue: any;
|
|
41
|
+
}[]): void;
|
|
33
42
|
getSelectedCellInfo(): SelectedCellInfo;
|
|
34
43
|
getSelectedRowInfo(): SelectedRowInfo;
|
|
35
44
|
getCellDisplayValue(primaryKeyValue: any, columnId: string): any | undefined;
|
|
@@ -53,7 +62,9 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
53
62
|
deSelectRows(primaryKeyValues: any[], clearSelection: boolean): void;
|
|
54
63
|
deSelectNode(rowNode: RowNode, clearSelection: boolean): void;
|
|
55
64
|
deSelectNodes(rowNodes: RowNode[], clearSelection: boolean): void;
|
|
65
|
+
private getSelectionStartEndNodes;
|
|
56
66
|
selectCellRange(gridCellRange: GridCellRange, clearSelection?: boolean): void;
|
|
67
|
+
selectCellRangeByQuery(query: string, gridCellRange?: GridCellRange, clearSelection?: boolean): void;
|
|
57
68
|
selectColumn(columnId: string): void;
|
|
58
69
|
selectColumns(columnIds: string[]): void;
|
|
59
70
|
getFirstRowNode(): RowNode;
|
|
@@ -77,6 +88,7 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
77
88
|
clearRowGroupColumns(): void;
|
|
78
89
|
expandAllRowGroups(): void;
|
|
79
90
|
closeAllRowGroups(): void;
|
|
91
|
+
collapseAllRowGroups(): void;
|
|
80
92
|
getExpandRowGroupsKeys(): any[];
|
|
81
93
|
expandRowGroupsForValues(columnValues: any[]): void;
|
|
82
94
|
isGridPivotable(): boolean;
|
|
@@ -86,7 +98,6 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
86
98
|
isGroupRowNode(rowNode: RowNode): boolean;
|
|
87
99
|
isQuickFilterAvailable(): boolean;
|
|
88
100
|
redrawGrid(): void;
|
|
89
|
-
fireSearchChangedEvent(searchChangedTrigger: 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort'): void;
|
|
90
101
|
fireGridSortedEvent(): void;
|
|
91
102
|
fireCellChangedEvent(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
92
103
|
fireGridDataChangedEvent(dataRows: any[], rowNodes: RowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
|
|
@@ -105,7 +116,9 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
105
116
|
refreshRowByPrimaryKey(primaryKey: any): void;
|
|
106
117
|
refreshRowNode(rowNode: RowNode): void;
|
|
107
118
|
refreshRowNodes(rowNodes: RowNode[]): void;
|
|
119
|
+
isCellEditable(gridCell: GridCell): boolean;
|
|
108
120
|
areCellsEditable(gridCells: GridCell[]): boolean;
|
|
121
|
+
isEveryCellEditable(gridCells: GridCell[]): boolean;
|
|
109
122
|
getRowCount(): number;
|
|
110
123
|
getVisibleRowCount(): number;
|
|
111
124
|
getRowsInViewport(): RowNode[];
|
|
@@ -117,4 +130,5 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
117
130
|
destroy(): void;
|
|
118
131
|
getGridContainerElement(): HTMLElement | null;
|
|
119
132
|
showGridInfoPopup(): void;
|
|
133
|
+
openGridInfoSettingsPanel(): void;
|
|
120
134
|
}
|