@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
|
@@ -14,12 +14,14 @@ const getFormatColumnStyleViewItems_1 = require("./Utilities/FormatColumn/getFor
|
|
|
14
14
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
15
15
|
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
16
16
|
const MoveFormatColumn_1 = require("../View/FormatColumn/MoveFormatColumn");
|
|
17
|
+
const Helper_1 = require("../Utilities/Helpers/Helper");
|
|
18
|
+
const updateSingleToMultiplePredicates_1 = require("./Utilities/updateSingleToMultiplePredicates");
|
|
17
19
|
class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
18
20
|
constructor(api) {
|
|
19
21
|
super(ModuleConstants.FormatColumnModuleId, ModuleConstants.FormatColumnFriendlyName, 'format-column', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
|
|
20
22
|
}
|
|
21
23
|
getModuleAdaptableObjects(config) {
|
|
22
|
-
return this.api.formatColumnApi.
|
|
24
|
+
return this.api.formatColumnApi.getFormatColumns(config);
|
|
23
25
|
}
|
|
24
26
|
getExplicitlyReferencedColumnIds(formatColumn) {
|
|
25
27
|
if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
|
|
@@ -34,6 +36,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
34
36
|
}
|
|
35
37
|
updateOldConfig() {
|
|
36
38
|
this.updateConditionalStylesColumnsOldConfig();
|
|
39
|
+
this.updateFormatColumnSingleToMultiplePredicates();
|
|
37
40
|
// update ConditionalStyle StatusBarPanel
|
|
38
41
|
const oldStatusBars = this.api.internalApi.getState().StatusBar.StatusBars;
|
|
39
42
|
let replaceConditionalStyleStatusBar = false;
|
|
@@ -62,6 +65,16 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
62
65
|
this.api.toolPanelApi.setModuleButtons([...new Set(dashboardModuleButtons)]);
|
|
63
66
|
}
|
|
64
67
|
}
|
|
68
|
+
updateFormatColumnSingleToMultiplePredicates() {
|
|
69
|
+
const formatColumns = this.api.formatColumnApi.getFormatColumns();
|
|
70
|
+
formatColumns.forEach((formatColumn) => {
|
|
71
|
+
if (formatColumn.Rule && 'Predicate' in formatColumn.Rule) {
|
|
72
|
+
const preparedFormatColumn = (0, Helper_1.cloneObject)(formatColumn);
|
|
73
|
+
(0, updateSingleToMultiplePredicates_1.updateSingleToMultiplePredicates)(preparedFormatColumn.Rule);
|
|
74
|
+
this.api.formatColumnApi.editFormatColumn(preparedFormatColumn);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
65
78
|
updateConditionalStylesColumnsOldConfig() {
|
|
66
79
|
var _a;
|
|
67
80
|
const oldConditionalStyles = (_a = this.api.internalApi.getState().ConditionalStyle) === null || _a === void 0 ? void 0 : _a.ConditionalStyles;
|
|
@@ -71,8 +84,21 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
71
84
|
(0, LoggingHelper_1.ConsoleLogWarning)(`DEPRECATED: Conditional Styles have been merged into 'Format Columns'`);
|
|
72
85
|
// remove conditional styles
|
|
73
86
|
this.api.internalApi.deleteConditionalStyles(oldConditionalStyles);
|
|
87
|
+
const transformedFormatColumns = oldConditionalStyles.map((conditionalStyle) => {
|
|
88
|
+
const formatColumn = {
|
|
89
|
+
Scope: conditionalStyle.Scope,
|
|
90
|
+
Style: conditionalStyle.Style,
|
|
91
|
+
IncludeGroupedRows: conditionalStyle.IncludeGroupedRows,
|
|
92
|
+
};
|
|
93
|
+
if ('Rule' in conditionalStyle && conditionalStyle.Rule.Predicate) {
|
|
94
|
+
formatColumn.Rule = {
|
|
95
|
+
Predicates: [conditionalStyle.Rule.Predicate],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
return formatColumn;
|
|
99
|
+
});
|
|
74
100
|
// add as format column
|
|
75
|
-
this.api.formatColumnApi.addFormatColumns(
|
|
101
|
+
this.api.formatColumnApi.addFormatColumns(transformedFormatColumns);
|
|
76
102
|
}
|
|
77
103
|
addColumnMenuItems(column) {
|
|
78
104
|
let returnColumnMenuItems = [];
|
|
@@ -88,7 +114,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
88
114
|
}
|
|
89
115
|
getTeamSharingAction() {
|
|
90
116
|
return {
|
|
91
|
-
ModuleEntities: this.api.formatColumnApi.
|
|
117
|
+
ModuleEntities: this.api.formatColumnApi.getFormatColumns(),
|
|
92
118
|
AddAction: FormatColumnRedux.FormatColumnAdd,
|
|
93
119
|
EditAction: FormatColumnRedux.FormatColumnEdit,
|
|
94
120
|
};
|
|
@@ -17,7 +17,7 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
17
17
|
!this.api.internalApi.getAdaptableOptions().autogeneratePrimaryKey);
|
|
18
18
|
}
|
|
19
19
|
getModuleAdaptableObjects() {
|
|
20
|
-
return this.api.freeTextColumnApi.
|
|
20
|
+
return this.api.freeTextColumnApi.getFreeTextColumns();
|
|
21
21
|
}
|
|
22
22
|
hasNamedQueryReferences() {
|
|
23
23
|
return false;
|
|
@@ -36,7 +36,7 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
36
36
|
addColumnMenuItems(column) {
|
|
37
37
|
if (column && this.isModuleEditable()) {
|
|
38
38
|
if (this.api.freeTextColumnApi
|
|
39
|
-
.
|
|
39
|
+
.getFreeTextColumns()
|
|
40
40
|
.find((ftc) => ftc.ColumnId == column.columnId)) {
|
|
41
41
|
let popupParam = {
|
|
42
42
|
column: column,
|
|
@@ -51,7 +51,7 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
51
51
|
}
|
|
52
52
|
getTeamSharingAction() {
|
|
53
53
|
return {
|
|
54
|
-
ModuleEntities: this.api.freeTextColumnApi.
|
|
54
|
+
ModuleEntities: this.api.freeTextColumnApi.getFreeTextColumns(),
|
|
55
55
|
AddAction: FreeTextColumnRedux.FreeTextColumnAdd,
|
|
56
56
|
EditAction: FreeTextColumnRedux.FreeTextColumnEdit,
|
|
57
57
|
};
|
|
@@ -21,7 +21,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
21
21
|
constructor(api) {
|
|
22
22
|
super(ModuleConstants.LayoutModuleId, ModuleConstants.LayoutFriendlyName, 'layout', 'LayoutPopup', 'Named sets of column visibility, order, groupings, aggregation, pivots etc.', api);
|
|
23
23
|
this.clearUnsuportedFeaturesFromLayout = (layout) => {
|
|
24
|
-
const layoutSupportedFeatures = this.api.layoutApi.getLayoutSupportedFeatures();
|
|
24
|
+
const layoutSupportedFeatures = this.api.layoutApi.internalApi.getLayoutSupportedFeatures();
|
|
25
25
|
let needsUpdate = false;
|
|
26
26
|
const layoutToSave = Object.assign({}, layout);
|
|
27
27
|
if (!layoutSupportedFeatures.RowGroupedColumns && layout.RowGroupedColumns) {
|
|
@@ -66,11 +66,11 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
66
66
|
* less error prone to just remove it.
|
|
67
67
|
*/
|
|
68
68
|
if (this.api.internalApi.getAdaptableInstance().getRowModel() === 'viewport') {
|
|
69
|
-
this.api.layoutApi.
|
|
69
|
+
this.api.layoutApi.getLayouts().forEach(this.clearUnsuportedFeaturesFromLayout);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
getModuleAdaptableObjects() {
|
|
73
|
-
return this.api.layoutApi.
|
|
73
|
+
return this.api.layoutApi.getLayouts();
|
|
74
74
|
}
|
|
75
75
|
getExplicitlyReferencedColumnIds(layout) {
|
|
76
76
|
const columnIds = [];
|
|
@@ -89,7 +89,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
89
89
|
getTeamSharingReferences(adaptableObject) {
|
|
90
90
|
const teamSharingReferences = super.getTeamSharingReferences(adaptableObject);
|
|
91
91
|
const layoutName = adaptableObject.Name;
|
|
92
|
-
if (this.api.internalApi.hasLayoutSpecificObjects() && !!layoutName) {
|
|
92
|
+
if (this.api.layoutApi.internalApi.hasLayoutSpecificObjects() && !!layoutName) {
|
|
93
93
|
const layoutAssociatedObjectReferences = [];
|
|
94
94
|
const loadConfig = {
|
|
95
95
|
associatedWithLayout: layoutName,
|
|
@@ -99,7 +99,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
99
99
|
Reference: alertDefinition,
|
|
100
100
|
Module: 'Alert',
|
|
101
101
|
}));
|
|
102
|
-
this.api.customSortApi.
|
|
102
|
+
this.api.customSortApi.getCustomSorts(loadConfig).forEach((customSort) => layoutAssociatedObjectReferences.push({
|
|
103
103
|
Reference: customSort,
|
|
104
104
|
Module: 'CustomSort',
|
|
105
105
|
}));
|
|
@@ -107,7 +107,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
107
107
|
Reference: flashingCell,
|
|
108
108
|
Module: 'FlashingCell',
|
|
109
109
|
}));
|
|
110
|
-
this.api.formatColumnApi.
|
|
110
|
+
this.api.formatColumnApi.getFormatColumns(loadConfig).forEach((formatColumn) => layoutAssociatedObjectReferences.push({
|
|
111
111
|
Reference: formatColumn,
|
|
112
112
|
Module: 'FormatColumn',
|
|
113
113
|
}));
|
|
@@ -115,16 +115,16 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
115
115
|
Reference: plusMinusNudge,
|
|
116
116
|
Module: 'PlusMinus',
|
|
117
117
|
}));
|
|
118
|
-
this.api.shortcutApi.
|
|
118
|
+
this.api.shortcutApi.getShortcuts(loadConfig).forEach((shortcut) => layoutAssociatedObjectReferences.push({
|
|
119
119
|
Reference: shortcut,
|
|
120
120
|
Module: 'Shortcut',
|
|
121
121
|
}));
|
|
122
122
|
[
|
|
123
|
-
...this.api.scheduleApi.
|
|
124
|
-
...this.api.scheduleApi.
|
|
125
|
-
...this.api.scheduleApi.
|
|
126
|
-
...this.api.scheduleApi.
|
|
127
|
-
...this.api.scheduleApi.
|
|
123
|
+
...this.api.scheduleApi.getReportSchedules(loadConfig),
|
|
124
|
+
...this.api.scheduleApi.getReminderSchedules(loadConfig),
|
|
125
|
+
...this.api.scheduleApi.getGlue42Schedules(loadConfig),
|
|
126
|
+
...this.api.scheduleApi.getIPushPullSchedules(loadConfig),
|
|
127
|
+
...this.api.scheduleApi.getOpenFinSchedules(loadConfig),
|
|
128
128
|
].forEach((schedule) => layoutAssociatedObjectReferences.push({
|
|
129
129
|
Reference: schedule,
|
|
130
130
|
Module: 'Schedule',
|
|
@@ -138,7 +138,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
138
138
|
}
|
|
139
139
|
handleAdaptableReady() {
|
|
140
140
|
requestAnimationFrame(() => {
|
|
141
|
-
this.api.layoutApi.fireLayoutChangedEvent('ADAPTABLE_READY', null, this.api.layoutApi.getLayoutState());
|
|
141
|
+
this.api.layoutApi.internalApi.fireLayoutChangedEvent('ADAPTABLE_READY', null, this.api.layoutApi.getLayoutState());
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
addColumnMenuItems(column) {
|
|
@@ -248,7 +248,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
248
248
|
const { agGridColumn } = menuContext;
|
|
249
249
|
const columnId = agGridColumn.getColId();
|
|
250
250
|
const isPivotColumn = this.api.columnApi.isAutoPivotColumn(columnId);
|
|
251
|
-
if (!isPivotColumn && this.api.columnApi.
|
|
251
|
+
if (!isPivotColumn && this.api.columnApi.getColumnDataTypeForColumnId(columnId) !== 'Number') {
|
|
252
252
|
return;
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
@@ -302,7 +302,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
302
302
|
}
|
|
303
303
|
getTeamSharingAction() {
|
|
304
304
|
return {
|
|
305
|
-
ModuleEntities: this.api.layoutApi.
|
|
305
|
+
ModuleEntities: this.api.layoutApi.getLayouts(),
|
|
306
306
|
AddAction: LayoutRedux.LayoutAdd,
|
|
307
307
|
EditAction: LayoutRedux.LayoutSave,
|
|
308
308
|
};
|
|
@@ -314,7 +314,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
314
314
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
315
315
|
const maxColumnsToDisplay = (_d = (_c = (_b = (_a = this.api.internalApi.getAdaptableOptions()) === null || _a === void 0 ? void 0 : _a.layoutOptions) === null || _b === void 0 ? void 0 : _b.layoutViewOptions) === null || _c === void 0 ? void 0 : _c.maxColumnsToDisplay) !== null && _d !== void 0 ? _d : 10;
|
|
316
316
|
const columnIdToFriendlyName = (columnId) => {
|
|
317
|
-
return this.api.columnApi.
|
|
317
|
+
return this.api.columnApi.getFriendlyNameForColumnId(columnId);
|
|
318
318
|
};
|
|
319
319
|
let columns = layout.Columns.filter((c) => !this.api.columnApi.isAutoRowGroupColumn(c)).filter((c) => !this.api.columnApi.isAutoPivotColumn(c));
|
|
320
320
|
if (columns.length >
|
|
@@ -394,7 +394,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
394
394
|
getEditWizard: () => LayoutWizard_1.LayoutWizard,
|
|
395
395
|
getStatusBarPanelProps: () => {
|
|
396
396
|
const text = this.api.layoutApi.getCurrentLayoutName();
|
|
397
|
-
const layouts = this.api.layoutApi.
|
|
397
|
+
const layouts = this.api.layoutApi.getLayouts();
|
|
398
398
|
const popover = layouts.length > 1 ? LayoutStatusBarSubPanelPopover_1.LayoutStatusBarSubPanelPopover : null;
|
|
399
399
|
return {
|
|
400
400
|
content: text,
|
|
@@ -406,7 +406,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
408
|
handleLayoutChange() {
|
|
409
|
-
if (!this.api.internalApi.hasLayoutSpecificObjects()) {
|
|
409
|
+
if (!this.api.layoutApi.internalApi.hasLayoutSpecificObjects()) {
|
|
410
410
|
// no need if no callback implementation is provided or no auto checking
|
|
411
411
|
return;
|
|
412
412
|
}
|
|
@@ -34,7 +34,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
34
34
|
if (!((_a = plusMinusNudge.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression)) {
|
|
35
35
|
return [];
|
|
36
36
|
}
|
|
37
|
-
return this.api.queryApi.getReferencedNamedQueryNames((_b = plusMinusNudge.Rule) === null || _b === void 0 ? void 0 : _b.BooleanExpression);
|
|
37
|
+
return this.api.queryApi.internalApi.getReferencedNamedQueryNames((_b = plusMinusNudge.Rule) === null || _b === void 0 ? void 0 : _b.BooleanExpression);
|
|
38
38
|
}
|
|
39
39
|
handleAdaptableReady() {
|
|
40
40
|
let plusMinusNudges = this.api.plusMinusApi.getAllPlusMinus();
|
|
@@ -96,7 +96,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
96
96
|
plusMinusNudges.forEach((pmr) => {
|
|
97
97
|
if (!foundRule) {
|
|
98
98
|
if (this.api.scopeApi.isColumnInScope(gridCell.column, pmr.Scope)) {
|
|
99
|
-
if (this.api.gridApi.
|
|
99
|
+
if (this.api.gridApi.isCellEditable(gridCell)) {
|
|
100
100
|
//for aggrid as we are getting strings sometimes
|
|
101
101
|
if (typeof gridCell.rawValue != 'number') {
|
|
102
102
|
gridCell.rawValue = parseFloat(gridCell.rawValue);
|
|
@@ -13,11 +13,11 @@ class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
13
13
|
super(ModuleConstants.QueryModuleId, ModuleConstants.QueryFriendlyName, 'query', 'QueryPopup', 'Run real-time text-based queries using a wealth of powerful functions and operators', api);
|
|
14
14
|
}
|
|
15
15
|
getModuleAdaptableObjects() {
|
|
16
|
-
return this.api.queryApi.
|
|
16
|
+
return this.api.queryApi.getNamedQueries();
|
|
17
17
|
}
|
|
18
18
|
getTeamSharingAction() {
|
|
19
19
|
return {
|
|
20
|
-
ModuleEntities: this.api.queryApi.
|
|
20
|
+
ModuleEntities: this.api.queryApi.getNamedQueries(),
|
|
21
21
|
AddAction: QueryRedux.NamedQueryAdd,
|
|
22
22
|
EditAction: QueryRedux.NamedQueryEdit,
|
|
23
23
|
};
|
|
@@ -26,7 +26,7 @@ class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
26
26
|
return this.api.queryLanguageApi.getColumnsFromExpression(namedQuery.BooleanExpression);
|
|
27
27
|
}
|
|
28
28
|
getReferencedNamedQueryNames(namedQuery) {
|
|
29
|
-
return this.api.queryApi.getReferencedNamedQueryNames(namedQuery.BooleanExpression);
|
|
29
|
+
return this.api.queryApi.internalApi.getReferencedNamedQueryNames(namedQuery.BooleanExpression);
|
|
30
30
|
}
|
|
31
31
|
toView(query) {
|
|
32
32
|
return {
|
|
@@ -46,25 +46,23 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
46
46
|
this.clearAllJobs();
|
|
47
47
|
//add schedules
|
|
48
48
|
this.api.scheduleApi
|
|
49
|
-
.
|
|
49
|
+
.getActiveReminderSchedules()
|
|
50
50
|
.forEach((reminderSchedule) => {
|
|
51
51
|
this.addSchedule(reminderSchedule, Enums_1.ScheduleType.Reminder);
|
|
52
52
|
});
|
|
53
53
|
// add Reports
|
|
54
|
-
this.api.scheduleApi.
|
|
54
|
+
this.api.scheduleApi.getActiveReportSchedules().forEach((reportSchedule) => {
|
|
55
55
|
this.addSchedule(reportSchedule, Enums_1.ScheduleType.Report);
|
|
56
56
|
});
|
|
57
57
|
this.api.scheduleApi
|
|
58
|
-
.
|
|
58
|
+
.getActiveIPushPullSchedules()
|
|
59
59
|
.forEach((iPushPullSchedule) => {
|
|
60
60
|
this.addSchedule(iPushPullSchedule, Enums_1.ScheduleType.ipushpull);
|
|
61
61
|
});
|
|
62
|
-
this.api.scheduleApi.
|
|
62
|
+
this.api.scheduleApi.getActiveGlue42Schedules().forEach((glue42Schedule) => {
|
|
63
63
|
this.addSchedule(glue42Schedule, Enums_1.ScheduleType.Glue42);
|
|
64
64
|
});
|
|
65
|
-
this.api.scheduleApi
|
|
66
|
-
.getAllActiveOpenFinSchedule()
|
|
67
|
-
.forEach((OpenFinSchedule) => {
|
|
65
|
+
this.api.scheduleApi.getActiveOpenFinSchedules().forEach((OpenFinSchedule) => {
|
|
68
66
|
this.addSchedule(OpenFinSchedule, Enums_1.ScheduleType.OpenFin);
|
|
69
67
|
});
|
|
70
68
|
// }
|
|
@@ -127,14 +125,14 @@ class ScheduleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
127
125
|
const exportAcessLevel = entitlementService.getEntitlementAccessLevelForModule(ModuleConstants.ExportModuleId);
|
|
128
126
|
let allSchedules = [];
|
|
129
127
|
if (accessLevel !== 'Hidden') {
|
|
130
|
-
allSchedules.push(...this.api.scheduleApi.
|
|
128
|
+
allSchedules.push(...this.api.scheduleApi.getReminderSchedules(config));
|
|
131
129
|
}
|
|
132
130
|
if (exportAcessLevel !== 'Hidden') {
|
|
133
|
-
allSchedules.push(...this.api.scheduleApi.
|
|
131
|
+
allSchedules.push(...this.api.scheduleApi.getReportSchedules(config));
|
|
134
132
|
}
|
|
135
|
-
allSchedules.push(...this.api.scheduleApi.
|
|
136
|
-
allSchedules.push(...this.api.scheduleApi.
|
|
137
|
-
allSchedules.push(...this.api.scheduleApi.
|
|
133
|
+
allSchedules.push(...this.api.scheduleApi.getIPushPullSchedules(config));
|
|
134
|
+
allSchedules.push(...this.api.scheduleApi.getGlue42Schedules(config));
|
|
135
|
+
allSchedules.push(...this.api.scheduleApi.getOpenFinSchedules(config));
|
|
138
136
|
return allSchedules;
|
|
139
137
|
}
|
|
140
138
|
toView(schedule) {
|
|
@@ -19,14 +19,14 @@ class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
19
19
|
this.adaptable = api.internalApi.getAdaptableInstance();
|
|
20
20
|
}
|
|
21
21
|
getModuleAdaptableObjects(config) {
|
|
22
|
-
return this.api.shortcutApi.
|
|
22
|
+
return this.api.shortcutApi.getShortcuts(config);
|
|
23
23
|
}
|
|
24
24
|
hasNamedQueryReferences() {
|
|
25
25
|
return false;
|
|
26
26
|
}
|
|
27
27
|
getTeamSharingAction() {
|
|
28
28
|
return {
|
|
29
|
-
ModuleEntities: this.api.shortcutApi.
|
|
29
|
+
ModuleEntities: this.api.shortcutApi.getShortcuts(),
|
|
30
30
|
AddAction: ShortcutRedux.ShortcutAdd,
|
|
31
31
|
EditAction: ShortcutRedux.ShortcutEdit,
|
|
32
32
|
};
|
|
@@ -38,7 +38,7 @@ class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
checkListenToKeyDown() {
|
|
41
|
-
const shortcuts = this.api.shortcutApi.
|
|
41
|
+
const shortcuts = this.api.shortcutApi.getShortcuts();
|
|
42
42
|
this.shouldHandleKeyDown = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(shortcuts);
|
|
43
43
|
}
|
|
44
44
|
handleKeyDown(cellEditorKeyDownEvent) {
|
|
@@ -48,9 +48,9 @@ class ShortcutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
48
48
|
}
|
|
49
49
|
const { keyDownEvent, cellValue, columnId, updateValueCallback } = cellEditorKeyDownEvent;
|
|
50
50
|
const matchingShortcut = this.api.shortcutApi
|
|
51
|
-
.
|
|
51
|
+
.getActiveShortcuts()
|
|
52
52
|
.find((x) => keyDownEvent.key.toLowerCase() === x.ShortcutKey.toLowerCase() &&
|
|
53
|
-
this.api.scopeApi.isColumnInScope(this.api.columnApi.
|
|
53
|
+
this.api.scopeApi.isColumnInScope(this.api.columnApi.getColumnWithColumnId(columnId), x.Scope));
|
|
54
54
|
if (!matchingShortcut || !matchingShortcut.ShortcutValue) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
@@ -27,7 +27,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
27
27
|
!menuContext.adaptableColumn.readOnly &&
|
|
28
28
|
menuContext.isSelectedCell &&
|
|
29
29
|
menuContext.isSingleSelectedColumn &&
|
|
30
|
-
this.api.gridApi.
|
|
30
|
+
this.api.gridApi.isEveryCellEditable(menuContext.selectedCellInfo.gridCells)) {
|
|
31
31
|
let popUpParams = {
|
|
32
32
|
source: 'ContextMenu',
|
|
33
33
|
};
|
|
@@ -100,7 +100,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
if (ArrayExtensions_1.default.IsNotNullOrEmpty(selectedCellInfo.gridCells) &&
|
|
103
|
-
!this.api.gridApi.
|
|
103
|
+
!this.api.gridApi.isEveryCellEditable(selectedCellInfo.gridCells)) {
|
|
104
104
|
return {
|
|
105
105
|
Alert: {
|
|
106
106
|
alertType: 'generic',
|
|
@@ -118,7 +118,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
118
118
|
let column;
|
|
119
119
|
if (!this.api.internalApi.isGridInPivotMode()) {
|
|
120
120
|
if (ArrayExtensions_1.default.IsNotNullOrEmpty(selectedCellInfo.columns)) {
|
|
121
|
-
column = this.api.columnApi.
|
|
121
|
+
column = this.api.columnApi.getColumnWithColumnId(selectedCellInfo.columns[0].columnId);
|
|
122
122
|
if (column) {
|
|
123
123
|
selectedCellInfo.gridCells.forEach((selectedCell) => {
|
|
124
124
|
let newValue;
|
|
@@ -6,9 +6,10 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const StyledColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/StyledColumnRedux"));
|
|
8
8
|
const StyledColumnWizard_1 = require("../View/StyledColumn/Wizard/StyledColumnWizard");
|
|
9
|
-
const StyledColumnWizardStyleSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection");
|
|
9
|
+
const StyledColumnWizardStyleSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection");
|
|
10
10
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
|
|
11
11
|
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
12
|
+
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
12
13
|
class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
13
14
|
constructor(api) {
|
|
14
15
|
super(ModuleConstants.StyledColumnModuleId, ModuleConstants.StyledColumnFriendlyName, 'brush', 'StyledColumnPopup', // to change
|
|
@@ -37,7 +38,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
37
38
|
}
|
|
38
39
|
updateOldConfig() {
|
|
39
40
|
const formatColumnsWithColumnStyles = this.api.formatColumnApi
|
|
40
|
-
.
|
|
41
|
+
.getFormatColumns()
|
|
41
42
|
.filter((formatColumn) => formatColumn.ColumnStyle);
|
|
42
43
|
if (!formatColumnsWithColumnStyles.length) {
|
|
43
44
|
return;
|
|
@@ -57,7 +58,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
57
58
|
styledColumns.forEach((styledColumn) => this.api.styledColumnApi.addStyledColumn(styledColumn));
|
|
58
59
|
}
|
|
59
60
|
getModuleAdaptableObjects(config) {
|
|
60
|
-
return this.api.styledColumnApi.
|
|
61
|
+
return this.api.styledColumnApi.getStyledColumns(config);
|
|
61
62
|
}
|
|
62
63
|
getExplicitlyReferencedColumnIds(formatColumn) {
|
|
63
64
|
if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
|
|
@@ -74,7 +75,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
74
75
|
let returnColumnMenuItems = [];
|
|
75
76
|
if (column && this.isModuleEditable() && !column.isSparkline) {
|
|
76
77
|
if (column.dataType === 'Number') {
|
|
77
|
-
let styledColumn = this.api.styledColumnApi.
|
|
78
|
+
let styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(column.columnId);
|
|
78
79
|
let styledColumnExists = Boolean(styledColumn);
|
|
79
80
|
if (!styledColumn) {
|
|
80
81
|
styledColumn = Object.assign(Object.assign({}, ObjectFactory_1.default.CreateEmptyStyledColumn()), { ColumnId: column.columnId,
|
|
@@ -93,7 +94,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
93
94
|
returnColumnMenuItems.push(this.createColumnMenuItemShowPopup(label + 'Styled Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam));
|
|
94
95
|
}
|
|
95
96
|
if (column.dataType == 'Boolean' && !this.api.columnApi.isFreeTextColumn(column.columnId)) {
|
|
96
|
-
let styledColumn = this.api.styledColumnApi.
|
|
97
|
+
let styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(column.columnId);
|
|
97
98
|
const hasCheckBox = styledColumn && (styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.CheckBoxStyle);
|
|
98
99
|
if (hasCheckBox) {
|
|
99
100
|
returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Remove Checkbox', 'unchecked', () => {
|
|
@@ -112,7 +113,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
112
113
|
}
|
|
113
114
|
getTeamSharingAction() {
|
|
114
115
|
return {
|
|
115
|
-
ModuleEntities: this.api.styledColumnApi.
|
|
116
|
+
ModuleEntities: this.api.styledColumnApi.getStyledColumns(),
|
|
116
117
|
AddAction: StyledColumnRedux.StyledColumnAdd,
|
|
117
118
|
EditAction: StyledColumnRedux.StyledColumnEdit,
|
|
118
119
|
};
|
|
@@ -140,7 +141,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
140
141
|
},
|
|
141
142
|
{
|
|
142
143
|
name: 'Column',
|
|
143
|
-
values: [this.api.columnApi.
|
|
144
|
+
values: [this.api.columnApi.getFriendlyNameForColumnId(styledColumn.ColumnId)],
|
|
144
145
|
},
|
|
145
146
|
!styledColumn.SparkLineStyle && {
|
|
146
147
|
name: 'Style',
|
|
@@ -152,6 +153,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
152
153
|
name: 'Settings',
|
|
153
154
|
values: [`Include grouped rows: ${styledColumn.IncludeGroupedRows ? 'Yes' : 'No'}`],
|
|
154
155
|
},
|
|
156
|
+
(0, getObjectTagsViewItems_1.getObjectTagsViewItems)(styledColumn, this.api),
|
|
155
157
|
].filter(Boolean),
|
|
156
158
|
};
|
|
157
159
|
}
|
|
@@ -33,7 +33,7 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
33
33
|
this.api.internalApi.dispatchReduxAction(TeamSharingRedux.TeamSharingCommitImport());
|
|
34
34
|
});
|
|
35
35
|
if (this.api.teamSharingApi.isTeamSharingAvailable()) {
|
|
36
|
-
this.api.teamSharingApi.triggerLoadingTeamSharingEntries();
|
|
36
|
+
this.api.teamSharingApi.internalApi.triggerLoadingTeamSharingEntries();
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
isModuleAvailable() {
|
|
@@ -47,7 +47,7 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
47
47
|
}
|
|
48
48
|
handleStateChanged(adaptableStateChangedInfo) {
|
|
49
49
|
// check if TeamSharing is activated
|
|
50
|
-
if (!this.api.teamSharingApi.
|
|
50
|
+
if (!this.api.teamSharingApi.isTeamSharingAvailable()) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
// skip all teamsharing actions, otherwise we could get in an infinite loop
|
|
@@ -167,7 +167,7 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
167
167
|
return {
|
|
168
168
|
actions: [TeamSharingApplyButton_1.TeamSharingApplyButton],
|
|
169
169
|
onMount: () => {
|
|
170
|
-
this.api.teamSharingApi.triggerLoadingTeamSharingEntries();
|
|
170
|
+
this.api.teamSharingApi.internalApi.triggerLoadingTeamSharingEntries();
|
|
171
171
|
},
|
|
172
172
|
getDeleteAction: (sharedEntity) => {
|
|
173
173
|
return TeamSharingRedux.TeamSharingRemoveItem(sharedEntity.Uuid);
|
|
@@ -10,7 +10,7 @@ class ThemeModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
10
10
|
super(ModuleConstants.ThemeModuleId, ModuleConstants.ThemeFriendlyName, 'theme', 'ThemePopup', 'Theme AdapTable with a colour configuration set of your choosing', api);
|
|
11
11
|
}
|
|
12
12
|
getModuleAdaptableObjects() {
|
|
13
|
-
return this.api.themeApi.
|
|
13
|
+
return this.api.themeApi.getThemes();
|
|
14
14
|
}
|
|
15
15
|
hasNamedQueryReferences() {
|
|
16
16
|
return false;
|
|
@@ -4,7 +4,7 @@ exports.getCustomSortColumnViewItems = void 0;
|
|
|
4
4
|
const getCustomSortColumnViewItems = (customSort, api) => {
|
|
5
5
|
return {
|
|
6
6
|
name: 'Column',
|
|
7
|
-
values: [api.columnApi.
|
|
7
|
+
values: [api.columnApi.getFriendlyNameForColumnId(customSort.ColumnId)],
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
exports.getCustomSortColumnViewItems = getCustomSortColumnViewItems;
|
|
@@ -4,7 +4,7 @@ exports.getLayoutFilterViewItems = void 0;
|
|
|
4
4
|
const getLayoutFilterViewItems = (layout, api) => {
|
|
5
5
|
var _a;
|
|
6
6
|
const columnIdToFriendlyName = (columnId) => {
|
|
7
|
-
return api.columnApi.
|
|
7
|
+
return api.columnApi.getFriendlyNameForColumnId(columnId);
|
|
8
8
|
};
|
|
9
9
|
return {
|
|
10
10
|
name: 'Filter',
|
|
@@ -4,7 +4,7 @@ exports.getLayoutSortViewItems = void 0;
|
|
|
4
4
|
const getLayoutSortViewItems = (layout, api) => {
|
|
5
5
|
var _a;
|
|
6
6
|
const columnIdToFriendlyName = (columnId) => {
|
|
7
|
-
return api.columnApi.
|
|
7
|
+
return api.columnApi.getFriendlyNameForColumnId(columnId);
|
|
8
8
|
};
|
|
9
9
|
return {
|
|
10
10
|
name: 'Sort',
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuleViewItems = void 0;
|
|
4
4
|
const getRuleViewItems = (rule, api) => {
|
|
5
|
+
var _a, _b, _c;
|
|
5
6
|
return {
|
|
6
7
|
name: 'Condition',
|
|
7
8
|
values: [
|
|
8
|
-
rule.
|
|
9
|
-
? api.predicateApi.predicateToString(
|
|
10
|
-
: api.internalApi.getAdaptableQueryExpressionText(rule),
|
|
9
|
+
((_a = rule === null || rule === void 0 ? void 0 : rule.Predicates) === null || _a === void 0 ? void 0 : _a.length)
|
|
10
|
+
? (_b = rule === null || rule === void 0 ? void 0 : rule.Predicates) === null || _b === void 0 ? void 0 : _b.map((predicate) => api.predicateApi.predicateToString(predicate)).join(' AND ')
|
|
11
|
+
: (_c = api.internalApi.getAdaptableQueryExpressionText(rule)) !== null && _c !== void 0 ? _c : 'No condition',
|
|
11
12
|
],
|
|
12
13
|
};
|
|
13
14
|
};
|
|
@@ -5,7 +5,7 @@ const getScopeViewItems = (scope, api) => {
|
|
|
5
5
|
let values = [];
|
|
6
6
|
if ('ColumnIds' in scope && Array.isArray(scope.ColumnIds)) {
|
|
7
7
|
values = scope.ColumnIds;
|
|
8
|
-
values = scope.ColumnIds.map((columnId) => api.columnApi.
|
|
8
|
+
values = scope.ColumnIds.map((columnId) => api.columnApi.getFriendlyNameForColumnId(columnId)).filter(Boolean);
|
|
9
9
|
}
|
|
10
10
|
if ('DataTypes' in scope) {
|
|
11
11
|
values = scope.DataTypes;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateSingleToMultiplePredicates = void 0;
|
|
4
|
+
function updateSingleToMultiplePredicates(rule) {
|
|
5
|
+
var _a;
|
|
6
|
+
if ('Predicate' in rule && rule.Predicate) {
|
|
7
|
+
rule.Predicates = [rule.Predicate, ...((_a = rule.Predicates) !== null && _a !== void 0 ? _a : [])];
|
|
8
|
+
delete rule.Predicate;
|
|
9
|
+
}
|
|
10
|
+
return rule;
|
|
11
|
+
}
|
|
12
|
+
exports.updateSingleToMultiplePredicates = updateSingleToMultiplePredicates;
|
|
@@ -55,7 +55,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
55
55
|
},
|
|
56
56
|
adaptableQLOptions: {
|
|
57
57
|
caseSensitiveTextComparisons: false,
|
|
58
|
-
|
|
58
|
+
evaluateAdaptableQLExternally: undefined,
|
|
59
59
|
customPredicateDefs: [],
|
|
60
60
|
displayColumnFriendlyNamesForExpressions: true,
|
|
61
61
|
expressionOptions: {
|
|
@@ -154,7 +154,8 @@ exports.DefaultAdaptableOptions = {
|
|
|
154
154
|
customSortComparers: undefined,
|
|
155
155
|
englishVariant: 'GB',
|
|
156
156
|
unbalancedGroupsKey: undefined,
|
|
157
|
-
|
|
157
|
+
restoreUngroupedColumns: false,
|
|
158
|
+
disableDeleteConfirmation: false,
|
|
158
159
|
},
|
|
159
160
|
layoutOptions: {
|
|
160
161
|
includeExpandedRowGroups: false,
|
|
@@ -254,7 +255,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
254
255
|
editLookUpItems: undefined,
|
|
255
256
|
customDisplayFormatters: undefined,
|
|
256
257
|
showDocumentationLinks: true,
|
|
257
|
-
gridInfoSections: ['GridSummary', 'AdaptableOptions', 'ColumnInfo'],
|
|
258
|
+
gridInfoSections: ['GridSummary', 'AdaptableOptions', 'ColumnInfo', 'AdaptableObjectsSummary'],
|
|
258
259
|
showAdapTableVersion: true,
|
|
259
260
|
},
|
|
260
261
|
toolPanelOptions: {
|