@adaptabletools/adaptable 10.0.4-canary.4 → 10.0.4-canary.5
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/LICENSE.md +1 -1
- package/agGrid.d.ts +2 -2
- package/base.css +202 -33
- package/bundle.cjs.js +100 -97
- package/index.css +243 -33
- package/package.json +3 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -3
- package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
- package/src/AdaptableOptions/DashboardOptions.d.ts +2 -2
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +2 -2
- package/src/AdaptableOptions/EditOptions.d.ts +2 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +2 -2
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
- package/src/AdaptableOptions/NotificationsOptions.d.ts +4 -3
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +75 -0
- package/src/{Api/Events/FlashingAlertFired.js → AdaptableOptions/SettingsPanelOptions.js} +0 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +29 -0
- package/src/Api/AdaptableApi.d.ts +3 -1
- package/src/Api/AlertApi.d.ts +4 -79
- package/src/Api/DataChangeHistoryApi.d.ts +4 -0
- package/src/Api/EventApi.d.ts +8 -8
- package/src/Api/Events/AdaptableReady.d.ts +2 -2
- package/src/Api/Events/FlashingCellDisplayed.d.ts +11 -0
- package/src/{PredefinedConfig/Common/AdaptableFlashingAlert.js → Api/Events/FlashingCellDisplayed.js} +0 -0
- package/src/Api/Events/GridDataChanged.d.ts +3 -1
- package/src/Api/FlashingCellApi.d.ts +78 -0
- package/src/Api/FlashingCellApi.js +2 -0
- package/src/Api/GridApi.d.ts +28 -5
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +8 -22
- package/src/Api/Implementation/AlertApiImpl.js +40 -107
- package/src/Api/Implementation/ConfigApiImpl.js +0 -5
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +20 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +96 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +13 -8
- package/src/Api/Implementation/GridApiImpl.js +39 -17
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -2
- package/src/Api/Implementation/InternalApiImpl.js +5 -4
- package/src/Api/Implementation/LayoutApiImpl.js +12 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +5 -5
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/InternalApi.d.ts +4 -4
- package/src/Api/SmartEditApi.d.ts +4 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
- package/src/PredefinedConfig/AlertState.d.ts +13 -54
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
- package/src/PredefinedConfig/Common/{AdaptableFlashingAlert.d.ts → AdaptableFlashingCell.d.ts} +6 -6
- package/src/PredefinedConfig/Common/AdaptableFlashingCell.js +2 -0
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +14 -3
- package/src/PredefinedConfig/Common/CellSummary.d.ts +2 -2
- package/src/PredefinedConfig/Common/Menu.d.ts +2 -2
- package/src/PredefinedConfig/Common/Schedule.d.ts +4 -14
- package/src/PredefinedConfig/Common/Schedule.js +0 -14
- package/src/PredefinedConfig/Common/Types.d.ts +4 -3
- package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
- package/src/PredefinedConfig/DashboardState.d.ts +3 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +70 -0
- package/src/PredefinedConfig/FlashingCellState.js +2 -0
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +2 -2
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -0
- package/src/PredefinedConfig/ScheduleState.d.ts +1 -5
- package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
- package/src/PredefinedConfig/SystemState.d.ts +17 -4
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +3 -38
- package/src/Redux/ActionsReducers/AlertRedux.js +9 -68
- package/src/Redux/ActionsReducers/DashboardRedux.js +1 -1
- package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +55 -0
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +100 -0
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +34 -13
- package/src/Redux/ActionsReducers/SystemRedux.js +94 -40
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +2 -1
- package/src/Redux/Store/AdaptableStore.js +80 -45
- package/src/Strategy/AlertModule.d.ts +14 -5
- package/src/Strategy/AlertModule.js +40 -123
- package/src/Strategy/CalculatedColumnModule.d.ts +28 -0
- package/src/Strategy/CalculatedColumnModule.js +29 -0
- package/src/Strategy/ConditionalStyleModule.d.ts +12 -0
- package/src/Strategy/ConditionalStyleModule.js +28 -0
- package/src/Strategy/CustomSortModule.d.ts +12 -1
- package/src/Strategy/CustomSortModule.js +26 -0
- package/src/Strategy/DashboardModule.d.ts +0 -1
- package/src/Strategy/DashboardModule.js +1 -7
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/DataSourceModule.d.ts +9 -1
- package/src/Strategy/DataSourceModule.js +28 -0
- package/src/Strategy/ExportModule.d.ts +12 -0
- package/src/Strategy/ExportModule.js +43 -0
- package/src/Strategy/FilterModule.d.ts +8 -1
- package/src/Strategy/FilterModule.js +27 -0
- package/src/Strategy/FlashingCellModule.d.ts +33 -0
- package/src/Strategy/FlashingCellModule.js +219 -0
- package/src/Strategy/FormatColumnModule.d.ts +11 -1
- package/src/Strategy/FormatColumnModule.js +35 -0
- package/src/Strategy/FreeTextColumnModule.d.ts +9 -1
- package/src/Strategy/FreeTextColumnModule.js +45 -0
- package/src/Strategy/GridInfoModule.js +58 -36
- package/src/Strategy/Interface/IModule.d.ts +70 -0
- package/src/Strategy/PlusMinusModule.d.ts +11 -0
- package/src/Strategy/PlusMinusModule.js +34 -0
- package/src/Strategy/QueryModule.d.ts +20 -0
- package/src/Strategy/QueryModule.js +27 -0
- package/src/Strategy/ScheduleModule.d.ts +17 -1
- package/src/Strategy/ScheduleModule.js +148 -2
- package/src/Strategy/SetingsPanelModule.d.ts +10 -0
- package/src/Strategy/SetingsPanelModule.js +24 -0
- package/src/Strategy/ShortcutModule.d.ts +11 -0
- package/src/Strategy/ShortcutModule.js +22 -0
- package/src/Strategy/ToolPanelModule.js +1 -1
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +8 -0
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +15 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.d.ts +4 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +19 -0
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +9 -0
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +9 -0
- package/src/Strategy/Utilities/getExportColumnsViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getExportColumnsViewItems.js +22 -0
- package/src/Strategy/Utilities/getExportRowsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getExportRowsViewItems.js +26 -0
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getExpressionViewItems.js +9 -0
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +9 -0
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +10 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +15 -0
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +6 -0
- package/src/Strategy/Utilities/getRuleViewItems.js +15 -0
- package/src/Strategy/Utilities/getScopeViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getScopeViewItems.js +20 -0
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +15 -0
- package/src/Strategy/Utilities/getStyleViewItems.d.ts +2 -0
- package/src/Strategy/Utilities/getStyleViewItems.js +15 -0
- package/src/Utilities/Constants/ModuleConstants.d.ts +2 -0
- package/src/Utilities/Constants/ModuleConstants.js +3 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +11 -4
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +6 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +35 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +2 -1
- package/src/Utilities/Helpers/StyleHelper.d.ts +4 -0
- package/src/Utilities/Helpers/StyleHelper.js +4 -1
- package/src/Utilities/MenuItem.d.ts +1 -1
- package/src/Utilities/MenuItem.js +2 -2
- package/src/Utilities/ObjectFactory.d.ts +6 -7
- package/src/Utilities/ObjectFactory.js +13 -20
- package/src/Utilities/Services/AlertService.d.ts +3 -3
- package/src/Utilities/Services/AlertService.js +11 -17
- package/src/Utilities/Services/EntitlementService.d.ts +1 -0
- package/src/Utilities/Services/EntitlementService.js +8 -0
- package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -7
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +1 -0
- package/src/Utilities/Services/ModuleService.js +6 -6
- package/src/Utilities/Services/TeamSharingService.js +3 -4
- package/src/View/AdaptableView.js +2 -2
- package/src/View/AdaptableViewFactory.js +0 -26
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +6 -6
- package/src/View/AdaptableWizardView/index.js +1 -1
- package/src/View/Alert/AlertEmptyView.d.ts +5 -0
- package/src/View/Alert/AlertEmptyView.js +16 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +2 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +10 -5
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +8 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -7
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -6
- package/src/View/Alert/Wizard/AlertWizard.js +17 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +4 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +5 -4
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/Alert/Wizard/isValidAlertRules.d.ts +2 -3
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.d.ts +2 -0
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +17 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -16
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +18 -2
- package/src/View/CellSummary/CellSummaryPopup.js +2 -2
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +14 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +82 -0
- package/src/View/Components/AdaptableObjectList/index.d.ts +1 -0
- package/src/View/Components/AdaptableObjectList/index.js +5 -0
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonDelete.js +3 -2
- package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonEdit.js +4 -6
- package/src/View/Components/Buttons/ButtonShare.js +3 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +1 -1
- package/src/View/Components/Buttons/{SuspendToggleButton.d.ts → SuspendToggleButton/SuspendToggleButton.d.ts} +5 -3
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +19 -0
- package/src/View/Components/Buttons/SuspendToggleButton/index.d.ts +1 -0
- package/src/View/Components/Buttons/SuspendToggleButton/index.js +4 -0
- package/src/View/Components/ExternalRenderer.d.ts +14 -0
- package/src/View/Components/ExternalRenderer.js +32 -0
- package/src/View/Components/FilterForm/QuickFilterForm.js +8 -3
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +4 -4
- package/src/View/Components/Panels/PanelWithImage.js +2 -2
- package/src/View/Components/Popups/AdaptableChart.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +20 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +119 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +15 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +35 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +9 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +67 -0
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.d.ts +6 -0
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +9 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +13 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +63 -0
- package/src/View/Components/Popups/{PopupContext.d.ts → AdaptablePopup/PopupContext.d.ts} +0 -0
- package/src/View/Components/Popups/{PopupContext.js → AdaptablePopup/PopupContext.js} +0 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +10 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +22 -0
- package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +7 -0
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +29 -0
- package/src/View/Components/Popups/AdaptablePopup/Utilities.d.ts +15 -0
- package/src/View/Components/Popups/AdaptablePopup/Utilities.js +28 -0
- package/src/View/Components/Popups/AdaptablePopup/index.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/index.js +5 -0
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +4 -3
- package/src/View/Components/ValueSelector/index.js +4 -4
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.d.ts +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +19 -5
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +3 -4
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +18 -3
- package/src/View/Dashboard/Dashboard.d.ts +0 -1
- package/src/View/Dashboard/Dashboard.js +21 -68
- package/src/View/Dashboard/DashboardPopup.d.ts +6 -2
- package/src/View/Dashboard/DashboardPopup.js +30 -8
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -4
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +3 -3
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +3 -3
- package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +1 -2
- package/src/View/DataSource/Wizard/DataSourceWizard.js +17 -2
- package/src/View/Export/ReportExportDropdown.d.ts +5 -0
- package/src/View/Export/ReportExportDropdown.js +37 -0
- package/src/View/Export/Wizard/NewReportWizard.js +15 -2
- package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +2 -2
- package/src/View/FlashingCell/FlashingCellStyle.d.ts +7 -0
- package/src/View/FlashingCell/FlashingCellStyle.js +20 -0
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.d.ts → FlashingCell/Wizard/FlashingCellDurationWizardSection.d.ts} +4 -4
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.js → FlashingCell/Wizard/FlashingCellDurationWizardSection.js} +6 -6
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.d.ts → FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts} +3 -3
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.js → FlashingCell/Wizard/FlashingCellRulesWizardSection.js} +10 -10
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.d.ts → FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts} +1 -2
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.js → FlashingCell/Wizard/FlashingCellScopeWizardSection.js} +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +15 -0
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.js → FlashingCell/Wizard/FlashingCellStyleWizardSection.js} +17 -16
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.d.ts +6 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +99 -0
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.d.ts +3 -0
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +30 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +18 -14
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +17 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +18 -5
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -2
- package/src/View/GridInfo/GridInfoPopup.d.ts +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +21 -16
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutPopup.js +4 -6
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +3 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.d.ts +1 -2
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +18 -4
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +14 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +7 -8
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +9 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.d.ts +5 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +59 -48
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +9 -9
- package/src/View/Schedule/Wizard/ScheduleWizard.d.ts +1 -2
- package/src/View/Schedule/Wizard/ScheduleWizard.js +75 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -6
- package/src/View/Shortcut/Wizard/ShortcutWizard.d.ts +1 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +31 -4
- package/src/View/SmartEdit/SmartEditPopup.js +2 -2
- package/src/View/StateManagement/StateManagementPopup.js +16 -15
- package/src/View/SystemStatus/SystemStatusPopup.js +3 -3
- package/src/View/TeamSharing/TeamSharingPopup.js +2 -2
- package/src/View/Theme/ThemePopup.js +5 -7
- package/src/View/UIHelper.d.ts +3 -1
- package/src/View/UIHelper.js +35 -16
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +5 -0
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +2 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +10 -2
- package/src/agGrid/Adaptable.d.ts +14 -6
- package/src/agGrid/Adaptable.js +194 -57
- package/src/agGrid/agGridHelper.d.ts +1 -0
- package/src/agGrid/agGridHelper.js +14 -2
- package/src/components/ApplicationIcon.d.ts +5 -0
- package/src/components/ApplicationIcon.js +13 -0
- package/src/components/Dashboard/DashboardManager.js +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Dialog/index.d.ts +4 -1
- package/src/components/Dialog/index.js +10 -3
- package/src/components/DropdownButton/index.d.ts +1 -0
- package/src/components/DropdownButton/index.js +2 -2
- package/src/components/EllipsisContainer/index.js +1 -1
- package/src/components/EmptyContent/index.js +2 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/PopupWithFooter.js +2 -7
- package/src/components/StylePreview.d.ts +8 -0
- package/src/components/StylePreview.js +11 -0
- package/src/components/Tag/Tag.d.ts +3 -0
- package/src/components/Tag/Tag.js +11 -0
- package/src/components/Tag/index.d.ts +1 -0
- package/src/components/Tag/index.js +5 -0
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/ToggleButton/index.d.ts +1 -0
- package/src/components/ToggleButton/index.js +8 -4
- package/src/components/WindowModal/WindowModal.d.ts +23 -0
- package/src/components/WindowModal/WindowModal.js +87 -0
- package/src/components/WindowModal/index.d.ts +1 -0
- package/src/components/WindowModal/index.js +4 -0
- package/src/components/icons/index.js +4 -0
- package/src/components/icons/menu.d.ts +3 -0
- package/src/components/icons/menu.js +7 -0
- package/src/components/icons/state-management.js +1 -1
- package/src/components/icons/tool-panel.d.ts +3 -0
- package/src/components/icons/tool-panel.js +7 -0
- package/src/components/utils/useDraggable.d.ts +3 -1
- package/src/components/utils/useDraggable.js +14 -2
- package/src/metamodel/adaptable.metamodel.d.ts +53 -32
- package/src/metamodel/adaptable.metamodel.js +216 -197
- package/src/types.d.ts +8 -6
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/FlashingAlertFired.d.ts +0 -11
- package/src/View/Alert/AlertPopup.d.ts +0 -42
- package/src/View/Alert/AlertPopup.js +0 -205
- package/src/View/Alert/FlashingAlertEntityRow.d.ts +0 -7
- package/src/View/Alert/FlashingAlertEntityRow.js +0 -22
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.d.ts +0 -10
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.d.ts +0 -6
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.js +0 -89
- package/src/View/CalculatedColumn/CalculatedColumnEntityRow.d.ts +0 -9
- package/src/View/CalculatedColumn/CalculatedColumnEntityRow.js +0 -28
- package/src/View/CalculatedColumn/CalculatedColumnPopup.d.ts +0 -25
- package/src/View/CalculatedColumn/CalculatedColumnPopup.js +0 -117
- package/src/View/Components/Buttons/SuspendToggleButton.js +0 -17
- package/src/View/Components/Popups/AdaptablePopup.d.ts +0 -23
- package/src/View/Components/Popups/AdaptablePopup.js +0 -59
- package/src/View/ConditionalStyle/ConditionalStyleEntityRow.d.ts +0 -5
- package/src/View/ConditionalStyle/ConditionalStyleEntityRow.js +0 -26
- package/src/View/ConditionalStyle/ConditionalStylePopup.d.ts +0 -30
- package/src/View/ConditionalStyle/ConditionalStylePopup.js +0 -144
- package/src/View/CustomSort/CustomSortEntityRow.d.ts +0 -12
- package/src/View/CustomSort/CustomSortEntityRow.js +0 -32
- package/src/View/CustomSort/CustomSortPopup.d.ts +0 -27
- package/src/View/CustomSort/CustomSortPopup.js +0 -138
- package/src/View/DataSource/DataSourceEntityRow.d.ts +0 -12
- package/src/View/DataSource/DataSourceEntityRow.js +0 -29
- package/src/View/DataSource/DataSourcePopup.d.ts +0 -28
- package/src/View/DataSource/DataSourcePopup.js +0 -97
- package/src/View/Export/ExportPopup.d.ts +0 -34
- package/src/View/Export/ExportPopup.js +0 -139
- package/src/View/Export/ReportEntityRow.d.ts +0 -10
- package/src/View/Export/ReportEntityRow.js +0 -49
- package/src/View/Export/Wizard/ReportWizard.d.ts +0 -7
- package/src/View/Export/Wizard/ReportWizard.js +0 -50
- package/src/View/Filter/FilterEntityRow.d.ts +0 -12
- package/src/View/Filter/FilterEntityRow.js +0 -20
- package/src/View/Filter/FilterPopup.d.ts +0 -20
- package/src/View/Filter/FilterPopup.js +0 -50
- package/src/View/FormatColumn/FormatColumnEntityRow.d.ts +0 -9
- package/src/View/FormatColumn/FormatColumnEntityRow.js +0 -103
- package/src/View/FormatColumn/FormatColumnPopup.d.ts +0 -27
- package/src/View/FormatColumn/FormatColumnPopup.js +0 -133
- package/src/View/FreeTextColumn/FreeTextColumnEntityRow.d.ts +0 -5
- package/src/View/FreeTextColumn/FreeTextColumnEntityRow.js +0 -31
- package/src/View/FreeTextColumn/FreeTextColumnPopup.d.ts +0 -25
- package/src/View/FreeTextColumn/FreeTextColumnPopup.js +0 -118
- package/src/View/PlusMinus/PlusMinusEntityRow.d.ts +0 -9
- package/src/View/PlusMinus/PlusMinusEntityRow.js +0 -24
- package/src/View/PlusMinus/PlusMinusPopup.d.ts +0 -30
- package/src/View/PlusMinus/PlusMinusPopup.js +0 -124
- package/src/View/Query/NamedQueryEntityRow.d.ts +0 -8
- package/src/View/Query/NamedQueryEntityRow.js +0 -21
- package/src/View/Query/QueryPopup.d.ts +0 -28
- package/src/View/Query/QueryPopup.js +0 -114
- package/src/View/Schedule/ScheduleEntityRow.d.ts +0 -5
- package/src/View/Schedule/ScheduleEntityRow.js +0 -58
- package/src/View/Schedule/SchedulePopup.d.ts +0 -58
- package/src/View/Schedule/SchedulePopup.js +0 -317
- package/src/View/Shortcut/ShortcutEntityRow.d.ts +0 -17
- package/src/View/Shortcut/ShortcutEntityRow.js +0 -47
- package/src/View/Shortcut/ShortcutPopup.d.ts +0 -30
- package/src/View/Shortcut/ShortcutPopup.js +0 -121
package/src/View/UIHelper.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UIHelper = exports.isBrowserDocumentAvailable = exports.setCSSVariableValue = exports.getCSSVariableValue = exports.getAdaptableToolPanelWidth = exports.getButtonTextColourForMessageType = exports.getButtonTextColourForArrayandMessageType = exports.getButtonColourForAdaptableAlerts = exports.getMessageTypeFromAdaptableAlerts = exports.getScheduleDescription = exports.getButtonToneForMessageType = exports.getGlyphForMessageType = exports.getGlyphForStatusColour = exports.getStyleForMessageType = exports.getStyleForStatusColour = exports.getColorByMessageType = exports.getGlyphByMessageType = exports.getButtonToneByMessageType = exports.getMessageTypeByStatusColour = exports.IsNotEmptyStyle = exports.IsEmptyStyle = exports.isValidUserChartContainer = exports.getChartContainer = exports.getModalContainer = exports.getPlaceHolderforDataType = exports.getDescriptionForDataType = exports.getEmptyConfigState = exports.getDefaultColors = exports.getHexForName = exports.ORANGE = exports.LIGHT_RED = exports.RED = exports.DARK_RED = exports.PURPLE = exports.MAGENTA = exports.CYAN = exports.LIGHT_BLUE = exports.BLUE = exports.DARK_BLUE = exports.LIGHT_YELLOW = exports.YELLOW = exports.LIME_GREEN = exports.GREEN = exports.DARK_GREEN = exports.BROWN = exports.GRAY = exports.LIGHT_GRAY = exports.WHITE = exports.BLACK = void 0;
|
|
3
|
+
exports.UIHelper = exports.isBrowserDocumentAvailable = exports.setCSSVariableValue = exports.getCSSVariableValue = exports.getAdaptableToolPanelWidth = exports.getButtonTextColourForMessageType = exports.getButtonTextColourForArrayandMessageType = exports.getButtonColourForAdaptableAlerts = exports.getMessageTypeFromAdaptableAlerts = exports.getWeekDayByIndex = exports.getScheduleDescription = exports.getButtonToneForMessageType = exports.getGlyphForMessageType = exports.getGlyphForStatusColour = exports.getStyleForMessageType = exports.getStyleForStatusColour = exports.getColorByMessageType = exports.getGlyphByMessageType = exports.getButtonToneByMessageType = exports.getMessageTypeByStatusColour = exports.IsNotEmptyStyle = exports.IsEmptyStyle = exports.isValidUserChartContainer = exports.getChartContainer = exports.getModalContainer = exports.getPlaceHolderforDataType = exports.getDescriptionForDataType = exports.getEmptyConfigState = exports.getDefaultColors = exports.getHexForName = exports.ORANGE = exports.LIGHT_RED = exports.RED = exports.DARK_RED = exports.PURPLE = exports.MAGENTA = exports.CYAN = exports.LIGHT_BLUE = exports.BLUE = exports.DARK_BLUE = exports.LIGHT_YELLOW = exports.YELLOW = exports.LIME_GREEN = exports.GREEN = exports.DARK_GREEN = exports.BROWN = exports.GRAY = exports.LIGHT_GRAY = exports.WHITE = exports.BLACK = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const EditableConfigEntityState_1 = require("./Components/SharedProps/EditableConfigEntityState");
|
|
6
6
|
const Enums_1 = require("../PredefinedConfig/Common/Enums");
|
|
7
7
|
const StringExtensions_1 = require("../Utilities/Extensions/StringExtensions");
|
|
8
8
|
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
9
|
-
const Schedule_1 = require("../PredefinedConfig/Common/Schedule");
|
|
10
9
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
11
10
|
exports.BLACK = 'Black';
|
|
12
11
|
exports.WHITE = 'White';
|
|
@@ -352,13 +351,13 @@ function getScheduleDescription(schedule) {
|
|
|
352
351
|
}
|
|
353
352
|
let dateString;
|
|
354
353
|
if (schedule.OneOffDate == null) {
|
|
355
|
-
if (ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek,
|
|
356
|
-
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek,
|
|
357
|
-
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek,
|
|
358
|
-
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek,
|
|
359
|
-
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek,
|
|
360
|
-
if (ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek,
|
|
361
|
-
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek,
|
|
354
|
+
if (ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek, 'Monday') &&
|
|
355
|
+
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek, 'Tuesday') &&
|
|
356
|
+
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek, 'Wednesday') &&
|
|
357
|
+
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek, 'Thursday') &&
|
|
358
|
+
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek, 'Friday')) {
|
|
359
|
+
if (ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek, 'Sunday') &&
|
|
360
|
+
ArrayExtensions_1.default.ContainsItem(schedule.DaysOfWeek, 'Saturday')) {
|
|
362
361
|
dateString = 'Everyday';
|
|
363
362
|
}
|
|
364
363
|
else {
|
|
@@ -378,22 +377,41 @@ function getScheduleDescription(schedule) {
|
|
|
378
377
|
exports.getScheduleDescription = getScheduleDescription;
|
|
379
378
|
function getShortenedDayString(dayOfWeek) {
|
|
380
379
|
switch (dayOfWeek) {
|
|
381
|
-
case
|
|
380
|
+
case 'Sunday':
|
|
382
381
|
return 'Sun';
|
|
383
|
-
case
|
|
382
|
+
case 'Monday':
|
|
384
383
|
return 'Mon';
|
|
385
|
-
case
|
|
384
|
+
case 'Tuesday':
|
|
386
385
|
return 'Tues';
|
|
387
|
-
case
|
|
386
|
+
case 'Wednesday':
|
|
388
387
|
return 'Weds';
|
|
389
|
-
case
|
|
388
|
+
case 'Thursday':
|
|
390
389
|
return 'Thurs';
|
|
391
|
-
case
|
|
390
|
+
case 'Friday':
|
|
392
391
|
return 'Fri';
|
|
393
|
-
case
|
|
392
|
+
case 'Saturday':
|
|
394
393
|
return 'Sat';
|
|
395
394
|
}
|
|
396
395
|
}
|
|
396
|
+
function getWeekDayByIndex(dayOfWeek) {
|
|
397
|
+
switch (dayOfWeek) {
|
|
398
|
+
case 0:
|
|
399
|
+
return 'Sunday';
|
|
400
|
+
case 1:
|
|
401
|
+
return 'Monday';
|
|
402
|
+
case 2:
|
|
403
|
+
return 'Tuesday';
|
|
404
|
+
case 3:
|
|
405
|
+
return 'Wednesday';
|
|
406
|
+
case 4:
|
|
407
|
+
return 'Thursday';
|
|
408
|
+
case 5:
|
|
409
|
+
return 'Friday';
|
|
410
|
+
case 6:
|
|
411
|
+
return 'Saturday';
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
exports.getWeekDayByIndex = getWeekDayByIndex;
|
|
397
415
|
function addLeadingZero(item) {
|
|
398
416
|
item = item || 0;
|
|
399
417
|
if (item < 10) {
|
|
@@ -489,6 +507,7 @@ exports.UIHelper = {
|
|
|
489
507
|
getGlyphForStatusColour,
|
|
490
508
|
getButtonToneForMessageType,
|
|
491
509
|
getScheduleDescription,
|
|
510
|
+
getWeekDayByIndex,
|
|
492
511
|
getColorByMessageType,
|
|
493
512
|
getGlyphForMessageType,
|
|
494
513
|
getStyleForMessageType,
|
|
@@ -39,4 +39,9 @@ export interface AdaptableOnePageWizardProps<T extends AdaptableObject> {
|
|
|
39
39
|
wizardStartIndex?: number;
|
|
40
40
|
onCloseWizard: VoidFunction;
|
|
41
41
|
onFinishWizard: (data: T) => void;
|
|
42
|
+
defaultCurrentSectionName?: string;
|
|
43
|
+
abObjectType?: {
|
|
44
|
+
name: string;
|
|
45
|
+
label?: string;
|
|
46
|
+
};
|
|
42
47
|
}
|
|
@@ -12,6 +12,7 @@ export declare type OnePageAdaptableWizardContextType<T> = {
|
|
|
12
12
|
setCurrentSection: (index: number) => void;
|
|
13
13
|
namedQuery: ExpressionEditorNamedQuery;
|
|
14
14
|
};
|
|
15
|
+
export declare const SummaryTag: React.FunctionComponent<TextProps>;
|
|
15
16
|
export declare const SummaryText: React.FunctionComponent<TextProps>;
|
|
16
17
|
export declare const FormDescriptionText: React.FunctionComponent<TextProps>;
|
|
17
18
|
export declare const OnePageAdaptableWizardContext: React.Context<OnePageAdaptableWizardContextType<any>>;
|
|
@@ -29,6 +30,7 @@ export interface OnePageAdaptableWizardProps<ENTITY> {
|
|
|
29
30
|
sections: (OnePageWizardSection<ENTITY> | '-')[];
|
|
30
31
|
currentIndex?: number;
|
|
31
32
|
defaultCurrentIndex?: number;
|
|
33
|
+
defaultCurrentSectionName?: string;
|
|
32
34
|
onSectionChange?: (index: number) => void;
|
|
33
35
|
onHide?: VoidFunction;
|
|
34
36
|
onFinish?: (data: ENTITY) => any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OnePageWizardSummary = exports.OnePageAdaptableWizard = exports.useOnePageWizardContext = exports.OnePageAdaptableWizardContext = exports.FormDescriptionText = exports.SummaryText = void 0;
|
|
3
|
+
exports.OnePageWizardSummary = exports.OnePageAdaptableWizard = exports.useOnePageWizardContext = exports.OnePageAdaptableWizardContext = exports.FormDescriptionText = exports.SummaryText = exports.SummaryTag = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_1 = require("react");
|
|
@@ -19,6 +19,7 @@ const icons_1 = require("../../components/icons");
|
|
|
19
19
|
const ResizeObserver_1 = require("../../components/ResizeObserver");
|
|
20
20
|
const NamedQueryContext_1 = require("../../components/ExpressionEditor/NamedQueryContext");
|
|
21
21
|
const useKeyboardNavigation_1 = require("./useKeyboardNavigation");
|
|
22
|
+
exports.SummaryTag = (props) => React.createElement(rebass_1.Text, Object.assign({}, props));
|
|
22
23
|
exports.SummaryText = (props) => (React.createElement(rebass_1.Text, Object.assign({ fontSize: 2, mb: 3 }, props)));
|
|
23
24
|
exports.FormDescriptionText = (props) => (React.createElement(rebass_1.Text, Object.assign({ fontSize: 2, mt: 1 }, props)));
|
|
24
25
|
exports.OnePageAdaptableWizardContext = React.createContext({
|
|
@@ -38,7 +39,14 @@ exports.OnePageAdaptableWizard = (props) => {
|
|
|
38
39
|
const dispatch = react_redux_1.useDispatch();
|
|
39
40
|
const saveNamedQuery = React.useCallback((namedQuery) => dispatch(QueryRedux.NamedQueryAdd(namedQuery)), []);
|
|
40
41
|
const { api } = AdaptableContext_1.useAdaptable();
|
|
41
|
-
|
|
42
|
+
let defaultCurrentIndex = 0;
|
|
43
|
+
if (props.defaultCurrentSectionName) {
|
|
44
|
+
const candidate = props.sections.findIndex((section) => section !== '-' && section.title === props.defaultCurrentSectionName);
|
|
45
|
+
if (candidate >= 0) {
|
|
46
|
+
defaultCurrentIndex = candidate;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const [currentSection, setCurrentSection] = useProperty_1.default(props, 'currentIndex', defaultCurrentIndex, {
|
|
42
50
|
onChange: (index) => {
|
|
43
51
|
var _a;
|
|
44
52
|
(_a = props.onSectionChange) === null || _a === void 0 ? void 0 : _a.call(props, index);
|
|
@@ -123,11 +123,18 @@ export declare class Adaptable implements IAdaptable {
|
|
|
123
123
|
private createAdaptableColumn;
|
|
124
124
|
private safeSetColDefs;
|
|
125
125
|
private getFormatColumnCellStyle;
|
|
126
|
+
private getActiveAlertWithHighlightCell;
|
|
127
|
+
private getActiveAlertWithHighlightRow;
|
|
126
128
|
private getAlertCellStyle;
|
|
127
|
-
private
|
|
128
|
-
private
|
|
129
|
-
private
|
|
129
|
+
private getAlertCellClass;
|
|
130
|
+
private getAlertRowClass;
|
|
131
|
+
private getAlertRowStyle;
|
|
132
|
+
private getFlashingCellRowStyle;
|
|
133
|
+
private getFlashingCellStyleFor;
|
|
134
|
+
private getFlashingCellStyle;
|
|
130
135
|
private getCellHighlightStyle;
|
|
136
|
+
private getRowHighlightStyle;
|
|
137
|
+
private getRowHighlightClass;
|
|
131
138
|
private getQuickSearchCellStyle;
|
|
132
139
|
private getEditableCellStyle;
|
|
133
140
|
private getReadOnlyCellStyle;
|
|
@@ -216,6 +223,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
216
223
|
setupColumnAggFunc({ col }: ColumnSetupInfo): void;
|
|
217
224
|
getColDefsForActionColumns(): ColDef[];
|
|
218
225
|
updateColDefsForSpecialColumns(): void;
|
|
226
|
+
private cleanupFloatingFilters_WORKAROUND;
|
|
219
227
|
private getColDefsForCalculatedColumns;
|
|
220
228
|
private isRegularColDef;
|
|
221
229
|
private isGroupColDef;
|
|
@@ -296,9 +304,9 @@ export declare class Adaptable implements IAdaptable {
|
|
|
296
304
|
getGridData(): any[];
|
|
297
305
|
getFilteredData(): any[];
|
|
298
306
|
loadDataSource(dataSource: any[]): void;
|
|
299
|
-
updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig):
|
|
300
|
-
addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig):
|
|
301
|
-
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig):
|
|
307
|
+
updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[] | null | undefined>;
|
|
308
|
+
addRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
|
|
309
|
+
deleteRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
|
|
302
310
|
getFirstGroupedColumn(): AdaptableColumn | undefined;
|
|
303
311
|
private checkColumnsDataTypeSet;
|
|
304
312
|
private runAdaptableComparerFunction;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -314,7 +314,7 @@ class Adaptable {
|
|
|
314
314
|
AdaptableHelper_1.default.checkAdaptableOptions(this.adaptableOptions);
|
|
315
315
|
this.runtimeConfig = runtimeConfig || {};
|
|
316
316
|
this.agGridModules = this.runtimeConfig.modules || [];
|
|
317
|
-
this.gridOptions = this.adaptableOptions.
|
|
317
|
+
this.gridOptions = this.adaptableOptions.agGridOptions;
|
|
318
318
|
if (this.hasAutogeneratedPrimaryKey() && !this.gridOptions.getRowNodeId) {
|
|
319
319
|
this.gridOptions.getRowNodeId = (rowData) => {
|
|
320
320
|
var _a;
|
|
@@ -340,8 +340,7 @@ class Adaptable {
|
|
|
340
340
|
// TODO: if a custom 'aggFunc' property is defined (see setupColumnAggFunc()), it won't be evaluated
|
|
341
341
|
if (!this.getDefaultGroupOrderComparator(this.gridOptions) &&
|
|
342
342
|
this.adaptableOptions.generalOptions.autoOrderGroupedColumns) {
|
|
343
|
-
this.gridOptions.defaultGroupOrderComparator =
|
|
344
|
-
this.agGridHelper.runAdaptableGroupComparerFunction();
|
|
343
|
+
this.gridOptions.defaultGroupOrderComparator = this.agGridHelper.runAdaptableGroupComparerFunction();
|
|
345
344
|
}
|
|
346
345
|
// we prefer the grid to be NOT instantiated so that we can do it
|
|
347
346
|
// perhaps in future we will force instantiation only?
|
|
@@ -483,7 +482,7 @@ class Adaptable {
|
|
|
483
482
|
this.forPlugins((plugin) => plugin.onAdaptableReady(this, this.adaptableOptions));
|
|
484
483
|
this.api.eventApi.emit('AdaptableReady', {
|
|
485
484
|
adaptableApi: this.api,
|
|
486
|
-
gridOptions: this.adaptableOptions.
|
|
485
|
+
gridOptions: this.adaptableOptions.agGridOptions,
|
|
487
486
|
});
|
|
488
487
|
}
|
|
489
488
|
});
|
|
@@ -593,7 +592,7 @@ class Adaptable {
|
|
|
593
592
|
}
|
|
594
593
|
// now create the grid itself - it is done this way as previously when we instantiated the Grid 'properly' it got created as J.Grid
|
|
595
594
|
let grid;
|
|
596
|
-
const modules = (this.adaptableOptions.
|
|
595
|
+
const modules = (this.adaptableOptions.agGridOptions || {}).modules || [];
|
|
597
596
|
this.agGridModules = [...this.agGridModules, ...modules];
|
|
598
597
|
const agGridContainer = this.getAgGridContainerElement();
|
|
599
598
|
if (this.gridOptions.modules) {
|
|
@@ -839,46 +838,94 @@ class Adaptable {
|
|
|
839
838
|
}
|
|
840
839
|
return style;
|
|
841
840
|
}
|
|
842
|
-
|
|
841
|
+
getActiveAlertWithHighlightCell(col, params) {
|
|
843
842
|
const activeAlerts = this.api.internalApi
|
|
844
843
|
.getAdaptableAlerts()
|
|
845
|
-
.filter((
|
|
844
|
+
.filter((alert) => {
|
|
846
845
|
var _a;
|
|
847
|
-
return ((_a =
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
846
|
+
return ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightCell) &&
|
|
847
|
+
alert.dataChangedInfo &&
|
|
848
|
+
alert.dataChangedInfo.column &&
|
|
849
|
+
alert.dataChangedInfo.column.columnId === col.columnId &&
|
|
850
|
+
alert.dataChangedInfo.rowNode === params.node;
|
|
852
851
|
});
|
|
853
|
-
|
|
852
|
+
if (!activeAlerts.length) {
|
|
853
|
+
return null;
|
|
854
|
+
}
|
|
855
|
+
return activeAlerts === null || activeAlerts === void 0 ? void 0 : activeAlerts[0];
|
|
856
|
+
}
|
|
857
|
+
getActiveAlertWithHighlightRow(params) {
|
|
858
|
+
var _a;
|
|
859
|
+
return (_a = this.api.internalApi
|
|
860
|
+
.getAdaptableAlerts()
|
|
861
|
+
.filter((alert) => {
|
|
862
|
+
var _a;
|
|
863
|
+
return ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightRow) &&
|
|
864
|
+
alert.dataChangedInfo &&
|
|
865
|
+
alert.dataChangedInfo.column &&
|
|
866
|
+
alert.dataChangedInfo.rowNode === params.node;
|
|
867
|
+
})) === null || _a === void 0 ? void 0 : _a[0];
|
|
868
|
+
}
|
|
869
|
+
getAlertCellStyle(col, params) {
|
|
870
|
+
const alert = this.getActiveAlertWithHighlightCell(col, params);
|
|
854
871
|
if (alert) {
|
|
872
|
+
const highlightCell = alert.alertDefinition.AlertProperties.HighlightCell;
|
|
873
|
+
if (typeof highlightCell === 'object') {
|
|
874
|
+
return this.convertAdaptableStyleToCSS(highlightCell);
|
|
875
|
+
}
|
|
855
876
|
return {
|
|
856
877
|
backgroundColor: UIHelper_1.default.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
857
878
|
};
|
|
858
879
|
}
|
|
859
880
|
}
|
|
860
|
-
|
|
881
|
+
getAlertCellClass(col, params) {
|
|
882
|
+
var _a, _b;
|
|
883
|
+
const alert = this.getActiveAlertWithHighlightCell(col, params);
|
|
884
|
+
const highlightCell = (_b = (_a = alert === null || alert === void 0 ? void 0 : alert.alertDefinition) === null || _a === void 0 ? void 0 : _a.AlertProperties) === null || _b === void 0 ? void 0 : _b.HighlightCell;
|
|
885
|
+
return typeof highlightCell === 'object' && (highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName)
|
|
886
|
+
? highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName : null;
|
|
887
|
+
}
|
|
888
|
+
getAlertRowClass(params) {
|
|
889
|
+
var _a, _b;
|
|
890
|
+
const alert = this.getActiveAlertWithHighlightRow(params);
|
|
891
|
+
const highlightRow = (_b = (_a = alert === null || alert === void 0 ? void 0 : alert.alertDefinition) === null || _a === void 0 ? void 0 : _a.AlertProperties) === null || _b === void 0 ? void 0 : _b.HighlightRow;
|
|
892
|
+
return typeof highlightRow === 'object' && (highlightRow === null || highlightRow === void 0 ? void 0 : highlightRow.ClassName)
|
|
893
|
+
? highlightRow === null || highlightRow === void 0 ? void 0 : highlightRow.ClassName : null;
|
|
894
|
+
}
|
|
895
|
+
getAlertRowStyle(params) {
|
|
896
|
+
var _a, _b;
|
|
897
|
+
const alert = this.getActiveAlertWithHighlightRow(params);
|
|
898
|
+
const highlightRow = (_b = (_a = alert === null || alert === void 0 ? void 0 : alert.alertDefinition) === null || _a === void 0 ? void 0 : _a.AlertProperties) === null || _b === void 0 ? void 0 : _b.HighlightRow;
|
|
899
|
+
if (highlightRow) {
|
|
900
|
+
return typeof highlightRow === 'object'
|
|
901
|
+
? this.convertAdaptableStyleToCSS(highlightRow)
|
|
902
|
+
: {
|
|
903
|
+
backgroundColor: UIHelper_1.default.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
return null;
|
|
907
|
+
}
|
|
908
|
+
getFlashingCellRowStyle(params) {
|
|
861
909
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
862
|
-
return this.
|
|
910
|
+
return this.getFlashingCellStyleFor(primaryKeyValue);
|
|
863
911
|
}
|
|
864
|
-
|
|
912
|
+
getFlashingCellStyleFor(primaryKey, colId) {
|
|
865
913
|
var _a;
|
|
866
|
-
const
|
|
867
|
-
if (!
|
|
914
|
+
const flashingCell = this.api.internalApi.getAdaptableFlashingCellFor(primaryKey, colId);
|
|
915
|
+
if (!flashingCell) {
|
|
868
916
|
return {};
|
|
869
917
|
}
|
|
870
|
-
return this.convertAdaptableStyleToCSS((_a = (
|
|
871
|
-
?
|
|
872
|
-
:
|
|
873
|
-
?
|
|
874
|
-
:
|
|
918
|
+
return this.convertAdaptableStyleToCSS((_a = (flashingCell.direction === 'up'
|
|
919
|
+
? flashingCell.flashingCellDefinition.UpChangeStyle
|
|
920
|
+
: flashingCell.direction === 'down'
|
|
921
|
+
? flashingCell.flashingCellDefinition.DownChangeStyle
|
|
922
|
+
: flashingCell.flashingCellDefinition.NeutralChangeStyle)) !== null && _a !== void 0 ? _a : {});
|
|
875
923
|
}
|
|
876
|
-
|
|
924
|
+
getFlashingCellStyle(col, params) {
|
|
877
925
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
878
|
-
return this.
|
|
926
|
+
return this.getFlashingCellStyleFor(primaryKeyValue, col.columnId);
|
|
879
927
|
}
|
|
880
928
|
getCellHighlightStyle(col, params) {
|
|
881
|
-
var _a;
|
|
882
929
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
883
930
|
const cellHightlight = this.api.internalApi
|
|
884
931
|
.getSystemState()
|
|
@@ -887,19 +934,33 @@ class Adaptable {
|
|
|
887
934
|
cellHighlightInfo.primaryKeyValue === primaryKeyValue);
|
|
888
935
|
});
|
|
889
936
|
if (cellHightlight) {
|
|
890
|
-
|
|
891
|
-
switch (highhlightType) {
|
|
892
|
-
case 'Error':
|
|
893
|
-
return { backgroundColor: 'var(--ab-color-error)' };
|
|
894
|
-
case 'Info':
|
|
895
|
-
return { backgroundColor: 'var(--ab-color-info)' };
|
|
896
|
-
case 'Success':
|
|
897
|
-
return { backgroundColor: 'var(--ab-color-success)' };
|
|
898
|
-
case 'Warning':
|
|
899
|
-
return { backgroundColor: 'var(--ab-color-warn)' };
|
|
900
|
-
}
|
|
937
|
+
return this.convertAdaptableStyleToCSS(cellHightlight.highlightStyle);
|
|
901
938
|
}
|
|
902
939
|
}
|
|
940
|
+
getRowHighlightStyle(params) {
|
|
941
|
+
var _a;
|
|
942
|
+
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
943
|
+
const highlightRow = (_a = this.api.internalApi
|
|
944
|
+
.getSystemState()
|
|
945
|
+
.HighlightedRows) === null || _a === void 0 ? void 0 : _a.find((highlightRow) => {
|
|
946
|
+
return highlightRow.primaryKeyValue === primaryKeyValue;
|
|
947
|
+
});
|
|
948
|
+
if (highlightRow) {
|
|
949
|
+
return this.convertAdaptableStyleToCSS(highlightRow.highlightStyle);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
getRowHighlightClass(params) {
|
|
953
|
+
var _a;
|
|
954
|
+
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
955
|
+
const highlightRow = (_a = this.api.internalApi
|
|
956
|
+
.getSystemState()
|
|
957
|
+
.HighlightedRows) === null || _a === void 0 ? void 0 : _a.find((highlightRow) => {
|
|
958
|
+
return highlightRow.primaryKeyValue === primaryKeyValue;
|
|
959
|
+
});
|
|
960
|
+
return typeof (highlightRow === null || highlightRow === void 0 ? void 0 : highlightRow.highlightStyle) === 'object'
|
|
961
|
+
? highlightRow.highlightStyle.ClassName
|
|
962
|
+
: null;
|
|
963
|
+
}
|
|
903
964
|
getQuickSearchCellStyle() {
|
|
904
965
|
const quickSearchStyle = this.api.quickSearchApi.getQuickSearchStyle();
|
|
905
966
|
if (!quickSearchStyle || StringExtensions_1.StringExtensions.IsNotNullOrEmpty(quickSearchStyle.ClassName)) {
|
|
@@ -1602,6 +1663,9 @@ class Adaptable {
|
|
|
1602
1663
|
}
|
|
1603
1664
|
}
|
|
1604
1665
|
isInternallyRenderedColumn(column) {
|
|
1666
|
+
if (!column || column.isGrouped) {
|
|
1667
|
+
return true;
|
|
1668
|
+
}
|
|
1605
1669
|
// we need to return false if the column has a cell rendeerer i think...
|
|
1606
1670
|
const colDef = this.gridOptions.api.getColumnDef(column.columnId);
|
|
1607
1671
|
if (colDef && colDef.cellRenderer != null) {
|
|
@@ -1710,6 +1774,9 @@ class Adaptable {
|
|
|
1710
1774
|
return formatterFn(params);
|
|
1711
1775
|
}
|
|
1712
1776
|
getNormalisedValueFromRowValue(rawValue, displayValue, column) {
|
|
1777
|
+
if (!column) {
|
|
1778
|
+
return rawValue;
|
|
1779
|
+
}
|
|
1713
1780
|
const returnValue = this.isInternallyRenderedColumn(column) ? displayValue : rawValue;
|
|
1714
1781
|
if (returnValue === undefined || returnValue === null) {
|
|
1715
1782
|
return rawValue;
|
|
@@ -1883,8 +1950,10 @@ class Adaptable {
|
|
|
1883
1950
|
];
|
|
1884
1951
|
}
|
|
1885
1952
|
getColDefsForFreeTextColumns() {
|
|
1886
|
-
const specialColumnsAreFilterable = this.api.internalApi.getAdaptableOptions().filterOptions
|
|
1887
|
-
|
|
1953
|
+
const specialColumnsAreFilterable = this.api.internalApi.getAdaptableOptions().filterOptions
|
|
1954
|
+
.enableFilterOnSpecialColumns;
|
|
1955
|
+
const defaultFreeTextColumnSettings = ObjectFactory_1.CreateEmptyFreeTextColumn(specialColumnsAreFilterable)
|
|
1956
|
+
.FreeTextColumnSettings;
|
|
1888
1957
|
return this.api.freeTextColumnApi.getAllFreeTextColumn().map((freeTextColumn) => {
|
|
1889
1958
|
const freeTextColumnSettings = Object.assign(Object.assign({}, defaultFreeTextColumnSettings), freeTextColumn.FreeTextColumnSettings);
|
|
1890
1959
|
const dataTypeEditor = freeTextColumn.DataType === 'Number'
|
|
@@ -1985,18 +2054,51 @@ class Adaptable {
|
|
|
1985
2054
|
this.safeSetColDefs(allDefs);
|
|
1986
2055
|
this.setLayout();
|
|
1987
2056
|
}
|
|
2057
|
+
cleanupFloatingFilters_WORKAROUND() {
|
|
2058
|
+
// since AG Grid v26.2.0 floating filters have a memory leak due to an dangling reference to an obsolete agSetFilter instance
|
|
2059
|
+
var _a, _b;
|
|
2060
|
+
// 1a. The initial floating filter component is defaulted to the 'agSetColumnFloatingFilter'
|
|
2061
|
+
// (see https://github.com/ag-grid/ag-grid/blob/v26.2.0/community-modules/core/src/ts/headerRendering/cells/floatingFilter/headerFilterCellCtrl.ts#L210) and a corresponding bean component is instantiated.
|
|
2062
|
+
// 1b. A listener to the 'filterChanged' event is created, referencing the newly created bean instance: https://github.com/ag-grid/ag-grid/blob/v26.2.0/community-modules/core/src/ts/headerRendering/cells/floatingFilter/headerFilterCellCtrl.ts#L298
|
|
2063
|
+
// 2a. The floating filter is set to a custom component (via https://www.ag-grid.com/javascript-data-grid/column-properties/#reference-filtering-floatingFilterComponent), triggering the creation of a new floating filter bean component
|
|
2064
|
+
// 2b. Another listener to the 'filterChanged' event is created, referencing the newly created (in step 2a) bean instance https://github.com/ag-grid/ag-grid/blob/v26.2.0/community-modules/core/src/ts/headerRendering/cells/floatingFilter/headerFilterCellCtrl.ts#L298
|
|
2065
|
+
// BUT the listener created in step 1b is NOT destroyed, leading to a state where the 'filterChanged' event has listeners stemming from both the current floating filter bean but also from the initial(now obsolete) bean
|
|
2066
|
+
//
|
|
2067
|
+
// As a consequence, any 'filterChanged' event will be processed by both listeners (1b, 2b) and will more often than not lead to a runtime exception due to the dangling references from the obsolete listener
|
|
2068
|
+
// AG Grid team tracks this issue in AG-6179
|
|
2069
|
+
// until a fix arrives, a workaround is to hide all the visible columns (thus destroying all the HeaderFilterCellCtrl instances)
|
|
2070
|
+
if (!((_b = (_a = this.adaptableOptions) === null || _a === void 0 ? void 0 : _a.filterOptions) === null || _b === void 0 ? void 0 : _b.useAdaptableQuickFilter)) {
|
|
2071
|
+
// no need to do anything if we don't use adaptable quick filter
|
|
2072
|
+
return;
|
|
2073
|
+
}
|
|
2074
|
+
if (this.gridOptions.columnApi.isPivotMode()) {
|
|
2075
|
+
// floating filters are NOT available in pivot mode
|
|
2076
|
+
return;
|
|
2077
|
+
}
|
|
2078
|
+
// floating filter instances (HeaderFilterCellCtrl) are created only for rendered columns (in viewport)
|
|
2079
|
+
// so we have to handle only the displayed columns
|
|
2080
|
+
const allDisplayedCols = this.gridOptions.columnApi.getAllDisplayedColumns();
|
|
2081
|
+
const colsWithFloatingFilter = allDisplayedCols.filter((col) => {
|
|
2082
|
+
const colDef = col.getColDef();
|
|
2083
|
+
return (colDef.floatingFilter ||
|
|
2084
|
+
colDef.floatingFilterComponent ||
|
|
2085
|
+
this.api.columnApi.usesAdaptableQuickFilter(col.getColId()));
|
|
2086
|
+
});
|
|
2087
|
+
colsWithFloatingFilter.forEach((col) => this.gridOptions.columnApi.setColumnsVisible(colsWithFloatingFilter, false));
|
|
2088
|
+
// !! it is important to NOT set the columns visible again as this is already taken care of in the next performed method (this.updateColDefsForSpecialColumns())
|
|
2089
|
+
}
|
|
1988
2090
|
getColDefsForCalculatedColumns() {
|
|
1989
2091
|
const specialColumnsAreFilterable = this.adaptableOptions.filterOptions
|
|
1990
2092
|
.enableFilterOnSpecialColumns
|
|
1991
2093
|
? this.adaptableOptions.filterOptions.enableFilterOnSpecialColumns
|
|
1992
2094
|
: true;
|
|
1993
|
-
const defaultCalculatedColumnSettings = ObjectFactory_1.CreateEmptyCalculatedColumn(specialColumnsAreFilterable)
|
|
2095
|
+
const defaultCalculatedColumnSettings = ObjectFactory_1.CreateEmptyCalculatedColumn(specialColumnsAreFilterable)
|
|
2096
|
+
.CalculatedColumnSettings;
|
|
1994
2097
|
return this.api.calculatedColumnApi.getAllCalculatedColumn().map((calculatedColumn) => {
|
|
1995
2098
|
var _a;
|
|
1996
2099
|
const calculatedColumnSettings = Object.assign(Object.assign({}, defaultCalculatedColumnSettings), calculatedColumn.CalculatedColumnSettings);
|
|
1997
2100
|
if (!calculatedColumnSettings.DataType) {
|
|
1998
|
-
calculatedColumnSettings.DataType =
|
|
1999
|
-
this.CalculatedColumnExpressionService.GetCalculatedColumnDataType((_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression);
|
|
2101
|
+
calculatedColumnSettings.DataType = this.CalculatedColumnExpressionService.GetCalculatedColumnDataType((_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression);
|
|
2000
2102
|
}
|
|
2001
2103
|
const newColDef = {
|
|
2002
2104
|
headerName: calculatedColumn.FriendlyName
|
|
@@ -2372,7 +2474,8 @@ class Adaptable {
|
|
|
2372
2474
|
this.onSortChanged();
|
|
2373
2475
|
this.debouncedSetSelectedCells();
|
|
2374
2476
|
});
|
|
2375
|
-
const showGroupingTotalsAsHeader = this.adaptableOptions.generalOptions
|
|
2477
|
+
const showGroupingTotalsAsHeader = this.adaptableOptions.generalOptions
|
|
2478
|
+
.showGroupingTotalsAsHeader;
|
|
2376
2479
|
/**
|
|
2377
2480
|
* Use Case: Model has updated
|
|
2378
2481
|
* Action: If user has set to see grouping totals as header create a pinned row (bit of a hack)
|
|
@@ -2514,7 +2617,7 @@ class Adaptable {
|
|
|
2514
2617
|
}
|
|
2515
2618
|
return originaldoesExternalFilterPass ? originaldoesExternalFilterPass(node) : true;
|
|
2516
2619
|
};
|
|
2517
|
-
// Build the COLUMN
|
|
2620
|
+
// Build the COLUMN MENU. Note that we do this EACH time the menu is opened (as items can change)
|
|
2518
2621
|
const originalgetMainMenuItems = this.gridOptions.getMainMenuItems;
|
|
2519
2622
|
this.gridOptions.getMainMenuItems = (params) => {
|
|
2520
2623
|
// couldnt find a way to listen for menu close. There is a Menu Item Select, but you can also close menu from filter and clicking outside menu....
|
|
@@ -2535,6 +2638,9 @@ class Adaptable {
|
|
|
2535
2638
|
// add any special renderers, display formats, custom sorts and apply the theme
|
|
2536
2639
|
// then do any final rendering required, filter the grid and - to be on the safe set - redraw
|
|
2537
2640
|
try {
|
|
2641
|
+
// it is very important that this method is executed as soon as possible and BEFORE the updateColDefsForSpecialColumns() method
|
|
2642
|
+
// this will ensure that the columns are recreated as expected (see method implementation&comments for more details)
|
|
2643
|
+
this.cleanupFloatingFilters_WORKAROUND();
|
|
2538
2644
|
this.updateColDefsForSpecialColumns();
|
|
2539
2645
|
this.applyCurrentTheme();
|
|
2540
2646
|
this.applyFinalRendering();
|
|
@@ -2659,7 +2765,7 @@ class Adaptable {
|
|
|
2659
2765
|
? this.getFormatColumnCellStyle(formatColumn, params)
|
|
2660
2766
|
: undefined;
|
|
2661
2767
|
const isQuickSearchActive = hasQuickSearchStyle && this.isQuickSearchActive(abColumn, params);
|
|
2662
|
-
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, defaultCellStyle), this.getReadOnlyCellStyle(abColumn, params)), this.getEditableCellStyle(abColumn, params)), (typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle)), formatColumnCellStyle), this.getConditionalStyleCellStyle(conditionalStyles, abColumn, params)), (isQuickSearchActive ? quickSearchStyle : undefined)), this.getAlertCellStyle(abColumn, params)), this.
|
|
2768
|
+
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, defaultCellStyle), this.getReadOnlyCellStyle(abColumn, params)), this.getEditableCellStyle(abColumn, params)), (typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle)), formatColumnCellStyle), this.getConditionalStyleCellStyle(conditionalStyles, abColumn, params)), (isQuickSearchActive ? quickSearchStyle : undefined)), this.getAlertCellStyle(abColumn, params)), this.getFlashingCellStyle(abColumn, params)), this.getCellHighlightStyle(abColumn, params));
|
|
2663
2769
|
return result;
|
|
2664
2770
|
};
|
|
2665
2771
|
return cellStyle;
|
|
@@ -2683,7 +2789,8 @@ class Adaptable {
|
|
|
2683
2789
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
2684
2790
|
const editableClassName = this.getEditableCellClass(abColumn, params);
|
|
2685
2791
|
const readonlyClassName = this.getReadonlyCellClass(abColumn, params);
|
|
2686
|
-
|
|
2792
|
+
const highlightAlertClassName = this.getAlertCellClass(abColumn, params);
|
|
2793
|
+
const returnValue = [
|
|
2687
2794
|
this.getExcelClassNameForCell(colId, primaryKeyValue),
|
|
2688
2795
|
typeof userCellClass === 'function' ? userCellClass(params) : userCellClass,
|
|
2689
2796
|
formatColumnStyleClassName,
|
|
@@ -2693,6 +2800,7 @@ class Adaptable {
|
|
|
2693
2800
|
isQuickSearchActive ? quickSearchStyleClassName : null,
|
|
2694
2801
|
editableClassName,
|
|
2695
2802
|
readonlyClassName,
|
|
2803
|
+
highlightAlertClassName,
|
|
2696
2804
|
]
|
|
2697
2805
|
.filter((x) => !!x)
|
|
2698
2806
|
.join(' ');
|
|
@@ -2814,7 +2922,8 @@ class Adaptable {
|
|
|
2814
2922
|
// set the default to the AG Grid provided values
|
|
2815
2923
|
// from https://github.com/ag-grid/ag-grid/blob/v26.1.0/community-modules/core/src/ts/columns/columnModel.ts#L2515
|
|
2816
2924
|
let resultHeaderName = userHeaderName !== null && userHeaderName !== void 0 ? userHeaderName : StringExtensions_1.StringExtensions.CamelCaseToHumanText(col.getColDef().field);
|
|
2817
|
-
const layoutCustomHeader = (_a = this.api.layoutApi.getCurrentLayout()
|
|
2925
|
+
const layoutCustomHeader = (_a = this.api.layoutApi.getCurrentLayout()
|
|
2926
|
+
.ColumnHeadersMap) === null || _a === void 0 ? void 0 : _a[col.getColId()];
|
|
2818
2927
|
if (layoutCustomHeader) {
|
|
2819
2928
|
resultHeaderName = layoutCustomHeader;
|
|
2820
2929
|
}
|
|
@@ -3417,10 +3526,18 @@ class Adaptable {
|
|
|
3417
3526
|
}
|
|
3418
3527
|
dataUpdateConfig = dataUpdateConfig || {};
|
|
3419
3528
|
if (dataUpdateConfig.runAsync) {
|
|
3420
|
-
|
|
3529
|
+
return new Promise((resolve) => {
|
|
3530
|
+
this.gridOptions.api.applyTransactionAsync({ update: dataRows }, (transaction) => {
|
|
3531
|
+
if (typeof dataUpdateConfig.callback === 'function') {
|
|
3532
|
+
dataUpdateConfig.callback(transaction);
|
|
3533
|
+
}
|
|
3534
|
+
resolve(transaction === null || transaction === void 0 ? void 0 : transaction.update);
|
|
3535
|
+
});
|
|
3536
|
+
});
|
|
3421
3537
|
}
|
|
3422
3538
|
else {
|
|
3423
|
-
this.gridOptions.api.applyTransaction({ update: dataRows });
|
|
3539
|
+
const transaction = this.gridOptions.api.applyTransaction({ update: dataRows });
|
|
3540
|
+
return Promise.resolve(transaction === null || transaction === void 0 ? void 0 : transaction.update);
|
|
3424
3541
|
}
|
|
3425
3542
|
}
|
|
3426
3543
|
addRows(dataRows, dataUpdateConfig) {
|
|
@@ -3433,19 +3550,35 @@ class Adaptable {
|
|
|
3433
3550
|
newData.addIndex = dataUpdateConfig.addIndex;
|
|
3434
3551
|
}
|
|
3435
3552
|
if (dataUpdateConfig.runAsync) {
|
|
3436
|
-
|
|
3553
|
+
return new Promise((resolve) => {
|
|
3554
|
+
this.gridOptions.api.applyTransactionAsync(newData, (transaction) => {
|
|
3555
|
+
if (typeof dataUpdateConfig.callback === 'function') {
|
|
3556
|
+
dataUpdateConfig.callback(transaction);
|
|
3557
|
+
}
|
|
3558
|
+
resolve(transaction === null || transaction === void 0 ? void 0 : transaction.add);
|
|
3559
|
+
});
|
|
3560
|
+
});
|
|
3437
3561
|
}
|
|
3438
3562
|
else {
|
|
3439
|
-
this.gridOptions.api.applyTransaction(newData);
|
|
3563
|
+
const transaction = this.gridOptions.api.applyTransaction(newData);
|
|
3564
|
+
return Promise.resolve(transaction === null || transaction === void 0 ? void 0 : transaction.add);
|
|
3440
3565
|
}
|
|
3441
3566
|
}
|
|
3442
3567
|
deleteRows(dataRows, dataUpdateConfig) {
|
|
3443
3568
|
dataUpdateConfig = dataUpdateConfig || {};
|
|
3444
3569
|
if (dataUpdateConfig.runAsync) {
|
|
3445
|
-
|
|
3570
|
+
return new Promise((resolve) => {
|
|
3571
|
+
this.gridOptions.api.applyTransactionAsync({ remove: dataRows }, (transaction) => {
|
|
3572
|
+
if (typeof dataUpdateConfig.callback === 'function') {
|
|
3573
|
+
dataUpdateConfig.callback(transaction);
|
|
3574
|
+
}
|
|
3575
|
+
resolve(transaction === null || transaction === void 0 ? void 0 : transaction.remove);
|
|
3576
|
+
});
|
|
3577
|
+
});
|
|
3446
3578
|
}
|
|
3447
3579
|
else {
|
|
3448
|
-
this.gridOptions.api.applyTransaction({ remove: dataRows });
|
|
3580
|
+
const transaction = this.gridOptions.api.applyTransaction({ remove: dataRows });
|
|
3581
|
+
return Promise.resolve(transaction.remove);
|
|
3449
3582
|
}
|
|
3450
3583
|
}
|
|
3451
3584
|
getFirstGroupedColumn() {
|
|
@@ -3703,15 +3836,19 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
3703
3836
|
// Set any Row Styles (i.e. items without a classname)
|
|
3704
3837
|
this.setGridOptionsProperty('getRowStyle', (userGetRowStyle) => {
|
|
3705
3838
|
return (params) => {
|
|
3706
|
-
const result = Object.assign(Object.assign({}, userGetRowStyle === null || userGetRowStyle === void 0 ? void 0 : userGetRowStyle(params)), this.getConditionalStyleRowStyle(conditionalStyles, params));
|
|
3839
|
+
const result = Object.assign(Object.assign(Object.assign(Object.assign({}, userGetRowStyle === null || userGetRowStyle === void 0 ? void 0 : userGetRowStyle(params)), this.getRowHighlightStyle(params)), this.getAlertRowStyle(params)), this.getConditionalStyleRowStyle(conditionalStyles, params));
|
|
3707
3840
|
return result;
|
|
3708
3841
|
};
|
|
3709
3842
|
});
|
|
3710
3843
|
// Now set up Row Classes
|
|
3711
3844
|
this.setGridOptionsProperty('getRowClass', (userGetRowClass) => {
|
|
3712
3845
|
return (params) => {
|
|
3713
|
-
|
|
3846
|
+
const alertHighlightClassName = this.getAlertRowClass(params);
|
|
3847
|
+
const highlightClassName = this.getRowHighlightClass(params);
|
|
3848
|
+
const returnValue = [
|
|
3714
3849
|
typeof userGetRowClass === 'function' ? userGetRowClass(params) : userGetRowClass,
|
|
3850
|
+
highlightClassName,
|
|
3851
|
+
alertHighlightClassName,
|
|
3715
3852
|
this.getConditionalStyleRowClass(conditionalStyles.filter((cs) => StringExtensions_1.StringExtensions.IsNotNullOrEmpty(cs.Style.ClassName)), params),
|
|
3716
3853
|
]
|
|
3717
3854
|
.filter((x) => !!x)
|
|
@@ -4023,7 +4160,7 @@ class AdaptableNoCodeWizard {
|
|
|
4023
4160
|
*/
|
|
4024
4161
|
constructor(adaptableOptions, extraOptions = {}) {
|
|
4025
4162
|
const defaultInit = async ({ gridOptions, adaptableOptions }) => {
|
|
4026
|
-
adaptableOptions.
|
|
4163
|
+
adaptableOptions.agGridOptions = gridOptions;
|
|
4027
4164
|
return await Adaptable.init(adaptableOptions);
|
|
4028
4165
|
};
|
|
4029
4166
|
this.adaptableOptions = adaptableOptions;
|
|
@@ -4057,7 +4194,7 @@ class AdaptableNoCodeWizard {
|
|
|
4057
4194
|
ReactDOM.unmountComponentAtNode(container);
|
|
4058
4195
|
this.init({
|
|
4059
4196
|
adaptableOptions,
|
|
4060
|
-
gridOptions: adaptableOptions.
|
|
4197
|
+
gridOptions: adaptableOptions.agGridOptions,
|
|
4061
4198
|
});
|
|
4062
4199
|
} })), container);
|
|
4063
4200
|
}
|