@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
|
@@ -125,7 +125,7 @@ const getFormatDisplayTypeForScope = (scope, api) => {
|
|
|
125
125
|
}
|
|
126
126
|
// need to see if all columns are numeric or date
|
|
127
127
|
if ('ColumnIds' in scope) {
|
|
128
|
-
const columns = scope.ColumnIds.map((c) => api.columnApi.
|
|
128
|
+
const columns = scope.ColumnIds.map((c) => api.columnApi.getColumnWithColumnId(c)).filter(Boolean);
|
|
129
129
|
const columnDataTypes = (0, uniq_1.default)(columns.map((c) => c.dataType));
|
|
130
130
|
if (columnDataTypes.length == 1 && columnDataTypes[0] == 'Number') {
|
|
131
131
|
return 'Number';
|
|
@@ -192,6 +192,7 @@ const renderDateFormat = (data, _onChange, setFormatOption, scopedCustomFormatte
|
|
|
192
192
|
] })))))));
|
|
193
193
|
};
|
|
194
194
|
const renderNumberFormat = (data, onChange, setFormatOption, scopedCustomFormatters, formatColumnApi) => {
|
|
195
|
+
var _a, _b, _c;
|
|
195
196
|
if (data.DisplayFormat.Formatter !== 'NumberFormatter') {
|
|
196
197
|
return null;
|
|
197
198
|
}
|
|
@@ -254,9 +255,11 @@ const renderNumberFormat = (data, onChange, setFormatOption, scopedCustomFormatt
|
|
|
254
255
|
React.createElement(FormLayout_1.FormRow, { label: "Integer Separator" },
|
|
255
256
|
React.createElement(Input_1.default, { "data-name": "integer-separator", value: data.DisplayFormat.Options.IntegerSeparator, onChange: (e) => setFormatOption('IntegerSeparator', e.currentTarget.value) })),
|
|
256
257
|
React.createElement(FormLayout_1.FormRow, { label: "Prefix" },
|
|
257
|
-
React.createElement(Input_1.default, { "data-name": "prefix", value: data.DisplayFormat.Options.Prefix, onChange: (e) => setFormatOption('Prefix', e.currentTarget.value) })),
|
|
258
|
+
React.createElement(Input_1.default, { "data-name": "prefix", value: (_a = data.DisplayFormat.Options.Prefix) !== null && _a !== void 0 ? _a : '', onChange: (e) => setFormatOption('Prefix', e.currentTarget.value) })),
|
|
258
259
|
React.createElement(FormLayout_1.FormRow, { label: "Suffix" },
|
|
259
|
-
React.createElement(Input_1.default, { "data-name": "suffix", value: data.DisplayFormat.Options.Suffix, onChange: (e) => setFormatOption('Suffix', e.currentTarget.value) }))
|
|
260
|
+
React.createElement(Input_1.default, { "data-name": "suffix", value: (_b = data.DisplayFormat.Options.Suffix) !== null && _b !== void 0 ? _b : '', onChange: (e) => setFormatOption('Suffix', e.currentTarget.value) })),
|
|
261
|
+
React.createElement(FormLayout_1.FormRow, { label: "Content" },
|
|
262
|
+
React.createElement(Input_1.default, { "data-name": "content", type: "number", value: (_c = data.DisplayFormat.Options.Content) !== null && _c !== void 0 ? _c : '', onChange: (e) => setFormatOption('Content', e.currentTarget.value) }))),
|
|
260
263
|
React.createElement(FormLayout_1.default, null,
|
|
261
264
|
React.createElement(FormLayout_1.FormRow, { label: "Fraction Digits" },
|
|
262
265
|
React.createElement(Input_1.default, { "data-name": "fraction-digits", type: "number", min: "0",
|
|
@@ -321,6 +324,7 @@ const renderNumberFormat = (data, onChange, setFormatOption, scopedCustomFormatt
|
|
|
321
324
|
] })))));
|
|
322
325
|
};
|
|
323
326
|
const renderStringFormat = (data, _onChange, setFormatOption, scopedCustomFormatters, formatColumnApi) => {
|
|
327
|
+
var _a, _b, _c;
|
|
324
328
|
if (data.DisplayFormat.Formatter !== 'StringFormatter') {
|
|
325
329
|
return null;
|
|
326
330
|
}
|
|
@@ -337,9 +341,11 @@ const renderStringFormat = (data, _onChange, setFormatOption, scopedCustomFormat
|
|
|
337
341
|
React.createElement(Radio_1.default, { "data-name": "case-none", marginLeft: 2, checked: data.DisplayFormat.Options.Case == undefined, onChange: (checked) => setFormatOption('Case', undefined) }, "None"),
|
|
338
342
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "trim-checkbox", marginLeft: 5, checked: data.DisplayFormat.Options.Trim, onChange: (checked) => setFormatOption('Trim', checked) }, "Trim")),
|
|
339
343
|
React.createElement(FormLayout_1.FormRow, { label: "Prefix" },
|
|
340
|
-
React.createElement(Input_1.default, { "data-name": "prefix", value: data.DisplayFormat.Options.Prefix, onChange: (e) => setFormatOption('Prefix', e.currentTarget.value) })),
|
|
344
|
+
React.createElement(Input_1.default, { "data-name": "prefix", value: (_a = data.DisplayFormat.Options.Prefix) !== null && _a !== void 0 ? _a : '', onChange: (e) => setFormatOption('Prefix', e.currentTarget.value) })),
|
|
341
345
|
React.createElement(FormLayout_1.FormRow, { label: "Suffix" },
|
|
342
|
-
React.createElement(Input_1.default, { "data-name": "suffix", value: data.DisplayFormat.Options.Suffix, onChange: (e) => setFormatOption('Suffix', e.currentTarget.value) }))
|
|
346
|
+
React.createElement(Input_1.default, { "data-name": "suffix", value: (_b = data.DisplayFormat.Options.Suffix) !== null && _b !== void 0 ? _b : '', onChange: (e) => setFormatOption('Suffix', e.currentTarget.value) })),
|
|
347
|
+
React.createElement(FormLayout_1.FormRow, { label: "Content" },
|
|
348
|
+
React.createElement(Input_1.default, { "data-name": "content", value: (_c = data.DisplayFormat.Options.Content) !== null && _c !== void 0 ? _c : '', onChange: (e) => setFormatOption('Content', e.currentTarget.value) })))))),
|
|
343
349
|
scopedCustomFormatters.length > 0 && (React.createElement(Tabs_1.Tabs, { marginTop: 2, keyboardNavigation: false },
|
|
344
350
|
React.createElement(Tabs_1.Tabs.Tab, null, "Custom Formats"),
|
|
345
351
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
@@ -9,8 +9,8 @@ function FormatColumnRuleWizardSection(props) {
|
|
|
9
9
|
const { data, api, moduleInfo } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
10
10
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: props.defaultPredicateId,
|
|
11
11
|
// TODO see what is this
|
|
12
|
-
predicateDefs: api.formatColumnApi.getFormatColumnDefsForScope(data.Scope), showNoRule: true, showBoolean: true, showAggregation: false, showObservable: false, showPredicate: !api.scopeApi.scopeIsAll(data.Scope), data: data, onChange: (formatColumn) => props.onChange(formatColumn), descriptions: {
|
|
13
|
-
selectPredicate: '
|
|
12
|
+
predicateDefs: api.formatColumnApi.internalApi.getFormatColumnDefsForScope(data.Scope), showNoRule: true, showBoolean: true, showAggregation: false, showObservable: false, showPredicate: !api.scopeApi.scopeIsAll(data.Scope), data: data, onChange: (formatColumn) => props.onChange(formatColumn), descriptions: {
|
|
13
|
+
selectPredicate: 'Create a Format Column Rule - to be applied when data changes',
|
|
14
14
|
useBooleanQuery: (React.createElement(React.Fragment, null,
|
|
15
15
|
"Use an BooleanQuery if ",
|
|
16
16
|
React.createElement("i", null, "Scope"),
|
|
@@ -20,21 +20,23 @@ const FormatColumnScopeWizardSection = (props) => {
|
|
|
20
20
|
rowScope: 'Format all columns in the row',
|
|
21
21
|
columnScope: 'Select columns to format',
|
|
22
22
|
}, scope: data.Scope, updateScope: (Scope) => {
|
|
23
|
-
var _a;
|
|
23
|
+
var _a, _b;
|
|
24
24
|
const newData = Object.assign(Object.assign({}, data), { Scope });
|
|
25
25
|
const wholeRow = api.scopeApi.scopeIsAll(Scope);
|
|
26
|
-
if ((_a = newData.Rule) === null || _a === void 0 ? void 0 : _a.
|
|
26
|
+
if ((_b = (_a = newData.Rule) === null || _a === void 0 ? void 0 : _a.Predicates) === null || _b === void 0 ? void 0 : _b.length) {
|
|
27
27
|
if (wholeRow) {
|
|
28
28
|
// if scope is whole row, a predicate cannot be present, so we set the rule
|
|
29
29
|
// to be a boolean expression
|
|
30
|
-
delete newData.Rule.
|
|
30
|
+
delete newData.Rule.Predicates;
|
|
31
31
|
newData.Rule.BooleanExpression = '';
|
|
32
32
|
}
|
|
33
33
|
else {
|
|
34
34
|
// if scope is not whole row, if you have a predicate, reset it
|
|
35
|
-
newData.Rule.
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
newData.Rule.Predicates = [
|
|
36
|
+
{
|
|
37
|
+
PredicateId: constants_1.DEFAULT_PREDICATE_ID_FOR_FORMAT_COLUMN,
|
|
38
|
+
},
|
|
39
|
+
];
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
props.onChange(newData);
|
|
@@ -34,9 +34,8 @@ exports.renderFormatColumnStyleSummary = renderFormatColumnStyleSummary;
|
|
|
34
34
|
function FormatColumnStyleWizardSection(props) {
|
|
35
35
|
var _a;
|
|
36
36
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
37
|
-
return (React.createElement(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} })));
|
|
37
|
+
return (React.createElement(StyleComponent_1.StyleComponent, { headless: true, api: api, Style: (_a = data.Style) !== null && _a !== void 0 ? _a : {}, UpdateStyle: (Style) => {
|
|
38
|
+
props.onChange(Object.assign(Object.assign({}, data), { Style }));
|
|
39
|
+
} }));
|
|
41
40
|
}
|
|
42
41
|
exports.FormatColumnStyleWizardSection = FormatColumnStyleWizardSection;
|
|
@@ -17,7 +17,7 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/Obje
|
|
|
17
17
|
const react_redux_1 = require("react-redux");
|
|
18
18
|
const FormatColumnRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/FormatColumnRedux"));
|
|
19
19
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
20
|
-
const
|
|
20
|
+
const Utilities_1 = require("../../Components/EntityRulesEditor/Utilities");
|
|
21
21
|
const FormatColumnRuleWizardSection_1 = require("./FormatColumnRuleWizardSection");
|
|
22
22
|
const constants_1 = require("./constants");
|
|
23
23
|
const adjustDisplayFormat = (formatColumn, api) => {
|
|
@@ -30,35 +30,21 @@ const adjustDisplayFormat = (formatColumn, api) => {
|
|
|
30
30
|
formatDataType === 'Number') {
|
|
31
31
|
formatColumn.DisplayFormat = {
|
|
32
32
|
Formatter: 'NumberFormatter',
|
|
33
|
-
Options: {
|
|
34
|
-
FractionDigits: undefined,
|
|
35
|
-
FractionSeparator: '.',
|
|
36
|
-
IntegerDigits: undefined,
|
|
37
|
-
IntegerSeparator: ',',
|
|
38
|
-
Prefix: '',
|
|
39
|
-
Suffix: '',
|
|
40
|
-
Multiplier: 1,
|
|
41
|
-
Parentheses: false,
|
|
42
|
-
},
|
|
33
|
+
Options: {},
|
|
43
34
|
};
|
|
44
35
|
}
|
|
45
36
|
if ((!formatColumn.DisplayFormat || formatColumn.DisplayFormat.Formatter !== 'DateFormatter') &&
|
|
46
37
|
formatDataType === 'Date') {
|
|
47
38
|
formatColumn.DisplayFormat = {
|
|
48
39
|
Formatter: 'DateFormatter',
|
|
49
|
-
Options: {
|
|
50
|
-
Pattern: 'MM/dd/yyyy',
|
|
51
|
-
},
|
|
40
|
+
Options: {},
|
|
52
41
|
};
|
|
53
42
|
}
|
|
54
43
|
if ((!formatColumn.DisplayFormat || formatColumn.DisplayFormat.Formatter !== 'StringFormatter') &&
|
|
55
44
|
formatDataType === 'String') {
|
|
56
45
|
formatColumn.DisplayFormat = {
|
|
57
46
|
Formatter: 'StringFormatter',
|
|
58
|
-
Options: {
|
|
59
|
-
Case: undefined,
|
|
60
|
-
Trim: false,
|
|
61
|
-
},
|
|
47
|
+
Options: {},
|
|
62
48
|
};
|
|
63
49
|
}
|
|
64
50
|
return formatColumn;
|
|
@@ -111,7 +97,7 @@ function FormatColumnWizard(props) {
|
|
|
111
97
|
},
|
|
112
98
|
{
|
|
113
99
|
isValid: (abObject, api, context) => {
|
|
114
|
-
return abObject.Rule ? (0,
|
|
100
|
+
return abObject.Rule ? (0, Utilities_1.isRuleValid)(abObject, api, context) : true;
|
|
115
101
|
},
|
|
116
102
|
title: 'Condition',
|
|
117
103
|
details: 'Build a Rule when the Format Column should be applied',
|
|
@@ -136,7 +136,7 @@ class ColumnInfoComponent extends React.Component {
|
|
|
136
136
|
React.createElement(PlusMinusSummary_1.PlusMinusSummary, { key: ModuleConstants.PlusMinusModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.PlusMinusModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.PlusMinusModuleId) })));
|
|
137
137
|
}
|
|
138
138
|
if (this.isModuleAvailable(ModuleConstants.CalculatedColumnModuleId) &&
|
|
139
|
-
ArrayExtensions_1.ArrayExtensions.ContainsItem(this.props.api.calculatedColumnApi.
|
|
139
|
+
ArrayExtensions_1.ArrayExtensions.ContainsItem(this.props.api.calculatedColumnApi.getCalculatedColumns().map((cc) => cc.ColumnId), this.state.SelectedColumn.columnId)) {
|
|
140
140
|
summaries.push(React.createElement("div", { key: ModuleConstants.CalculatedColumnModuleId, className: this.isModuleReadOnly(ModuleConstants.CalculatedColumnModuleId)
|
|
141
141
|
? GeneralConstants.READ_ONLY_STYLE
|
|
142
142
|
: '' },
|
|
@@ -25,7 +25,7 @@ const GridInfoPopup = (props) => {
|
|
|
25
25
|
* Because it is not associated with a module yet, setting this flag to true.
|
|
26
26
|
* Needed for the logic weather to show radio buttons (buttons.length >= 2)
|
|
27
27
|
*/
|
|
28
|
-
const showAdaptableObjects =
|
|
28
|
+
const showAdaptableObjects = entitlementService.isGridInfoSectionVisible('AdaptableObjectsSummary');
|
|
29
29
|
const [state, setState] = React.useState({
|
|
30
30
|
ActiveTab: ((_a = props.popupParams) === null || _a === void 0 ? void 0 : _a.column)
|
|
31
31
|
? 'ColumnInfo'
|
|
@@ -50,18 +50,18 @@ const GridInfoPopup = (props) => {
|
|
|
50
50
|
var _a;
|
|
51
51
|
const returnRows = [];
|
|
52
52
|
const calcColumns = props.api.calculatedColumnApi
|
|
53
|
-
.
|
|
53
|
+
.getCalculatedColumns()
|
|
54
54
|
.map((c) => c.ColumnId);
|
|
55
55
|
const actionColumns = props.api.actionApi
|
|
56
|
-
.
|
|
56
|
+
.getActionColumns()
|
|
57
57
|
.map((ac) => ac.columnId);
|
|
58
58
|
const freeTextColumns = props.api.freeTextColumnApi
|
|
59
|
-
.
|
|
59
|
+
.getFreeTextColumns()
|
|
60
60
|
.map((c) => c.ColumnId);
|
|
61
|
-
const columnFilterDescription = props.api.filterApi.columnFiltersToString(props.api.filterApi.getColumnFilters());
|
|
61
|
+
const columnFilterDescription = props.api.filterApi.internalApi.columnFiltersToString(props.api.filterApi.getColumnFilters());
|
|
62
62
|
const sorts = ArrayExtensions_1.default.IsNotNullOrEmpty(props.api.gridApi.getColumnSorts())
|
|
63
63
|
? props.api.gridApi.getColumnSorts().map((gs) => {
|
|
64
|
-
return props.api.columnApi.
|
|
64
|
+
return props.api.columnApi.getFriendlyNameForColumnId(gs.ColumnId) + ': ' + gs.SortOrder;
|
|
65
65
|
})
|
|
66
66
|
: null;
|
|
67
67
|
const selectedRowInfo = props.api.gridApi.getSelectedRowInfo();
|
|
@@ -8,7 +8,7 @@ const AdaptableContext_1 = require("../AdaptableContext");
|
|
|
8
8
|
const LayoutRadioSelector = ({ data }) => {
|
|
9
9
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
10
10
|
const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
|
|
11
|
-
const layouts = adaptable.api.layoutApi.
|
|
11
|
+
const layouts = adaptable.api.layoutApi.getLayouts();
|
|
12
12
|
const isDisabled = (layouts === null || layouts === void 0 ? void 0 : layouts.length) === 1;
|
|
13
13
|
const isSelected = currentLayout.Name === data.Name;
|
|
14
14
|
const handleToggle = React.useCallback(() => {
|
|
@@ -7,7 +7,7 @@ const SelectList_1 = require("../../components/SelectList");
|
|
|
7
7
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
8
8
|
const LayoutStatusBarSubPanelPopover = () => {
|
|
9
9
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
10
|
-
const layouts = adaptable.api.layoutApi.
|
|
10
|
+
const layouts = adaptable.api.layoutApi.getLayouts();
|
|
11
11
|
const options = layouts.map((layout) => ({ label: layout.Name, value: layout.Uuid }));
|
|
12
12
|
const handleChange = (option) => {
|
|
13
13
|
adaptable.api.layoutApi.setLayout(option.label);
|
|
@@ -55,7 +55,7 @@ function mapStateToProps(state, ownProps) {
|
|
|
55
55
|
CurrentLayoutName,
|
|
56
56
|
CurrentDraftLayout: state.Grid.CurrentLayout || selectedLayout,
|
|
57
57
|
Layouts,
|
|
58
|
-
CanSave: state.Grid.CurrentLayout && !api.layoutApi.areDraftAndCurrentLayoutEqual(),
|
|
58
|
+
CanSave: state.Grid.CurrentLayout && !api.layoutApi.internalApi.areDraftAndCurrentLayoutEqual(),
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
function mapDispatchToProps(dispatch) {
|
|
@@ -20,7 +20,7 @@ const PivotDetailsPopoup = (props) => {
|
|
|
20
20
|
let data = rows;
|
|
21
21
|
const columns = React.useMemo(() => {
|
|
22
22
|
var _a, _b;
|
|
23
|
-
const getFriendlyName = (columnId) => adaptableApi.columnApi.
|
|
23
|
+
const getFriendlyName = (columnId) => adaptableApi.columnApi.getFriendlyNameForColumnId(columnId);
|
|
24
24
|
const pivotPreviewOptionColumn = (_b = (_a = adaptableApi.internalApi.getAdaptableOptions()) === null || _a === void 0 ? void 0 : _a.layoutOptions) === null || _b === void 0 ? void 0 : _b.pivotPreviewColumns;
|
|
25
25
|
let pivotPreviewExtraColumns = [];
|
|
26
26
|
if (typeof pivotPreviewOptionColumn === 'function') {
|
|
@@ -21,7 +21,7 @@ const SaveLayoutButton = () => {
|
|
|
21
21
|
dispatch(LayoutRedux.LayoutSave(layout));
|
|
22
22
|
dispatch(GridRedux.LayoutUpdateCurrentDraft(null));
|
|
23
23
|
}, []);
|
|
24
|
-
const isSaveEnabled = currentDraftLayout && !adaptable.api.layoutApi.areDraftAndCurrentLayoutEqual();
|
|
24
|
+
const isSaveEnabled = currentDraftLayout && !adaptable.api.layoutApi.internalApi.areDraftAndCurrentLayoutEqual();
|
|
25
25
|
if (!isManualSaveLayout) {
|
|
26
26
|
return React.createElement(React.Fragment, null);
|
|
27
27
|
}
|
|
@@ -21,7 +21,7 @@ const LayoutWizard = (props) => {
|
|
|
21
21
|
var _a, _b;
|
|
22
22
|
const dispatch = (0, react_redux_1.useDispatch)();
|
|
23
23
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
24
|
-
const allLayouts = adaptable.api.layoutApi.
|
|
24
|
+
const allLayouts = adaptable.api.layoutApi.getLayouts();
|
|
25
25
|
const initialLayout = (_a = props.data) !== null && _a !== void 0 ? _a : (_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.value;
|
|
26
26
|
const [layout, setLayout] = React.useState(() => {
|
|
27
27
|
var _a;
|
|
@@ -67,7 +67,7 @@ const LayoutWizard = (props) => {
|
|
|
67
67
|
}
|
|
68
68
|
props.onFinishWizard(layout);
|
|
69
69
|
};
|
|
70
|
-
const layoutSupportedFeatures = adaptable.api.layoutApi.getLayoutSupportedFeatures();
|
|
70
|
+
const layoutSupportedFeatures = adaptable.api.layoutApi.internalApi.getLayoutSupportedFeatures();
|
|
71
71
|
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { titleContainerStyle: { width: 180 }, defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: layout, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
72
72
|
{
|
|
73
73
|
title: 'Settings',
|
|
@@ -32,7 +32,7 @@ const AggregationsSectionSummary = () => {
|
|
|
32
32
|
const entires = Object.entries(aggregations !== null && aggregations !== void 0 ? aggregations : {});
|
|
33
33
|
let content = null;
|
|
34
34
|
if (entires.length) {
|
|
35
|
-
content = (React.createElement(FormLayout_1.default, null, entires.map(([columnId, aggregation]) => (React.createElement(FormLayout_1.FormRow, { key: columnId, label: adaptable.api.columnApi.
|
|
35
|
+
content = (React.createElement(FormLayout_1.default, null, entires.map(([columnId, aggregation]) => (React.createElement(FormLayout_1.FormRow, { key: columnId, label: adaptable.api.columnApi.getFriendlyNameForColumnId(columnId) },
|
|
36
36
|
React.createElement(Tag_1.Tag, null, typeof aggregation === 'object' ? aggregation.type : aggregation))))));
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
@@ -92,7 +92,7 @@ const ColumnRow = (props) => {
|
|
|
92
92
|
let weightName = null;
|
|
93
93
|
if (typeof aggValue === 'object' && aggValue.type === 'weightedAverage') {
|
|
94
94
|
weightName = aggValue.weightedColumnId
|
|
95
|
-
? adaptable.api.columnApi.
|
|
95
|
+
? adaptable.api.columnApi.getFriendlyNameForColumnId(aggValue.weightedColumnId)
|
|
96
96
|
: 'Select Weight';
|
|
97
97
|
}
|
|
98
98
|
return (React.createElement(rebass_1.Flex, { alignItems: "center" },
|
|
@@ -107,12 +107,12 @@ const AggregationsSection = (props) => {
|
|
|
107
107
|
var _a, _b;
|
|
108
108
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
109
109
|
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
110
|
-
const allAggregableColumns = adaptable.api.columnApi.
|
|
110
|
+
const allAggregableColumns = adaptable.api.columnApi.getAggregatableColumns();
|
|
111
111
|
const allColumns = adaptable.api.columnApi.getColumns();
|
|
112
112
|
const numberColumns = adaptable.api.columnApi.getNumericColumns();
|
|
113
113
|
const sortedAggregableColumns = React.useMemo(() => {
|
|
114
114
|
var _a, _b;
|
|
115
|
-
return (0, sortWithOrder_1.sortWithOrderArray)(allAggregableColumns.map((col) => col.columnId), (_b = Object.keys((_a = layout.AggregationColumns) !== null && _a !== void 0 ? _a : {})) !== null && _b !== void 0 ? _b : [], { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.
|
|
115
|
+
return (0, sortWithOrder_1.sortWithOrderArray)(allAggregableColumns.map((col) => col.columnId), (_b = Object.keys((_a = layout.AggregationColumns) !== null && _a !== void 0 ? _a : {})) !== null && _b !== void 0 ? _b : [], { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId));
|
|
116
116
|
}, [layout, allAggregableColumns]);
|
|
117
117
|
const handleColumnsSelectionChange = React.useCallback((columnIds) => {
|
|
118
118
|
props.onChange(Object.assign(Object.assign({}, layout), { AggregationColumns: columnIds.reduce((acc, colId) => {
|
|
@@ -35,7 +35,7 @@ const ColumnsSectionSummary = () => {
|
|
|
35
35
|
adaptable.api.columnApi.isAutoRowGroupColumn(columnId)) {
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
|
-
const friendlyName = adaptable.api.columnApi.
|
|
38
|
+
const friendlyName = adaptable.api.columnApi.getFriendlyNameForColumnId(columnId);
|
|
39
39
|
const header = (_b = (_a = layout.ColumnHeadersMap) === null || _a === void 0 ? void 0 : _a[columnId]) !== null && _b !== void 0 ? _b : '';
|
|
40
40
|
const columnWidth = (_c = layout.ColumnWidthMap) === null || _c === void 0 ? void 0 : _c[columnId];
|
|
41
41
|
const columnPinning = (_d = layout.PinnedColumnsMap) === null || _d === void 0 ? void 0 : _d[columnId];
|
|
@@ -138,7 +138,7 @@ const ColumnRow = (props) => {
|
|
|
138
138
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
139
139
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
140
140
|
// headers
|
|
141
|
-
const initialHeader = adaptable.api.columnApi.
|
|
141
|
+
const initialHeader = adaptable.api.columnApi.getFriendlyNameForColumnId(props.column.columnId);
|
|
142
142
|
const customHeader = (_b = (_a = props.layout.ColumnHeadersMap) === null || _a === void 0 ? void 0 : _a[props.column.columnId]) !== null && _b !== void 0 ? _b : '';
|
|
143
143
|
// column pinning
|
|
144
144
|
const columnPinning = ((_c = props.layout.PinnedColumnsMap) === null || _c === void 0 ? void 0 : _c[props.column.columnId]) || 'None';
|
|
@@ -192,7 +192,7 @@ const ColumnsSection = (props) => {
|
|
|
192
192
|
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
193
193
|
const allColumns = adaptable.api.columnApi.getColumns();
|
|
194
194
|
const sortedColumns = React.useMemo(() => {
|
|
195
|
-
return (0, sortWithOrder_1.sortWithOrderArray)(allColumns.map((col) => col.columnId), layout.Columns, { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.
|
|
195
|
+
return (0, sortWithOrder_1.sortWithOrderArray)(allColumns.map((col) => col.columnId), layout.Columns, { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId));
|
|
196
196
|
}, [layout, allColumns]);
|
|
197
197
|
const handlePinChange = (columnId, pinning) => {
|
|
198
198
|
props.onChange(Object.assign(Object.assign({}, layout), { PinnedColumnsMap: Object.assign(Object.assign({}, layout.PinnedColumnsMap), { [columnId]: pinning }) }));
|
|
@@ -202,8 +202,8 @@ const ColumnsSection = (props) => {
|
|
|
202
202
|
};
|
|
203
203
|
const handleColumnsChange = (columnIds) => {
|
|
204
204
|
var _a, _b;
|
|
205
|
-
const oldColumns = (_a = layout.Columns.map((colId) => adaptable.api.columnApi.
|
|
206
|
-
const newColumns = (_b = columnIds.map((colId) => adaptable.api.columnApi.
|
|
205
|
+
const oldColumns = (_a = layout.Columns.map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId))) !== null && _a !== void 0 ? _a : [];
|
|
206
|
+
const newColumns = (_b = columnIds.map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId))) !== null && _b !== void 0 ? _b : [];
|
|
207
207
|
if (!(0, AdaptableColumn_1.isValidOrderForColumnGroups)({ oldColumns, newColumns })) {
|
|
208
208
|
return;
|
|
209
209
|
}
|
|
@@ -44,7 +44,7 @@ const FilterSection = (props) => {
|
|
|
44
44
|
? Object.assign(Object.assign({}, columnFilter), { Predicate: predicate }) : layoutFilter) }));
|
|
45
45
|
}, [layout.ColumnFilters]);
|
|
46
46
|
const columnsOptions = React.useMemo(() => adaptable.api.columnApi
|
|
47
|
-
.
|
|
47
|
+
.getFilterableColumns()
|
|
48
48
|
.filter(
|
|
49
49
|
// filter out columns with filters already
|
|
50
50
|
(abColumn) => {
|
|
@@ -52,7 +52,7 @@ const FilterSection = (props) => {
|
|
|
52
52
|
return !((_a = layout.ColumnFilters) === null || _a === void 0 ? void 0 : _a.some((columnFilter) => abColumn.columnId === columnFilter.ColumnId));
|
|
53
53
|
})
|
|
54
54
|
.map(({ columnId }) => ({
|
|
55
|
-
label: adaptable.api.columnApi.
|
|
55
|
+
label: adaptable.api.columnApi.getFriendlyNameForColumnId(columnId),
|
|
56
56
|
onClick: () => {
|
|
57
57
|
props.onChange(Object.assign(Object.assign({}, layout), { ColumnFilters: [
|
|
58
58
|
...layoutFilters,
|
|
@@ -15,7 +15,7 @@ const PivotColumnsSectionSummary = () => {
|
|
|
15
15
|
var _a;
|
|
16
16
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
17
17
|
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
18
|
-
return (React.createElement(rebass_1.Box, { p: 2, style: { borderRadius: 'var(--ab__border-radius)' }, backgroundColor: "var(--ab-color-defaultbackground)" }, ((_a = layout.PivotColumns) === null || _a === void 0 ? void 0 : _a.length) ? (layout.PivotColumns.map((columnId) => (React.createElement(Tag_1.Tag, { mr: 1, key: columnId }, adaptable.api.columnApi.
|
|
18
|
+
return (React.createElement(rebass_1.Box, { p: 2, style: { borderRadius: 'var(--ab__border-radius)' }, backgroundColor: "var(--ab-color-defaultbackground)" }, ((_a = layout.PivotColumns) === null || _a === void 0 ? void 0 : _a.length) ? (layout.PivotColumns.map((columnId) => (React.createElement(Tag_1.Tag, { mr: 1, key: columnId }, adaptable.api.columnApi.getFriendlyNameForColumnId(columnId))))) : (React.createElement(Tag_1.Tag, null, "No Column Pivoting"))));
|
|
19
19
|
};
|
|
20
20
|
exports.PivotColumnsSectionSummary = PivotColumnsSectionSummary;
|
|
21
21
|
const PivotColumnsSection = (props) => {
|
|
@@ -25,7 +25,7 @@ const PivotColumnsSection = (props) => {
|
|
|
25
25
|
const allPivotColumns = adaptable.api.columnApi.getPivotableColumns();
|
|
26
26
|
const sortedPivotColumns = React.useMemo(() => {
|
|
27
27
|
var _a;
|
|
28
|
-
return (0, sortWithOrder_1.sortWithOrderArray)(allPivotColumns.map((col) => col.columnId), (_a = layout.PivotColumns) !== null && _a !== void 0 ? _a : [], { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.
|
|
28
|
+
return (0, sortWithOrder_1.sortWithOrderArray)(allPivotColumns.map((col) => col.columnId), (_a = layout.PivotColumns) !== null && _a !== void 0 ? _a : [], { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId));
|
|
29
29
|
}, [layout, allPivotColumns]);
|
|
30
30
|
const handleColumnsChange = (columnIds) => {
|
|
31
31
|
props.onChange(Object.assign(Object.assign({}, layout), { PivotColumns: columnIds }));
|
|
@@ -16,7 +16,7 @@ const RowGroupingSectionSummary = () => {
|
|
|
16
16
|
var _a;
|
|
17
17
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
18
18
|
const { data: layout } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
19
|
-
return (React.createElement(rebass_1.Box, null, ((_a = layout.RowGroupedColumns) === null || _a === void 0 ? void 0 : _a.length) ? (layout.RowGroupedColumns.map((columnId) => (React.createElement(Tag_1.Tag, { mr: 1, key: columnId }, adaptable.api.columnApi.
|
|
19
|
+
return (React.createElement(rebass_1.Box, null, ((_a = layout.RowGroupedColumns) === null || _a === void 0 ? void 0 : _a.length) ? (layout.RowGroupedColumns.map((columnId) => (React.createElement(Tag_1.Tag, { mr: 1, key: columnId }, adaptable.api.columnApi.getFriendlyNameForColumnId(columnId))))) : (React.createElement(Tag_1.Tag, null, "No Row Grouping"))));
|
|
20
20
|
};
|
|
21
21
|
exports.RowGroupingSectionSummary = RowGroupingSectionSummary;
|
|
22
22
|
const RowGroupingSection = (props) => {
|
|
@@ -26,7 +26,7 @@ const RowGroupingSection = (props) => {
|
|
|
26
26
|
const allGroupableColumns = adaptable.api.columnApi.getGroupableColumns();
|
|
27
27
|
const sortedGroupableColumns = React.useMemo(() => {
|
|
28
28
|
var _a;
|
|
29
|
-
return (0, sortWithOrder_1.sortWithOrderArray)(allGroupableColumns.map((col) => col.columnId), (_a = layout.RowGroupedColumns) !== null && _a !== void 0 ? _a : [], { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.
|
|
29
|
+
return (0, sortWithOrder_1.sortWithOrderArray)(allGroupableColumns.map((col) => col.columnId), (_a = layout.RowGroupedColumns) !== null && _a !== void 0 ? _a : [], { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId));
|
|
30
30
|
}, [layout, allGroupableColumns]);
|
|
31
31
|
const handleColumnsChange = (columnIds) => {
|
|
32
32
|
props.onChange(Object.assign(Object.assign({}, layout), { RowGroupedColumns: columnIds }));
|
|
@@ -35,7 +35,7 @@ const SortSection = (props) => {
|
|
|
35
35
|
const allSortableColumns = adaptable.api.columnApi.getSortableColumns();
|
|
36
36
|
const sortedSortColumns = React.useMemo(() => {
|
|
37
37
|
var _a;
|
|
38
|
-
return (0, sortWithOrder_1.sortWithOrderArray)(allSortableColumns.map((col) => col.columnId), ((_a = layout.ColumnSorts) !== null && _a !== void 0 ? _a : []).map((sort) => sort.ColumnId), { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.
|
|
38
|
+
return (0, sortWithOrder_1.sortWithOrderArray)(allSortableColumns.map((col) => col.columnId), ((_a = layout.ColumnSorts) !== null && _a !== void 0 ? _a : []).map((sort) => sort.ColumnId), { sortUnorderedItems: false }).map((colId) => adaptable.api.columnApi.getColumnWithColumnId(colId));
|
|
39
39
|
}, [layout, allSortableColumns]);
|
|
40
40
|
const handleColumnsSelectionChange = React.useCallback((columnIds) => {
|
|
41
41
|
props.onChange(Object.assign(Object.assign({}, layout), { ColumnSorts: (columnIds || []).map((columnId) => {
|
|
@@ -4,7 +4,7 @@ import { PlusMinusNudge, AdaptableApi } from '../../../types';
|
|
|
4
4
|
export declare const PlusMinusSettingsSummary: React.FunctionComponent<{
|
|
5
5
|
hasCondition: boolean;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const isSettingsValid: (hasCondition: boolean) => (data: PlusMinusNudge, api: AdaptableApi, context: OnePageAdaptableWizardContextType<PlusMinusNudge>) => true | "
|
|
7
|
+
export declare const isSettingsValid: (hasCondition: boolean) => (data: PlusMinusNudge, api: AdaptableApi, context: OnePageAdaptableWizardContextType<PlusMinusNudge>) => true | "The Expression is not a valid Boolean Expression" | "No valid Condition is specified" | "The Predicates are not valid" | "Nudge value is not specified" | "Nudge value must be different than 0";
|
|
8
8
|
interface PlusMinusSettingsWizardSectionProps {
|
|
9
9
|
onChange: (plusMinusNudge: PlusMinusNudge) => void;
|
|
10
10
|
hasCondition: boolean;
|
|
@@ -10,7 +10,7 @@ const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayou
|
|
|
10
10
|
const Tabs_1 = require("../../../components/Tabs");
|
|
11
11
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
12
12
|
const PlusMinusRuleWizardSection_1 = require("./PlusMinusRuleWizardSection");
|
|
13
|
-
const
|
|
13
|
+
const Utilities_1 = require("../../Components/EntityRulesEditor/Utilities");
|
|
14
14
|
const OnePageAdaptableWizard_2 = require("../../../View/Wizard/OnePageAdaptableWizard");
|
|
15
15
|
const Tag_1 = require("../../../components/Tag");
|
|
16
16
|
const PlusMinusSettingsSummary = (props) => {
|
|
@@ -24,7 +24,7 @@ const PlusMinusSettingsSummary = (props) => {
|
|
|
24
24
|
};
|
|
25
25
|
exports.PlusMinusSettingsSummary = PlusMinusSettingsSummary;
|
|
26
26
|
const isSettingsValid = (hasCondition) => (data, api, context) => {
|
|
27
|
-
const ruleValidation = hasCondition ? (0,
|
|
27
|
+
const ruleValidation = hasCondition ? (0, Utilities_1.isRuleValid)(data, api, context) : true;
|
|
28
28
|
if (typeof ruleValidation === 'string') {
|
|
29
29
|
return ruleValidation;
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ const ExpandedQueryPopup = (props) => {
|
|
|
32
32
|
},
|
|
33
33
|
} },
|
|
34
34
|
React.createElement(rebass_1.Flex, { height: "100%", flexDirection: "column" },
|
|
35
|
-
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'boolean', module: ModuleConstants_1.QueryModuleId, value: expression, onChange: (expression) => setExpression(expression), initialData: initialData, columns: props.api.columnApi.getQueryableColumns(), namedQueries: props.api.queryApi.
|
|
35
|
+
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'boolean', module: ModuleConstants_1.QueryModuleId, value: expression, onChange: (expression) => setExpression(expression), initialData: initialData, columns: props.api.columnApi.getQueryableColumns(), namedQueries: props.api.queryApi.getNamedQueries(), api: props.api }),
|
|
36
36
|
React.createElement(rebass_1.Flex, { flexDirection: "row", padding: 1, backgroundColor: "primary", alignItems: "center" },
|
|
37
37
|
React.createElement(SimpleButton_1.default, { margin: 1, variant: "text", "data-name": "action-close", onClick: () => {
|
|
38
38
|
props.onDismiss();
|
|
@@ -32,6 +32,6 @@ const NamedQueryExpressionWizardSection = (props) => {
|
|
|
32
32
|
const initialData = (0, react_1.useMemo)(() => api.internalApi.getQueryPreviewData(), []);
|
|
33
33
|
return (React.createElement(ExpressionEditor_1.ExpressionEditor, { allowSaveNamedQuery: false, type: 'boolean', module: moduleInfo.ModuleName, value: data.BooleanExpression, onChange: (BooleanExpression) => {
|
|
34
34
|
props.onChange(Object.assign(Object.assign({}, data), { BooleanExpression }));
|
|
35
|
-
}, initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.
|
|
35
|
+
}, initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.getNamedQueries(), api: api }));
|
|
36
36
|
};
|
|
37
37
|
exports.NamedQueryExpressionWizardSection = NamedQueryExpressionWizardSection;
|
|
@@ -12,12 +12,12 @@ const ScheduleSettingsOpenFin_1 = require("./ScheduleSettingsOpenFin");
|
|
|
12
12
|
const ScheduleSettingsGlue42_1 = require("./ScheduleSettingsGlue42");
|
|
13
13
|
const ScheduleSettingsWizard = (props) => {
|
|
14
14
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
15
|
-
const allReports = api.exportApi.
|
|
15
|
+
const allReports = api.exportApi.getReports();
|
|
16
16
|
if ((data === null || data === void 0 ? void 0 : data.ScheduleType) === Enums_1.ScheduleType.Reminder) {
|
|
17
17
|
return (React.createElement(ScheduleSettingsReminder_1.ScheduleSettingsReminder, { reminderSchedule: data, onChange: props.onChange }));
|
|
18
18
|
}
|
|
19
19
|
if ((data === null || data === void 0 ? void 0 : data.ScheduleType) === Enums_1.ScheduleType.Report) {
|
|
20
|
-
const customDestinations = api.exportApi.
|
|
20
|
+
const customDestinations = api.exportApi.getCustomDestinations();
|
|
21
21
|
return (React.createElement(ScheduleSettingsReport_1.ScheduleSettingsReport, { allReports: allReports !== null && allReports !== void 0 ? allReports : [], customDestinations: customDestinations || [], report: data, onChange: props.onChange }));
|
|
22
22
|
}
|
|
23
23
|
if ((data === null || data === void 0 ? void 0 : data.ScheduleType) === Enums_1.ScheduleType.ipushpull) {
|
|
@@ -24,7 +24,7 @@ const ShortcutWizard = (props) => {
|
|
|
24
24
|
});
|
|
25
25
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
26
26
|
const availableKeys = React.useMemo(() => {
|
|
27
|
-
const availableKeys = shortcutKeys_1.shortcutKeys.filter((key) => adaptable.api.shortcutApi.
|
|
27
|
+
const availableKeys = shortcutKeys_1.shortcutKeys.filter((key) => adaptable.api.shortcutApi.getShortcuts().every((shortcut) => shortcut.ShortcutKey !== key));
|
|
28
28
|
if (shortcut) {
|
|
29
29
|
availableKeys.push(shortcut.ShortcutKey);
|
|
30
30
|
}
|
|
@@ -41,7 +41,7 @@ class SmartEditViewPanelComponent extends React.Component {
|
|
|
41
41
|
render() {
|
|
42
42
|
let statusColour = this.getStatusColour();
|
|
43
43
|
let selectedColumn = StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.state.SelectedColumnId)
|
|
44
|
-
? this.props.api.columnApi.
|
|
44
|
+
? this.props.api.columnApi.getColumnWithColumnId(this.state.SelectedColumnId)
|
|
45
45
|
: null;
|
|
46
46
|
let previewPanel = (React.createElement(PreviewResultsPanel_1.PreviewResultsPanel, { previewInfo: this.props.PreviewInfo, api: this.props.api, selectedColumn: selectedColumn, showPanel: true, showHeader: false }));
|
|
47
47
|
const operationMenuItems = EnumExtensions_1.EnumExtensions.getNames(Enums_1.MathOperation).map((mathOperation, index) => {
|
|
@@ -41,7 +41,7 @@ const StatusBarPanel = (props) => {
|
|
|
41
41
|
: content;
|
|
42
42
|
return (React.createElement(rebass_1.Flex, Object.assign({}, flexProps, { alignItems: "center", justifyContent: "center", className: baseClassName, onClick: handleWrapperClick, style: { cursor: shouldTriggerActionOnWrapperClick ? 'pointer' : 'default' } }),
|
|
43
43
|
props.icon && (React.createElement(SimpleButton_1.default, { tooltip: tooltip, color: props.color, icon: props.icon, iconSize: 15, variant: "text", onClick: handleIconClick, mr: preparedContent ? 1 : 0 })),
|
|
44
|
-
popover ? (React.createElement(AdaptablePopover_1.AdaptablePopover, { tooltipText: tooltip, showIcon: false, bodyText: [popoverContent], MessageType: 'Info', showEvent: 'focus', hideEvent: "blur", popoverMinWidth: popoverMinWidth }, preparedContent)) : (preparedContent),
|
|
44
|
+
popover ? (React.createElement(AdaptablePopover_1.AdaptablePopover, { alignPosition: [['BottomCenter', 'TopCenter']], tooltipText: tooltip, showIcon: false, bodyText: [popoverContent], MessageType: 'Info', showEvent: 'focus', hideEvent: "blur", popoverMinWidth: popoverMinWidth }, preparedContent)) : (preparedContent),
|
|
45
45
|
ArrayExtensions_1.default.IsNotNullOrEmpty(extraActions) && (React.createElement(rebass_1.Box, { ml: 1 }, (_a = extraActions === null || extraActions === void 0 ? void 0 : extraActions.map) === null || _a === void 0 ? void 0 : _a.call(extraActions, (action, index) => React.createElement(action, { key: index }))))));
|
|
46
46
|
};
|
|
47
47
|
exports.StatusBarPanel = StatusBarPanel;
|
|
@@ -215,7 +215,7 @@ const SparklineObjectNumberArrayProperties = (props) => {
|
|
|
215
215
|
let currentRow = 0;
|
|
216
216
|
while (!cellData || currentRow < MAX_ROWS_TO_CHECK) {
|
|
217
217
|
const rowWithData = (_a = api.gridApi.getRowNodeForIndex(currentRow)) === null || _a === void 0 ? void 0 : _a.data;
|
|
218
|
-
const column = api.columnApi.
|
|
218
|
+
const column = api.columnApi.getColumnWithColumnId(data.ColumnId);
|
|
219
219
|
if ((_b = rowWithData === null || rowWithData === void 0 ? void 0 : rowWithData[column === null || column === void 0 ? void 0 : column.field]) === null || _b === void 0 ? void 0 : _b[0]) {
|
|
220
220
|
cellData = (_c = rowWithData === null || rowWithData === void 0 ? void 0 : rowWithData[column === null || column === void 0 ? void 0 : column.field]) === null || _c === void 0 ? void 0 : _c[0];
|
|
221
221
|
break;
|
|
@@ -257,7 +257,7 @@ const StyledColumnSparklineSettingsSection = (props) => {
|
|
|
257
257
|
const newOptions = (0, ObjectExtensions_1.setInPath)((_a = data.SparkLineStyle.options) !== null && _a !== void 0 ? _a : {}, path, value);
|
|
258
258
|
props.onChange(Object.assign(Object.assign({}, data), { SparkLineStyle: Object.assign(Object.assign({}, data.SparkLineStyle), { options: newOptions }) }));
|
|
259
259
|
}, [data]);
|
|
260
|
-
const isObjectNumberArray = ((_a = api.columnApi.
|
|
260
|
+
const isObjectNumberArray = ((_a = api.columnApi.getColumnWithColumnId(data.ColumnId)) === null || _a === void 0 ? void 0 : _a.dataType) === 'ObjectNumberArray';
|
|
261
261
|
return (React.createElement(React.Fragment, null,
|
|
262
262
|
React.createElement(Tabs_1.Tabs, { mb: 2 },
|
|
263
263
|
React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
|
|
@@ -15,6 +15,7 @@ const StyledColumnWizardStyleSection_1 = require("./StyledColumnWizardStyleSecti
|
|
|
15
15
|
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
16
16
|
const StyledColumnWizardSettingsSection_1 = require("./StyledColumnWizardSettingsSection");
|
|
17
17
|
const StyledColumnSparklineSettingsSection_1 = require("./StyledColumnSparklineSettingsSection");
|
|
18
|
+
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
18
19
|
const StyledColumnWizard = (props) => {
|
|
19
20
|
var _a, _b;
|
|
20
21
|
const data = (_a = props.data) !== null && _a !== void 0 ? _a : (_b = props.popupParams) === null || _b === void 0 ? void 0 : _b.value;
|
|
@@ -83,6 +84,14 @@ const StyledColumnWizard = (props) => {
|
|
|
83
84
|
title: 'Column',
|
|
84
85
|
},
|
|
85
86
|
...(styledColumn.SparkLineStyle ? sparklineSteps : checkboxGrandientPercentSteps),
|
|
87
|
+
{
|
|
88
|
+
details: 'Select Format Column tags',
|
|
89
|
+
title: 'Tags',
|
|
90
|
+
isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
|
|
91
|
+
render: () => (React.createElement(rebass_1.Box, { padding: 2 },
|
|
92
|
+
React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setStyledColumn }))),
|
|
93
|
+
renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
|
|
94
|
+
},
|
|
86
95
|
'-',
|
|
87
96
|
{
|
|
88
97
|
title: 'Summary',
|
|
@@ -14,7 +14,7 @@ const renderStyledColumnColumnSummary = (data) => {
|
|
|
14
14
|
"Styled Column column:",
|
|
15
15
|
' ',
|
|
16
16
|
React.createElement(Tag_1.Tag, null, data.ColumnId
|
|
17
|
-
? api.columnApi.
|
|
17
|
+
? api.columnApi.getFriendlyNameForColumnId(data.ColumnId)
|
|
18
18
|
: 'No Column Selected')));
|
|
19
19
|
};
|
|
20
20
|
exports.renderStyledColumnColumnSummary = renderStyledColumnColumnSummary;
|
|
@@ -37,7 +37,7 @@ const StyledColumnWizardColumnSection = (props) => {
|
|
|
37
37
|
...api.columnApi.getObjectNumberArrayColumns(),
|
|
38
38
|
]
|
|
39
39
|
: api.columnApi.getNumericColumns();
|
|
40
|
-
const styledColumns = api.styledColumnApi.
|
|
40
|
+
const styledColumns = api.styledColumnApi.getStyledColumns();
|
|
41
41
|
const usedColumnIds = styledColumns
|
|
42
42
|
.map((styledColumn) => {
|
|
43
43
|
// filter out current styled column columnID
|