@adaptabletools/adaptable 13.1.1 → 14.0.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/base.css +7 -2
- package/base.css.map +1 -1
- package/bundle.cjs.js +180 -177
- package/index.css +11 -2
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +4 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -9
- package/src/AdaptableOptions/AlertOptions.d.ts +6 -1
- package/src/AdaptableOptions/ChartingOptions.d.ts +1 -1
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +8 -3
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +6 -4
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ActionApi.d.ts +14 -3
- package/src/Api/AdaptableApi.d.ts +0 -6
- package/src/Api/AlertApi.d.ts +127 -92
- package/src/Api/BulkUpdateApi.d.ts +9 -2
- package/src/Api/CalculatedColumnApi.d.ts +26 -21
- package/src/Api/CellSummaryApi.d.ts +15 -8
- package/src/Api/ChartingApi.d.ts +9 -2
- package/src/Api/ColumnApi.d.ts +153 -115
- package/src/Api/ConfigApi.d.ts +18 -18
- package/src/Api/CustomSortApi.d.ts +36 -7
- package/src/Api/DashboardApi.d.ts +12 -5
- package/src/Api/DataChangeHistoryApi.d.ts +8 -1
- package/src/Api/DataSetApi.d.ts +13 -3
- package/src/Api/EventApi.d.ts +2 -2
- package/src/Api/ExportApi.d.ts +30 -13
- package/src/Api/FilterApi.d.ts +74 -62
- package/src/Api/FlashingCellApi.d.ts +25 -9
- package/src/Api/FormatColumnApi.d.ts +76 -95
- package/src/Api/FreeTextColumnApi.d.ts +53 -21
- package/src/Api/GridApi.d.ts +57 -22
- package/src/Api/Implementation/ActionApiImpl.d.ts +9 -3
- package/src/Api/Implementation/ActionApiImpl.js +23 -11
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +5 -2
- package/src/Api/Implementation/AlertApiImpl.d.ts +57 -28
- package/src/Api/Implementation/AlertApiImpl.js +179 -197
- package/src/Api/Implementation/ApiBase.d.ts +43 -2
- package/src/Api/Implementation/ApiBase.js +129 -5
- package/src/Api/Implementation/ApplicationApiImpl.d.ts +1 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +1 -0
- package/src/Api/Implementation/BulkUpdateApiImpl.js +4 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +7 -2
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +28 -37
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CellSummaryApiImpl.js +6 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ChartingApiImpl.js +10 -4
- package/src/Api/Implementation/ColumnApiImpl.d.ts +22 -6
- package/src/Api/Implementation/ColumnApiImpl.js +184 -195
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ConfigApiImpl.js +1 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +16 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +33 -7
- package/src/Api/Implementation/DashboardApiImpl.d.ts +6 -1
- package/src/Api/Implementation/DashboardApiImpl.js +11 -12
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
- package/src/Api/Implementation/DataSetApiImpl.d.ts +6 -0
- package/src/Api/Implementation/DataSetApiImpl.js +17 -8
- package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExportApiImpl.d.ts +9 -1
- package/src/Api/Implementation/ExportApiImpl.js +34 -68
- package/src/Api/Implementation/FilterApiImpl.d.ts +10 -1
- package/src/Api/Implementation/FilterApiImpl.js +61 -157
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +23 -26
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +20 -15
- package/src/Api/Implementation/FormatColumnApiImpl.js +62 -153
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +13 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +42 -27
- package/src/Api/Implementation/GridApiImpl.d.ts +15 -1
- package/src/Api/Implementation/GridApiImpl.js +117 -61
- package/src/Api/Implementation/LayoutApiImpl.d.ts +8 -7
- package/src/Api/Implementation/LayoutApiImpl.js +29 -112
- package/src/Api/Implementation/PluginsApiImpl.d.ts +1 -1
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +2 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +5 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +8 -5
- package/src/Api/Implementation/PredicateApiImpl.js +33 -98
- package/src/Api/Implementation/QueryApiImpl.d.ts +7 -2
- package/src/Api/Implementation/QueryApiImpl.js +22 -44
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -0
- package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -0
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +1 -0
- package/src/Api/Implementation/QuickSearchApiImpl.js +5 -0
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +27 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +86 -17
- package/src/Api/Implementation/ScopeApiImpl.js +9 -7
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +2 -0
- package/src/Api/Implementation/SettingsPanelApiImpl.js +9 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +8 -1
- package/src/Api/Implementation/ShortcutApiImpl.js +25 -4
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -0
- package/src/Api/Implementation/SmartEditApiImpl.js +5 -0
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +14 -11
- package/src/Api/Implementation/StyledColumnApiImpl.js +40 -185
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +6 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +19 -12
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +6 -5
- package/src/Api/Implementation/TeamSharingApiImpl.js +15 -25
- package/src/Api/Implementation/ThemeApiImpl.d.ts +5 -1
- package/src/Api/Implementation/ThemeApiImpl.js +23 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +13 -4
- package/src/Api/Internal/ActionInternalApi.d.ts +23 -0
- package/src/Api/Internal/ActionInternalApi.js +198 -0
- package/src/Api/{Implementation/InternalApiImpl.d.ts → Internal/AdaptableInternalApi.d.ts} +7 -57
- package/src/Api/{Implementation/InternalApiImpl.js → Internal/AdaptableInternalApi.js} +28 -306
- package/src/Api/Internal/AlertInternalApi.d.ts +148 -0
- package/src/Api/Internal/AlertInternalApi.js +484 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +24 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +57 -0
- package/src/Api/Internal/ColumnInternalApi.d.ts +33 -0
- package/src/Api/Internal/ColumnInternalApi.js +67 -0
- package/src/Api/Internal/CustomSortInternalApi.d.ts +6 -0
- package/src/Api/Internal/CustomSortInternalApi.js +11 -0
- package/src/Api/Internal/DashboardInternalApi.d.ts +8 -0
- package/src/Api/Internal/DashboardInternalApi.js +26 -0
- package/src/Api/Internal/DataSetInternalApi.d.ts +9 -0
- package/src/Api/Internal/DataSetInternalApi.js +20 -0
- package/src/Api/Internal/ExportInternalApi.d.ts +11 -0
- package/src/Api/Internal/ExportInternalApi.js +73 -0
- package/src/Api/Internal/FilterInternalApi.d.ts +58 -0
- package/src/Api/Internal/FilterInternalApi.js +194 -0
- package/src/Api/Internal/FlashingCellInternalApi.d.ts +12 -0
- package/src/Api/Internal/FlashingCellInternalApi.js +56 -0
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +109 -0
- package/src/Api/Internal/FormatColumnInternalApi.js +225 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +15 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.js +44 -0
- package/src/Api/Internal/GridInternalApi.d.ts +82 -0
- package/src/Api/Internal/GridInternalApi.js +252 -0
- package/src/Api/Internal/LayoutInternalApi.d.ts +48 -0
- package/src/Api/Internal/LayoutInternalApi.js +163 -0
- package/src/Api/Internal/PredicateInternalApi.d.ts +37 -0
- package/src/Api/Internal/PredicateInternalApi.js +140 -0
- package/src/Api/Internal/QueryInternalApi.d.ts +17 -0
- package/src/Api/Internal/QueryInternalApi.js +57 -0
- package/src/Api/Internal/QueryLanguageInternalApi.d.ts +11 -0
- package/src/Api/Internal/QueryLanguageInternalApi.js +34 -0
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +59 -0
- package/src/Api/Internal/StyledColumnInternalApi.js +249 -0
- package/src/Api/Internal/SystemStatusInternalApi.d.ts +11 -0
- package/src/Api/Internal/SystemStatusInternalApi.js +27 -0
- package/src/Api/Internal/TeamSharingInternalApi.d.ts +20 -0
- package/src/Api/Internal/TeamSharingInternalApi.js +66 -0
- package/src/Api/LayoutApi.d.ts +28 -44
- package/src/Api/PlusMinusApi.d.ts +9 -2
- package/src/Api/PredicateApi.d.ts +26 -10
- package/src/Api/QueryApi.d.ts +23 -18
- package/src/Api/QuickSearchApi.d.ts +5 -1
- package/src/Api/ScheduleApi.d.ts +97 -16
- package/src/Api/SettingsPanelApi.d.ts +12 -1
- package/src/Api/ShortcutApi.d.ts +28 -7
- package/src/Api/SmartEditApi.d.ts +8 -1
- package/src/Api/StyledColumnApi.d.ts +34 -54
- package/src/Api/SystemStatusApi.d.ts +12 -6
- package/src/Api/TeamSharingApi.d.ts +4 -17
- package/src/Api/ThemeApi.d.ts +25 -6
- package/src/Api/UserInterfaceApi.d.ts +13 -2
- package/src/PredefinedConfig/AlertState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.js +4 -0
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +0 -5
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +10 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +22 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -0
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +5 -3
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +0 -5
- package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +9 -0
- package/src/PredefinedConfig/SystemState.d.ts +5 -0
- package/src/Redux/ActionsReducers/GridRedux.d.ts +18 -0
- package/src/Redux/ActionsReducers/GridRedux.js +65 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +5 -0
- package/src/Redux/ActionsReducers/SystemRedux.js +17 -3
- package/src/Redux/Store/AdaptableStore.js +34 -26
- package/src/Strategy/AdaptableModuleBase.js +6 -6
- package/src/Strategy/AlertModule.d.ts +1 -6
- package/src/Strategy/AlertModule.js +37 -92
- package/src/Strategy/BulkUpdateModule.js +3 -3
- package/src/Strategy/CalculatedColumnModule.js +6 -6
- package/src/Strategy/ChartingModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -4
- package/src/Strategy/DashboardModule.js +2 -2
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +4 -4
- package/src/Strategy/FilterModule.js +7 -6
- package/src/Strategy/FlashingCellModule.d.ts +2 -0
- package/src/Strategy/FlashingCellModule.js +21 -5
- package/src/Strategy/FormatColumnModule.d.ts +1 -0
- package/src/Strategy/FormatColumnModule.js +29 -3
- package/src/Strategy/FreeTextColumnModule.js +3 -3
- package/src/Strategy/LayoutModule.js +18 -18
- package/src/Strategy/PlusMinusModule.js +2 -2
- package/src/Strategy/QueryModule.js +3 -3
- package/src/Strategy/ScheduleModule.js +10 -12
- package/src/Strategy/ShortcutModule.js +5 -5
- package/src/Strategy/SmartEditModule.js +3 -3
- package/src/Strategy/StyledColumnModule.js +9 -7
- package/src/Strategy/TeamSharingModule.js +3 -3
- package/src/Strategy/ThemeModule.js +1 -1
- package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +1 -1
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +1 -1
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +4 -3
- package/src/Strategy/Utilities/getScopeViewItems.js +1 -1
- package/src/Strategy/Utilities/updateSingleToMultiplePredicates.d.ts +5 -0
- package/src/Strategy/Utilities/updateSingleToMultiplePredicates.js +12 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +8 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +11 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +73 -78
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +3 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +9 -5
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +12 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +133 -28
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +1 -1
- package/src/Utilities/Helpers/FormatHelper.js +13 -10
- package/src/Utilities/ObjectFactory.js +8 -6
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +1 -1
- package/src/Utilities/Services/ChartingService.js +2 -2
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +2 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -5
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -2
- package/src/Utilities/Services/ReportService.js +3 -3
- package/src/Utilities/Services/RowEditService.d.ts +0 -19
- package/src/Utilities/Services/RowEditService.js +4 -161
- package/src/Utilities/Services/TeamSharingService.js +3 -3
- package/src/Utilities/Services/ValidationService.js +9 -7
- package/src/Utilities/logDeprecation.d.ts +3 -0
- package/src/Utilities/logDeprecation.js +30 -0
- package/src/View/AdaptablePopover/index.d.ts +2 -0
- package/src/View/AdaptablePopover/index.js +6 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +4 -2
- package/src/View/Alert/AlertEntityRow.js +1 -1
- package/src/View/Alert/AlertStatusSubPanel.js +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +3 -3
- package/src/View/Alert/Wizard/AlertWizard.js +3 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +4 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +4 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +1 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +25 -4
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Charting/ChartingViewPanel.d.ts +2 -2
- package/src/View/Components/Charting/ChartingViewPanel.js +17 -3
- package/src/View/Components/Charting/ChartingWizard/ChartingWizard.js +2 -2
- package/src/View/Components/Charting/ChartingWizard/SettingsSection.js +1 -1
- package/src/View/Components/Charting/DeleteChartButton.d.ts +7 -0
- package/src/View/Components/Charting/DeleteChartButton.js +12 -0
- package/src/View/Components/Charting/EditChartButton.d.ts +8 -0
- package/src/View/Components/Charting/EditChartButton.js +21 -0
- package/src/View/Components/EntityRulesEditor/PredicatesEditor.d.ts +16 -0
- package/src/View/Components/EntityRulesEditor/PredicatesEditor.js +86 -0
- package/src/View/Components/EntityRulesEditor/Utilities.d.ts +6 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +21 -0
- package/src/View/Components/EntityRulesEditor/index.d.ts +4 -9
- package/src/View/Components/EntityRulesEditor/index.js +16 -90
- package/src/View/Components/ExpressionWizard.js +1 -1
- package/src/View/Components/ExternalRenderer.js +3 -1
- package/src/View/Components/FilterForm/FilterForm.js +3 -3
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -5
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +5 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupConfirmation.d.ts +2 -12
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +46 -39
- package/src/View/Components/PredicateEditor/PredicateEditor.js +5 -5
- package/src/View/Components/ScopeComponent.js +3 -3
- package/src/View/Components/Selectors/ColumnValueSelector.js +1 -1
- package/src/View/Components/StyleComponent.js +42 -14
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/Dashboard/Dashboard.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +10 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +1 -1
- package/src/View/Export/ExportSelector.js +2 -2
- package/src/View/Export/ExportViewPanel.js +2 -2
- package/src/View/Export/ReportExportDropdown.js +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
- package/src/View/Filter/FilterSummary.js +1 -1
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +4 -2
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +4 -3
- package/src/View/FormatColumn/MoveFormatColumn.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +11 -5
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +8 -6
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +3 -4
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +5 -19
- package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +6 -6
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +1 -1
- package/src/View/Layout/SaveLayoutButton.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +2 -2
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +4 -4
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +5 -5
- package/src/View/Layout/Wizard/sections/FilterSection.js +2 -2
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
- package/src/View/Query/ExpandedQueryPopup.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
- package/src/View/StatusBar/StatusBarPanel.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +9 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +26 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +23 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.d.ts +8 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +25 -0
- package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.d.ts → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts} +2 -2
- package/src/View/StyledColumn/Wizard/{StyledColumnWizardStyleSection.js → StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js} +21 -19
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.d.ts +1 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +4 -0
- package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.d.ts +5 -3
- package/src/agGrid/Adaptable.js +106 -121
- package/src/agGrid/FilterWrapper.js +3 -3
- package/src/agGrid/FloatingFilterWrapper.js +3 -3
- package/src/agGrid/PercentBarRenderer.js +6 -6
- package/src/agGrid/agGridHelper.js +3 -3
- package/src/agGrid/agGridMenuHelper.js +3 -3
- package/src/agGrid/weightedAverage.js +2 -2
- package/src/components/ExpressionEditor/BaseEditorInput.js +92 -7
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -1
- package/src/components/OverlayTrigger/index.js +6 -2
- package/src/components/OverlayTrigger/utils.d.ts +1 -1
- package/src/components/OverlayTrigger/utils.js +4 -4
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/open-in-new.d.ts +3 -0
- package/src/components/icons/open-in-new.js +7 -0
- package/src/env.js +1 -3
- package/src/metamodel/adaptable.metamodel.d.ts +30 -10
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/parser.js +644 -382
- package/src/parser/src/types.d.ts +9 -0
- package/src/types.d.ts +3 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/InternalApi.d.ts +0 -155
- package/src/Api/InternalApi.js +0 -2
|
@@ -1,172 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RowEditService = void 0;
|
|
4
|
+
// @ts-ignore
|
|
4
5
|
class RowEditService {
|
|
5
6
|
constructor(adaptableApi) {
|
|
6
7
|
this.adaptableApi = adaptableApi;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (this.adaptableInstance.adaptableOptions.actionOptions.actionRowButtonOptions.autoHandle) {
|
|
11
|
-
this.adaptableInstance.api.eventApi.on('ActionRowSubmitted', (eventInfo) => this.autoHandleActionRowButtons(eventInfo));
|
|
8
|
+
const adaptableInstance = this.adaptableApi.internalApi.getAdaptableInstance();
|
|
9
|
+
if (adaptableInstance.adaptableOptions.actionOptions.actionRowButtonOptions.autoHandle) {
|
|
10
|
+
adaptableInstance.api.eventApi.on('ActionRowSubmitted', (eventInfo) => this.autoHandleActionRowButtons(eventInfo));
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
|
-
buildRowEditForm(rowNode) {
|
|
15
|
-
return this.buildActionRow('rowEdited', rowNode);
|
|
16
|
-
}
|
|
17
|
-
buildRowCreateForm(clonedRowNode) {
|
|
18
|
-
return this.buildActionRow('rowCreated', clonedRowNode);
|
|
19
|
-
}
|
|
20
|
-
buildActionRow(type, rowNode) {
|
|
21
|
-
const formFields = this.buildActionRowFields(type, rowNode);
|
|
22
|
-
const formButtons = this.buidActionRowButtons(type, rowNode);
|
|
23
|
-
const formTitle = this.getFormTitle(type, rowNode);
|
|
24
|
-
const formDescription = this.getFormDescription(type, rowNode);
|
|
25
|
-
const actionRowForm = {
|
|
26
|
-
title: formTitle,
|
|
27
|
-
description: formDescription,
|
|
28
|
-
fields: formFields,
|
|
29
|
-
buttons: formButtons,
|
|
30
|
-
};
|
|
31
|
-
return actionRowForm;
|
|
32
|
-
}
|
|
33
|
-
getFormTitle(type, rowNode) {
|
|
34
|
-
if (this.rowEditFormOptions.formTitle == undefined) {
|
|
35
|
-
return type === 'rowCreated' ? 'Create New Row' : 'Edit Row';
|
|
36
|
-
}
|
|
37
|
-
return typeof this.rowEditFormOptions.formTitle === 'function'
|
|
38
|
-
? this.rowEditFormOptions.formTitle(this.buildFormParamContext(type, rowNode))
|
|
39
|
-
: this.rowEditFormOptions.formTitle;
|
|
40
|
-
}
|
|
41
|
-
getFormDescription(type, rowNode) {
|
|
42
|
-
return typeof this.rowEditFormOptions.formDescription === 'function'
|
|
43
|
-
? this.rowEditFormOptions.formDescription(this.buildFormParamContext(type, rowNode))
|
|
44
|
-
: this.rowEditFormOptions.formDescription;
|
|
45
|
-
}
|
|
46
|
-
buildFormParamContext(type, rowNode) {
|
|
47
|
-
return {
|
|
48
|
-
rowNode,
|
|
49
|
-
adaptableApi: this.adaptableApi,
|
|
50
|
-
type: type,
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
buildActionRowFields(type, rowNode) {
|
|
54
|
-
const relevantColumns = this.adaptableApi.columnApi
|
|
55
|
-
.getColumns()
|
|
56
|
-
.filter((column) => {
|
|
57
|
-
// if there is NO rowNode, do NOT display the non-editable fields as they will be empty
|
|
58
|
-
return !!rowNode || this.isColumnEditable(column, rowNode);
|
|
59
|
-
})
|
|
60
|
-
.filter((column) => !this.adaptableApi.columnApi.isActionRowButtonColumn(column.columnId));
|
|
61
|
-
return relevantColumns.map((column) => this.buildFormField(type, column, rowNode));
|
|
62
|
-
}
|
|
63
|
-
buidActionRowButtons(type, rowNode) {
|
|
64
|
-
// 1. check if there are custom user provided buttons
|
|
65
|
-
if (Array.isArray(this.rowEditFormOptions.formButtons)) {
|
|
66
|
-
return this.rowEditFormOptions.formButtons;
|
|
67
|
-
}
|
|
68
|
-
// 2. else return the standard ones
|
|
69
|
-
const cancelButton = {
|
|
70
|
-
label: 'Cancel',
|
|
71
|
-
buttonStyle: {
|
|
72
|
-
variant: 'raised',
|
|
73
|
-
tone: 'neutral',
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
const saveButton = {
|
|
77
|
-
label: 'Save',
|
|
78
|
-
buttonStyle: {
|
|
79
|
-
variant: 'raised',
|
|
80
|
-
tone: 'success',
|
|
81
|
-
},
|
|
82
|
-
onClick: (button, context) => {
|
|
83
|
-
var _a, _b;
|
|
84
|
-
const eventInfo = type === 'rowCreated'
|
|
85
|
-
? {
|
|
86
|
-
type: 'rowCreated',
|
|
87
|
-
formData: context.formData,
|
|
88
|
-
adaptableApi: context.adaptableApi,
|
|
89
|
-
clonedRowNode: rowNode,
|
|
90
|
-
}
|
|
91
|
-
: {
|
|
92
|
-
type: 'rowEdited',
|
|
93
|
-
formData: context.formData,
|
|
94
|
-
rowNode: rowNode,
|
|
95
|
-
adaptableApi: context.adaptableApi,
|
|
96
|
-
};
|
|
97
|
-
this.adaptableApi.eventApi.emit('ActionRowSubmitted', eventInfo);
|
|
98
|
-
(_b = (_a = this.adaptableInstance.adaptableOptions.actionOptions.actionRowButtonOptions.actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
return [cancelButton, saveButton];
|
|
102
|
-
}
|
|
103
|
-
isColumnEditable(column, rowNode) {
|
|
104
|
-
return rowNode
|
|
105
|
-
? this.adaptableInstance.isCellEditable(rowNode, this.adaptableInstance.getAgGridColumnForColumnId(column.columnId))
|
|
106
|
-
: !column.readOnly;
|
|
107
|
-
}
|
|
108
|
-
buildFormField(type, column, rowNode) {
|
|
109
|
-
const isColumnEditable = this.isColumnEditable(column, rowNode);
|
|
110
|
-
const fieldValueOptions = this.getFieldValueOptions(column, rowNode);
|
|
111
|
-
const fieldType = isColumnEditable
|
|
112
|
-
? !!(fieldValueOptions === null || fieldValueOptions === void 0 ? void 0 : fieldValueOptions.length)
|
|
113
|
-
? 'select'
|
|
114
|
-
: this.getFieldTypeFromColumnType(column)
|
|
115
|
-
: 'textOutput';
|
|
116
|
-
const defaultValue = rowNode
|
|
117
|
-
? isColumnEditable
|
|
118
|
-
? this.adaptableInstance.getRawValueFromRowNode(rowNode, column.columnId)
|
|
119
|
-
: this.adaptableInstance.getDisplayValueFromRowNode(rowNode, column.columnId)
|
|
120
|
-
: null;
|
|
121
|
-
return {
|
|
122
|
-
label: this.getFormFieldLabel(type, column, rowNode),
|
|
123
|
-
name: column.columnId,
|
|
124
|
-
defaultValue,
|
|
125
|
-
fieldType,
|
|
126
|
-
options: fieldValueOptions,
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
getFormFieldLabel(type, column, rowNode) {
|
|
130
|
-
const customFieldLabel = typeof this.rowEditFormOptions.formFieldLabel === 'function'
|
|
131
|
-
? this.rowEditFormOptions.formFieldLabel(this.buildFormFieldLabelContext(type, column, rowNode))
|
|
132
|
-
: undefined;
|
|
133
|
-
return customFieldLabel !== null && customFieldLabel !== void 0 ? customFieldLabel : column.friendlyName;
|
|
134
|
-
}
|
|
135
|
-
buildFormFieldLabelContext(type, column, rowNode) {
|
|
136
|
-
return {
|
|
137
|
-
rowNode,
|
|
138
|
-
column,
|
|
139
|
-
adaptableApi: this.adaptableApi,
|
|
140
|
-
type: type,
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
getFieldTypeFromColumnType(column) {
|
|
144
|
-
switch (column.dataType) {
|
|
145
|
-
case 'Boolean':
|
|
146
|
-
return 'checkbox';
|
|
147
|
-
case 'Date':
|
|
148
|
-
return 'date';
|
|
149
|
-
case 'Number':
|
|
150
|
-
return 'number';
|
|
151
|
-
default:
|
|
152
|
-
// everything else is a plain text input
|
|
153
|
-
return 'text';
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
getFieldValueOptions(column, rowNode) {
|
|
157
|
-
const editLookUpItem = this.adaptableApi.userInterfaceApi.getEditLookUpItemForColumn(column);
|
|
158
|
-
if (!editLookUpItem) {
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
const gridCell = rowNode
|
|
162
|
-
? this.adaptableInstance.getGridCellFromRowNode(rowNode, column.columnId)
|
|
163
|
-
: undefined;
|
|
164
|
-
const editLookUpValues = this.adaptableApi.internalApi.getEditLookUpValuesForColumn(editLookUpItem, column, gridCell);
|
|
165
|
-
return editLookUpValues === null || editLookUpValues === void 0 ? void 0 : editLookUpValues.map((value) => ({
|
|
166
|
-
value,
|
|
167
|
-
label: value,
|
|
168
|
-
}));
|
|
169
|
-
}
|
|
170
13
|
autoHandleActionRowButtons(actionRowSubmittedInfo) {
|
|
171
14
|
const { adaptableApi } = actionRowSubmittedInfo;
|
|
172
15
|
if (actionRowSubmittedInfo.type === 'rowEdited') {
|
|
@@ -74,7 +74,7 @@ class TeamSharingService {
|
|
|
74
74
|
return importInfo === null || importInfo === void 0 ? void 0 : importInfo.AddAction(Entity);
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
const existingSharedEntities = this.adaptableApi.internalApi.getLocalTeamSharingEntities();
|
|
77
|
+
const existingSharedEntities = this.adaptableApi.teamSharingApi.internalApi.getLocalTeamSharingEntities();
|
|
78
78
|
const sharedEntityDependencyTree = this.getSharedEntityDependencyTree(importedSharedEntity, existingSharedEntities);
|
|
79
79
|
const importSteps = sharedEntityDependencyTree.map((sharedEntity) => ({
|
|
80
80
|
sharedEntity,
|
|
@@ -89,7 +89,7 @@ class TeamSharingService {
|
|
|
89
89
|
return [localRevision, remoteRevision];
|
|
90
90
|
}
|
|
91
91
|
getStaleActiveSharedEntities() {
|
|
92
|
-
const sharedEntities = this.adaptableApi.internalApi.getLocalTeamSharingEntities();
|
|
92
|
+
const sharedEntities = this.adaptableApi.teamSharingApi.internalApi.getLocalTeamSharingEntities();
|
|
93
93
|
const activeEntities = this.adaptableApi.internalApi.getState().TeamSharing.ActiveSharedEntityMap;
|
|
94
94
|
const result = {};
|
|
95
95
|
sharedEntities
|
|
@@ -122,7 +122,7 @@ class TeamSharingService {
|
|
|
122
122
|
if (updateNotification === 'SystemStatus') {
|
|
123
123
|
this.adaptableApi.systemStatusApi.setInfoSystemStatus(`TeamSharing: ${notificationMessage}`);
|
|
124
124
|
}
|
|
125
|
-
this.adaptableApi.teamSharingApi.fireTeamSharingEntityChangedEvent(sharedEntityActiveInfo.sharedEntity);
|
|
125
|
+
this.adaptableApi.teamSharingApi.internalApi.fireTeamSharingEntityChangedEvent(sharedEntityActiveInfo.sharedEntity);
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
destroy() {
|
|
@@ -17,7 +17,7 @@ class ValidationService {
|
|
|
17
17
|
if (cellDataChangedInfo.oldValue == cellDataChangedInfo.newValue) {
|
|
18
18
|
return [];
|
|
19
19
|
}
|
|
20
|
-
let editingRules = this.adaptableApi.alertApi
|
|
20
|
+
let editingRules = this.adaptableApi.alertApi.internalApi
|
|
21
21
|
.getAlertDefinitionsWithPreventEdit()
|
|
22
22
|
.filter((v) => this.adaptableApi.scopeApi.isColumnInScope(cellDataChangedInfo.column, v.Scope));
|
|
23
23
|
let failedValidations = [];
|
|
@@ -51,17 +51,18 @@ class ValidationService {
|
|
|
51
51
|
alertDefinition: failedRules[0],
|
|
52
52
|
cellDataChangedInfo: cellDataChangedInfo,
|
|
53
53
|
};
|
|
54
|
-
this.adaptableApi.alertApi.publishAlertFiredEvent(alert);
|
|
54
|
+
this.adaptableApi.alertApi.internalApi.publishAlertFiredEvent(alert);
|
|
55
55
|
failedRules.forEach((alertDefinition) => {
|
|
56
|
-
const alert = ObjectFactory_1.default.CreateCellChangedAlert(cellDataChangedInfo.column.friendlyName, this.adaptableApi.alertApi.getAlertDescription(alertDefinition, cellDataChangedInfo), alertDefinition, cellDataChangedInfo);
|
|
57
|
-
this.adaptableApi.alertApi.
|
|
56
|
+
const alert = ObjectFactory_1.default.CreateCellChangedAlert(cellDataChangedInfo.column.friendlyName, this.adaptableApi.alertApi.internalApi.getAlertDescription(alertDefinition, cellDataChangedInfo), alertDefinition, cellDataChangedInfo);
|
|
57
|
+
this.adaptableApi.alertApi.showAdaptableAlert(alert);
|
|
58
58
|
});
|
|
59
59
|
return false;
|
|
60
60
|
}
|
|
61
61
|
return true;
|
|
62
62
|
}
|
|
63
63
|
IsAlertDefinitionTriggered(alertDefinition, dataChangedEvent) {
|
|
64
|
-
|
|
64
|
+
var _a;
|
|
65
|
+
return this.adaptableApi.predicateApi.handlePredicates((_a = alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, {
|
|
65
66
|
value: dataChangedEvent.newValue,
|
|
66
67
|
oldValue: dataChangedEvent.oldValue,
|
|
67
68
|
displayValue: this.adaptableApi.gridApi.getDisplayValueFromRowNode(dataChangedEvent.rowNode, dataChangedEvent.column.columnId),
|
|
@@ -88,7 +89,7 @@ class ValidationService {
|
|
|
88
89
|
if (!row) {
|
|
89
90
|
return;
|
|
90
91
|
}
|
|
91
|
-
row[(_b = this.adaptableApi.columnApi.getAgGridColumnFieldForAdaptableColumn(cellDataChangedInfo.column.columnId)) !== null && _b !== void 0 ? _b : cellDataChangedInfo.column.columnId] = validationResult.NewValue;
|
|
92
|
+
row[(_b = this.adaptableApi.columnApi.internalApi.getAgGridColumnFieldForAdaptableColumn(cellDataChangedInfo.column.columnId)) !== null && _b !== void 0 ? _b : cellDataChangedInfo.column.columnId] = validationResult.NewValue;
|
|
92
93
|
this.adaptableApi.gridApi.updateGridData([row]);
|
|
93
94
|
if (StringExtensions_1.default.IsNotNullOrEmpty(validationResult.ValidationMessage) &&
|
|
94
95
|
this.adaptableApi.internalApi.getAdaptableOptions().editOptions
|
|
@@ -102,9 +103,10 @@ class ValidationService {
|
|
|
102
103
|
};
|
|
103
104
|
}
|
|
104
105
|
createValidationDescription(alertDefinition) {
|
|
106
|
+
var _a, _b;
|
|
105
107
|
return (this.adaptableApi.scopeApi.getScopeDescription(alertDefinition.Scope) +
|
|
106
108
|
' ' +
|
|
107
|
-
this.adaptableApi.predicateApi.predicateToString(
|
|
109
|
+
((_b = (_a = alertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.Predicates) === null || _b === void 0 ? void 0 : _b.map((predicate) => this.adaptableApi.predicateApi.predicateToString(predicate)).join(' AND ')));
|
|
108
110
|
}
|
|
109
111
|
createValidationMessage(alertDefinition) {
|
|
110
112
|
let returnMessage = this.createValidationDescription(alertDefinition);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const logDeprecation: <T>(typeName: string, oldProp: keyof T, newProp: keyof T, message?: string) => void;
|
|
2
|
+
export declare const logDeprecationExternal: <OLD_TYPE, NEW_TYPE>(oldTypeName: string, oldProp: keyof OLD_TYPE, newTypeName: string, newProp: keyof NEW_TYPE, message?: string) => void;
|
|
3
|
+
export declare const logDeprecationInternal: <T>(typeName: string, oldProp: keyof T) => void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logDeprecationInternal = exports.logDeprecationExternal = exports.logDeprecation = void 0;
|
|
4
|
+
const LoggingHelper_1 = require("./Helpers/LoggingHelper");
|
|
5
|
+
const doOnceFlags = {};
|
|
6
|
+
/**
|
|
7
|
+
* If the key was passed before, then do NOT execute the func
|
|
8
|
+
*/
|
|
9
|
+
const doOnce = (func, key) => {
|
|
10
|
+
if (doOnceFlags[key]) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
func();
|
|
14
|
+
doOnceFlags[key] = true;
|
|
15
|
+
};
|
|
16
|
+
const logDeprecation = (typeName, oldProp, newProp, message) => {
|
|
17
|
+
const newPropMsg = newProp ? `Please use '${typeName}.${newProp}()' instead. ` : '';
|
|
18
|
+
doOnce(() => (0, LoggingHelper_1.ConsoleLogWarning)(`Adaptable: '${typeName}.${oldProp}()' is deprecated. ${newPropMsg}${message !== null && message !== void 0 ? message : ''}`), `Deprecated_${oldProp}`);
|
|
19
|
+
};
|
|
20
|
+
exports.logDeprecation = logDeprecation;
|
|
21
|
+
const logDeprecationExternal = (oldTypeName, oldProp, newTypeName, newProp, message) => {
|
|
22
|
+
const newPropMsg = newProp ? `Please use '${newTypeName}.${newProp}()' instead. ` : '';
|
|
23
|
+
doOnce(() => (0, LoggingHelper_1.ConsoleLogWarning)(`Adaptable: '${oldTypeName}.${oldProp}()' is deprecated. ${newPropMsg}${message !== null && message !== void 0 ? message : ''}`), `Deprecated_${oldProp}`);
|
|
24
|
+
};
|
|
25
|
+
exports.logDeprecationExternal = logDeprecationExternal;
|
|
26
|
+
const logDeprecationInternal = (typeName, oldProp) => {
|
|
27
|
+
doOnce(() => (0, LoggingHelper_1.ConsoleLogWarning)(`Adaptable: '${typeName}.${oldProp}()' is deprecated. The method will be removed in the next major release.
|
|
28
|
+
Please contact support if you need the missing functionality.`), `Deprecated_${oldProp}`);
|
|
29
|
+
};
|
|
30
|
+
exports.logDeprecationInternal = logDeprecationInternal;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
|
|
3
|
+
import { OverlayShowParams } from '../../components/InfiniteTable';
|
|
3
4
|
export interface AdaptablePopoverProps extends React.ClassAttributes<React.PropsWithChildren<AdaptablePopover>> {
|
|
4
5
|
headerText?: string;
|
|
5
6
|
showEvent?: string;
|
|
@@ -14,6 +15,7 @@ export interface AdaptablePopoverProps extends React.ClassAttributes<React.Props
|
|
|
14
15
|
popoverMinWidth?: number;
|
|
15
16
|
popoverMaxWidth?: number;
|
|
16
17
|
popupPadding?: number;
|
|
18
|
+
alignPosition?: OverlayShowParams['alignPosition'];
|
|
17
19
|
}
|
|
18
20
|
export declare class AdaptablePopover extends React.Component<React.PropsWithChildren<AdaptablePopoverProps>, {}> {
|
|
19
21
|
render(): JSX.Element;
|
|
@@ -34,9 +34,13 @@ class AdaptablePopover extends React.Component {
|
|
|
34
34
|
fill: 'currentColor',
|
|
35
35
|
};
|
|
36
36
|
return (React.createElement(rebass_1.Flex, { alignItems: "center", className: this.props.className },
|
|
37
|
-
React.createElement(OverlayTrigger_1.default
|
|
37
|
+
React.createElement(OverlayTrigger_1.default
|
|
38
|
+
// showTriangle
|
|
39
|
+
, {
|
|
40
|
+
// showTriangle
|
|
41
|
+
render: () => popoverClickRootClose, showEvent: (this.props.showEvent || 'mouseenter'), hideEvent: (this.props.hideEvent || 'mouseleave'), style: {
|
|
38
42
|
overflow: 'visible',
|
|
39
|
-
}, defaultZIndex: 100000 }, useButton ? (React.createElement(ButtonInfo_1.ButtonInfo, { style: iconStyle, variant: "text", onClick: () => null, icon: showIcon && icon, tooltip: this.props.tooltipText }, this.props.children)) : (React.createElement("div", { title: this.props.tooltipText, tabIndex: 0, style: { cursor: 'pointer', display: 'inline-block' } },
|
|
43
|
+
}, defaultZIndex: 100000, alignPosition: this.props.alignPosition }, useButton ? (React.createElement(ButtonInfo_1.ButtonInfo, { style: iconStyle, variant: "text", onClick: () => null, icon: showIcon && icon, tooltip: this.props.tooltipText }, this.props.children)) : (React.createElement("div", { title: this.props.tooltipText, tabIndex: 0, style: { cursor: 'pointer', display: 'inline-block' } },
|
|
40
44
|
this.props.children,
|
|
41
45
|
showIcon && React.createElement(icons_1.Icon, { name: icon }))))));
|
|
42
46
|
}
|
|
@@ -7,14 +7,16 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const CheckBox_1 = require("../../../../components/CheckBox");
|
|
8
8
|
const HelpBlock_1 = tslib_1.__importDefault(require("../../../../components/HelpBlock"));
|
|
9
9
|
const UIOptionsActionColumnsForm = (props) => {
|
|
10
|
-
var _a, _b, _c;
|
|
10
|
+
var _a, _b, _c, _d, _e;
|
|
11
11
|
const options = [
|
|
12
12
|
{ value: 'clone', label: 'Clone' },
|
|
13
13
|
{ value: 'create', label: 'Create' },
|
|
14
14
|
{ value: 'edit', label: 'Edit' },
|
|
15
15
|
{ value: 'delete', label: 'Delete' },
|
|
16
16
|
];
|
|
17
|
-
const actionRowButtons = (
|
|
17
|
+
const actionRowButtons = Array.isArray((_b = (_a = props.abOptions) === null || _a === void 0 ? void 0 : _a.actionOptions) === null || _b === void 0 ? void 0 : _b.actionRowButtons)
|
|
18
|
+
? (_d = (_c = props.abOptions) === null || _c === void 0 ? void 0 : _c.actionOptions) === null || _d === void 0 ? void 0 : _d.actionRowButtons
|
|
19
|
+
: (_e = []) !== null && _e !== void 0 ? _e : [];
|
|
18
20
|
const handleCheckChange = (type, checked) => {
|
|
19
21
|
var _a;
|
|
20
22
|
let newActionRowButtons = actionRowButtons;
|
|
@@ -14,7 +14,7 @@ class AlertEntityRow extends React.Component {
|
|
|
14
14
|
let messageTypes = ['Info', 'Success', 'Warning', 'Error'];
|
|
15
15
|
let colItems = (0, Helper_1.cloneObject)(this.props.colItems);
|
|
16
16
|
colItems[0].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.scopeApi.getScopeToString(alertDefinition.Scope) }));
|
|
17
|
-
colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.alertApi.getAlertRuleDescription(alertDefinition) }));
|
|
17
|
+
colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.alertApi.internalApi.getAlertRuleDescription(alertDefinition) }));
|
|
18
18
|
colItems[2].Content = (React.createElement("div", null,
|
|
19
19
|
React.createElement(DropdownButton_1.default, { showClearButton: false, items: messageTypes.map((item) => ({
|
|
20
20
|
value: item,
|
|
@@ -20,7 +20,7 @@ const AlertStatusPanel = () => {
|
|
|
20
20
|
*/
|
|
21
21
|
const alerts = (0, react_redux_1.useSelector)((state) => state.System.AdaptableAlerts);
|
|
22
22
|
const text = alerts.length == 0 ? '0 Alerts' : alerts.length == 1 ? '1 Alert' : alerts.length + ' Alerts';
|
|
23
|
-
const handleAction = React.useCallback(() => adaptable.api.alertApi.
|
|
23
|
+
const handleAction = React.useCallback(() => adaptable.api.alertApi.openAlertSettingsPanel(), []);
|
|
24
24
|
// blinking logic
|
|
25
25
|
const previousAlerts = React.useRef(alerts);
|
|
26
26
|
const timeoutId = React.useRef();
|
|
@@ -89,8 +89,8 @@ exports.renderAlertBehaviourSummary = renderAlertBehaviourSummary;
|
|
|
89
89
|
const AlertBehaviourWizardSection = (props) => {
|
|
90
90
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
91
91
|
const { AlertProperties = {} } = data;
|
|
92
|
-
const rowAddedAlert = api.internalApi.isAlertDefinitionForAddedRowChangeEvent(data);
|
|
93
|
-
const rowRemovedAlert = api.internalApi.isAlertDefinitionForRemovedRowChangeEvent(data);
|
|
92
|
+
const rowAddedAlert = api.alertApi.internalApi.isAlertDefinitionForAddedRowChangeEvent(data);
|
|
93
|
+
const rowRemovedAlert = api.alertApi.internalApi.isAlertDefinitionForRemovedRowChangeEvent(data);
|
|
94
94
|
const cellChangedAlert = !rowAddedAlert && !rowRemovedAlert;
|
|
95
95
|
const hasPreventCellEdit = cellChangedAlert;
|
|
96
96
|
const hasHighlightCell = cellChangedAlert;
|
|
@@ -18,8 +18,8 @@ const AlertButtonsEditor = (props) => {
|
|
|
18
18
|
props.onChange(newButtons);
|
|
19
19
|
};
|
|
20
20
|
const alertDefinition = adaptableAlert.alertDefinition;
|
|
21
|
-
const rowAddedAlert = api.internalApi.isAlertDefinitionForAddedRowChangeEvent(alertDefinition);
|
|
22
|
-
const rowRemovedAlert = api.internalApi.isAlertDefinitionForRemovedRowChangeEvent(alertDefinition);
|
|
21
|
+
const rowAddedAlert = api.alertApi.internalApi.isAlertDefinitionForAddedRowChangeEvent(alertDefinition);
|
|
22
|
+
const rowRemovedAlert = api.alertApi.internalApi.isAlertDefinitionForRemovedRowChangeEvent(alertDefinition);
|
|
23
23
|
const cellChangedAlert = !rowAddedAlert && !rowRemovedAlert;
|
|
24
24
|
const hasHighlightCell = cellChangedAlert;
|
|
25
25
|
const hasHighlightRow = cellChangedAlert || rowAddedAlert;
|
|
@@ -49,8 +49,8 @@ const AlertPreview = (_a) => {
|
|
|
49
49
|
const Buttons = (((_a = alertForm === null || alertForm === void 0 ? void 0 : alertForm.Buttons) === null || _a === void 0 ? void 0 : _a.length) ? alertForm.Buttons : DEFAULT_BUTTONS).map(mapButtons);
|
|
50
50
|
const result = {
|
|
51
51
|
alertType: 'generic',
|
|
52
|
-
header: api.alertApi.getAlertMessageTitle(alertDefinition),
|
|
53
|
-
message: api.alertApi.getAlertDescription(alertDefinition),
|
|
52
|
+
header: api.alertApi.internalApi.getAlertMessageTitle(alertDefinition),
|
|
53
|
+
message: api.alertApi.internalApi.getAlertDescription(alertDefinition),
|
|
54
54
|
alertDefinition: Object.assign(Object.assign({}, alertDefinition), { AlertForm: Object.assign(Object.assign({}, alertForm), { Buttons }) }),
|
|
55
55
|
};
|
|
56
56
|
return result;
|
|
@@ -63,7 +63,7 @@ const AlertDisplayWizardSection = (props) => {
|
|
|
63
63
|
var _a, _b, _c, _d, _e;
|
|
64
64
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
65
65
|
const messageType = data.MessageType;
|
|
66
|
-
const messageText = api.alertApi.getAlertDescription(data);
|
|
66
|
+
const messageText = api.alertApi.internalApi.getAlertDescription(data);
|
|
67
67
|
const messageHeader = (_a = data.MessageHeader) !== null && _a !== void 0 ? _a : '';
|
|
68
68
|
const adaptableAlert = {
|
|
69
69
|
alertType: 'generic',
|
|
@@ -29,7 +29,7 @@ const AlertWizard = (props) => {
|
|
|
29
29
|
if (!alertDefinition.Rule.BooleanExpression &&
|
|
30
30
|
!alertDefinition.Rule.ObservableExpression &&
|
|
31
31
|
!alertDefinition.Rule.AggregatedBooleanExpression &&
|
|
32
|
-
!alertDefinition.Rule.
|
|
32
|
+
!alertDefinition.Rule.Predicates) {
|
|
33
33
|
alertDefinition.Rule.BooleanExpression = '';
|
|
34
34
|
}
|
|
35
35
|
alertDefinition.MessageType = (_a = alertDefinition.MessageType) !== null && _a !== void 0 ? _a : GeneralConstants_1.ALERT_DEFAULT_MESSAGE_TYPE;
|
|
@@ -39,8 +39,8 @@ const AlertWizard = (props) => {
|
|
|
39
39
|
const updateAlertDefinition = (alertDefinition) => {
|
|
40
40
|
var _a;
|
|
41
41
|
// we need to adjust the alert actions&behaviours based on the predicate type(row/cell based)
|
|
42
|
-
const isAddedRowChangeAlert = api.internalApi.isAlertDefinitionForAddedRowChangeEvent(alertDefinition);
|
|
43
|
-
const isRemovedRowChangeAlert = api.internalApi.isAlertDefinitionForRemovedRowChangeEvent(alertDefinition);
|
|
42
|
+
const isAddedRowChangeAlert = api.alertApi.internalApi.isAlertDefinitionForAddedRowChangeEvent(alertDefinition);
|
|
43
|
+
const isRemovedRowChangeAlert = api.alertApi.internalApi.isAlertDefinitionForRemovedRowChangeEvent(alertDefinition);
|
|
44
44
|
const isCellChangeAlert = !isAddedRowChangeAlert && !isRemovedRowChangeAlert;
|
|
45
45
|
// map FormButton Actions
|
|
46
46
|
const mapValidButtonActions = (alertAction) => {
|
|
@@ -8,9 +8,11 @@ const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
|
|
|
8
8
|
const BaseAlertRulesWizardSection = (props) => {
|
|
9
9
|
const { data, api, moduleInfo } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
10
10
|
const wholeRowScope = props.wholeRowScope != null ? props.wholeRowScope : api.scopeApi.scopeIsAll(data.Scope);
|
|
11
|
-
|
|
11
|
+
let predicateDefs = api.alertApi.internalApi.getAlertPredicateDefsForScope(data.Scope);
|
|
12
|
+
// move Any to the beginning of the list, so it is alwasy the default
|
|
13
|
+
predicateDefs = [...predicateDefs].sort((a, b) => (a.id === 'Any' ? -1 : b.id === 'Any' ? 1 : 0));
|
|
12
14
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: "Any", data: data, predicateDefs: predicateDefs, onChange: props.onChange, showAggregation: !wholeRowScope ? false : true, showObservable: !wholeRowScope ? false : true, showBoolean: true, showPredicate: true, descriptions: {
|
|
13
|
-
selectPredicate: '
|
|
15
|
+
selectPredicate: 'Create an Alert Rule - to be applied when data changes',
|
|
14
16
|
useBooleanQuery: (React.createElement(React.Fragment, null,
|
|
15
17
|
"Use an BooleanQuery if ",
|
|
16
18
|
React.createElement("i", null, "Scope"),
|
|
@@ -15,11 +15,11 @@ const BaseAlertScopeWizardSection = (props) => {
|
|
|
15
15
|
columnScope: 'Changes in selected Columns will trigger an Alert',
|
|
16
16
|
}, scope: data.Scope, updateScope: (Scope) => {
|
|
17
17
|
const newData = Object.assign(Object.assign({}, data), { Scope });
|
|
18
|
-
if (newData.Rule.
|
|
18
|
+
if (newData.Rule.Predicates) {
|
|
19
19
|
// when scope is changed, reset the rule to predicate of any
|
|
20
20
|
// if it was set to a predicate before
|
|
21
21
|
newData.Rule = {
|
|
22
|
-
|
|
22
|
+
Predicates: [{ PredicateId: 'Any' }],
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
if (newData.Rule.ObservableExpression !== undefined && !api.scopeApi.scopeIsAll(Scope)) {
|
|
@@ -3,15 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.isValidAlertRules = void 0;
|
|
4
4
|
const ModuleConstants_1 = require("../../../Utilities/Constants/ModuleConstants");
|
|
5
5
|
const isValidAlertRules = (alert, api, context) => {
|
|
6
|
+
var _a;
|
|
6
7
|
let valid = true;
|
|
7
|
-
if (!alert.Rule.
|
|
8
|
+
if (!alert.Rule.Predicates &&
|
|
8
9
|
!alert.Rule.BooleanExpression &&
|
|
9
10
|
!alert.Rule.ObservableExpression &&
|
|
10
11
|
!alert.Rule.AggregatedBooleanExpression) {
|
|
11
12
|
return 'No condition defined for alert';
|
|
12
13
|
}
|
|
13
|
-
if (valid && alert.Rule.
|
|
14
|
-
valid = api.predicateApi.
|
|
14
|
+
if (valid && alert.Rule.Predicates) {
|
|
15
|
+
valid = api.predicateApi.isEveryPredicateValid((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates);
|
|
15
16
|
if (!valid) {
|
|
16
17
|
return 'Predicate is not valid';
|
|
17
18
|
}
|
|
@@ -78,12 +78,12 @@ const CalculatedColumnExpressionWizardSection = (props) => {
|
|
|
78
78
|
return (React.createElement(Tabs_1.Tabs, { onValueChange: updateExpressionType, value: selectedTab, p: 2, style: { height: '100%', flex: 1, overflow: 'auto' } },
|
|
79
79
|
React.createElement(QueryTab, { value: "ScalarExpression", type: selectedTab, label: "Scalar" }),
|
|
80
80
|
React.createElement(Tabs_1.Tabs.Content, { value: 'ScalarExpression' },
|
|
81
|
-
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'scalar', module: moduleInfo.ModuleName, style: { paddingLeft: 0 }, value: data.Query.ScalarExpression, onChange: (ScalarExpression) => setCalculatedColumnExpression({ ScalarExpression }), initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.
|
|
81
|
+
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'scalar', module: moduleInfo.ModuleName, style: { paddingLeft: 0 }, value: data.Query.ScalarExpression, onChange: (ScalarExpression) => setCalculatedColumnExpression({ ScalarExpression }), initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.getNamedQueries(), isFullExpression: true, api: api })),
|
|
82
82
|
React.createElement(QueryTab, { value: "AggregatedScalarExpression", type: selectedTab, label: "Aggregated Scalar" }),
|
|
83
83
|
React.createElement(Tabs_1.Tabs.Content, { value: 'AggregatedScalarExpression' },
|
|
84
|
-
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'aggregatedScalar', module: moduleInfo.ModuleName, style: { paddingLeft: 0 }, value: data.Query.AggregatedScalarExpression, onChange: (AggregatedScalarExpression) => setCalculatedColumnExpression({ AggregatedScalarExpression }), initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.
|
|
84
|
+
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'aggregatedScalar', module: moduleInfo.ModuleName, style: { paddingLeft: 0 }, value: data.Query.AggregatedScalarExpression, onChange: (AggregatedScalarExpression) => setCalculatedColumnExpression({ AggregatedScalarExpression }), initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.getNamedQueries(), isFullExpression: true, api: api })),
|
|
85
85
|
React.createElement(QueryTab, { value: "CumulativeAggregateExpression", type: selectedTab, label: "Cumulative" }),
|
|
86
86
|
React.createElement(Tabs_1.Tabs.Content, { value: 'CumulativeAggregateExpression' },
|
|
87
|
-
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'cumulativeAggregatedScalar', module: moduleInfo.ModuleName, style: { paddingLeft: 0 }, value: data.Query.AggregatedScalarExpression, onChange: (AggregatedScalarExpression) => setCalculatedColumnExpression({ AggregatedScalarExpression }), initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.
|
|
87
|
+
React.createElement(ExpressionEditor_1.ExpressionEditor, { type: 'cumulativeAggregatedScalar', module: moduleInfo.ModuleName, style: { paddingLeft: 0 }, value: data.Query.AggregatedScalarExpression, onChange: (AggregatedScalarExpression) => setCalculatedColumnExpression({ AggregatedScalarExpression }), initialData: initialData, columns: api.columnApi.getQueryableColumns(), namedQueries: api.queryApi.getNamedQueries(), isFullExpression: true, api: api }))));
|
|
88
88
|
};
|
|
89
89
|
exports.CalculatedColumnExpressionWizardSection = CalculatedColumnExpressionWizardSection;
|
|
@@ -24,6 +24,7 @@ export declare const AdaptableObjectListItemView: React.FunctionComponent<{
|
|
|
24
24
|
style?: React.CSSProperties;
|
|
25
25
|
suspendedEnabled?: boolean;
|
|
26
26
|
teamSharingActivated?: boolean;
|
|
27
|
+
disableDeleteConfirmation?: boolean;
|
|
27
28
|
}>;
|
|
28
29
|
interface AdaptableObjectListItemProps {
|
|
29
30
|
data: AdaptableObjectView;
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_redux_1 = require("react-redux");
|
|
7
7
|
const rebass_1 = require("rebass");
|
|
8
|
+
const SystemRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/SystemRedux"));
|
|
8
9
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
9
10
|
const join_1 = tslib_1.__importDefault(require("../../../components/utils/join"));
|
|
10
11
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -20,6 +21,23 @@ const ITEM_BASE_CLASS_NAME = `${LIST_BASE_CLASS_NAME}__Item`;
|
|
|
20
21
|
const AdaptableObjectListItemView = (props) => {
|
|
21
22
|
var _a, _b, _c;
|
|
22
23
|
const baseClassName = ITEM_BASE_CLASS_NAME;
|
|
24
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
25
|
+
const deleteActionProps = {
|
|
26
|
+
disabled: props.deleteDisabled,
|
|
27
|
+
tooltip: props.deleteTooltip,
|
|
28
|
+
iconSize: ICON_SIZE,
|
|
29
|
+
ConfirmationMsg: `Are you sure you want to delete this ${props.entityType}?`,
|
|
30
|
+
ConfirmationTitle: `Delete ${props.entityType}`,
|
|
31
|
+
ConfirmAction: props.deleteAction,
|
|
32
|
+
accessLevel: props.accessLevel,
|
|
33
|
+
};
|
|
34
|
+
if (props.disableDeleteConfirmation) {
|
|
35
|
+
deleteActionProps.ConfirmAction = null;
|
|
36
|
+
deleteActionProps.onClickAction = () => {
|
|
37
|
+
dispatch(props.deleteAction);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const deleteActionButton = React.createElement(ButtonDelete_1.ButtonDelete, Object.assign({}, deleteActionProps));
|
|
23
41
|
return (React.createElement(rebass_1.Flex, { "data-name": "adaptable-object-list-item", "data-value": props.abObject.Uuid, as: "li", mb: 3, className: (0, join_1.default)(props.className, baseClassName), style: props.style },
|
|
24
42
|
React.createElement(rebass_1.Box, { flex: 1, className: `${baseClassName}__rows` }, (_c = (_b = (_a = props.items).filter) === null || _b === void 0 ? void 0 : _b.call(_a, Boolean)) === null || _c === void 0 ? void 0 : _c.map((tag, index) => {
|
|
25
43
|
var _a;
|
|
@@ -47,7 +65,7 @@ const AdaptableObjectListItemView = (props) => {
|
|
|
47
65
|
props.actions,
|
|
48
66
|
props.teamSharingActivated && (React.createElement(ButtonShare_1.ButtonShare, { iconSize: ICON_SIZE, Header: `TeamSharing ${props.entityType}`, accessLevel: props.accessLevel, onShare: props.onShare })),
|
|
49
67
|
props.onDelete && (React.createElement(SimpleButton_1.default, { "data-name": "delete", disabled: props.deleteDisabled, iconSize: ICON_SIZE, tooltip: props.deleteTooltip, icon: "trash", onClick: props.onDelete, variant: "text" })),
|
|
50
|
-
props.deleteAction &&
|
|
68
|
+
props.deleteAction && deleteActionButton,
|
|
51
69
|
props.showEditButton && (React.createElement(ButtonEdit_1.ButtonEdit, { iconSize: ICON_SIZE, disabled: props.editDisabled, accessLevel: props.accessLevel, onClick: () => props.handleOnEdit() }))),
|
|
52
70
|
React.createElement(rebass_1.Box, { flex: 1 }),
|
|
53
71
|
props.suspendedEnabled && (React.createElement(rebass_1.Flex, { justifyContent: "end" },
|
|
@@ -55,7 +73,7 @@ const AdaptableObjectListItemView = (props) => {
|
|
|
55
73
|
};
|
|
56
74
|
exports.AdaptableObjectListItemView = AdaptableObjectListItemView;
|
|
57
75
|
const AdaptableObjectListItem = (props) => {
|
|
58
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
59
77
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
60
78
|
const dispatch = (0, react_redux_1.useDispatch)();
|
|
61
79
|
const [isEditWizardVisible, setIsEditWizardVisible] = React.useState(false);
|
|
@@ -65,7 +83,7 @@ const AdaptableObjectListItem = (props) => {
|
|
|
65
83
|
const deleteAction = (_e = viewOptions === null || viewOptions === void 0 ? void 0 : viewOptions.getDeleteAction) === null || _e === void 0 ? void 0 : _e.call(viewOptions, props.data.abObject);
|
|
66
84
|
const isObjectShareable = props.module.isModuleObjectsShareable();
|
|
67
85
|
const teamSharingActivated = isObjectShareable &&
|
|
68
|
-
adaptable.api.teamSharingApi.
|
|
86
|
+
adaptable.api.teamSharingApi.isTeamSharingAvailable() &&
|
|
69
87
|
adaptable.api.teamSharingApi.hasTeamSharingFullRights();
|
|
70
88
|
const entityType = props.module.moduleInfo.FriendlyName;
|
|
71
89
|
const moduleAccessLevel = adaptable.api.internalApi
|
|
@@ -99,8 +117,11 @@ const AdaptableObjectListItem = (props) => {
|
|
|
99
117
|
const isEditDisabled = !Boolean(EditWizard || viewOptions.onOpenEditPopup);
|
|
100
118
|
const showActions = !props.hideControls;
|
|
101
119
|
const showEditButton = Boolean(EditWizard);
|
|
120
|
+
const adaptableOpttions = adaptable.api.internalApi.getAdaptableOptions();
|
|
121
|
+
const disableDeleteConfirmationState = (0, react_redux_1.useSelector)((adaptableState) => SystemRedux.SystemDisableDeleteConfirmationSelector(adaptableState.System));
|
|
122
|
+
const disableDeleteConfirmation = disableDeleteConfirmationState || ((_h = adaptableOpttions === null || adaptableOpttions === void 0 ? void 0 : adaptableOpttions.generalOptions) === null || _h === void 0 ? void 0 : _h.disableDeleteConfirmation);
|
|
102
123
|
return (React.createElement(React.Fragment, null,
|
|
103
|
-
React.createElement(exports.AdaptableObjectListItemView, { abObject: props.data.abObject, accessLevel: accessLevel, actions: actions, className: itemClassName, handleOnEdit: handleOnEdit, items: props.data.items, showActions: showActions, showEditButton: showEditButton, style: props.data.style, teamSharingActivated: teamSharingActivated, onShare: (config) => adaptable.api.teamSharingApi.shareEntity(props.data.abObject, props.module.moduleInfo.ModuleName, config), entityType: entityType, deleteAction: deleteAction, deleteDisabled: props.deleteDisabled, deleteTooltip: props.deleteTooltip, editDisabled: isEditDisabled, suspendedEnabled: hasSuspend, onSuspend: () => dispatch(viewOptions.getSuspendAction(props.data.abObject)), onUnSuspend: () => dispatch(viewOptions.getUnSuspendAction(props.data.abObject)) }),
|
|
124
|
+
React.createElement(exports.AdaptableObjectListItemView, { disableDeleteConfirmation: disableDeleteConfirmation, abObject: props.data.abObject, accessLevel: accessLevel, actions: actions, className: itemClassName, handleOnEdit: handleOnEdit, items: props.data.items, showActions: showActions, showEditButton: showEditButton, style: props.data.style, teamSharingActivated: teamSharingActivated, onShare: (config) => adaptable.api.teamSharingApi.shareEntity(props.data.abObject, props.module.moduleInfo.ModuleName, config), entityType: entityType, deleteAction: deleteAction, deleteDisabled: props.deleteDisabled, deleteTooltip: props.deleteTooltip, editDisabled: isEditDisabled, suspendedEnabled: hasSuspend, onSuspend: () => dispatch(viewOptions.getSuspendAction(props.data.abObject)), onUnSuspend: () => dispatch(viewOptions.getUnSuspendAction(props.data.abObject)) }),
|
|
104
125
|
isEditWizardVisible && EditWizard && (React.createElement(EditWizard, { defaultCurrentSectionName: wizardStepName, moduleInfo: props.module.moduleInfo, data: props.data.abObject, configEntities: null, onCloseWizard: handleCloseWizard, onFinishWizard: handleCloseWizard }))));
|
|
105
126
|
};
|
|
106
127
|
exports.AdaptableObjectListItem = AdaptableObjectListItem;
|
|
@@ -5,7 +5,7 @@ import { UIConfirmation } from '../../../Utilities/Interface/MessagePopups';
|
|
|
5
5
|
import { SimpleButtonProps } from '../../../components/SimpleButton';
|
|
6
6
|
export interface DeleteButtonProps extends SimpleButtonProps {
|
|
7
7
|
onConfirmWarning?: (confirmation: UIConfirmation) => PopupRedux.PopupShowConfirmationAction;
|
|
8
|
-
ConfirmAction
|
|
8
|
+
ConfirmAction?: Redux.Action;
|
|
9
9
|
ConfirmationMsg: string;
|
|
10
10
|
ConfirmationTitle: string;
|
|
11
11
|
onClickAction?: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ChartingViewPanel: React.FunctionComponent<
|
|
2
|
+
import { ViewPanelProps } from '../SharedProps/ViewPanelProps';
|
|
3
|
+
export declare const ChartingViewPanel: React.FunctionComponent<ViewPanelProps>;
|