@adaptabletools/adaptable 10.0.4-canary.3 → 11.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/LICENSE.md +1 -1
- package/agGrid.d.ts +2 -2
- package/base.css +385 -95
- package/bundle.cjs.js +141 -136
- package/index.css +448 -104
- package/package.json +5 -4
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -7
- package/src/AdaptableOptions/AdaptableOptions.d.ts +19 -3
- package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
- package/src/AdaptableOptions/DashboardOptions.d.ts +7 -9
- 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/FlashingCellOptions.d.ts +31 -0
- package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
- package/src/AdaptableOptions/NotificationsOptions.d.ts +2 -8
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +87 -0
- package/src/{Api/ChartApi.js → AdaptableOptions/SettingsPanelOptions.js} +0 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +1 -1
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -14
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +34 -0
- package/src/Api/AdaptableApi.d.ts +9 -7
- package/src/Api/AlertApi.d.ts +4 -79
- package/src/Api/ChartingApi.d.ts +9 -0
- package/src/Api/{Events/FlashingAlertFired.js → ChartingApi.js} +0 -0
- package/src/Api/ColumnApi.d.ts +11 -1
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/DataChangeHistoryApi.d.ts +4 -0
- package/src/Api/EventApi.d.ts +8 -8
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/FlashingCellDisplayed.d.ts +11 -0
- package/src/Api/{SparklineColumnApi.js → Events/FlashingCellDisplayed.js} +0 -0
- package/src/Api/Events/GridDataChanged.d.ts +3 -1
- package/src/Api/Events/SearchChanged.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +89 -0
- package/src/{PredefinedConfig/ChartState.js → Api/FlashingCellApi.js} +0 -0
- package/src/Api/GridApi.d.ts +28 -5
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +4 -2
- package/src/Api/Implementation/AlertApiImpl.d.ts +8 -22
- package/src/Api/Implementation/AlertApiImpl.js +40 -107
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
- package/src/Api/Implementation/ChartingApiImpl.js +10 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/ColumnApiImpl.js +14 -8
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +0 -21
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
- package/src/Api/Implementation/FilterApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +24 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +111 -0
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- 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 -7
- package/src/Api/Implementation/InternalApiImpl.js +5 -18
- package/src/Api/Implementation/LayoutApiImpl.js +12 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
- package/src/Api/Implementation/PluginsApiImpl.js +0 -6
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/QueryApiImpl.js +1 -1
- 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 -9
- package/src/Api/PluginsApi.d.ts +0 -2
- package/src/Api/SmartEditApi.d.ts +4 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -4
- 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/{AdaptableFlashingAlert.js → AdaptableFlashingCell.js} +0 -0
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
- package/src/PredefinedConfig/Common/AdaptableScope.d.ts +3 -3
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +14 -3
- package/src/PredefinedConfig/Common/CellSummary.d.ts +2 -2
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +16 -20
- package/src/PredefinedConfig/Common/Schedule.d.ts +4 -14
- package/src/PredefinedConfig/Common/Schedule.js +0 -14
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
- package/src/PredefinedConfig/Common/Types.d.ts +6 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
- package/src/PredefinedConfig/DashboardState.d.ts +6 -5
- package/src/PredefinedConfig/FlashingCellState.d.ts +65 -0
- package/src/PredefinedConfig/{SparklineColumnState.js → FlashingCellState.js} +0 -0
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +2 -2
- package/src/PredefinedConfig/LayoutState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -10
- package/src/PredefinedConfig/ScheduleState.d.ts +1 -5
- package/src/PredefinedConfig/ShortcutState.d.ts +6 -2
- package/src/PredefinedConfig/SystemState.d.ts +17 -8
- package/src/PredefinedConfig/ThemeState.d.ts +2 -1
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +3 -38
- package/src/Redux/ActionsReducers/AlertRedux.js +9 -68
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -7
- package/src/Redux/ActionsReducers/DashboardRedux.js +3 -13
- 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 -3
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +34 -25
- package/src/Redux/ActionsReducers/SystemRedux.js +94 -60
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -1
- package/src/Redux/Store/AdaptableStore.js +90 -66
- package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +0 -3
- 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 +34 -0
- package/src/Strategy/ChartingModule.d.ts +7 -0
- package/src/Strategy/ChartingModule.js +15 -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 +28 -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 -1
- package/src/Strategy/LayoutModule.js +15 -3
- 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 +25 -0
- package/src/Strategy/ScheduleModule.d.ts +17 -1
- package/src/Strategy/ScheduleModule.js +148 -2
- package/src/Strategy/SetingsPanelModule.d.ts +11 -0
- package/src/Strategy/SetingsPanelModule.js +30 -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/getFlashingTargetViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +9 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +15 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -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/ConfigConstants.d.ts +0 -1
- package/src/Utilities/Constants/ConfigConstants.js +1 -2
- package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
- package/src/Utilities/Constants/GeneralConstants.js +1 -12
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -2
- package/src/Utilities/Constants/ModuleConstants.js +4 -3
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +26 -18
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +7 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +35 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +4 -1
- package/src/Utilities/Extensions/ArrayExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
- package/src/Utilities/Helpers/StyleHelper.d.ts +4 -0
- package/src/Utilities/Helpers/StyleHelper.js +4 -1
- package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
- package/src/Utilities/MenuItem.d.ts +1 -1
- package/src/Utilities/MenuItem.js +2 -2
- package/src/Utilities/ObjectFactory.d.ts +7 -18
- package/src/Utilities/ObjectFactory.js +25 -95
- 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 +9 -1
- 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 +13 -17
- package/src/Utilities/Services/TeamSharingService.js +3 -4
- package/src/View/AdaptableView.js +5 -11
- package/src/View/AdaptableViewFactory.js +0 -26
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
- 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.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -6
- package/src/View/Alert/Wizard/AlertWizard.js +20 -6
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +5 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +5 -2
- 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 +16 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +17 -40
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +20 -3
- 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/FilterForm.js +4 -1
- 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/ModuleValueSelector/index.d.ts +3 -1
- package/src/View/Components/ModuleValueSelector/index.js +1 -1
- package/src/View/Components/NewScopeComponent.js +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/AdaptablePopup/AdaptablePopup.d.ts +20 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +120 -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/Popups/AdaptableToaster.js +6 -6
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +45 -80
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +12 -4
- package/src/View/Components/ValueSelector/index.d.ts +1 -0
- package/src/View/Components/ValueSelector/index.js +6 -6
- 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 +13 -83
- package/src/View/Dashboard/DashboardPopup.d.ts +6 -2
- package/src/View/Dashboard/DashboardPopup.js +38 -8
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +4 -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/FlashingAlertRulesWizardSection.d.ts → FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts} +3 -3
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.js → FlashingCell/Wizard/FlashingCellRulesWizardSection.js} +14 -14
- 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/FlashingCellSettingsWizardSection.d.ts +10 -0
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +66 -0
- 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 +97 -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 +15 -10
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +19 -5
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -2
- package/src/View/GridInfo/GridInfoPopup.d.ts +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +22 -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/License/LicenseWatermark.js +4 -0
- 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 +17 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- 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/Shortcut/shortcutKeys.js +0 -1
- package/src/View/SmartEdit/SmartEditPopup.js +2 -2
- package/src/View/SpecialColumnSettingsWizardStep.d.ts +9 -0
- package/src/View/SpecialColumnSettingsWizardStep.js +62 -0
- 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 -5
- package/src/View/UIHelper.js +35 -49
- 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 +25 -12
- package/src/agGrid/Adaptable.js +249 -100
- package/src/agGrid/agGridHelper.d.ts +2 -2
- package/src/agGrid/agGridHelper.js +21 -6
- package/src/agGrid/agGridMenuHelper.js +11 -7
- package/src/components/ApplicationIcon.d.ts +5 -0
- package/src/components/ApplicationIcon.js +13 -0
- package/src/components/Dashboard/Dashboard.js +1 -1
- package/src/components/Dashboard/DashboardManager.js +1 -1
- package/src/components/Datepicker/Caption.d.ts +1 -1
- package/src/components/Datepicker/Caption.js +1 -4
- package/src/components/Datepicker/CaptionLabel.d.ts +1 -1
- package/src/components/Datepicker/CaptionLabel.js +1 -4
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Datepicker/index.js +1 -4
- 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 +102 -0
- package/src/components/WindowModal/index.d.ts +1 -0
- package/src/components/WindowModal/index.js +4 -0
- package/src/components/icons/column-add.d.ts +3 -0
- package/src/components/icons/column-add.js +10 -0
- package/src/components/icons/index.js +6 -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 +15 -2
- package/src/metamodel/adaptable.metamodel.d.ts +98 -112
- package/src/metamodel/adaptable.metamodel.js +432 -458
- package/src/types.d.ts +11 -12
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
- package/src/Api/ChartApi.d.ts +0 -20
- package/src/Api/Events/FlashingAlertFired.d.ts +0 -11
- package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
- package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
- package/src/Api/SparklineColumnApi.d.ts +0 -23
- package/src/PredefinedConfig/ChartState.d.ts +0 -144
- package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
- package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
- package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
- package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
- package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
- package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
- package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
- 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/FlashingAlertDurationWizardSection.d.ts +0 -10
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.js +0 -60
- 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/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
- package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
- package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
- package/src/View/Components/Popups/AdaptableChart.js +0 -40
- package/src/View/Components/Popups/AdaptablePopup.d.ts +0 -23
- package/src/View/Components/Popups/AdaptablePopup.js +0 -59
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
- package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
- 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/bundle-dependencies/bundles/react-day-picker/DayPicker.d.ts +0 -88
- package/src/bundle-dependencies/bundles/react-day-picker/DayPicker.test.d.ts +0 -0
- package/src/bundle-dependencies/bundles/react-day-picker/components/Button/Button.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/components/Button/Button.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/Button/ButtonProps.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/components/Button/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/Caption/Caption.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/components/Caption/Caption.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/Caption/CaptionProps.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/components/Caption/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/components/CaptionLabel/CaptionLabel.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/components/CaptionLabel/CaptionLabel.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/CaptionLabel/CaptionLabelProps.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/components/CaptionLabel/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/components/Day/Day.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/components/Day/Day.test.d.ts +0 -0
- package/src/bundle-dependencies/bundles/react-day-picker/components/Day/DayProps.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/components/Day/hooks/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/Day/hooks/useDay.d.ts +0 -51
- package/src/bundle-dependencies/bundles/react-day-picker/components/Day/hooks/useDayFocus.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-day-picker/components/Day/index.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/components/DayContent/DayContent.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/components/DayContent/DayContent.test.d.ts +0 -0
- package/src/bundle-dependencies/bundles/react-day-picker/components/DayContent/DayContentProps.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-day-picker/components/DayContent/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/components/Dropdown/Dropdown.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/components/Dropdown/Dropdown.test.d.ts +0 -0
- package/src/bundle-dependencies/bundles/react-day-picker/components/Dropdown/DropdownProps.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-day-picker/components/Dropdown/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/components/Footer/Footer.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/components/Footer/Footer.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/Footer/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/Head/Head.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/components/Head/Head.test.d.ts +0 -0
- package/src/bundle-dependencies/bundles/react-day-picker/components/Head/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/Head/utils/getWeekdays.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/components/Head/utils/getWeekdays.test.d.ts +0 -0
- package/src/bundle-dependencies/bundles/react-day-picker/components/Head/utils/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/IconDropdown/IconDropdown.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/components/IconDropdown/IconDropdown.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/IconDropdown/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/IconNext/IconNext.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/components/IconNext/IconNext.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/IconNext/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/IconPrevious/IconPrevious.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/components/IconPrevious/IconPrevious.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/IconPrevious/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/MonthsDropdown/MonthsDropdown.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/components/MonthsDropdown/MonthsDropdownProps.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/components/MonthsDropdown/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/components/Navigation/Navigation.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/components/Navigation/NavigationProps.d.ts +0 -18
- package/src/bundle-dependencies/bundles/react-day-picker/components/Navigation/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/components/Root/Root.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/components/Root/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/Row/Row.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/components/Row/RowProps.d.ts +0 -11
- package/src/bundle-dependencies/bundles/react-day-picker/components/Row/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/components/Table/Table.d.ts +0 -12
- package/src/bundle-dependencies/bundles/react-day-picker/components/Table/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/Table/utils/getOutsideEndDays.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/components/Table/utils/getOutsideStartDays.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/components/Table/utils/getWeeks.d.ts +0 -15
- package/src/bundle-dependencies/bundles/react-day-picker/components/WeekNumber/WeekNumber.d.ts +0 -15
- package/src/bundle-dependencies/bundles/react-day-picker/components/WeekNumber/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/YearsDropdown/YearsDropdown.d.ts +0 -16
- package/src/bundle-dependencies/bundles/react-day-picker/components/YearsDropdown/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/components/index.d.ts +0 -18
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/ContextProvider.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/DayPickerContext.d.ts +0 -78
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/DayPickerContextValue.d.ts +0 -20
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/DayPickerProvider.d.ts +0 -12
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/defaultClassNames.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/formatters/formatCaption.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/formatters/formatDay.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/formatters/formatMonthCaption.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/formatters/formatWeekNumber.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/formatters/formatWeekdayName.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/formatters/formatYearCaption.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/formatters/index.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/labels/index.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/labels/labelDay.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/labels/labelMonthDropdown.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/labels/labelNext.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/labels/labelPrevious.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/labels/labelWeekNumber.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/labels/labelWeekday.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/labels/labelYearDropdown.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/useDayPicker.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/utils/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/utils/parseFromToProps.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/DayPickerContext/utils/parseModifierProps.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/FocusContext/FocusContext.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/FocusContext/FocusContextValue.d.ts +0 -19
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/FocusContext/FocusProvider.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/FocusContext/index.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/FocusContext/useFocus.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/NavigationContext.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/NavigationContextValue.d.ts +0 -13
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/NavigationProvider.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/index.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/useNavigation.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/useNavigationState.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/utils/getDisplayMonths.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/utils/getInitialMonth.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/utils/getInitialMonth.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/utils/getNextMonth.d.ts +0 -18
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/utils/getNextMonth.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/utils/getPreviousMonth.d.ts +0 -19
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/NavigationContext/utils/getPreviousMonth.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectMultipleContext/SelectMultipleContext.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectMultipleContext/SelectMultipleContextValue.d.ts +0 -13
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectMultipleContext/SelectMultipleModifiers.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectMultipleContext/SelectMultipleProvider.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectMultipleContext/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectMultipleContext/useSelectMultiple.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectRangeContext/SelectRangeContext.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectRangeContext/SelectRangeContextValue.d.ts +0 -13
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectRangeContext/SelectRangeModifiers.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectRangeContext/SelectRangeProvider.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectRangeContext/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectRangeContext/useSelectRange.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectRangeContext/utils/addToRange.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectSingleContext/SelectSingleContext.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectSingleContext/SelectSingleContextValue.d.ts +0 -11
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectSingleContext/SelectSingleModifiers.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectSingleContext/SelectSingleProvider.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectSingleContext/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/SelectSingleContext/useSelectSingle.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/contexts/index.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useInput/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useInput/types/UseInput.d.ts +0 -12
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useInput/types/UseInputDayPickerProps.d.ts +0 -14
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useInput/types/UseInputFieldProps.d.ts +0 -12
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useInput/types/UseInputOptions.d.ts +0 -35
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useInput/types/index.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useInput/useInput.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useInput/utils/isValidDate.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useModifiers/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useModifiers/types/UseModifiers.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useModifiers/types/index.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useModifiers/useModifiers.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useModifiers/utils/getModifierStatus.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useModifiers/utils/isDateInRange.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/hooks/useModifiers/utils/isMatch.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/index.js +0 -1
- package/src/bundle-dependencies/bundles/react-day-picker/types/CaptionLayout.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/types/ClassNames.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/types/Components.d.ts +0 -33
- package/src/bundle-dependencies/bundles/react-day-picker/types/CustomModifiers.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/types/DateAfter.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/types/DateBefore.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/types/DateFormatter.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/types/DateInterval.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-day-picker/types/DateRange.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayClickEventHandler.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayFocusEventHandler.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayKeyboardEventHandler.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayLabelFormatter.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayMouseEventHandler.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayOfWeekMatcher.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayPickerBase.d.ts +0 -239
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayPickerMultiple.d.ts +0 -15
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayPickerProps.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayPickerRange.d.ts +0 -16
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayPickerSingle.d.ts +0 -13
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayPickerUncontrolled.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/types/DayTouchEventHandler.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/types/Formatters.d.ts +0 -19
- package/src/bundle-dependencies/bundles/react-day-picker/types/InternalModifier.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/types/Labels.d.ts +0 -17
- package/src/bundle-dependencies/bundles/react-day-picker/types/Matcher.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-day-picker/types/Modifier.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/types/ModifierClassNames.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/types/ModifierStatus.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/types/ModifierStyles.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/types/Modifiers.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/types/MonthChangeEventHandler.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/types/NavButtonLabelFormatter.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-day-picker/types/SelectMultipleEventHandler.d.ts +0 -12
- package/src/bundle-dependencies/bundles/react-day-picker/types/SelectRangeEventHandler.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-day-picker/types/SelectSingleEventHandler.d.ts +0 -12
- package/src/bundle-dependencies/bundles/react-day-picker/types/StyledComponentProps.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-day-picker/types/StyledElement.d.ts +0 -76
- package/src/bundle-dependencies/bundles/react-day-picker/types/Styles.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/types/WeekNumberClickEventHandler.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-day-picker/types/WeekNumberFormatter.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-day-picker/types/WeekNumberLabelFormatter.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-day-picker/types/WeekdayLabelFormatter.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/types/index.d.ts +0 -54
- package/src/bundle-dependencies/bundles/react-day-picker/types/isArrayOfDates.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDateAfterType.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDateBeforeType.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDateInterval.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDateRange.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDateType.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDayOfWeekType.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDayPickerMultiple.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDayPickerRange.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDayPickerSingle.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-day-picker/types/isDayPickerUncontrolled.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-toastify/components/CloseButton.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-toastify/components/ProgressBar.d.ts +0 -55
- package/src/bundle-dependencies/bundles/react-toastify/components/Toast.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/ToastContainer.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/Transitions.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/components/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/core/eventManager.d.ts +0 -39
- package/src/bundle-dependencies/bundles/react-toastify/core/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/core/toast.d.ts +0 -55
- package/src/bundle-dependencies/bundles/react-toastify/hooks/index.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/hooks/toastContainerReducer.d.ts +0 -15
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useKeeper.d.ts +0 -7
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToast.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToastContainer.d.ts +0 -16
- package/src/bundle-dependencies/bundles/react-toastify/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/index.js +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/inject-style.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-toastify/test/components/CloseButton.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/test/components/ProgressBar.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/test/components/Toast.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/test/components/ToastContainer.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/test/core/eventManager.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/test/core/toast.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/test/helpers.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-toastify/test/utils/collapseToast.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/test/utils/cssTransition.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/test/utils/propValidator.test.d.ts +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/types/index.d.ts +0 -240
- package/src/bundle-dependencies/bundles/react-toastify/utils/collapseToast.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/constant.d.ts +0 -20
- package/src/bundle-dependencies/bundles/react-toastify/utils/cssTransition.d.ts +0 -42
- package/src/bundle-dependencies/bundles/react-toastify/utils/index.d.ts +0 -4
- package/src/bundle-dependencies/bundles/react-toastify/utils/propValidator.d.ts +0 -10
- package/src/components/ChartContainer/index.d.ts +0 -15
- package/src/components/ChartContainer/index.js +0 -22
- package/src/components/Toastify/index.d.ts +0 -3
- package/src/components/Toastify/index.js +0 -10
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.gridOptions;
|
|
318
318
|
if (this.hasAutogeneratedPrimaryKey() && !this.gridOptions.getRowNodeId) {
|
|
319
319
|
this.gridOptions.getRowNodeId = (rowData) => {
|
|
320
320
|
var _a;
|
|
@@ -361,8 +361,8 @@ class Adaptable {
|
|
|
361
361
|
this.forPlugins((plugin) => plugin.afterInitServices(this));
|
|
362
362
|
// Set up Modules - we set up all the Modules suitable for AG Grid
|
|
363
363
|
// But users can make some hidden or readonly in their entitlements
|
|
364
|
-
this.
|
|
365
|
-
this.forPlugins((plugin) => plugin.afterInitModules(this, this.
|
|
364
|
+
this.adaptableModules = this.agGridHelper.setUpModules();
|
|
365
|
+
this.forPlugins((plugin) => plugin.afterInitModules(this, this.adaptableModules));
|
|
366
366
|
// also try to set it early, here, if the grid is initialized - needed for AdapTable tool panel
|
|
367
367
|
if (this.gridOptions.api) {
|
|
368
368
|
this.gridOptions.api.__adaptable = this;
|
|
@@ -477,13 +477,13 @@ class Adaptable {
|
|
|
477
477
|
if (eventName == AdaptableStore_1.INIT_STATE) {
|
|
478
478
|
this._adaptableReady = true;
|
|
479
479
|
LoggingHelper_1.LogAdaptableInfo(`Updating obsolete configuration/state`);
|
|
480
|
-
this.
|
|
480
|
+
this.adaptableModules.forEach((m) => m.updateOldConfig());
|
|
481
481
|
// call stuff here
|
|
482
482
|
// and reset state also?
|
|
483
483
|
this.forPlugins((plugin) => plugin.onAdaptableReady(this, this.adaptableOptions));
|
|
484
484
|
this.api.eventApi.emit('AdaptableReady', {
|
|
485
485
|
adaptableApi: this.api,
|
|
486
|
-
gridOptions: this.adaptableOptions.
|
|
486
|
+
gridOptions: this.adaptableOptions.gridOptions,
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
489
|
});
|
|
@@ -593,12 +593,9 @@ class Adaptable {
|
|
|
593
593
|
}
|
|
594
594
|
// 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
595
|
let grid;
|
|
596
|
-
const modules =
|
|
596
|
+
const modules = this.adaptableOptions.modules || [];
|
|
597
597
|
this.agGridModules = [...this.agGridModules, ...modules];
|
|
598
598
|
const agGridContainer = this.getAgGridContainerElement();
|
|
599
|
-
if (this.gridOptions.modules) {
|
|
600
|
-
delete this.gridOptions.modules;
|
|
601
|
-
}
|
|
602
599
|
grid = new all_modules_1.Grid(agGridContainer, this.gridOptions, { modules });
|
|
603
600
|
// add our adaptable object to the grid options api object
|
|
604
601
|
// this is VERY useful for when we need to access Adaptable inside of agGrid only functions
|
|
@@ -839,46 +836,94 @@ class Adaptable {
|
|
|
839
836
|
}
|
|
840
837
|
return style;
|
|
841
838
|
}
|
|
842
|
-
|
|
839
|
+
getActiveAlertWithHighlightCell(col, params) {
|
|
843
840
|
const activeAlerts = this.api.internalApi
|
|
844
841
|
.getAdaptableAlerts()
|
|
845
|
-
.filter((
|
|
842
|
+
.filter((alert) => {
|
|
846
843
|
var _a;
|
|
847
|
-
return ((_a =
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
844
|
+
return ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightCell) &&
|
|
845
|
+
alert.dataChangedInfo &&
|
|
846
|
+
alert.dataChangedInfo.column &&
|
|
847
|
+
alert.dataChangedInfo.column.columnId === col.columnId &&
|
|
848
|
+
alert.dataChangedInfo.rowNode === params.node;
|
|
852
849
|
});
|
|
853
|
-
|
|
850
|
+
if (!activeAlerts.length) {
|
|
851
|
+
return null;
|
|
852
|
+
}
|
|
853
|
+
return activeAlerts === null || activeAlerts === void 0 ? void 0 : activeAlerts[0];
|
|
854
|
+
}
|
|
855
|
+
getActiveAlertWithHighlightRow(params) {
|
|
856
|
+
var _a;
|
|
857
|
+
return (_a = this.api.internalApi
|
|
858
|
+
.getAdaptableAlerts()
|
|
859
|
+
.filter((alert) => {
|
|
860
|
+
var _a;
|
|
861
|
+
return ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightRow) &&
|
|
862
|
+
alert.dataChangedInfo &&
|
|
863
|
+
alert.dataChangedInfo.column &&
|
|
864
|
+
alert.dataChangedInfo.rowNode === params.node;
|
|
865
|
+
})) === null || _a === void 0 ? void 0 : _a[0];
|
|
866
|
+
}
|
|
867
|
+
getAlertCellStyle(col, params) {
|
|
868
|
+
const alert = this.getActiveAlertWithHighlightCell(col, params);
|
|
854
869
|
if (alert) {
|
|
870
|
+
const highlightCell = alert.alertDefinition.AlertProperties.HighlightCell;
|
|
871
|
+
if (typeof highlightCell === 'object') {
|
|
872
|
+
return this.convertAdaptableStyleToCSS(highlightCell);
|
|
873
|
+
}
|
|
855
874
|
return {
|
|
856
875
|
backgroundColor: UIHelper_1.default.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
857
876
|
};
|
|
858
877
|
}
|
|
859
878
|
}
|
|
860
|
-
|
|
879
|
+
getAlertCellClass(col, params) {
|
|
880
|
+
var _a, _b;
|
|
881
|
+
const alert = this.getActiveAlertWithHighlightCell(col, params);
|
|
882
|
+
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;
|
|
883
|
+
return typeof highlightCell === 'object' && (highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName)
|
|
884
|
+
? highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName : null;
|
|
885
|
+
}
|
|
886
|
+
getAlertRowClass(params) {
|
|
887
|
+
var _a, _b;
|
|
888
|
+
const alert = this.getActiveAlertWithHighlightRow(params);
|
|
889
|
+
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;
|
|
890
|
+
return typeof highlightRow === 'object' && (highlightRow === null || highlightRow === void 0 ? void 0 : highlightRow.ClassName)
|
|
891
|
+
? highlightRow === null || highlightRow === void 0 ? void 0 : highlightRow.ClassName : null;
|
|
892
|
+
}
|
|
893
|
+
getAlertRowStyle(params) {
|
|
894
|
+
var _a, _b;
|
|
895
|
+
const alert = this.getActiveAlertWithHighlightRow(params);
|
|
896
|
+
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;
|
|
897
|
+
if (highlightRow) {
|
|
898
|
+
return typeof highlightRow === 'object'
|
|
899
|
+
? this.convertAdaptableStyleToCSS(highlightRow)
|
|
900
|
+
: {
|
|
901
|
+
backgroundColor: UIHelper_1.default.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
return null;
|
|
905
|
+
}
|
|
906
|
+
getFlashingCellRowStyle(params) {
|
|
861
907
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
862
|
-
return this.
|
|
908
|
+
return this.getFlashingCellStyleFor(primaryKeyValue);
|
|
863
909
|
}
|
|
864
|
-
|
|
910
|
+
getFlashingCellStyleFor(primaryKey, colId) {
|
|
865
911
|
var _a;
|
|
866
|
-
const
|
|
867
|
-
if (!
|
|
912
|
+
const flashingCell = this.api.internalApi.getAdaptableFlashingCellFor(primaryKey, colId);
|
|
913
|
+
if (!flashingCell) {
|
|
868
914
|
return {};
|
|
869
915
|
}
|
|
870
|
-
return this.convertAdaptableStyleToCSS((_a = (
|
|
871
|
-
?
|
|
872
|
-
:
|
|
873
|
-
?
|
|
874
|
-
:
|
|
916
|
+
return this.convertAdaptableStyleToCSS((_a = (flashingCell.direction === 'up'
|
|
917
|
+
? flashingCell.flashingCellDefinition.UpChangeStyle
|
|
918
|
+
: flashingCell.direction === 'down'
|
|
919
|
+
? flashingCell.flashingCellDefinition.DownChangeStyle
|
|
920
|
+
: flashingCell.flashingCellDefinition.NeutralChangeStyle)) !== null && _a !== void 0 ? _a : {});
|
|
875
921
|
}
|
|
876
|
-
|
|
922
|
+
getFlashingCellStyle(col, params) {
|
|
877
923
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
878
|
-
return this.
|
|
924
|
+
return this.getFlashingCellStyleFor(primaryKeyValue, col.columnId);
|
|
879
925
|
}
|
|
880
926
|
getCellHighlightStyle(col, params) {
|
|
881
|
-
var _a;
|
|
882
927
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
883
928
|
const cellHightlight = this.api.internalApi
|
|
884
929
|
.getSystemState()
|
|
@@ -887,19 +932,33 @@ class Adaptable {
|
|
|
887
932
|
cellHighlightInfo.primaryKeyValue === primaryKeyValue);
|
|
888
933
|
});
|
|
889
934
|
if (cellHightlight) {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
935
|
+
return this.convertAdaptableStyleToCSS(cellHightlight.highlightStyle);
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
getRowHighlightStyle(params) {
|
|
939
|
+
var _a;
|
|
940
|
+
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
941
|
+
const highlightRow = (_a = this.api.internalApi
|
|
942
|
+
.getSystemState()
|
|
943
|
+
.HighlightedRows) === null || _a === void 0 ? void 0 : _a.find((highlightRow) => {
|
|
944
|
+
return highlightRow.primaryKeyValue === primaryKeyValue;
|
|
945
|
+
});
|
|
946
|
+
if (highlightRow) {
|
|
947
|
+
return this.convertAdaptableStyleToCSS(highlightRow.highlightStyle);
|
|
901
948
|
}
|
|
902
949
|
}
|
|
950
|
+
getRowHighlightClass(params) {
|
|
951
|
+
var _a;
|
|
952
|
+
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
953
|
+
const highlightRow = (_a = this.api.internalApi
|
|
954
|
+
.getSystemState()
|
|
955
|
+
.HighlightedRows) === null || _a === void 0 ? void 0 : _a.find((highlightRow) => {
|
|
956
|
+
return highlightRow.primaryKeyValue === primaryKeyValue;
|
|
957
|
+
});
|
|
958
|
+
return typeof (highlightRow === null || highlightRow === void 0 ? void 0 : highlightRow.highlightStyle) === 'object'
|
|
959
|
+
? highlightRow.highlightStyle.ClassName
|
|
960
|
+
: null;
|
|
961
|
+
}
|
|
903
962
|
getQuickSearchCellStyle() {
|
|
904
963
|
const quickSearchStyle = this.api.quickSearchApi.getQuickSearchStyle();
|
|
905
964
|
if (!quickSearchStyle || StringExtensions_1.StringExtensions.IsNotNullOrEmpty(quickSearchStyle.ClassName)) {
|
|
@@ -1485,7 +1544,7 @@ class Adaptable {
|
|
|
1485
1544
|
});
|
|
1486
1545
|
}
|
|
1487
1546
|
}
|
|
1488
|
-
const uniqueVals = uniqBy_1.default(returnValues, '
|
|
1547
|
+
const uniqueVals = uniqBy_1.default(returnValues, 'rawValue');
|
|
1489
1548
|
return uniqueVals.slice(0, this.adaptableOptions.filterOptions.maxFilterValuesToDisplay);
|
|
1490
1549
|
}
|
|
1491
1550
|
async getDistinctFilterValuesForColumn(column, visibleRowsOnly, filter, skipRowNode) {
|
|
@@ -1563,8 +1622,7 @@ class Adaptable {
|
|
|
1563
1622
|
else {
|
|
1564
1623
|
permittedMap = null;
|
|
1565
1624
|
}
|
|
1566
|
-
const
|
|
1567
|
-
const eachFn = (rowNode, columnId, useRawValue) => {
|
|
1625
|
+
const eachFn = (rowNode, columnId) => {
|
|
1568
1626
|
if (rowNode && !this.isGroupRowNode(rowNode)) {
|
|
1569
1627
|
const gridCell = this.getGridCellFromRowNode(rowNode, columnId);
|
|
1570
1628
|
let allowed = !permittedMap || permittedMap.has(gridCell.displayValue);
|
|
@@ -1579,12 +1637,12 @@ class Adaptable {
|
|
|
1579
1637
|
};
|
|
1580
1638
|
if (visibleRowsOnly) {
|
|
1581
1639
|
this.gridOptions.api.forEachNodeAfterFilter((rowNode) => {
|
|
1582
|
-
eachFn(rowNode, columnId
|
|
1640
|
+
eachFn(rowNode, columnId);
|
|
1583
1641
|
});
|
|
1584
1642
|
}
|
|
1585
1643
|
else {
|
|
1586
1644
|
this.gridOptions.api.forEachNode((rowNode) => {
|
|
1587
|
-
eachFn(rowNode, columnId
|
|
1645
|
+
eachFn(rowNode, columnId);
|
|
1588
1646
|
});
|
|
1589
1647
|
}
|
|
1590
1648
|
return returnArray.slice(0, this.adaptableOptions.filterOptions.maxFilterValuesToDisplay);
|
|
@@ -1602,16 +1660,22 @@ class Adaptable {
|
|
|
1602
1660
|
return undefined;
|
|
1603
1661
|
}
|
|
1604
1662
|
}
|
|
1605
|
-
|
|
1663
|
+
isInternallyRenderedColumn(column) {
|
|
1664
|
+
if (!column || column.isGrouped) {
|
|
1665
|
+
return true;
|
|
1666
|
+
}
|
|
1606
1667
|
// we need to return false if the column has a cell rendeerer i think...
|
|
1607
1668
|
const colDef = this.gridOptions.api.getColumnDef(column.columnId);
|
|
1608
1669
|
if (colDef && colDef.cellRenderer != null) {
|
|
1609
|
-
return
|
|
1670
|
+
return false;
|
|
1610
1671
|
}
|
|
1611
1672
|
if (this.api.columnApi.isFormatNumericStyleColumn(column)) {
|
|
1612
|
-
return
|
|
1673
|
+
return false;
|
|
1613
1674
|
}
|
|
1614
|
-
|
|
1675
|
+
if (this.api.columnApi.isBooleanColumn(column)) {
|
|
1676
|
+
return false;
|
|
1677
|
+
}
|
|
1678
|
+
return true;
|
|
1615
1679
|
}
|
|
1616
1680
|
getDisplayValue(id, columnId) {
|
|
1617
1681
|
let returnValue;
|
|
@@ -1640,11 +1704,11 @@ class Adaptable {
|
|
|
1640
1704
|
if (rowNode == null) {
|
|
1641
1705
|
return undefined;
|
|
1642
1706
|
}
|
|
1707
|
+
const abColumn = this.api.columnApi.getColumnFromId(columnId);
|
|
1643
1708
|
const pkValue = this.getPrimaryKeyValueFromRowNode(rowNode);
|
|
1644
1709
|
const rawValue = this.getRawValueFromRowNode(rowNode, columnId);
|
|
1645
1710
|
const displayValue = this.getDisplayValueFromRawValue(columnId, rawValue);
|
|
1646
|
-
const normalisedvalue = this.getNormalisedValueFromRowValue(rawValue,
|
|
1647
|
-
const abColumn = this.api.columnApi.getColumnFromId(columnId);
|
|
1711
|
+
const normalisedvalue = this.getNormalisedValueFromRowValue(rawValue, displayValue, abColumn);
|
|
1648
1712
|
return {
|
|
1649
1713
|
rawValue: rawValue,
|
|
1650
1714
|
displayValue: displayValue,
|
|
@@ -1707,24 +1771,28 @@ class Adaptable {
|
|
|
1707
1771
|
};
|
|
1708
1772
|
return formatterFn(params);
|
|
1709
1773
|
}
|
|
1710
|
-
getNormalisedValueFromRowValue(rawValue,
|
|
1711
|
-
if (
|
|
1774
|
+
getNormalisedValueFromRowValue(rawValue, displayValue, column) {
|
|
1775
|
+
if (!column) {
|
|
1712
1776
|
return rawValue;
|
|
1713
1777
|
}
|
|
1714
|
-
const
|
|
1778
|
+
const returnValue = this.isInternallyRenderedColumn(column) ? displayValue : rawValue;
|
|
1779
|
+
if (returnValue === undefined || returnValue === null) {
|
|
1780
|
+
return rawValue;
|
|
1781
|
+
}
|
|
1782
|
+
const dataType = column.dataType;
|
|
1715
1783
|
if (dataType === 'String') {
|
|
1716
|
-
return typeof rawValue !== 'string' ? String(rawValue) :
|
|
1784
|
+
return typeof rawValue !== 'string' ? String(rawValue) : returnValue;
|
|
1717
1785
|
}
|
|
1718
1786
|
if (dataType === 'Number') {
|
|
1719
|
-
return typeof rawValue !== 'number' ? Number(rawValue) :
|
|
1787
|
+
return typeof rawValue !== 'number' ? Number(rawValue) : returnValue;
|
|
1720
1788
|
}
|
|
1721
1789
|
if (dataType === 'Boolean') {
|
|
1722
|
-
return typeof rawValue !== 'boolean' ? Boolean(rawValue) :
|
|
1790
|
+
return typeof rawValue !== 'boolean' ? Boolean(rawValue) : returnValue;
|
|
1723
1791
|
}
|
|
1724
1792
|
if (dataType === 'Date') {
|
|
1725
|
-
return rawValue instanceof Date ?
|
|
1793
|
+
return rawValue instanceof Date ? returnValue : new Date(rawValue);
|
|
1726
1794
|
}
|
|
1727
|
-
return
|
|
1795
|
+
return returnValue;
|
|
1728
1796
|
}
|
|
1729
1797
|
getRawValueFromRowNode(rowNode, columnId) {
|
|
1730
1798
|
return this.gridOptions.api.getValue(columnId, rowNode);
|
|
@@ -1883,6 +1951,7 @@ class Adaptable {
|
|
|
1883
1951
|
const specialColumnsAreFilterable = this.api.internalApi.getAdaptableOptions().filterOptions.enableFilterOnSpecialColumns;
|
|
1884
1952
|
const defaultFreeTextColumnSettings = ObjectFactory_1.CreateEmptyFreeTextColumn(specialColumnsAreFilterable).FreeTextColumnSettings;
|
|
1885
1953
|
return this.api.freeTextColumnApi.getAllFreeTextColumn().map((freeTextColumn) => {
|
|
1954
|
+
var _a;
|
|
1886
1955
|
const freeTextColumnSettings = Object.assign(Object.assign({}, defaultFreeTextColumnSettings), freeTextColumn.FreeTextColumnSettings);
|
|
1887
1956
|
const dataTypeEditor = freeTextColumn.DataType === 'Number'
|
|
1888
1957
|
? AdaptableNumberEditor_1.AdaptableNumberEditor
|
|
@@ -1890,6 +1959,13 @@ class Adaptable {
|
|
|
1890
1959
|
? AdaptableDateEditor_1.AdaptableDateEditor
|
|
1891
1960
|
: null;
|
|
1892
1961
|
LoggingHelper_1.LogAdaptableInfo('Setting up FreeText Column: ' + freeTextColumn.ColumnId);
|
|
1962
|
+
const columnTypes = [
|
|
1963
|
+
GeneralConstants_1.AB_SPECIAL_COLUMN,
|
|
1964
|
+
this.agGridHelper.getAgGridDataType(freeTextColumn.DataType),
|
|
1965
|
+
];
|
|
1966
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty((_a = freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.FreeTextColumnSettings) === null || _a === void 0 ? void 0 : _a.ColumnTypes)) {
|
|
1967
|
+
columnTypes.push(...freeTextColumn.FreeTextColumnSettings.ColumnTypes);
|
|
1968
|
+
}
|
|
1893
1969
|
return {
|
|
1894
1970
|
headerName: freeTextColumn.FriendlyName || freeTextColumn.ColumnId,
|
|
1895
1971
|
colId: freeTextColumn.ColumnId,
|
|
@@ -1908,10 +1984,7 @@ class Adaptable {
|
|
|
1908
1984
|
cellEditor: dataTypeEditor !== null && dataTypeEditor !== void 0 ? dataTypeEditor : (freeTextColumn.TextEditor && freeTextColumn.TextEditor == 'Large'
|
|
1909
1985
|
? 'agLargeTextCellEditor'
|
|
1910
1986
|
: 'agTextCellEditor'),
|
|
1911
|
-
type:
|
|
1912
|
-
GeneralConstants_1.AB_SPECIAL_COLUMN,
|
|
1913
|
-
this.agGridHelper.getAgGridDataType(freeTextColumn.DataType),
|
|
1914
|
-
],
|
|
1987
|
+
type: columnTypes,
|
|
1915
1988
|
valueSetter: (params) => {
|
|
1916
1989
|
return (params.data[freeTextColumn.ColumnId] = params.newValue);
|
|
1917
1990
|
},
|
|
@@ -1982,6 +2055,39 @@ class Adaptable {
|
|
|
1982
2055
|
this.safeSetColDefs(allDefs);
|
|
1983
2056
|
this.setLayout();
|
|
1984
2057
|
}
|
|
2058
|
+
cleanupFloatingFilters_WORKAROUND() {
|
|
2059
|
+
// since AG Grid v26.2.0 floating filters have a memory leak due to an dangling reference to an obsolete agSetFilter instance
|
|
2060
|
+
var _a, _b;
|
|
2061
|
+
// 1a. The initial floating filter component is defaulted to the 'agSetColumnFloatingFilter'
|
|
2062
|
+
// (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.
|
|
2063
|
+
// 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
|
|
2064
|
+
// 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
|
|
2065
|
+
// 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
|
|
2066
|
+
// 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
|
|
2067
|
+
//
|
|
2068
|
+
// 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
|
|
2069
|
+
// AG Grid team tracks this issue in AG-6179
|
|
2070
|
+
// until a fix arrives, a workaround is to hide all the visible columns (thus destroying all the HeaderFilterCellCtrl instances)
|
|
2071
|
+
if (!((_b = (_a = this.adaptableOptions) === null || _a === void 0 ? void 0 : _a.filterOptions) === null || _b === void 0 ? void 0 : _b.useAdaptableQuickFilter)) {
|
|
2072
|
+
// no need to do anything if we don't use adaptable quick filter
|
|
2073
|
+
return;
|
|
2074
|
+
}
|
|
2075
|
+
if (this.gridOptions.columnApi.isPivotMode()) {
|
|
2076
|
+
// floating filters are NOT available in pivot mode
|
|
2077
|
+
return;
|
|
2078
|
+
}
|
|
2079
|
+
// floating filter instances (HeaderFilterCellCtrl) are created only for rendered columns (in viewport)
|
|
2080
|
+
// so we have to handle only the displayed columns
|
|
2081
|
+
const allDisplayedCols = this.gridOptions.columnApi.getAllDisplayedColumns();
|
|
2082
|
+
const colsWithFloatingFilter = allDisplayedCols.filter((col) => {
|
|
2083
|
+
const colDef = col.getColDef();
|
|
2084
|
+
return (colDef.floatingFilter ||
|
|
2085
|
+
colDef.floatingFilterComponent ||
|
|
2086
|
+
this.api.columnApi.usesAdaptableQuickFilter(col.getColId()));
|
|
2087
|
+
});
|
|
2088
|
+
colsWithFloatingFilter.forEach((col) => this.gridOptions.columnApi.setColumnsVisible(colsWithFloatingFilter, false));
|
|
2089
|
+
// !! it is important to NOT set the columns visible again as this is already taken care of in the next performed method (this.updateColDefsForSpecialColumns())
|
|
2090
|
+
}
|
|
1985
2091
|
getColDefsForCalculatedColumns() {
|
|
1986
2092
|
const specialColumnsAreFilterable = this.adaptableOptions.filterOptions
|
|
1987
2093
|
.enableFilterOnSpecialColumns
|
|
@@ -1995,6 +2101,13 @@ class Adaptable {
|
|
|
1995
2101
|
calculatedColumnSettings.DataType =
|
|
1996
2102
|
this.CalculatedColumnExpressionService.GetCalculatedColumnDataType((_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression);
|
|
1997
2103
|
}
|
|
2104
|
+
const columnTypes = [
|
|
2105
|
+
GeneralConstants_1.AB_SPECIAL_COLUMN,
|
|
2106
|
+
this.agGridHelper.getAgGridDataType(calculatedColumnSettings.DataType),
|
|
2107
|
+
];
|
|
2108
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(calculatedColumnSettings.ColumnTypes)) {
|
|
2109
|
+
columnTypes.push(...calculatedColumnSettings.ColumnTypes);
|
|
2110
|
+
}
|
|
1998
2111
|
const newColDef = {
|
|
1999
2112
|
headerName: calculatedColumn.FriendlyName
|
|
2000
2113
|
? calculatedColumn.FriendlyName
|
|
@@ -2012,10 +2125,7 @@ class Adaptable {
|
|
|
2012
2125
|
enablePivot: calculatedColumnSettings.Pivotable,
|
|
2013
2126
|
suppressMenu: calculatedColumnSettings.SuppressMenu,
|
|
2014
2127
|
suppressMovable: calculatedColumnSettings.SuppressMovable,
|
|
2015
|
-
type:
|
|
2016
|
-
GeneralConstants_1.AB_SPECIAL_COLUMN,
|
|
2017
|
-
this.agGridHelper.getAgGridDataType(calculatedColumnSettings.DataType),
|
|
2018
|
-
],
|
|
2128
|
+
type: columnTypes,
|
|
2019
2129
|
valueGetter: (params) => {
|
|
2020
2130
|
var _a;
|
|
2021
2131
|
return this.CalculatedColumnExpressionService.ComputeExpressionValue((_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression, params.node);
|
|
@@ -2333,7 +2443,6 @@ class Adaptable {
|
|
|
2333
2443
|
*/
|
|
2334
2444
|
this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_COLUMN_RESIZED, (params) => {
|
|
2335
2445
|
if (params.finished == true && params.type == 'columnResized' && params.column) {
|
|
2336
|
-
this._emit('ColumnResized', params.column.getColId());
|
|
2337
2446
|
this.debouncedSaveGridLayout();
|
|
2338
2447
|
}
|
|
2339
2448
|
});
|
|
@@ -2511,7 +2620,7 @@ class Adaptable {
|
|
|
2511
2620
|
}
|
|
2512
2621
|
return originaldoesExternalFilterPass ? originaldoesExternalFilterPass(node) : true;
|
|
2513
2622
|
};
|
|
2514
|
-
// Build the COLUMN
|
|
2623
|
+
// Build the COLUMN MENU. Note that we do this EACH time the menu is opened (as items can change)
|
|
2515
2624
|
const originalgetMainMenuItems = this.gridOptions.getMainMenuItems;
|
|
2516
2625
|
this.gridOptions.getMainMenuItems = (params) => {
|
|
2517
2626
|
// 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....
|
|
@@ -2532,6 +2641,9 @@ class Adaptable {
|
|
|
2532
2641
|
// add any special renderers, display formats, custom sorts and apply the theme
|
|
2533
2642
|
// then do any final rendering required, filter the grid and - to be on the safe set - redraw
|
|
2534
2643
|
try {
|
|
2644
|
+
// it is very important that this method is executed as soon as possible and BEFORE the updateColDefsForSpecialColumns() method
|
|
2645
|
+
// this will ensure that the columns are recreated as expected (see method implementation&comments for more details)
|
|
2646
|
+
this.cleanupFloatingFilters_WORKAROUND();
|
|
2535
2647
|
this.updateColDefsForSpecialColumns();
|
|
2536
2648
|
this.applyCurrentTheme();
|
|
2537
2649
|
this.applyFinalRendering();
|
|
@@ -2562,7 +2674,6 @@ class Adaptable {
|
|
|
2562
2674
|
this.setupColumnCellStyle(colSetupInfo);
|
|
2563
2675
|
this.setupColumnCellClass(colSetupInfo);
|
|
2564
2676
|
this.setupColumnTooltipValueGetter(colSetupInfo);
|
|
2565
|
-
this.setupColumnTooltipField(colSetupInfo);
|
|
2566
2677
|
this.setupColumnValueGetter(colSetupInfo);
|
|
2567
2678
|
this.setupColumnAggFunc(colSetupInfo);
|
|
2568
2679
|
this.setupColumnFilter(colSetupInfo);
|
|
@@ -2656,7 +2767,7 @@ class Adaptable {
|
|
|
2656
2767
|
? this.getFormatColumnCellStyle(formatColumn, params)
|
|
2657
2768
|
: undefined;
|
|
2658
2769
|
const isQuickSearchActive = hasQuickSearchStyle && this.isQuickSearchActive(abColumn, params);
|
|
2659
|
-
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.
|
|
2770
|
+
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));
|
|
2660
2771
|
return result;
|
|
2661
2772
|
};
|
|
2662
2773
|
return cellStyle;
|
|
@@ -2680,7 +2791,8 @@ class Adaptable {
|
|
|
2680
2791
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
2681
2792
|
const editableClassName = this.getEditableCellClass(abColumn, params);
|
|
2682
2793
|
const readonlyClassName = this.getReadonlyCellClass(abColumn, params);
|
|
2683
|
-
|
|
2794
|
+
const highlightAlertClassName = this.getAlertCellClass(abColumn, params);
|
|
2795
|
+
const returnValue = [
|
|
2684
2796
|
this.getExcelClassNameForCell(colId, primaryKeyValue),
|
|
2685
2797
|
typeof userCellClass === 'function' ? userCellClass(params) : userCellClass,
|
|
2686
2798
|
formatColumnStyleClassName,
|
|
@@ -2690,6 +2802,7 @@ class Adaptable {
|
|
|
2690
2802
|
isQuickSearchActive ? quickSearchStyleClassName : null,
|
|
2691
2803
|
editableClassName,
|
|
2692
2804
|
readonlyClassName,
|
|
2805
|
+
highlightAlertClassName,
|
|
2693
2806
|
]
|
|
2694
2807
|
.filter((x) => !!x)
|
|
2695
2808
|
.join(' ');
|
|
@@ -2751,10 +2864,6 @@ class Adaptable {
|
|
|
2751
2864
|
return this.agGridHelper.createCheckboxRendererComp(abColumn.columnId, abColumn.readOnly);
|
|
2752
2865
|
}
|
|
2753
2866
|
}
|
|
2754
|
-
const sparkline = this.api.sparklineColumnApi.getSparklineByColumn(colId);
|
|
2755
|
-
if (sparkline) {
|
|
2756
|
-
return this.agGridHelper.createSparklineCellRendererComp(sparkline);
|
|
2757
|
-
}
|
|
2758
2867
|
});
|
|
2759
2868
|
}
|
|
2760
2869
|
setupColumnTooltipValueGetter({ col, colId }) {
|
|
@@ -2795,14 +2904,6 @@ class Adaptable {
|
|
|
2795
2904
|
}
|
|
2796
2905
|
});
|
|
2797
2906
|
}
|
|
2798
|
-
setupColumnTooltipField({ col, colId, colDef }) {
|
|
2799
|
-
this.setColDefProperty(col, 'tooltipField', () => {
|
|
2800
|
-
const sparkline = this.api.sparklineColumnApi.getSparklineByColumn(colId);
|
|
2801
|
-
if (sparkline) {
|
|
2802
|
-
return sparkline.ShowToolTip ? colDef.field : '';
|
|
2803
|
-
}
|
|
2804
|
-
});
|
|
2805
|
-
}
|
|
2806
2907
|
setupColumnHeader({ col, abColumn }) {
|
|
2807
2908
|
var _a, _b;
|
|
2808
2909
|
const previousColumnHeader = (_a = col === null || col === void 0 ? void 0 : col.getColDef()) === null || _a === void 0 ? void 0 : _a.headerName;
|
|
@@ -3298,14 +3399,28 @@ class Adaptable {
|
|
|
3298
3399
|
getVisibleColumnCount() {
|
|
3299
3400
|
return this.gridOptions.columnApi.getAllColumns().filter((c) => c.isVisible()).length;
|
|
3300
3401
|
}
|
|
3301
|
-
selectColumns(columnIds) {
|
|
3302
|
-
|
|
3402
|
+
selectColumns(columnIds, config) {
|
|
3403
|
+
if (!(config === null || config === void 0 ? void 0 : config.keepExistingSelection)) {
|
|
3404
|
+
this.gridOptions.api.clearRangeSelection();
|
|
3405
|
+
}
|
|
3406
|
+
const rowCount = this.gridOptions.api.getDisplayedRowCount();
|
|
3407
|
+
columnIds.forEach((colId) => {
|
|
3408
|
+
const cellRangeParams = {
|
|
3409
|
+
rowStartIndex: 0,
|
|
3410
|
+
rowEndIndex: rowCount - 1,
|
|
3411
|
+
columnStart: colId,
|
|
3412
|
+
columnEnd: colId,
|
|
3413
|
+
};
|
|
3414
|
+
this.gridOptions.api.addCellRange(cellRangeParams);
|
|
3415
|
+
});
|
|
3303
3416
|
}
|
|
3304
|
-
selectColumn(columnId) {
|
|
3305
|
-
|
|
3417
|
+
selectColumn(columnId, config) {
|
|
3418
|
+
if (!(config === null || config === void 0 ? void 0 : config.keepExistingSelection)) {
|
|
3419
|
+
this.gridOptions.api.clearRangeSelection();
|
|
3420
|
+
}
|
|
3306
3421
|
const cellRangeParams = {
|
|
3307
3422
|
rowStartIndex: 0,
|
|
3308
|
-
rowEndIndex: this.gridOptions.api.getDisplayedRowCount(),
|
|
3423
|
+
rowEndIndex: this.gridOptions.api.getDisplayedRowCount() - 1,
|
|
3309
3424
|
columnStart: columnId,
|
|
3310
3425
|
columnEnd: columnId,
|
|
3311
3426
|
};
|
|
@@ -3414,10 +3529,18 @@ class Adaptable {
|
|
|
3414
3529
|
}
|
|
3415
3530
|
dataUpdateConfig = dataUpdateConfig || {};
|
|
3416
3531
|
if (dataUpdateConfig.runAsync) {
|
|
3417
|
-
|
|
3532
|
+
return new Promise((resolve) => {
|
|
3533
|
+
this.gridOptions.api.applyTransactionAsync({ update: dataRows }, (transaction) => {
|
|
3534
|
+
if (typeof dataUpdateConfig.callback === 'function') {
|
|
3535
|
+
dataUpdateConfig.callback(transaction);
|
|
3536
|
+
}
|
|
3537
|
+
resolve(transaction === null || transaction === void 0 ? void 0 : transaction.update);
|
|
3538
|
+
});
|
|
3539
|
+
});
|
|
3418
3540
|
}
|
|
3419
3541
|
else {
|
|
3420
|
-
this.gridOptions.api.applyTransaction({ update: dataRows });
|
|
3542
|
+
const transaction = this.gridOptions.api.applyTransaction({ update: dataRows });
|
|
3543
|
+
return Promise.resolve(transaction === null || transaction === void 0 ? void 0 : transaction.update);
|
|
3421
3544
|
}
|
|
3422
3545
|
}
|
|
3423
3546
|
addRows(dataRows, dataUpdateConfig) {
|
|
@@ -3430,19 +3553,35 @@ class Adaptable {
|
|
|
3430
3553
|
newData.addIndex = dataUpdateConfig.addIndex;
|
|
3431
3554
|
}
|
|
3432
3555
|
if (dataUpdateConfig.runAsync) {
|
|
3433
|
-
|
|
3556
|
+
return new Promise((resolve) => {
|
|
3557
|
+
this.gridOptions.api.applyTransactionAsync(newData, (transaction) => {
|
|
3558
|
+
if (typeof dataUpdateConfig.callback === 'function') {
|
|
3559
|
+
dataUpdateConfig.callback(transaction);
|
|
3560
|
+
}
|
|
3561
|
+
resolve(transaction === null || transaction === void 0 ? void 0 : transaction.add);
|
|
3562
|
+
});
|
|
3563
|
+
});
|
|
3434
3564
|
}
|
|
3435
3565
|
else {
|
|
3436
|
-
this.gridOptions.api.applyTransaction(newData);
|
|
3566
|
+
const transaction = this.gridOptions.api.applyTransaction(newData);
|
|
3567
|
+
return Promise.resolve(transaction === null || transaction === void 0 ? void 0 : transaction.add);
|
|
3437
3568
|
}
|
|
3438
3569
|
}
|
|
3439
3570
|
deleteRows(dataRows, dataUpdateConfig) {
|
|
3440
3571
|
dataUpdateConfig = dataUpdateConfig || {};
|
|
3441
3572
|
if (dataUpdateConfig.runAsync) {
|
|
3442
|
-
|
|
3573
|
+
return new Promise((resolve) => {
|
|
3574
|
+
this.gridOptions.api.applyTransactionAsync({ remove: dataRows }, (transaction) => {
|
|
3575
|
+
if (typeof dataUpdateConfig.callback === 'function') {
|
|
3576
|
+
dataUpdateConfig.callback(transaction);
|
|
3577
|
+
}
|
|
3578
|
+
resolve(transaction === null || transaction === void 0 ? void 0 : transaction.remove);
|
|
3579
|
+
});
|
|
3580
|
+
});
|
|
3443
3581
|
}
|
|
3444
3582
|
else {
|
|
3445
|
-
this.gridOptions.api.applyTransaction({ remove: dataRows });
|
|
3583
|
+
const transaction = this.gridOptions.api.applyTransaction({ remove: dataRows });
|
|
3584
|
+
return Promise.resolve(transaction.remove);
|
|
3446
3585
|
}
|
|
3447
3586
|
}
|
|
3448
3587
|
getFirstGroupedColumn() {
|
|
@@ -3700,15 +3839,19 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
3700
3839
|
// Set any Row Styles (i.e. items without a classname)
|
|
3701
3840
|
this.setGridOptionsProperty('getRowStyle', (userGetRowStyle) => {
|
|
3702
3841
|
return (params) => {
|
|
3703
|
-
const result = Object.assign(Object.assign({}, userGetRowStyle === null || userGetRowStyle === void 0 ? void 0 : userGetRowStyle(params)), this.getConditionalStyleRowStyle(conditionalStyles, params));
|
|
3842
|
+
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));
|
|
3704
3843
|
return result;
|
|
3705
3844
|
};
|
|
3706
3845
|
});
|
|
3707
3846
|
// Now set up Row Classes
|
|
3708
3847
|
this.setGridOptionsProperty('getRowClass', (userGetRowClass) => {
|
|
3709
3848
|
return (params) => {
|
|
3710
|
-
|
|
3849
|
+
const alertHighlightClassName = this.getAlertRowClass(params);
|
|
3850
|
+
const highlightClassName = this.getRowHighlightClass(params);
|
|
3851
|
+
const returnValue = [
|
|
3711
3852
|
typeof userGetRowClass === 'function' ? userGetRowClass(params) : userGetRowClass,
|
|
3853
|
+
highlightClassName,
|
|
3854
|
+
alertHighlightClassName,
|
|
3712
3855
|
this.getConditionalStyleRowClass(conditionalStyles.filter((cs) => StringExtensions_1.StringExtensions.IsNotNullOrEmpty(cs.Style.ClassName)), params),
|
|
3713
3856
|
]
|
|
3714
3857
|
.filter((x) => !!x)
|
|
@@ -3758,6 +3901,12 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
3758
3901
|
}
|
|
3759
3902
|
return this.gridOptions.api;
|
|
3760
3903
|
}
|
|
3904
|
+
canGenerateCharts() {
|
|
3905
|
+
return this.isModulePresent('charts') && this.gridOptions.enableCharts;
|
|
3906
|
+
}
|
|
3907
|
+
canHaveSparklines() {
|
|
3908
|
+
return this.isModulePresent('sparklines');
|
|
3909
|
+
}
|
|
3761
3910
|
canExportToExcel() {
|
|
3762
3911
|
return this.isModulePresent('excel-export');
|
|
3763
3912
|
}
|
|
@@ -4020,7 +4169,7 @@ class AdaptableNoCodeWizard {
|
|
|
4020
4169
|
*/
|
|
4021
4170
|
constructor(adaptableOptions, extraOptions = {}) {
|
|
4022
4171
|
const defaultInit = async ({ gridOptions, adaptableOptions }) => {
|
|
4023
|
-
adaptableOptions.
|
|
4172
|
+
adaptableOptions.gridOptions = gridOptions;
|
|
4024
4173
|
return await Adaptable.init(adaptableOptions);
|
|
4025
4174
|
};
|
|
4026
4175
|
this.adaptableOptions = adaptableOptions;
|
|
@@ -4054,7 +4203,7 @@ class AdaptableNoCodeWizard {
|
|
|
4054
4203
|
ReactDOM.unmountComponentAtNode(container);
|
|
4055
4204
|
this.init({
|
|
4056
4205
|
adaptableOptions,
|
|
4057
|
-
gridOptions: adaptableOptions.
|
|
4206
|
+
gridOptions: adaptableOptions.gridOptions,
|
|
4058
4207
|
});
|
|
4059
4208
|
} })), container);
|
|
4060
4209
|
}
|