@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
|
@@ -55,7 +55,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
55
55
|
return ((scope.ColumnIds.length > 1 ? 'Columns' : 'Column') +
|
|
56
56
|
': ' +
|
|
57
57
|
this.adaptable.api.columnApi
|
|
58
|
-
.
|
|
58
|
+
.getFriendlyNamesForColumnIds(scope.ColumnIds)
|
|
59
59
|
.map((c) => {
|
|
60
60
|
return '"' + c + '"';
|
|
61
61
|
})
|
|
@@ -94,7 +94,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
94
94
|
!this.scopeIsAll(scope) &&
|
|
95
95
|
'ColumnIds' in scope &&
|
|
96
96
|
scope.ColumnIds.length == 1 &&
|
|
97
|
-
this.adaptable.api.columnApi.
|
|
97
|
+
this.adaptable.api.columnApi.hasNumberDataType(scope.ColumnIds[0]));
|
|
98
98
|
}
|
|
99
99
|
isSingleBooleanColumnScope(scope) {
|
|
100
100
|
return (this.scopeHasColumns(scope) &&
|
|
@@ -102,7 +102,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
102
102
|
!this.scopeIsAll(scope) &&
|
|
103
103
|
'ColumnIds' in scope &&
|
|
104
104
|
scope.ColumnIds.length == 1 &&
|
|
105
|
-
this.adaptable.api.columnApi.
|
|
105
|
+
this.adaptable.api.columnApi.hasBooleanDataType(scope.ColumnIds[0]));
|
|
106
106
|
}
|
|
107
107
|
areAllBooleanColumnsInScope(scope) {
|
|
108
108
|
return (this.scopeHasColumns(scope) &&
|
|
@@ -110,7 +110,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
110
110
|
!this.scopeIsAll(scope) &&
|
|
111
111
|
'ColumnIds' in scope &&
|
|
112
112
|
scope.ColumnIds.length &&
|
|
113
|
-
scope.ColumnIds.every((columnId) => this.adaptable.api.columnApi.
|
|
113
|
+
scope.ColumnIds.every((columnId) => this.adaptable.api.columnApi.hasBooleanDataType(columnId)));
|
|
114
114
|
}
|
|
115
115
|
isColumnInScopeColumns(column, scope) {
|
|
116
116
|
return this.scopeHasColumns(scope) && this.isColumnInScope(column, scope);
|
|
@@ -131,7 +131,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
131
131
|
let text = scope.ColumnIds.length == 1 ? 'Column: ' : 'Columns: ';
|
|
132
132
|
return (text +
|
|
133
133
|
this.adaptable.api.columnApi
|
|
134
|
-
.
|
|
134
|
+
.getFriendlyNamesForColumnIds(scope.ColumnIds)
|
|
135
135
|
.map((c) => {
|
|
136
136
|
return '"' + c + '"';
|
|
137
137
|
})
|
|
@@ -208,6 +208,8 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
208
208
|
return false;
|
|
209
209
|
}
|
|
210
210
|
isScopeInScope(a, b) {
|
|
211
|
+
// AFL: Scope:'All' for object 'a' is NOT handled
|
|
212
|
+
// this is probably wrong, but we will touch it when a bug is filed
|
|
211
213
|
if ('All' in b) {
|
|
212
214
|
return true;
|
|
213
215
|
}
|
|
@@ -225,14 +227,14 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
|
|
|
225
227
|
'DataTypes' in b &&
|
|
226
228
|
a.ColumnIds.every((columnId) => {
|
|
227
229
|
var _a;
|
|
228
|
-
return b.DataTypes.includes((_a = this.adaptable.api.columnApi.
|
|
230
|
+
return b.DataTypes.includes((_a = this.adaptable.api.columnApi.getColumnWithColumnId(columnId)) === null || _a === void 0 ? void 0 : _a.dataType);
|
|
229
231
|
})) {
|
|
230
232
|
return true;
|
|
231
233
|
}
|
|
232
234
|
return false;
|
|
233
235
|
}
|
|
234
236
|
createCellColorRangesForScope(scope) {
|
|
235
|
-
let distinctColumnsValues = this.adaptable.api.
|
|
237
|
+
let distinctColumnsValues = this.adaptable.api.gridApi.internalApi.getDistinctRawValuesForColumn(this.adaptable.api.scopeApi.getSingleColumnInScope(scope));
|
|
236
238
|
let minValue = Math.min(...distinctColumnsValues);
|
|
237
239
|
let maxValue = Math.max(...distinctColumnsValues);
|
|
238
240
|
const ranges = [];
|
|
@@ -3,5 +3,7 @@ import { ApiBase } from './ApiBase';
|
|
|
3
3
|
import { AdaptableModule } from '../../../types';
|
|
4
4
|
export declare class SettingsPanelApiImpl extends ApiBase implements SettingsPanelApi {
|
|
5
5
|
showSettingsPanel(moduleName?: AdaptableModule): void;
|
|
6
|
+
openSettingsPanel(moduleName?: AdaptableModule): void;
|
|
6
7
|
showCustomSettingsPanel(name: string): void;
|
|
8
|
+
openCustomSettingsPanel(name: string): void;
|
|
7
9
|
}
|
|
@@ -5,8 +5,13 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
7
7
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
8
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
8
9
|
class SettingsPanelApiImpl extends ApiBase_1.ApiBase {
|
|
9
10
|
showSettingsPanel(moduleName) {
|
|
11
|
+
(0, logDeprecation_1.logDeprecation)('SettingsPanelApi', 'showSettingsPanel', 'openSettingsPanel');
|
|
12
|
+
this.openSettingsPanel(moduleName);
|
|
13
|
+
}
|
|
14
|
+
openSettingsPanel(moduleName) {
|
|
10
15
|
const moduleInfo = this.adaptable.ModuleService.getModuleInfoByModule(moduleName);
|
|
11
16
|
if (!moduleInfo) {
|
|
12
17
|
(0, LoggingHelper_1.LogAdaptableError)(`${moduleName} module does not exist`);
|
|
@@ -15,6 +20,10 @@ class SettingsPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
15
20
|
this.dispatchAction(PopupRedux.PopupShowScreen(moduleName, moduleInfo.Popup));
|
|
16
21
|
}
|
|
17
22
|
showCustomSettingsPanel(name) {
|
|
23
|
+
(0, logDeprecation_1.logDeprecation)('SettingsPanelApi', 'showCustomSettingsPanel', 'openCustomSettingsPanel');
|
|
24
|
+
this.openCustomSettingsPanel(name);
|
|
25
|
+
}
|
|
26
|
+
openCustomSettingsPanel(name) {
|
|
18
27
|
this.dispatchAction(PopupRedux.PopupShowScreen(null, name));
|
|
19
28
|
}
|
|
20
29
|
}
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { ApiBase, LayoutAssociatedObjectLoadConfig } from './ApiBase';
|
|
2
2
|
import { ShortcutApi } from '../ShortcutApi';
|
|
3
|
-
import {
|
|
3
|
+
import { Shortcut, ShortcutState } from '../../PredefinedConfig/ShortcutState';
|
|
4
4
|
export declare class ShortcutApiImpl extends ApiBase implements ShortcutApi {
|
|
5
5
|
getShortcutState(): ShortcutState;
|
|
6
6
|
getAllShortcut(config?: LayoutAssociatedObjectLoadConfig): Shortcut[];
|
|
7
|
+
getShortcuts(config?: {
|
|
8
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
9
|
+
}): Shortcut[];
|
|
7
10
|
getShortcutById(id: Shortcut['Uuid']): Shortcut;
|
|
8
11
|
getAllActiveShortcut(): Shortcut[];
|
|
12
|
+
getActiveShortcuts(): Shortcut[];
|
|
9
13
|
getAllSuspendedShortcut(): Shortcut[];
|
|
14
|
+
getSuspendedShortcuts(): Shortcut[];
|
|
10
15
|
addShortcut(shortcut: Shortcut): Shortcut;
|
|
11
16
|
deleteShortcut(shortcut: Shortcut): void;
|
|
12
17
|
deleteAllShortcut(): void;
|
|
18
|
+
deleteAllShortcuts(): void;
|
|
13
19
|
suspendShortcut(shortcut: Shortcut): Shortcut;
|
|
14
20
|
unSuspendShortcut(shortcut: Shortcut): Shortcut;
|
|
15
21
|
showShortcutPopup(): void;
|
|
22
|
+
openShortcutSettingsPanel(): void;
|
|
16
23
|
}
|
|
@@ -5,22 +5,35 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ShortcutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ShortcutRedux"));
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
8
9
|
class ShortcutApiImpl extends ApiBase_1.ApiBase {
|
|
9
10
|
getShortcutState() {
|
|
10
11
|
return this.getAdaptableState().Shortcut;
|
|
11
12
|
}
|
|
12
13
|
getAllShortcut(config) {
|
|
14
|
+
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'getAllShortcut', 'getShortcuts');
|
|
15
|
+
return this.getShortcuts(config);
|
|
16
|
+
}
|
|
17
|
+
getShortcuts(config) {
|
|
13
18
|
var _a;
|
|
14
19
|
return ((_a = this.handleLayoutAssociatedObjects(this.getShortcutState().Shortcuts, 'Shortcut', config)) !== null && _a !== void 0 ? _a : []);
|
|
15
20
|
}
|
|
16
21
|
getShortcutById(id) {
|
|
17
|
-
return this.
|
|
22
|
+
return this.getShortcuts().find((shortcut) => (shortcut === null || shortcut === void 0 ? void 0 : shortcut.Uuid) === id);
|
|
18
23
|
}
|
|
19
24
|
getAllActiveShortcut() {
|
|
20
|
-
|
|
25
|
+
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'getAllActiveShortcut', 'getActiveShortcuts');
|
|
26
|
+
return this.getActiveShortcuts();
|
|
27
|
+
}
|
|
28
|
+
getActiveShortcuts() {
|
|
29
|
+
return this.getShortcuts().filter((shortcut) => !shortcut.IsSuspended);
|
|
21
30
|
}
|
|
22
31
|
getAllSuspendedShortcut() {
|
|
23
|
-
|
|
32
|
+
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'getAllSuspendedShortcut', 'getSuspendedShortcuts');
|
|
33
|
+
return this.getSuspendedShortcuts();
|
|
34
|
+
}
|
|
35
|
+
getSuspendedShortcuts() {
|
|
36
|
+
return this.getShortcuts().filter((shortcut) => shortcut.IsSuspended);
|
|
24
37
|
}
|
|
25
38
|
addShortcut(shortcut) {
|
|
26
39
|
this.addUidToAdaptableObject(shortcut);
|
|
@@ -31,7 +44,11 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
|
|
|
31
44
|
this.dispatchAction(ShortcutRedux.ShortcutDelete(shortcut));
|
|
32
45
|
}
|
|
33
46
|
deleteAllShortcut() {
|
|
34
|
-
|
|
47
|
+
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'deleteAllShortcut', 'deleteAllShortcuts');
|
|
48
|
+
this.deleteAllShortcuts();
|
|
49
|
+
}
|
|
50
|
+
deleteAllShortcuts() {
|
|
51
|
+
this.getShortcuts().forEach((s) => {
|
|
35
52
|
this.deleteShortcut(s);
|
|
36
53
|
});
|
|
37
54
|
}
|
|
@@ -44,6 +61,10 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
|
|
|
44
61
|
return this.getShortcutById(shortcut.Uuid);
|
|
45
62
|
}
|
|
46
63
|
showShortcutPopup() {
|
|
64
|
+
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'showShortcutPopup', 'openShortcutSettingsPanel');
|
|
65
|
+
this.openShortcutSettingsPanel();
|
|
66
|
+
}
|
|
67
|
+
openShortcutSettingsPanel() {
|
|
47
68
|
this.showModulePopup(ModuleConstants.ShortcutModuleId);
|
|
48
69
|
}
|
|
49
70
|
}
|
|
@@ -9,6 +9,7 @@ export declare class SmartEditApiImpl extends ApiBase implements SmartEditApi {
|
|
|
9
9
|
setSmartEditValue(smartEditValue: number): void;
|
|
10
10
|
getSmartEditValue(): number;
|
|
11
11
|
showSmartEditPopup(): void;
|
|
12
|
+
openSmartEditSettingsPanel(): void;
|
|
12
13
|
applySmartEdit(gridCells: GridCell[]): void;
|
|
13
14
|
getSmartEditCustomOperations(): SmartEditCustomOperation[];
|
|
14
15
|
setCustomSmartEditOperation(customOperationName: string): void;
|
|
@@ -6,6 +6,7 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const SmartEditRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SmartEditRedux"));
|
|
8
8
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
9
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
10
|
class SmartEditApiImpl extends ApiBase_1.ApiBase {
|
|
10
11
|
setSmartEditOperation(mathOperation) {
|
|
11
12
|
this.dispatchAction(SystemRedux.SmartEditChangeOperation(mathOperation));
|
|
@@ -20,6 +21,10 @@ class SmartEditApiImpl extends ApiBase_1.ApiBase {
|
|
|
20
21
|
return this.getAdaptableState().System.SmartEditValue;
|
|
21
22
|
}
|
|
22
23
|
showSmartEditPopup() {
|
|
24
|
+
(0, logDeprecation_1.logDeprecation)('SmartEditApi', 'showSmartEditPopup', 'openSmartEditSettingsPanel');
|
|
25
|
+
this.openSmartEditSettingsPanel();
|
|
26
|
+
}
|
|
27
|
+
openSmartEditSettingsPanel() {
|
|
23
28
|
this.showModulePopup(ModuleConstants.SmartEditModuleId);
|
|
24
29
|
}
|
|
25
30
|
applySmartEdit(gridCells) {
|
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
import { ApiBase, LayoutAssociatedObjectLoadConfig } from './ApiBase';
|
|
2
2
|
import { StyledColumnApi } from '../StyledColumnApi';
|
|
3
|
-
import {
|
|
4
|
-
import { AdaptableColumn
|
|
5
|
-
import {
|
|
3
|
+
import { StyledColumn, StyledColumnState } from '../../PredefinedConfig/StyledColumnState';
|
|
4
|
+
import { AdaptableColumn } from '../../types';
|
|
5
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
6
|
+
import { StyledColumnInternalApi } from '../Internal/StyledColumnInternalApi';
|
|
6
7
|
export declare class StyledColumnApiImpl extends ApiBase implements StyledColumnApi {
|
|
8
|
+
internalApi: StyledColumnInternalApi;
|
|
9
|
+
constructor(adaptable: IAdaptable);
|
|
7
10
|
getStyledColumnState(): StyledColumnState;
|
|
8
11
|
getAllStyledColumn(config?: LayoutAssociatedObjectLoadConfig): StyledColumn[];
|
|
12
|
+
getStyledColumns(config?: {
|
|
13
|
+
includeLayoutNotAssociatedObjects?: boolean;
|
|
14
|
+
}): StyledColumn[];
|
|
9
15
|
getStyledColumnById(id: StyledColumn['Uuid']): StyledColumn;
|
|
10
16
|
getStyledColumnByColumnId(id: StyledColumn['Uuid']): StyledColumn;
|
|
17
|
+
getStyledColumnForColumnId(columnId: StyledColumn['ColumnId']): StyledColumn;
|
|
11
18
|
getAllActiveStyledColumn(): StyledColumn[];
|
|
19
|
+
getActiveStyledColumns(): StyledColumn[];
|
|
12
20
|
getAllSuspendedStyledColumn(): StyledColumn[];
|
|
21
|
+
getSuspendedStyledColumns(): StyledColumn[];
|
|
13
22
|
deleteStyledColumn(styledColumn: StyledColumn): void;
|
|
14
23
|
addStyledColumn(styledColumn: StyledColumn): void;
|
|
15
|
-
getNumericStyleMinValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number;
|
|
16
|
-
getNumericStyleMaxValue(styledColumn: Omit<StyledColumn, 'ColumnId'>, column: AdaptableColumn, rowNode: RowNode, cellValue: any): number | undefined;
|
|
17
|
-
getCellColorRangeMinValue(range: CellColorRange, column: AdaptableColumn, rangeValueType: NumericStyledColumn['RangeValueType']): number | undefined;
|
|
18
|
-
getCellColorRangeMaxValue(range: CellColorRange, column: AdaptableColumn, rangeValueType: NumericStyledColumn['RangeValueType']): number | undefined;
|
|
19
|
-
findRangeForColumn(cellRanges: CellColorRange[], column: AdaptableColumn, rangeValueType: NumericStyledColumn['RangeValueType'], cellValue: any): CellColorRange;
|
|
20
|
-
getColumnComparisonForStyledColumn(styledColumn: StyledColumn): ColumnComparison | undefined;
|
|
21
|
-
hasStyledColumnRelativeCellRange(styledColumn: StyledColumn): boolean;
|
|
22
|
-
getColumnIdsFromColumnComparison(columnComparison: ColumnComparison): string[];
|
|
23
24
|
getCheckBoxStyleStyledColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
24
25
|
isCheckBoxStyleStyledColumn(column: AdaptableColumn): boolean;
|
|
25
26
|
fireCheckboxColumnClickedEvent(columnId: string, rowData: any, primaryKeyValue: any, isChecked: boolean): void;
|
|
26
27
|
getActiveStyledColumnForColumn(column: AdaptableColumn): StyledColumn | undefined;
|
|
28
|
+
hasPercentBarStyle(columnId: string): boolean;
|
|
29
|
+
hasGradientStyle(columnId: string): boolean;
|
|
27
30
|
}
|
|
@@ -4,27 +4,48 @@ exports.StyledColumnApiImpl = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const StyledColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/StyledColumnRedux"));
|
|
7
|
-
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
8
7
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
8
|
+
const StyledColumnInternalApi_1 = require("../Internal/StyledColumnInternalApi");
|
|
9
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
10
|
class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
11
|
+
constructor(adaptable) {
|
|
12
|
+
super(adaptable);
|
|
13
|
+
this.internalApi = new StyledColumnInternalApi_1.StyledColumnInternalApi(adaptable);
|
|
14
|
+
}
|
|
10
15
|
getStyledColumnState() {
|
|
11
16
|
return this.getAdaptableState().StyledColumn;
|
|
12
17
|
}
|
|
13
18
|
getAllStyledColumn(config) {
|
|
19
|
+
(0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getAllStyledColumn', 'getStyledColumns');
|
|
20
|
+
return this.getStyledColumns(config);
|
|
21
|
+
}
|
|
22
|
+
getStyledColumns(config) {
|
|
14
23
|
var _a;
|
|
15
24
|
return ((_a = this.handleLayoutAssociatedObjects(this.getStyledColumnState().StyledColumns, 'StyledColumn', config)) !== null && _a !== void 0 ? _a : []);
|
|
16
25
|
}
|
|
17
26
|
getStyledColumnById(id) {
|
|
18
|
-
return this.
|
|
27
|
+
return this.getStyledColumns().find((styledcolumn) => styledcolumn.Uuid === id);
|
|
19
28
|
}
|
|
20
29
|
getStyledColumnByColumnId(id) {
|
|
21
|
-
|
|
30
|
+
(0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getStyledColumnByColumnId', 'getStyledColumnForColumnId');
|
|
31
|
+
return this.getStyledColumnForColumnId(id);
|
|
32
|
+
}
|
|
33
|
+
getStyledColumnForColumnId(columnId) {
|
|
34
|
+
return this.getStyledColumns().find((styledcolumn) => styledcolumn.ColumnId === columnId);
|
|
22
35
|
}
|
|
23
36
|
getAllActiveStyledColumn() {
|
|
24
|
-
|
|
37
|
+
(0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getAllActiveStyledColumn', 'getActiveStyledColumns');
|
|
38
|
+
return this.getActiveStyledColumns();
|
|
39
|
+
}
|
|
40
|
+
getActiveStyledColumns() {
|
|
41
|
+
return this.getStyledColumns().filter((styledcolumn) => !styledcolumn.IsSuspended);
|
|
25
42
|
}
|
|
26
43
|
getAllSuspendedStyledColumn() {
|
|
27
|
-
|
|
44
|
+
(0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getAllSuspendedStyledColumn', 'getSuspendedStyledColumns');
|
|
45
|
+
return this.getSuspendedStyledColumns();
|
|
46
|
+
}
|
|
47
|
+
getSuspendedStyledColumns() {
|
|
48
|
+
return this.getStyledColumns().filter((styledcolumn) => styledcolumn.IsSuspended);
|
|
28
49
|
}
|
|
29
50
|
deleteStyledColumn(styledColumn) {
|
|
30
51
|
this.dispatchAction(StyledColumnRedux.StyledColumnDelete(styledColumn));
|
|
@@ -32,184 +53,6 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
32
53
|
addStyledColumn(styledColumn) {
|
|
33
54
|
this.dispatchAction(StyledColumnRedux.StyledColumnAdd(styledColumn));
|
|
34
55
|
}
|
|
35
|
-
getNumericStyleMinValue(styledColumn, column, rowNode, cellValue) {
|
|
36
|
-
var _a, _b;
|
|
37
|
-
const columnComparison = styledColumn.GradientStyle
|
|
38
|
-
? styledColumn.GradientStyle.ColumnComparison
|
|
39
|
-
: (_a = styledColumn.PercentBarStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison;
|
|
40
|
-
if (columnComparison) {
|
|
41
|
-
if (!isNaN(Number(columnComparison.MinValue))) {
|
|
42
|
-
return Number(columnComparison.MinValue);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
let columnId = columnComparison.MinValue;
|
|
46
|
-
if (!this.adaptable.api.columnApi.doesColumnExist(columnId)) {
|
|
47
|
-
return 0;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
// for Gradient Column we want just the range that contains cell value
|
|
55
|
-
if (styledColumn.GradientStyle) {
|
|
56
|
-
const range = this.findRangeForColumn(styledColumn.GradientStyle.CellRanges, column, styledColumn.GradientStyle.RangeValueType, cellValue);
|
|
57
|
-
return this.getCellColorRangeMinValue(range, column, styledColumn.GradientStyle.RangeValueType);
|
|
58
|
-
}
|
|
59
|
-
// for percentbar we want to get the whole Ranges
|
|
60
|
-
if (styledColumn.PercentBarStyle) {
|
|
61
|
-
const ranges = (_b = styledColumn.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
|
|
62
|
-
if (ranges) {
|
|
63
|
-
return this.getCellColorRangeMinValue(ranges[0], column, styledColumn.PercentBarStyle.RangeValueType);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
getNumericStyleMaxValue(styledColumn, column, rowNode, cellValue) {
|
|
68
|
-
var _a, _b;
|
|
69
|
-
const columnComparison = styledColumn.GradientStyle
|
|
70
|
-
? styledColumn.GradientStyle.ColumnComparison
|
|
71
|
-
: (_a = styledColumn.PercentBarStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison;
|
|
72
|
-
if (columnComparison) {
|
|
73
|
-
if (!isNaN(Number(columnComparison.MaxValue))) {
|
|
74
|
-
return Number(columnComparison.MaxValue);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
let columnId = columnComparison.MaxValue;
|
|
78
|
-
if (!this.adaptable.api.columnApi.doesColumnExist(columnId)) {
|
|
79
|
-
return 0;
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.adaptable.api.gridApi.getRawValueFromRowNode(rowNode, columnId);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if (styledColumn.GradientStyle) {
|
|
87
|
-
let range = this.findRangeForColumn(styledColumn.GradientStyle.CellRanges, column, styledColumn.GradientStyle.RangeValueType, cellValue);
|
|
88
|
-
return this.getCellColorRangeMaxValue(range, column, styledColumn.GradientStyle.RangeValueType);
|
|
89
|
-
}
|
|
90
|
-
if (styledColumn.PercentBarStyle) {
|
|
91
|
-
const ranges = (_b = styledColumn.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.CellRanges;
|
|
92
|
-
if (ranges) {
|
|
93
|
-
return this.getCellColorRangeMaxValue(ranges[ranges.length - 1], column, styledColumn.PercentBarStyle.RangeValueType);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
getCellColorRangeMinValue(range, column, rangeValueType) {
|
|
98
|
-
if (!range) {
|
|
99
|
-
return undefined;
|
|
100
|
-
}
|
|
101
|
-
if (range.Min == undefined) {
|
|
102
|
-
return undefined;
|
|
103
|
-
}
|
|
104
|
-
let minValue;
|
|
105
|
-
if (typeof range.Min === 'number' && rangeValueType === 'Percentage') {
|
|
106
|
-
const minColumnValue = this.getAdaptableApi().columnApi.getMinValueForNumericColumn(column);
|
|
107
|
-
const maxColumnValue = this.getAdaptableApi().columnApi.getMaxValueForNumericColumn(column);
|
|
108
|
-
minValue = minColumnValue + (range.Min / 100) * (maxColumnValue - minColumnValue);
|
|
109
|
-
}
|
|
110
|
-
else if (range.Min === 'Col-Min') {
|
|
111
|
-
const minColumnValue = this.getAdaptableApi().columnApi.getMinValueForNumericColumn(column);
|
|
112
|
-
minValue = minColumnValue;
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
minValue = range.Min;
|
|
116
|
-
}
|
|
117
|
-
return minValue;
|
|
118
|
-
}
|
|
119
|
-
getCellColorRangeMaxValue(range, column, rangeValueType) {
|
|
120
|
-
if (!range) {
|
|
121
|
-
return undefined;
|
|
122
|
-
}
|
|
123
|
-
if (range.Max == undefined) {
|
|
124
|
-
return undefined;
|
|
125
|
-
}
|
|
126
|
-
let maxValue;
|
|
127
|
-
if (typeof range.Max === 'number' && rangeValueType === 'Percentage') {
|
|
128
|
-
const minColumnValue = this.getAdaptableApi().columnApi.getMinValueForNumericColumn(column);
|
|
129
|
-
const maxColumnValue = this.getAdaptableApi().columnApi.getMaxValueForNumericColumn(column);
|
|
130
|
-
maxValue = minColumnValue + (range.Max / 100) * (maxColumnValue - minColumnValue);
|
|
131
|
-
}
|
|
132
|
-
else if (range.Max === 'Col-Max') {
|
|
133
|
-
const maxColumnValue = this.getAdaptableApi().columnApi.getMaxValueForNumericColumn(column);
|
|
134
|
-
maxValue = maxColumnValue;
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
maxValue = range.Max;
|
|
138
|
-
}
|
|
139
|
-
return maxValue;
|
|
140
|
-
}
|
|
141
|
-
findRangeForColumn(cellRanges, column, rangeValueType, cellValue) {
|
|
142
|
-
if (!cellRanges || cellRanges.length === 0) {
|
|
143
|
-
return null;
|
|
144
|
-
}
|
|
145
|
-
let lastMatchingRange = null;
|
|
146
|
-
// findLast is not available on [], target is not es6
|
|
147
|
-
for (let i = cellRanges.length; i >= 0; i--) {
|
|
148
|
-
const cellRange = cellRanges[i];
|
|
149
|
-
const minRange = this.getCellColorRangeMinValue(cellRange, column, rangeValueType);
|
|
150
|
-
const maxRange = this.getCellColorRangeMaxValue(cellRange, column, rangeValueType);
|
|
151
|
-
if (cellValue >= minRange && cellValue <= maxRange) {
|
|
152
|
-
lastMatchingRange = cellRange;
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return lastMatchingRange;
|
|
157
|
-
}
|
|
158
|
-
getColumnComparisonForStyledColumn(styledColumn) {
|
|
159
|
-
var _a, _b;
|
|
160
|
-
if (styledColumn.GradientStyle) {
|
|
161
|
-
if ((_a = styledColumn.GradientStyle) === null || _a === void 0 ? void 0 : _a.ColumnComparison) {
|
|
162
|
-
return styledColumn.GradientStyle.ColumnComparison;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
if (styledColumn.PercentBarStyle) {
|
|
166
|
-
if ((_b = styledColumn.PercentBarStyle) === null || _b === void 0 ? void 0 : _b.ColumnComparison) {
|
|
167
|
-
return styledColumn.PercentBarStyle.ColumnComparison;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
return undefined;
|
|
171
|
-
}
|
|
172
|
-
hasStyledColumnRelativeCellRange(styledColumn) {
|
|
173
|
-
var _a, _b, _c, _d, _e;
|
|
174
|
-
let cellColorRange = null;
|
|
175
|
-
let rangeValueType = 'Number';
|
|
176
|
-
if (styledColumn.GradientStyle) {
|
|
177
|
-
if ((_a = styledColumn.GradientStyle) === null || _a === void 0 ? void 0 : _a.CellRanges) {
|
|
178
|
-
cellColorRange = styledColumn.GradientStyle.CellRanges;
|
|
179
|
-
}
|
|
180
|
-
if ((_b = styledColumn.GradientStyle) === null || _b === void 0 ? void 0 : _b.RangeValueType) {
|
|
181
|
-
rangeValueType = styledColumn.GradientStyle.RangeValueType;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
if (styledColumn.PercentBarStyle) {
|
|
185
|
-
if ((_c = styledColumn.PercentBarStyle) === null || _c === void 0 ? void 0 : _c.CellRanges) {
|
|
186
|
-
cellColorRange = styledColumn.PercentBarStyle.CellRanges;
|
|
187
|
-
}
|
|
188
|
-
if ((_d = styledColumn.PercentBarStyle) === null || _d === void 0 ? void 0 : _d.RangeValueType) {
|
|
189
|
-
rangeValueType = styledColumn.PercentBarStyle.RangeValueType;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return ((_e = (rangeValueType === 'Percentage' ||
|
|
193
|
-
(cellColorRange === null || cellColorRange === void 0 ? void 0 : cellColorRange.some((cellColorRange) => {
|
|
194
|
-
return cellColorRange.Min == 'Col-Min' || cellColorRange.Max == 'Col-Max';
|
|
195
|
-
})))) !== null && _e !== void 0 ? _e : false);
|
|
196
|
-
}
|
|
197
|
-
getColumnIdsFromColumnComparison(columnComparison) {
|
|
198
|
-
let returnValues = [];
|
|
199
|
-
if (typeof columnComparison.MinValue === 'string') {
|
|
200
|
-
let minIds = this.adaptable.api.columnApi.getColumnIdsFromId(columnComparison.MinValue, false);
|
|
201
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(minIds)) {
|
|
202
|
-
returnValues.push(...minIds);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
if (typeof columnComparison.MaxValue === 'string') {
|
|
206
|
-
let maxIds = this.adaptable.api.columnApi.getColumnIdsFromId(columnComparison.MaxValue, false);
|
|
207
|
-
if (ArrayExtensions_1.default.IsNotNullOrEmpty(maxIds)) {
|
|
208
|
-
returnValues.push(...maxIds);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return returnValues;
|
|
212
|
-
}
|
|
213
56
|
getCheckBoxStyleStyledColumn(column) {
|
|
214
57
|
var _a;
|
|
215
58
|
if (column.dataType != 'Boolean') {
|
|
@@ -226,7 +69,7 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
226
69
|
fireCheckboxColumnClickedEvent(columnId, rowData, primaryKeyValue, isChecked) {
|
|
227
70
|
let checkboxColumnClickedInfo = {
|
|
228
71
|
adaptableApi: this.adaptable.api,
|
|
229
|
-
column: this.adaptable.api.columnApi.
|
|
72
|
+
column: this.adaptable.api.columnApi.getColumnWithColumnId(columnId),
|
|
230
73
|
rowData: rowData,
|
|
231
74
|
primaryKeyValue: primaryKeyValue,
|
|
232
75
|
isChecked: isChecked,
|
|
@@ -234,8 +77,20 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
234
77
|
this.adaptable.api.eventApi.emit('CheckboxColumnClicked', checkboxColumnClickedInfo);
|
|
235
78
|
}
|
|
236
79
|
getActiveStyledColumnForColumn(column) {
|
|
237
|
-
const styledColumns = this.
|
|
80
|
+
const styledColumns = this.getActiveStyledColumns();
|
|
238
81
|
return styledColumns.find((sc) => sc.ColumnId == column.columnId);
|
|
239
82
|
}
|
|
83
|
+
hasPercentBarStyle(columnId) {
|
|
84
|
+
if (!columnId) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
return !!this.getStyledColumns().find((styledColumn) => !!styledColumn.PercentBarStyle && styledColumn.ColumnId === columnId);
|
|
88
|
+
}
|
|
89
|
+
hasGradientStyle(columnId) {
|
|
90
|
+
if (!columnId) {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
return !!this.getStyledColumns().find((styledColumn) => !!styledColumn.GradientStyle && styledColumn.ColumnId === columnId);
|
|
94
|
+
}
|
|
240
95
|
}
|
|
241
96
|
exports.StyledColumnApiImpl = StyledColumnApiImpl;
|
|
@@ -2,17 +2,22 @@ import { ApiBase } from './ApiBase';
|
|
|
2
2
|
import { SystemStatusApi } from '../SystemStatusApi';
|
|
3
3
|
import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
|
|
4
4
|
import { SystemStatusMessageInfo } from '../../PredefinedConfig/Common/SystemStatusMessageInfo';
|
|
5
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
6
|
+
import { SystemStatusInternalApi } from '../Internal/SystemStatusInternalApi';
|
|
5
7
|
export declare class SystemStatusApiImpl extends ApiBase implements SystemStatusApi {
|
|
6
8
|
private systemStatusDiv;
|
|
9
|
+
internalApi: SystemStatusInternalApi;
|
|
10
|
+
constructor(adaptable: IAdaptable);
|
|
7
11
|
setSystemStatus(statusMessage: string, messageType: AdaptableMessageType, statusFurtherInformation?: string): void;
|
|
8
12
|
private displayMessageInDiv;
|
|
9
13
|
setErrorSystemStatus(statusMessage: string, statusFurtherInformation?: string): void;
|
|
10
14
|
setWarningSystemStatus(statusMessage: string, statusFurtherInformation?: string): void;
|
|
11
15
|
setSuccessSystemStatus(statusMessage: string, statusFurtherInformation?: string): void;
|
|
12
16
|
setInfoSystemStatus(statusMessage: string, statusFurtherInformation?: string): void;
|
|
13
|
-
setDefaultMessage(): void;
|
|
14
17
|
showSystemStatusPopup(): void;
|
|
18
|
+
openSystemStatusSettingsPanel(): void;
|
|
15
19
|
fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo: SystemStatusMessageInfo): void;
|
|
16
20
|
getCurrentSystemStatusMessageInfo(): SystemStatusMessageInfo | undefined;
|
|
17
21
|
deleteAllSystemStatusMessages(): void;
|
|
22
|
+
destroy(): void;
|
|
18
23
|
}
|
|
@@ -10,13 +10,18 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
|
|
|
10
10
|
const react_1 = require("react");
|
|
11
11
|
const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
|
|
12
12
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
13
|
-
const
|
|
13
|
+
const SystemStatusInternalApi_1 = require("../Internal/SystemStatusInternalApi");
|
|
14
|
+
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
14
15
|
class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
16
|
+
constructor(adaptable) {
|
|
17
|
+
super(adaptable);
|
|
18
|
+
this.internalApi = new SystemStatusInternalApi_1.SystemStatusInternalApi(adaptable);
|
|
19
|
+
}
|
|
15
20
|
setSystemStatus(statusMessage, messageType, statusFurtherInformation) {
|
|
16
21
|
let systemStatusMessageInfo = ObjectFactory_1.default.CreateSystemStatusMessageInfo(statusMessage, messageType, statusFurtherInformation ? statusFurtherInformation : '');
|
|
17
|
-
this.
|
|
22
|
+
this.internalApi.addSystemStatusMessageInfo(systemStatusMessageInfo);
|
|
18
23
|
// publish the event
|
|
19
|
-
this.fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo);
|
|
24
|
+
this.internalApi.fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo);
|
|
20
25
|
if (this.getNotificationsOptions().showSystemStatusMessageNotifications) {
|
|
21
26
|
let fullMessage = statusMessage;
|
|
22
27
|
if (StringExtensions_1.default.IsNotNullOrEmpty(statusFurtherInformation)) {
|
|
@@ -71,26 +76,28 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
|
71
76
|
setInfoSystemStatus(statusMessage, statusFurtherInformation) {
|
|
72
77
|
this.setSystemStatus(statusMessage, 'Info', statusFurtherInformation);
|
|
73
78
|
}
|
|
74
|
-
setDefaultMessage() {
|
|
75
|
-
(0, LoggingHelper_1.LogAdaptableWarning)(`SystemStatusApi.setDefaultMessage is deprecated`);
|
|
76
|
-
}
|
|
77
79
|
showSystemStatusPopup() {
|
|
80
|
+
(0, logDeprecation_1.logDeprecation)('SystemStatusApi', 'showSystemStatusPopup', 'openSystemStatusSettingsPanel');
|
|
81
|
+
this.openSystemStatusSettingsPanel();
|
|
82
|
+
}
|
|
83
|
+
openSystemStatusSettingsPanel() {
|
|
78
84
|
this.showModulePopup(ModuleConstants.SystemStatusModuleId);
|
|
79
85
|
}
|
|
80
86
|
fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
systemStatusMessageInfo: systemStatusMessageInfo,
|
|
84
|
-
};
|
|
85
|
-
this.getAdaptableApi().eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
|
|
87
|
+
(0, logDeprecation_1.logDeprecationInternal)('SystemStatusApi', 'fireSystemStatusMessageDisplayedEvent');
|
|
88
|
+
this.internalApi.fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo);
|
|
86
89
|
}
|
|
87
90
|
getCurrentSystemStatusMessageInfo() {
|
|
88
|
-
const messageInfos = this.
|
|
91
|
+
const messageInfos = this.internalApi.getSystemStatusMessageInfos() || [];
|
|
89
92
|
const orderedArray = messageInfos.sort((a, b) => b.timestamp.getTime() - a.timestamp.getTime());
|
|
90
93
|
return orderedArray[0];
|
|
91
94
|
}
|
|
92
95
|
deleteAllSystemStatusMessages() {
|
|
93
96
|
this.dispatchAction(SystemRedux.SystemStatusMessageInfoDeleteAll());
|
|
94
97
|
}
|
|
98
|
+
destroy() {
|
|
99
|
+
this.systemStatusDiv = null;
|
|
100
|
+
super.destroy();
|
|
101
|
+
}
|
|
95
102
|
}
|
|
96
103
|
exports.SystemStatusApiImpl = SystemStatusApiImpl;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { TeamSharingApi } from '../TeamSharingApi';
|
|
3
|
-
import {
|
|
3
|
+
import { AdaptableModule, AdaptableObject, SharedEntity, SharedEntityConfig } from '../../types';
|
|
4
|
+
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
5
|
+
import { TeamSharingInternalApi } from '../Internal/TeamSharingInternalApi';
|
|
4
6
|
export declare class TeamSharingApiImpl extends ApiBase implements TeamSharingApi {
|
|
7
|
+
internalApi: TeamSharingInternalApi;
|
|
8
|
+
constructor(adaptable: IAdaptable);
|
|
5
9
|
getSharedEntities(): Promise<SharedEntity[]>;
|
|
6
10
|
setSharedEntities(sharedEntities: SharedEntity[]): Promise<boolean>;
|
|
7
11
|
isTeamSharingAvailable(): boolean;
|
|
8
|
-
isTeamSharingActivated(): boolean;
|
|
9
12
|
hasTeamSharingFullRights(): boolean;
|
|
10
13
|
checkForUpdates(): void;
|
|
11
14
|
showTeamSharingPopup(): void;
|
|
12
|
-
|
|
15
|
+
openTeamSharingSettingsPanel(): void;
|
|
13
16
|
shareEntity(entity: AdaptableObject, module: AdaptableModule, sharedEntityConfig: SharedEntityConfig): void;
|
|
14
17
|
unshareEntity(entityId: string): void;
|
|
15
18
|
importSharedEntry(sharedEntity: SharedEntity): void;
|
|
16
19
|
private getTeamSharingState;
|
|
17
20
|
getLoadedSharedEntities(): SharedEntity[];
|
|
18
|
-
getSharedEntryDependencies(sharedEntity: SharedEntity): SharedEntity[];
|
|
19
|
-
triggerLoadingTeamSharingEntries(): void;
|
|
20
21
|
}
|