@adaptabletools/adaptable 13.1.1 → 14.0.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/base.css +7 -2
- package/base.css.map +1 -1
- package/bundle.cjs.js +180 -177
- package/index.css +11 -2
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +4 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -9
- package/src/AdaptableOptions/AlertOptions.d.ts +6 -1
- package/src/AdaptableOptions/ChartingOptions.d.ts +1 -1
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +8 -3
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +6 -4
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ActionApi.d.ts +14 -3
- package/src/Api/AdaptableApi.d.ts +0 -6
- package/src/Api/AlertApi.d.ts +127 -92
- package/src/Api/BulkUpdateApi.d.ts +9 -2
- package/src/Api/CalculatedColumnApi.d.ts +26 -21
- package/src/Api/CellSummaryApi.d.ts +15 -8
- package/src/Api/ChartingApi.d.ts +9 -2
- package/src/Api/ColumnApi.d.ts +153 -115
- package/src/Api/ConfigApi.d.ts +18 -18
- package/src/Api/CustomSortApi.d.ts +36 -7
- package/src/Api/DashboardApi.d.ts +12 -5
- package/src/Api/DataChangeHistoryApi.d.ts +8 -1
- package/src/Api/DataSetApi.d.ts +13 -3
- package/src/Api/EventApi.d.ts +2 -2
- package/src/Api/ExportApi.d.ts +30 -13
- package/src/Api/FilterApi.d.ts +74 -62
- package/src/Api/FlashingCellApi.d.ts +25 -9
- package/src/Api/FormatColumnApi.d.ts +76 -95
- package/src/Api/FreeTextColumnApi.d.ts +53 -21
- package/src/Api/GridApi.d.ts +57 -22
- package/src/Api/Implementation/ActionApiImpl.d.ts +9 -3
- package/src/Api/Implementation/ActionApiImpl.js +23 -11
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +5 -2
- package/src/Api/Implementation/AlertApiImpl.d.ts +57 -28
- package/src/Api/Implementation/AlertApiImpl.js +179 -197
- package/src/Api/Implementation/ApiBase.d.ts +43 -2
- package/src/Api/Implementation/ApiBase.js +129 -5
- package/src/Api/Implementation/ApplicationApiImpl.d.ts +1 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +1 -0
- package/src/Api/Implementation/BulkUpdateApiImpl.js +4 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +7 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +28 -37
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CellSummaryApiImpl.js +6 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ChartingApiImpl.js +10 -4
- package/src/Api/Implementation/ColumnApiImpl.d.ts +22 -6
- package/src/Api/Implementation/ColumnApiImpl.js +184 -195
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ConfigApiImpl.js +1 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +16 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +33 -7
- package/src/Api/Implementation/DashboardApiImpl.d.ts +6 -1
- package/src/Api/Implementation/DashboardApiImpl.js +11 -12
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
- package/src/Api/Implementation/DataSetApiImpl.d.ts +6 -0
- package/src/Api/Implementation/DataSetApiImpl.js +17 -8
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExportApiImpl.d.ts +9 -1
- package/src/Api/Implementation/ExportApiImpl.js +34 -68
- package/src/Api/Implementation/FilterApiImpl.d.ts +10 -1
- package/src/Api/Implementation/FilterApiImpl.js +61 -157
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +23 -26
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +20 -15
- package/src/Api/Implementation/FormatColumnApiImpl.js +62 -153
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +13 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +42 -27
- package/src/Api/Implementation/GridApiImpl.d.ts +15 -1
- package/src/Api/Implementation/GridApiImpl.js +117 -61
- package/src/Api/Implementation/LayoutApiImpl.d.ts +8 -7
- package/src/Api/Implementation/LayoutApiImpl.js +29 -112
- package/src/Api/Implementation/PluginsApiImpl.d.ts +1 -1
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +2 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +5 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +8 -5
- package/src/Api/Implementation/PredicateApiImpl.js +33 -98
- package/src/Api/Implementation/QueryApiImpl.d.ts +7 -2
- package/src/Api/Implementation/QueryApiImpl.js +22 -44
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -0
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +1 -0
- package/src/Api/Implementation/QuickSearchApiImpl.js +5 -0
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +27 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +86 -17
- package/src/Api/Implementation/ScopeApiImpl.js +9 -7
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +2 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +9 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +8 -1
- package/src/Api/Implementation/ShortcutApiImpl.js +25 -4
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -0
- package/src/Api/Implementation/SmartEditApiImpl.js +5 -0
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +14 -11
- package/src/Api/Implementation/StyledColumnApiImpl.js +40 -185
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +6 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +19 -12
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +6 -5
- package/src/Api/Implementation/TeamSharingApiImpl.js +15 -25
- package/src/Api/Implementation/ThemeApiImpl.d.ts +5 -1
- package/src/Api/Implementation/ThemeApiImpl.js +23 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +13 -4
- package/src/Api/Internal/ActionInternalApi.d.ts +23 -0
- package/src/Api/Internal/ActionInternalApi.js +198 -0
- package/src/Api/{Implementation/InternalApiImpl.d.ts → Internal/AdaptableInternalApi.d.ts} +7 -57
- package/src/Api/{Implementation/InternalApiImpl.js → Internal/AdaptableInternalApi.js} +28 -306
- package/src/Api/Internal/AlertInternalApi.d.ts +148 -0
- package/src/Api/Internal/AlertInternalApi.js +484 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +24 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +57 -0
- package/src/Api/Internal/ColumnInternalApi.d.ts +33 -0
- package/src/Api/Internal/ColumnInternalApi.js +67 -0
- package/src/Api/Internal/CustomSortInternalApi.d.ts +6 -0
- package/src/Api/Internal/CustomSortInternalApi.js +11 -0
- package/src/Api/Internal/DashboardInternalApi.d.ts +8 -0
- package/src/Api/Internal/DashboardInternalApi.js +26 -0
- package/src/Api/Internal/DataSetInternalApi.d.ts +9 -0
- package/src/Api/Internal/DataSetInternalApi.js +20 -0
- package/src/Api/Internal/ExportInternalApi.d.ts +11 -0
- package/src/Api/Internal/ExportInternalApi.js +73 -0
- package/src/Api/Internal/FilterInternalApi.d.ts +58 -0
- package/src/Api/Internal/FilterInternalApi.js +194 -0
- package/src/Api/Internal/FlashingCellInternalApi.d.ts +12 -0
- package/src/Api/Internal/FlashingCellInternalApi.js +56 -0
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +109 -0
- package/src/Api/Internal/FormatColumnInternalApi.js +225 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +15 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.js +44 -0
- package/src/Api/Internal/GridInternalApi.d.ts +82 -0
- package/src/Api/Internal/GridInternalApi.js +252 -0
- package/src/Api/Internal/LayoutInternalApi.d.ts +48 -0
- package/src/Api/Internal/LayoutInternalApi.js +163 -0
- package/src/Api/Internal/PredicateInternalApi.d.ts +37 -0
- package/src/Api/Internal/PredicateInternalApi.js +140 -0
- package/src/Api/Internal/QueryInternalApi.d.ts +17 -0
- package/src/Api/Internal/QueryInternalApi.js +57 -0
- package/src/Api/Internal/QueryLanguageInternalApi.d.ts +11 -0
- package/src/Api/Internal/QueryLanguageInternalApi.js +34 -0
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +59 -0
- package/src/Api/Internal/StyledColumnInternalApi.js +249 -0
- package/src/Api/Internal/SystemStatusInternalApi.d.ts +11 -0
- package/src/Api/Internal/SystemStatusInternalApi.js +27 -0
- package/src/Api/Internal/TeamSharingInternalApi.d.ts +20 -0
- package/src/Api/Internal/TeamSharingInternalApi.js +66 -0
- package/src/Api/LayoutApi.d.ts +28 -44
- package/src/Api/PlusMinusApi.d.ts +9 -2
- package/src/Api/PredicateApi.d.ts +26 -10
- package/src/Api/QueryApi.d.ts +23 -18
- package/src/Api/QuickSearchApi.d.ts +5 -1
- package/src/Api/ScheduleApi.d.ts +97 -16
- package/src/Api/SettingsPanelApi.d.ts +12 -1
- package/src/Api/ShortcutApi.d.ts +28 -7
- package/src/Api/SmartEditApi.d.ts +8 -1
- package/src/Api/StyledColumnApi.d.ts +34 -54
- package/src/Api/SystemStatusApi.d.ts +12 -6
- package/src/Api/TeamSharingApi.d.ts +4 -17
- package/src/Api/ThemeApi.d.ts +25 -6
- package/src/Api/UserInterfaceApi.d.ts +13 -2
- package/src/PredefinedConfig/AlertState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.js +4 -0
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +0 -5
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +10 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +22 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -0
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +5 -3
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +0 -5
- package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +9 -0
- package/src/PredefinedConfig/SystemState.d.ts +5 -0
- package/src/Redux/ActionsReducers/GridRedux.d.ts +18 -0
- package/src/Redux/ActionsReducers/GridRedux.js +65 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
- package/src/Redux/Store/AdaptableStore.js +34 -26
- package/src/Strategy/AdaptableModuleBase.js +6 -6
- package/src/Strategy/AlertModule.d.ts +1 -6
- package/src/Strategy/AlertModule.js +37 -92
- package/src/Strategy/BulkUpdateModule.js +3 -3
- package/src/Strategy/CalculatedColumnModule.js +6 -6
- package/src/Strategy/ChartingModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -4
- package/src/Strategy/DashboardModule.js +2 -2
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +4 -4
- package/src/Strategy/FilterModule.js +7 -6
- package/src/Strategy/FlashingCellModule.d.ts +2 -0
- package/src/Strategy/FlashingCellModule.js +21 -5
- package/src/Strategy/FormatColumnModule.d.ts +1 -0
- package/src/Strategy/FormatColumnModule.js +29 -3
- package/src/Strategy/FreeTextColumnModule.js +3 -3
- package/src/Strategy/LayoutModule.js +18 -18
- package/src/Strategy/PlusMinusModule.js +2 -2
- package/src/Strategy/QueryModule.js +3 -3
- package/src/Strategy/ScheduleModule.js +10 -12
- package/src/Strategy/ShortcutModule.js +5 -5
- package/src/Strategy/SmartEditModule.js +3 -3
- package/src/Strategy/StyledColumnModule.js +9 -7
- package/src/Strategy/TeamSharingModule.js +3 -3
- package/src/Strategy/ThemeModule.js +1 -1
- package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +1 -1
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +1 -1
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +4 -3
- package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
- package/src/Strategy/Utilities/updateSingleToMultiplePredicates.d.ts +5 -0
- package/src/Strategy/Utilities/updateSingleToMultiplePredicates.js +12 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +8 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +11 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +73 -78
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +3 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +9 -5
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +12 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +133 -28
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +1 -1
- package/src/Utilities/Helpers/FormatHelper.js +13 -10
- package/src/Utilities/ObjectFactory.js +8 -6
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +1 -1
- package/src/Utilities/Services/ChartingService.js +2 -2
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +2 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -5
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -2
- package/src/Utilities/Services/ReportService.js +3 -3
- package/src/Utilities/Services/RowEditService.d.ts +0 -19
- package/src/Utilities/Services/RowEditService.js +4 -161
- package/src/Utilities/Services/TeamSharingService.js +3 -3
- package/src/Utilities/Services/ValidationService.js +9 -7
- package/src/Utilities/logDeprecation.d.ts +3 -0
- package/src/Utilities/logDeprecation.js +30 -0
- package/src/View/AdaptablePopover/index.d.ts +2 -0
- package/src/View/AdaptablePopover/index.js +6 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +4 -2
- package/src/View/Alert/AlertEntityRow.js +1 -1
- package/src/View/Alert/AlertStatusSubPanel.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +3 -3
- package/src/View/Alert/Wizard/AlertWizard.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +4 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +4 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +1 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +25 -4
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Charting/ChartingViewPanel.d.ts +2 -2
- package/src/View/Components/Charting/ChartingViewPanel.js +17 -3
- package/src/View/Components/Charting/ChartingWizard/ChartingWizard.js +2 -2
- package/src/View/Components/Charting/ChartingWizard/SettingsSection.js +1 -1
- package/src/View/Components/Charting/DeleteChartButton.d.ts +7 -0
- package/src/View/Components/Charting/DeleteChartButton.js +12 -0
- package/src/View/Components/Charting/EditChartButton.d.ts +8 -0
- package/src/View/Components/Charting/EditChartButton.js +21 -0
- package/src/View/Components/EntityRulesEditor/PredicatesEditor.d.ts +16 -0
- package/src/View/Components/EntityRulesEditor/PredicatesEditor.js +86 -0
- package/src/View/Components/EntityRulesEditor/Utilities.d.ts +6 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +21 -0
- package/src/View/Components/EntityRulesEditor/index.d.ts +4 -9
- package/src/View/Components/EntityRulesEditor/index.js +16 -90
- package/src/View/Components/ExpressionWizard.js +1 -1
- package/src/View/Components/ExternalRenderer.js +3 -1
- package/src/View/Components/FilterForm/FilterForm.js +3 -3
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -5
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +5 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupConfirmation.d.ts +2 -12
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +46 -39
- package/src/View/Components/PredicateEditor/PredicateEditor.js +5 -5
- package/src/View/Components/ScopeComponent.js +3 -3
- package/src/View/Components/Selectors/ColumnValueSelector.js +1 -1
- package/src/View/Components/StyleComponent.js +42 -14
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +10 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +1 -1
- package/src/View/Export/ExportSelector.js +2 -2
- package/src/View/Export/ExportViewPanel.js +2 -2
- package/src/View/Export/ReportExportDropdown.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
- package/src/View/Filter/FilterSummary.js +1 -1
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -2
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +4 -3
- package/src/View/FormatColumn/MoveFormatColumn.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +11 -5
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +8 -6
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +3 -4
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +5 -19
- package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +6 -6
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +1 -1
- package/src/View/Layout/SaveLayoutButton.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +2 -2
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +4 -4
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +5 -5
- package/src/View/Layout/Wizard/sections/FilterSection.js +2 -2
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
- package/src/View/Query/ExpandedQueryPopup.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
- package/src/View/StatusBar/StatusBarPanel.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +26 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +23 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.d.ts +8 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +25 -0
- package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.d.ts → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts} +2 -2
- package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.js → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js} +21 -19
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.d.ts +1 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +4 -0
- package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.d.ts +5 -3
- package/src/agGrid/Adaptable.js +106 -121
- package/src/agGrid/FilterWrapper.js +3 -3
- package/src/agGrid/FloatingFilterWrapper.js +3 -3
- package/src/agGrid/PercentBarRenderer.js +6 -6
- package/src/agGrid/agGridHelper.js +3 -3
- package/src/agGrid/agGridMenuHelper.js +3 -3
- package/src/agGrid/weightedAverage.js +2 -2
- package/src/components/ExpressionEditor/BaseEditorInput.js +92 -7
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -1
- package/src/components/OverlayTrigger/index.js +6 -2
- package/src/components/OverlayTrigger/utils.d.ts +1 -1
- package/src/components/OverlayTrigger/utils.js +4 -4
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/open-in-new.d.ts +3 -0
- package/src/components/icons/open-in-new.js +7 -0
- package/src/env.js +1 -3
- package/src/metamodel/adaptable.metamodel.d.ts +30 -10
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/parser.js +644 -382
- package/src/parser/src/types.d.ts +9 -0
- package/src/types.d.ts +3 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/InternalApi.d.ts +0 -155
- package/src/Api/InternalApi.js +0 -2
|
@@ -1,138 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AdaptableInternalApi = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
6
6
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
7
7
|
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
8
8
|
const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
|
|
9
|
-
const AlertRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/AlertRedux"));
|
|
10
9
|
const DeadRedux = tslib_1.__importStar(require("../../Redux/DeadRedux"));
|
|
11
|
-
const ApiBase_1 = require("
|
|
10
|
+
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
12
11
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
13
12
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
14
13
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
15
|
-
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
16
|
-
const AdaptableAlert_1 = require("../../PredefinedConfig/Common/AdaptableAlert");
|
|
17
14
|
const waitForCondition_1 = require("../../Utilities/waitForCondition");
|
|
18
15
|
const AdaptableIconComponent_1 = require("../../components/AdaptableIconComponent");
|
|
19
|
-
class
|
|
16
|
+
class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
20
17
|
getSystemState() {
|
|
21
18
|
return this.getAdaptableState().System;
|
|
22
19
|
}
|
|
23
|
-
getAdaptableFormFromAlertForm(alertForm, context, defaultMessageType) {
|
|
24
|
-
var _a, _b;
|
|
25
|
-
const api = this.adaptable.api;
|
|
26
|
-
let adaptableAlertForm;
|
|
27
|
-
let isActionForm = false;
|
|
28
|
-
if (typeof alertForm === 'string') {
|
|
29
|
-
const alertForms = this.getAlertOptions().alertForms || [];
|
|
30
|
-
adaptableAlertForm = (_a = alertForms.find((f) => f.name === alertForm)) === null || _a === void 0 ? void 0 : _a.form;
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
adaptableAlertForm = Object.assign(Object.assign({}, alertForm), { buttons: (alertForm.Buttons || []).map((alertButton) => {
|
|
34
|
-
return Object.assign(Object.assign({}, alertButton), { onClick: () => {
|
|
35
|
-
api.alertApi.executeAlertButton(alertButton, context);
|
|
36
|
-
} });
|
|
37
|
-
}) });
|
|
38
|
-
isActionForm = true;
|
|
39
|
-
}
|
|
40
|
-
if (!adaptableAlertForm) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
if (adaptableAlertForm && adaptableAlertForm.buttons) {
|
|
44
|
-
// dont mutate the form, but clone it
|
|
45
|
-
adaptableAlertForm = Object.assign({}, adaptableAlertForm);
|
|
46
|
-
adaptableAlertForm.buttons = (_b = adaptableAlertForm.buttons) === null || _b === void 0 ? void 0 : _b.map((button) => {
|
|
47
|
-
let buttonStyle = isActionForm
|
|
48
|
-
? button.ButtonStyle
|
|
49
|
-
: this.getStyleForButton(button, context);
|
|
50
|
-
if (defaultMessageType && !(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.tone)) {
|
|
51
|
-
// force the button tone to be the alert tone, if the tone is missing from button style (or button style non-existent)
|
|
52
|
-
buttonStyle = Object.assign(Object.assign({}, buttonStyle), { tone: defaultMessageType.toLowerCase() });
|
|
53
|
-
}
|
|
54
|
-
let label = isActionForm
|
|
55
|
-
? button.Label
|
|
56
|
-
: this.getLabelForButton(button, context);
|
|
57
|
-
return Object.assign(Object.assign({}, button), { buttonStyle,
|
|
58
|
-
label });
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
return adaptableAlertForm;
|
|
62
|
-
}
|
|
63
|
-
getAdaptableAlerts() {
|
|
64
|
-
var _a;
|
|
65
|
-
return (_a = this.getSystemState().AdaptableAlerts) !== null && _a !== void 0 ? _a : [];
|
|
66
|
-
}
|
|
67
|
-
getAdaptableCellChangedAlerts() {
|
|
68
|
-
return this.getAdaptableAlerts().filter(AdaptableAlert_1.isAdaptableCellChangedAlert);
|
|
69
|
-
}
|
|
70
|
-
getAdaptableRowChangedAlerts() {
|
|
71
|
-
return this.getAdaptableAlerts().filter(AdaptableAlert_1.isAdaptableRowChangedAlert);
|
|
72
|
-
}
|
|
73
|
-
getAdaptableAlertWithHighlightCell(columnId, rowNode) {
|
|
74
|
-
// only alerts triggered by cell changes are relevant for HighlightCell actions
|
|
75
|
-
return this.getAdaptableCellChangedAlerts().find((alert) => {
|
|
76
|
-
var _a, _b, _c, _d;
|
|
77
|
-
return ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightCell) &&
|
|
78
|
-
((_c = (_b = alert.cellDataChangedInfo) === null || _b === void 0 ? void 0 : _b.column) === null || _c === void 0 ? void 0 : _c.columnId) === columnId &&
|
|
79
|
-
((_d = alert.cellDataChangedInfo) === null || _d === void 0 ? void 0 : _d.rowNode) === rowNode;
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
getAdaptableAlertWithHighlightRow(rowNode) {
|
|
83
|
-
let alertWithRowHighlight;
|
|
84
|
-
alertWithRowHighlight = this.getAdaptableRowChangedAlerts().find((alert) => {
|
|
85
|
-
var _a, _b;
|
|
86
|
-
if ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightRow) {
|
|
87
|
-
if ((_b = alert.gridDataChangedInfo) === null || _b === void 0 ? void 0 : _b.rowNodes.map((rowNode) => rowNode.id).includes(rowNode.id)) {
|
|
88
|
-
return alert;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
if (alertWithRowHighlight) {
|
|
93
|
-
return alertWithRowHighlight;
|
|
94
|
-
}
|
|
95
|
-
alertWithRowHighlight = this.getAdaptableCellChangedAlerts().find((alert) => {
|
|
96
|
-
var _a, _b;
|
|
97
|
-
if ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightRow) {
|
|
98
|
-
if (((_b = alert.cellDataChangedInfo) === null || _b === void 0 ? void 0 : _b.rowNode.id) == rowNode.id) {
|
|
99
|
-
return alert;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
return alertWithRowHighlight;
|
|
104
|
-
}
|
|
105
|
-
isAlertDefinitionForAddedRowChangeEvent(alertDefinition) {
|
|
106
|
-
var _a, _b;
|
|
107
|
-
const addedRowPredicate = 'AddedRow';
|
|
108
|
-
return ((_b = (_a = alertDefinition === null || alertDefinition === void 0 ? void 0 : alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicate) === null || _b === void 0 ? void 0 : _b.PredicateId) === addedRowPredicate;
|
|
109
|
-
}
|
|
110
|
-
isAlertDefinitionForRemovedRowChangeEvent(alertDefinition) {
|
|
111
|
-
var _a, _b;
|
|
112
|
-
const removedRowPredicate = 'RemovedRow';
|
|
113
|
-
return ((_b = (_a = alertDefinition === null || alertDefinition === void 0 ? void 0 : alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicate) === null || _b === void 0 ? void 0 : _b.PredicateId) === removedRowPredicate;
|
|
114
|
-
}
|
|
115
|
-
getAdaptableFlashingCellFor(primaryKey, columnId) {
|
|
116
|
-
var _a;
|
|
117
|
-
const { AdaptableFlashingCells: AdaptableFlashingAlerts, AdaptableFlashingCellsMap: AdaptableFlashingAlertsMap, } = this.getSystemState();
|
|
118
|
-
const forPrimaryKey = (_a = AdaptableFlashingAlerts[primaryKey]) !== null && _a !== void 0 ? _a : {};
|
|
119
|
-
const toFlashingAlert = (uuid) => { var _a; return uuid ? (_a = AdaptableFlashingAlertsMap[uuid]) !== null && _a !== void 0 ? _a : null : null; };
|
|
120
|
-
const adaptableFlashingCell = columnId
|
|
121
|
-
? toFlashingAlert(forPrimaryKey[columnId])
|
|
122
|
-
: toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_CELL_ROW_KEY]);
|
|
123
|
-
if ((adaptableFlashingCell === null || adaptableFlashingCell === void 0 ? void 0 : adaptableFlashingCell.flashingCellDefinition) &&
|
|
124
|
-
!this.isObjectAvailableInLayout(adaptableFlashingCell.flashingCellDefinition, 'FlashingCell', this.getAdaptableApi().layoutApi.getCurrentLayout())) {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
return adaptableFlashingCell;
|
|
128
|
-
}
|
|
129
|
-
addSystemStatusMessageInfo(systemStatusMessageInfo) {
|
|
130
|
-
const maxMessagesInStore = this.getNotificationsOptions().maxSystemMessagesInStore;
|
|
131
|
-
this.dispatchAction(SystemRedux.SystemStatusMessageInfoAdd(systemStatusMessageInfo, maxMessagesInStore));
|
|
132
|
-
}
|
|
133
|
-
getSystemStatusMessageInfos() {
|
|
134
|
-
return this.getSystemState().SystemStatusMessages;
|
|
135
|
-
}
|
|
136
20
|
// Popup Redux Actions
|
|
137
21
|
showPopupConfirmation(confirmation) {
|
|
138
22
|
this.dispatchAction(PopupRedux.PopupShowConfirmation(confirmation));
|
|
@@ -157,21 +41,12 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
157
41
|
hidePopupScreen() {
|
|
158
42
|
this.dispatchAction(PopupRedux.PopupHideScreen());
|
|
159
43
|
}
|
|
160
|
-
setColumns(columns) {
|
|
161
|
-
this.dispatchAction(GridRedux.GridSetColumns(columns));
|
|
162
|
-
}
|
|
163
44
|
setSettingPanelModuleMenuItems(menuItems) {
|
|
164
45
|
this.dispatchAction(GridRedux.SetSettingPanelModuleMenuItems(menuItems));
|
|
165
46
|
}
|
|
166
47
|
setModuleButtonMenuItems(menuItems) {
|
|
167
48
|
this.dispatchAction(GridRedux.SetModuleButtonMenuItems(menuItems));
|
|
168
49
|
}
|
|
169
|
-
setSelectedCells(selectedCellInfo) {
|
|
170
|
-
this.dispatchAction(GridRedux.GridSetSelectedCells(selectedCellInfo));
|
|
171
|
-
}
|
|
172
|
-
setSelectedRows(selectedRowInfo) {
|
|
173
|
-
this.dispatchAction(GridRedux.GridSetSelectedRows(selectedRowInfo));
|
|
174
|
-
}
|
|
175
50
|
setPivotModeOn() {
|
|
176
51
|
this.dispatchAction(GridRedux.SetPivotModeOn());
|
|
177
52
|
}
|
|
@@ -190,26 +65,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
190
65
|
isGridInTreeMode() {
|
|
191
66
|
return this.getAdaptableState().Grid.IsGridInTreeMode;
|
|
192
67
|
}
|
|
193
|
-
|
|
194
|
-
this.dispatchAction(GridRedux.GridAddColumn(AdaptableColumn));
|
|
195
|
-
}
|
|
196
|
-
addAdaptableColumns(AdaptableColumns) {
|
|
197
|
-
this.dispatchAction(GridRedux.GridAddColumns(AdaptableColumns));
|
|
198
|
-
}
|
|
199
|
-
removeAdaptableColumn(colId) {
|
|
200
|
-
const col = this.getAdaptableState().Grid.Columns.find((c) => c.columnId === colId);
|
|
201
|
-
if (col) {
|
|
202
|
-
this.dispatchAction(GridRedux.GridRemoveColumn(col));
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
setGridCells(gridCells) {
|
|
206
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(gridCells)) {
|
|
207
|
-
gridCells.forEach((gc) => {
|
|
208
|
-
this.setGridCell(gc);
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
setToolbarTitle() {
|
|
68
|
+
getToolbarTitle() {
|
|
213
69
|
let toolbarTitle = this.adaptable.api.dashboardApi.getDashboardState().DashboardTitle;
|
|
214
70
|
if (StringExtensions_1.default.IsNullOrEmpty(toolbarTitle)) {
|
|
215
71
|
toolbarTitle = this.adaptable.adaptableOptions.adaptableId;
|
|
@@ -219,32 +75,10 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
219
75
|
}
|
|
220
76
|
return toolbarTitle;
|
|
221
77
|
}
|
|
222
|
-
setGridCell(gridCell) {
|
|
223
|
-
const cellDataChangedInfo = this.createDataChangedInfoFromGridCell(gridCell);
|
|
224
|
-
this.adaptable.setCellValue(cellDataChangedInfo);
|
|
225
|
-
}
|
|
226
78
|
buildDataChangedInfo(config) {
|
|
227
79
|
var _a;
|
|
228
80
|
return Object.assign(Object.assign({}, config), { rowData: (_a = config.rowNode) === null || _a === void 0 ? void 0 : _a.data, changedAt: Date.now() });
|
|
229
81
|
}
|
|
230
|
-
createDataChangedInfoFromGridCell(gridCell) {
|
|
231
|
-
let currentValue = this.adaptable.getDisplayValue(gridCell.primaryKeyValue, gridCell.column.columnId);
|
|
232
|
-
const currentRowNode = this.adaptable.getRowNodeForPrimaryKey(gridCell.primaryKeyValue);
|
|
233
|
-
const cellDataChangedInfo = this.buildDataChangedInfo({
|
|
234
|
-
oldValue: currentValue,
|
|
235
|
-
newValue: gridCell.rawValue,
|
|
236
|
-
column: gridCell.column,
|
|
237
|
-
primaryKeyValue: gridCell.primaryKeyValue,
|
|
238
|
-
rowNode: currentRowNode,
|
|
239
|
-
});
|
|
240
|
-
return cellDataChangedInfo;
|
|
241
|
-
}
|
|
242
|
-
setLastAppliedShortCut(gridCell) {
|
|
243
|
-
this.dispatchAction(SystemRedux.SetLastAppliedShortcut(gridCell));
|
|
244
|
-
}
|
|
245
|
-
updateCurrentDraftLayout(layout) {
|
|
246
|
-
this.dispatchAction(GridRedux.LayoutUpdateCurrentDraft(layout));
|
|
247
|
-
}
|
|
248
82
|
getPrimaryKey() {
|
|
249
83
|
return this.adaptable.adaptableOptions.primaryKey;
|
|
250
84
|
}
|
|
@@ -303,59 +137,12 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
303
137
|
var _a, _b;
|
|
304
138
|
return ((_b = (_a = this.adaptable.ModuleService.getModuleInfoByModule(adaptableModule)) === null || _a === void 0 ? void 0 : _a.FriendlyName) !== null && _b !== void 0 ? _b : adaptableModule);
|
|
305
139
|
}
|
|
306
|
-
runModuleInAdaptableQL(adaptableQLModule) {
|
|
307
|
-
const adaptableQLModules = this.getAdaptableQLOptions().externallyEvaluatedModules;
|
|
308
|
-
return !adaptableQLModules.includes(adaptableQLModule);
|
|
309
|
-
}
|
|
310
|
-
evaluateExpressionInAdaptableQL(module, expression) {
|
|
311
|
-
var _a;
|
|
312
|
-
// temporary, until `externallyEvaluatedModules` is removed completely
|
|
313
|
-
const externallyEvaluatedModules = this.getAdaptableQLOptions().externallyEvaluatedModules;
|
|
314
|
-
if (externallyEvaluatedModules === null || externallyEvaluatedModules === void 0 ? void 0 : externallyEvaluatedModules.length) {
|
|
315
|
-
// fallback to deprecated property
|
|
316
|
-
return this.runModuleInAdaptableQL(module);
|
|
317
|
-
}
|
|
318
|
-
const evaluateExpressionExternallyFn = (_a = this.getAdaptableQLOptions()) === null || _a === void 0 ? void 0 : _a.evaluateAdaptableQLExternally;
|
|
319
|
-
if (typeof evaluateExpressionExternallyFn !== 'function') {
|
|
320
|
-
return true;
|
|
321
|
-
}
|
|
322
|
-
const context = {
|
|
323
|
-
adaptableApi: this.getAdaptableApi(),
|
|
324
|
-
module,
|
|
325
|
-
};
|
|
326
|
-
if (expression) {
|
|
327
|
-
context.expression = expression;
|
|
328
|
-
context.referencedColumns = this.getAdaptableApi()
|
|
329
|
-
.queryLanguageApi.getColumnsFromExpression(expression)
|
|
330
|
-
.map((columnId) => this.getAdaptableApi().columnApi.getColumnFromId(columnId));
|
|
331
|
-
}
|
|
332
|
-
return evaluateExpressionExternallyFn(context);
|
|
333
|
-
}
|
|
334
140
|
forAllRowNodesDo(func) {
|
|
335
141
|
this.adaptable.forAllRowNodesDo(func);
|
|
336
142
|
}
|
|
337
143
|
forAllVisibleRowNodesDo(func) {
|
|
338
144
|
this.adaptable.forAllVisibleRowNodesDo(func);
|
|
339
145
|
}
|
|
340
|
-
buildStandaloneColumnHeader(column) {
|
|
341
|
-
return this.adaptable.buildStandaloneColumnHeader(column);
|
|
342
|
-
}
|
|
343
|
-
clearFlashingCellState() {
|
|
344
|
-
this.dispatchAction(AlertRedux.AlertClearFlashingCells());
|
|
345
|
-
}
|
|
346
|
-
clearUpdatedRowState() {
|
|
347
|
-
this.dispatchAction(DeadRedux.UpdatedRowClear());
|
|
348
|
-
}
|
|
349
|
-
clearGradientColumnState() {
|
|
350
|
-
this.dispatchAction(DeadRedux.GradientColumnClear());
|
|
351
|
-
}
|
|
352
|
-
clearPercentBarState() {
|
|
353
|
-
this.dispatchAction(DeadRedux.PercentBarClear());
|
|
354
|
-
}
|
|
355
|
-
getCustomSortComparer(column) {
|
|
356
|
-
var _a;
|
|
357
|
-
return (_a = this.getGeneralOptions().customSortComparers) === null || _a === void 0 ? void 0 : _a.find((csc) => this.adaptable.api.scopeApi.isColumnInScope(column, csc.scope));
|
|
358
|
-
}
|
|
359
146
|
getLabelForButton(button, context) {
|
|
360
147
|
if (!button.label) {
|
|
361
148
|
return '';
|
|
@@ -424,46 +211,17 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
424
211
|
}
|
|
425
212
|
const firstRowData = (_a = Object.assign({}, firstRowNode === null || firstRowNode === void 0 ? void 0 : firstRowNode.data)) !== null && _a !== void 0 ? _a : {};
|
|
426
213
|
// handle CalcCols which are not persisted in the rowModel
|
|
427
|
-
this.adaptable.api.calculatedColumnApi.
|
|
214
|
+
this.adaptable.api.calculatedColumnApi.getCalculatedColumns().forEach((calculatedColumn) => {
|
|
428
215
|
const columnRawValue = this.adaptable.api.gridApi.getRawValueFromRowNode(firstRowNode, calculatedColumn.ColumnId);
|
|
429
216
|
firstRowData[calculatedColumn.ColumnId] = columnRawValue;
|
|
430
217
|
});
|
|
431
218
|
// handle FreeTextCols which are not persisted in the rowModel
|
|
432
|
-
this.adaptable.api.freeTextColumnApi.
|
|
219
|
+
this.adaptable.api.freeTextColumnApi.getFreeTextColumns().forEach((freeTextColumn) => {
|
|
433
220
|
const columnRawValue = this.adaptable.api.gridApi.getRawValueFromRowNode(firstRowNode, freeTextColumn.ColumnId);
|
|
434
221
|
firstRowData[freeTextColumn.ColumnId] = columnRawValue;
|
|
435
222
|
});
|
|
436
223
|
return firstRowData;
|
|
437
224
|
}
|
|
438
|
-
getLocalTeamSharingEntities() {
|
|
439
|
-
return this.getAdaptableState().TeamSharing.SharedEntities;
|
|
440
|
-
}
|
|
441
|
-
waitForTeamSharingImportEnd() {
|
|
442
|
-
// we have no deterministic means to ensure the teamsharing import is finished (because the import actions are opaque and may have side-effects)
|
|
443
|
-
// therefore we will listen for state changes and
|
|
444
|
-
// if the state was unchanged in the last `waitForStableState` ms, we assume/hope the import is finished
|
|
445
|
-
const waitForStableState = 1000;
|
|
446
|
-
const waitThreshold = 5000;
|
|
447
|
-
return new Promise((resolve, reject) => {
|
|
448
|
-
let pollTimer;
|
|
449
|
-
// stop the poll after `waitThreshold` ms, if the state hasn't stabilised until now, it probably never will...
|
|
450
|
-
let breakTimer = setTimeout(() => {
|
|
451
|
-
unsubscribe === null || unsubscribe === void 0 ? void 0 : unsubscribe();
|
|
452
|
-
clearTimeout(pollTimer);
|
|
453
|
-
reject(false);
|
|
454
|
-
}, waitThreshold);
|
|
455
|
-
// poll state for changes:
|
|
456
|
-
const unsubscribe = this.adaptable.api.eventApi.on('AdaptableStateChanged', () => {
|
|
457
|
-
clearTimeout(pollTimer);
|
|
458
|
-
pollTimer = setTimeout(() => {
|
|
459
|
-
// state is stable, cleanup all subscriptions before returning
|
|
460
|
-
unsubscribe();
|
|
461
|
-
clearTimeout(breakTimer);
|
|
462
|
-
resolve(true);
|
|
463
|
-
}, waitForStableState);
|
|
464
|
-
});
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
225
|
createFrameworkComponent(containerDomNode, frameworkComponent, componentType) {
|
|
468
226
|
const createComponentFn = () =>
|
|
469
227
|
// delegate the logic to framework wrapper
|
|
@@ -527,37 +285,6 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
527
285
|
}
|
|
528
286
|
return wordToSpell;
|
|
529
287
|
}
|
|
530
|
-
hasLayoutSpecificObjects() {
|
|
531
|
-
const layoutTagOptions = this.getAdaptableOptions().layoutOptions.layoutTagOptions;
|
|
532
|
-
if (!layoutTagOptions) {
|
|
533
|
-
return false;
|
|
534
|
-
}
|
|
535
|
-
if (layoutTagOptions.autoCheckTagsForLayouts == true ||
|
|
536
|
-
typeof (layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.isObjectAvailableInLayout) === 'function') {
|
|
537
|
-
return true;
|
|
538
|
-
}
|
|
539
|
-
return false;
|
|
540
|
-
}
|
|
541
|
-
isObjectAvailableInLayout(object, module, layout) {
|
|
542
|
-
var _a;
|
|
543
|
-
if (!this.hasLayoutSpecificObjects()) {
|
|
544
|
-
return true;
|
|
545
|
-
}
|
|
546
|
-
const layoutTagOptions = this.getAdaptableOptions().layoutOptions.layoutTagOptions;
|
|
547
|
-
if ((layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.autoCheckTagsForLayouts) == true) {
|
|
548
|
-
return ArrayExtensions_1.default.IsNullOrEmpty(object.Tags) ? true : (_a = object.Tags) === null || _a === void 0 ? void 0 : _a.includes(layout.Name);
|
|
549
|
-
}
|
|
550
|
-
const context = {
|
|
551
|
-
adaptableObject: object,
|
|
552
|
-
module,
|
|
553
|
-
layout,
|
|
554
|
-
adaptableApi: this.getAdaptableApi(),
|
|
555
|
-
};
|
|
556
|
-
return layoutTagOptions === null || layoutTagOptions === void 0 ? void 0 : layoutTagOptions.isObjectAvailableInLayout(context);
|
|
557
|
-
}
|
|
558
|
-
showLayoutNotAssociatedObjects() {
|
|
559
|
-
return this.getAdaptableState().System.ShowLayoutNotAssociatedObjects;
|
|
560
|
-
}
|
|
561
288
|
shouldDisplayTagSections() {
|
|
562
289
|
return this.getAvailableTags() != undefined;
|
|
563
290
|
}
|
|
@@ -592,14 +319,14 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
592
319
|
}
|
|
593
320
|
if (this.adaptable.adaptableOptions.layoutOptions.layoutTagOptions.autoGenerateTagsForLayouts ===
|
|
594
321
|
true) {
|
|
595
|
-
return this.adaptable.api.layoutApi.
|
|
322
|
+
return this.adaptable.api.layoutApi.getLayouts().map((layout) => {
|
|
596
323
|
return layout.Name;
|
|
597
324
|
});
|
|
598
325
|
}
|
|
599
326
|
if (typeof this.adaptable.adaptableOptions.layoutOptions.layoutTagOptions
|
|
600
327
|
.autoGenerateTagsForLayouts === 'function') {
|
|
601
328
|
const autoGenerateTagsForLayoutsContext = {
|
|
602
|
-
layouts: this.adaptable.api.layoutApi.
|
|
329
|
+
layouts: this.adaptable.api.layoutApi.getLayouts(),
|
|
603
330
|
objectTags: this.getAdaptableApi().userInterfaceApi.getAdaptableObjectTags(),
|
|
604
331
|
adaptableApi: this.adaptable.api,
|
|
605
332
|
};
|
|
@@ -624,30 +351,6 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
624
351
|
// not very interesting right now, but useful later when tag is not only a plain string
|
|
625
352
|
return adaptableObjectTag;
|
|
626
353
|
}
|
|
627
|
-
getEditLookUpValuesForColumn(editLookUpItem, column, gridCell) {
|
|
628
|
-
if (!editLookUpItem || !column) {
|
|
629
|
-
return undefined;
|
|
630
|
-
}
|
|
631
|
-
let editLookUpValues = editLookUpItem.values;
|
|
632
|
-
// first do the function then get hardcoded items
|
|
633
|
-
if (editLookUpValues != null && typeof editLookUpValues === 'function') {
|
|
634
|
-
const editLookUpContext = {
|
|
635
|
-
adaptableApi: this.adaptable.api,
|
|
636
|
-
column: column,
|
|
637
|
-
gridCell,
|
|
638
|
-
};
|
|
639
|
-
return editLookUpValues(editLookUpContext);
|
|
640
|
-
}
|
|
641
|
-
else {
|
|
642
|
-
let arr = editLookUpValues;
|
|
643
|
-
if (arr && ArrayExtensions_1.default.IsNotNullOrEmpty(arr)) {
|
|
644
|
-
return arr;
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
// if no hard-coded values or function provided then just get the distinct values for the column
|
|
648
|
-
// this will use the columnApi method that first looks for permitted values and then distinct values
|
|
649
|
-
return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(column.columnId);
|
|
650
|
-
}
|
|
651
354
|
getAdaptableQueryExpressionText(query) {
|
|
652
355
|
var _a;
|
|
653
356
|
if (!query) {
|
|
@@ -729,5 +432,24 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
729
432
|
}
|
|
730
433
|
return rowData;
|
|
731
434
|
}
|
|
435
|
+
findAdaptableObjectsByLookupCriteria({ scope, tag, ids }, specificAdaptableObjects) {
|
|
436
|
+
if (!(ids === null || ids === void 0 ? void 0 : ids.length) && !tag && !scope) {
|
|
437
|
+
return [];
|
|
438
|
+
}
|
|
439
|
+
let locatedAdaptableObjects = [...specificAdaptableObjects];
|
|
440
|
+
// IDs are the most specific locators
|
|
441
|
+
if (ids === null || ids === void 0 ? void 0 : ids.length) {
|
|
442
|
+
locatedAdaptableObjects = locatedAdaptableObjects.filter((adaptableObject) => ids.includes(adaptableObject.Uuid));
|
|
443
|
+
}
|
|
444
|
+
// secondly filter by Tags
|
|
445
|
+
if (tag) {
|
|
446
|
+
locatedAdaptableObjects = locatedAdaptableObjects.filter((adaptableObject) => { var _a; return (_a = adaptableObject.Tags) === null || _a === void 0 ? void 0 : _a.includes(tag); });
|
|
447
|
+
}
|
|
448
|
+
// lastly filter by scope
|
|
449
|
+
if (scope) {
|
|
450
|
+
locatedAdaptableObjects = locatedAdaptableObjects.filter((adaptableObject) => this.getAdaptableApi().scopeApi.isScopeInScope(adaptableObject.Scope, scope));
|
|
451
|
+
}
|
|
452
|
+
return locatedAdaptableObjects;
|
|
453
|
+
}
|
|
732
454
|
}
|
|
733
|
-
exports.
|
|
455
|
+
exports.AdaptableInternalApi = AdaptableInternalApi;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
+
import { AdaptableForm, AdaptableFormData } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
3
|
+
import { AlertFormContext } from '../../AdaptableOptions/AlertOptions';
|
|
4
|
+
import { AdaptableAlertAction, AlertButton, AlertButtonForm, AlertDefinition } from '../../PredefinedConfig/AlertState';
|
|
5
|
+
import { AdaptableAlert, AdaptableCellChangedAlert, AdaptableRowChangedAlert } from '../../PredefinedConfig/Common/AdaptableAlert';
|
|
6
|
+
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
7
|
+
import { GridDataChangedInfo } from '../Events/GridDataChanged';
|
|
8
|
+
import { AdaptableScope } from '../../PredefinedConfig/Common/AdaptableScope';
|
|
9
|
+
import { AdaptablePredicateDef } from '../../PredefinedConfig/Common/AdaptablePredicate';
|
|
10
|
+
import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
|
|
11
|
+
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
12
|
+
import { ButtonStyle } from '../../PredefinedConfig/Common/ButtonStyle';
|
|
13
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
14
|
+
export declare class AlertInternalApi extends ApiBase {
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves the Adaptable Form with the given name
|
|
17
|
+
* @param name name of the Form
|
|
18
|
+
*/
|
|
19
|
+
getAdaptableFormByName(name: string): AdaptableForm<AlertFormContext> | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves all Alert Definitions in Alert State which are NOT Reactive (BooleanQuery)
|
|
22
|
+
* @returns alert definitions
|
|
23
|
+
*/
|
|
24
|
+
getNonReactiveAlertDefinitions(): AlertDefinition[];
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves all active (non-suspended) Alert Definitions in Alert State which are NOT Reactive (BooleanQuery)
|
|
27
|
+
* @returns alert definitions
|
|
28
|
+
*/
|
|
29
|
+
getActiveNonReactiveAlertDefinitions(): AlertDefinition[];
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* Retrieves all Alert Definitions in Alert State which are reactive (ObservableQuery & AggregationQuery)
|
|
33
|
+
* @returns alert definitions
|
|
34
|
+
*/
|
|
35
|
+
getReactiveAlertDefinitions(): AlertDefinition[];
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* Retrieves all active (non-suspended) Alert Definitions in Alert State which are reactive (ObservableQuery & AggregationQuery)
|
|
39
|
+
* @returns alert definitions
|
|
40
|
+
*/
|
|
41
|
+
getActiveReactiveAlertDefinitions(): AlertDefinition[];
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves all Alert Definitions which prevent a Cell Edit
|
|
44
|
+
* @returns alert definitions
|
|
45
|
+
*/
|
|
46
|
+
getAlertDefinitionsWithPreventEdit(): AlertDefinition[];
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves all Alert Definitions which allow a Cell Edit
|
|
49
|
+
* @returns alert definitions
|
|
50
|
+
*/
|
|
51
|
+
getAlertDefinitionsWithAllowEdit(): AlertDefinition[];
|
|
52
|
+
/**
|
|
53
|
+
* Publishes an event when an Alert is triggered
|
|
54
|
+
* @param alertToFire Alerts which has just triggered
|
|
55
|
+
*/
|
|
56
|
+
publishAlertFiredEvent(alertToFire: AdaptableAlert): void;
|
|
57
|
+
/**
|
|
58
|
+
* Runs after a button in an Alert Form is clicked
|
|
59
|
+
*/
|
|
60
|
+
executeAlertButton(button: AlertButton<AlertFormContext>, context: AlertFormContext): void;
|
|
61
|
+
/**
|
|
62
|
+
* Runs after an Alert Action is invoked
|
|
63
|
+
* @param actionName Action which has been invoked
|
|
64
|
+
* @param details Info about the Alert and Form
|
|
65
|
+
*/
|
|
66
|
+
executeAlertAction(actionName: AdaptableAlertAction | string, details: {
|
|
67
|
+
alertDefinition: AlertDefinition;
|
|
68
|
+
cellDataChangedInfo?: CellDataChangedInfo;
|
|
69
|
+
gridDataChangedInfo?: GridDataChangedInfo;
|
|
70
|
+
formData?: AdaptableFormData;
|
|
71
|
+
}): void;
|
|
72
|
+
/**
|
|
73
|
+
* Retrieves all Predicate Defs that match given Scope
|
|
74
|
+
* @param scope the Scope to check
|
|
75
|
+
*/
|
|
76
|
+
getAlertPredicateDefsForScope(scope: AdaptableScope): AdaptablePredicateDef[];
|
|
77
|
+
/**
|
|
78
|
+
* Returns a description of an Alert Definition
|
|
79
|
+
* @param alertDefinition Alert Definition to use
|
|
80
|
+
*/
|
|
81
|
+
getAlertDescription(alertDefinition: AlertDefinition, cellDataChangedInfo?: CellDataChangedInfo): string;
|
|
82
|
+
/**
|
|
83
|
+
* Returns a description title of an Alert Definition
|
|
84
|
+
* @param alertDefinition Alert Definition to use
|
|
85
|
+
*/
|
|
86
|
+
getAlertMessageTitle(alertDefinition: AlertDefinition, cellDataChangedInfo?: CellDataChangedInfo): string;
|
|
87
|
+
/**
|
|
88
|
+
* Returns custom description for alert using the 'alertMessageText' property
|
|
89
|
+
*
|
|
90
|
+
* @param alertDefinition Alert Definition to use
|
|
91
|
+
* @param dataChangedInfo data change info, it can be eighter grid or cell data chantged info
|
|
92
|
+
*/
|
|
93
|
+
getCustomAlertDescription(alertDefinition: AlertDefinition, dataChangedInfo?: {
|
|
94
|
+
cellDataChangedInfo?: CellDataChangedInfo;
|
|
95
|
+
gridDataChangedInfo?: GridDataChangedInfo;
|
|
96
|
+
}): string;
|
|
97
|
+
/**
|
|
98
|
+
* Returns custom title defined by 'alertMessageTitle' property
|
|
99
|
+
* @param alertDefinition Alert Definition to use
|
|
100
|
+
* @param dataChangedInfo Data change info, it can be eighter grid or cell data chantged info
|
|
101
|
+
*/
|
|
102
|
+
getCustomAlertMessageTitle(alertDefinition: AlertDefinition, dataChangedInfo?: {
|
|
103
|
+
cellDataChangedInfo?: CellDataChangedInfo;
|
|
104
|
+
gridDataChangedInfo?: GridDataChangedInfo;
|
|
105
|
+
}): string;
|
|
106
|
+
/**
|
|
107
|
+
* Returns a description of an Alert Definition's Rule
|
|
108
|
+
* @param alertDefinition Alert Definition to use
|
|
109
|
+
*/
|
|
110
|
+
getAlertRuleDescription(alertDefinition: AlertDefinition): string;
|
|
111
|
+
/**
|
|
112
|
+
* Was Adaptable Alert fired due to a Cell Change
|
|
113
|
+
* @param alert AdaptableAlert to check
|
|
114
|
+
*/
|
|
115
|
+
isCellChangedAdaptableAlert(alert: AdaptableAlert): boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Was Adaptable Alert fired due to a Row Change
|
|
118
|
+
* @param alert AdaptableAlert to check
|
|
119
|
+
*/
|
|
120
|
+
isRowChangedAdaptableAlert(alert: AdaptableAlert): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Is Adaptable Alert a Generic one
|
|
123
|
+
* @param alert AdaptableAlert to check
|
|
124
|
+
*/
|
|
125
|
+
isGenericAdaptableAlert(alert: AdaptableAlert): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Returns for the Alert Type for an Adaptable Alert
|
|
128
|
+
* @param alert AdaptableAlert to check
|
|
129
|
+
*/
|
|
130
|
+
getAlertTypeForAdaptableAlert(alert: AdaptableAlert): 'cellChanged' | 'rowChanged' | 'generic';
|
|
131
|
+
getAdaptableFormFromAlertForm(alertForm: string | AlertButtonForm, context: any, defaultMessageType?: AdaptableMessageType): (Omit<AdaptableForm<AlertFormContext>, 'buttons'> & {
|
|
132
|
+
buttons?: (Omit<AdaptableButton<AlertFormContext>, 'buttonStyle'> & {
|
|
133
|
+
buttonStyle?: ButtonStyle;
|
|
134
|
+
})[];
|
|
135
|
+
}) | undefined;
|
|
136
|
+
getAdaptableAlerts(): AdaptableAlert[];
|
|
137
|
+
getAdaptableCellChangedAlerts(): AdaptableCellChangedAlert[];
|
|
138
|
+
getAdaptableRowChangedAlerts(): AdaptableRowChangedAlert[];
|
|
139
|
+
getAdaptableAlertWithHighlightCell(columnId: string, rowNode: RowNode): AdaptableAlert | undefined;
|
|
140
|
+
getAdaptableAlertWithHighlightRow(rowNode: RowNode): AdaptableAlert | undefined;
|
|
141
|
+
isAlertDefinitionForAddedRowChangeEvent(alertDefinition: AlertDefinition): boolean;
|
|
142
|
+
isAlertDefinitionForRemovedRowChangeEvent(alertDefinition: AlertDefinition): boolean;
|
|
143
|
+
getAlertDefinitionsForCellDataChange(dataChangedEvent: CellDataChangedInfo): AlertDefinition[];
|
|
144
|
+
private isAggregationAlertTriggered;
|
|
145
|
+
private isAlertPredicateTriggered;
|
|
146
|
+
isAlertDefinitionForRowChangeEvent(alertDefinition: AlertDefinition): boolean;
|
|
147
|
+
showAlertForDefinitions(cellDataChangedInfo: CellDataChangedInfo, alertDefinitions?: AlertDefinition[]): void;
|
|
148
|
+
}
|