@adaptabletools/adaptable 10.0.4-canary.1 → 10.0.4-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/README.md +1 -1
- package/agGrid.d.ts +2 -2
- package/base.css +387 -87
- package/bundle.cjs.js +353 -0
- package/index.css +454 -94
- package/package.json +5 -8
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +17 -15
- package/src/AdaptableOptions/AdaptableOptions.d.ts +9 -4
- package/src/AdaptableOptions/ContainerOptions.d.ts +4 -5
- package/src/AdaptableOptions/DashboardOptions.d.ts +2 -2
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +3 -3
- package/src/AdaptableOptions/DateInputOptions.d.ts +5 -1
- package/src/AdaptableOptions/EditOptions.d.ts +4 -5
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +8 -8
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +3 -2
- package/src/AdaptableOptions/MenuOptions.d.ts +12 -12
- package/src/AdaptableOptions/NotificationsOptions.d.ts +12 -3
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +75 -0
- package/src/{Api/Events/FlashingAlertFired.js → AdaptableOptions/SettingsPanelOptions.js} +0 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +32 -3
- package/src/Api/AdaptableApi.d.ts +14 -12
- package/src/Api/AlertApi.d.ts +4 -79
- package/src/Api/ColumnApi.d.ts +10 -5
- package/src/Api/DataChangeHistoryApi.d.ts +4 -0
- package/src/Api/EventApi.d.ts +9 -9
- package/src/Api/Events/AdaptableReady.d.ts +3 -2
- package/src/Api/Events/FlashingCellDisplayed.d.ts +11 -0
- package/src/{PredefinedConfig/Common/AdaptableFlashingAlert.js → Api/Events/FlashingCellDisplayed.js} +0 -0
- package/src/Api/Events/GridDataChanged.d.ts +3 -1
- package/src/Api/FlashingCellApi.d.ts +78 -0
- package/src/Api/FlashingCellApi.js +2 -0
- package/src/Api/GridApi.d.ts +38 -15
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +8 -22
- package/src/Api/Implementation/AlertApiImpl.js +40 -107
- package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -3
- package/src/Api/Implementation/ColumnApiImpl.js +16 -14
- package/src/Api/Implementation/ConfigApiImpl.js +0 -29
- 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 +20 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +96 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +15 -10
- package/src/Api/Implementation/GridApiImpl.js +42 -21
- package/src/Api/Implementation/InternalApiImpl.d.ts +3 -3
- package/src/Api/Implementation/InternalApiImpl.js +7 -6
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +27 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -2
- package/src/Api/Implementation/PluginsApiImpl.js +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +11 -11
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.js +3 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +3 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.js +4 -4
- package/src/Api/InternalApi.d.ts +5 -5
- package/src/Api/LayoutApi.d.ts +7 -0
- package/src/Api/PluginsApi.d.ts +1 -7
- package/src/Api/SmartEditApi.d.ts +4 -4
- package/src/Api/TeamSharingApi.d.ts +1 -1
- package/src/Api/ThemeApi.d.ts +2 -2
- package/src/Api/UserInterfaceApi.d.ts +3 -3
- package/src/PredefinedConfig/AdaptableState.d.ts +4 -10
- package/src/PredefinedConfig/AlertState.d.ts +14 -55
- package/src/PredefinedConfig/ApplicationState.d.ts +1 -1
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +7 -3
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
- package/src/PredefinedConfig/Common/{AdaptableFlashingAlert.d.ts → AdaptableFlashingCell.d.ts} +6 -6
- package/src/PredefinedConfig/Common/AdaptableFlashingCell.js +2 -0
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptableScope.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +7 -7
- package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +14 -3
- package/src/PredefinedConfig/Common/CellSummary.d.ts +2 -2
- package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +41 -18
- package/src/PredefinedConfig/Common/Schedule.d.ts +4 -14
- package/src/PredefinedConfig/Common/Schedule.js +0 -14
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +6 -5
- package/src/PredefinedConfig/Common/Types.js +9 -7
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +1 -1
- package/src/PredefinedConfig/CustomSortState.d.ts +2 -2
- package/src/PredefinedConfig/DashboardState.d.ts +3 -2
- package/src/PredefinedConfig/DataSourceState.d.ts +1 -1
- package/src/PredefinedConfig/ExportState.d.ts +3 -3
- package/src/PredefinedConfig/FilterState.d.ts +2 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +70 -0
- package/src/PredefinedConfig/FlashingCellState.js +2 -0
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +3 -3
- package/src/PredefinedConfig/LayoutState.d.ts +2 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -39
- package/src/PredefinedConfig/QuickSearchState.d.ts +3 -3
- package/src/PredefinedConfig/ScheduleState.d.ts +2 -6
- package/src/PredefinedConfig/ShortcutState.d.ts +6 -2
- package/src/PredefinedConfig/SystemState.d.ts +17 -4
- package/src/PredefinedConfig/ThemeState.d.ts +5 -1
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +3 -38
- package/src/Redux/ActionsReducers/AlertRedux.js +9 -68
- package/src/Redux/ActionsReducers/DashboardRedux.js +3 -2
- package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +55 -0
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +100 -0
- package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -2
- package/src/Redux/ActionsReducers/GridRedux.js +2 -2
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +12 -2
- package/src/Redux/ActionsReducers/LayoutRedux.js +24 -1
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +34 -13
- package/src/Redux/ActionsReducers/SystemRedux.js +94 -40
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +2 -1
- package/src/Redux/DeadRedux.d.ts +4 -8
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -1
- package/src/Redux/Store/AdaptableStore.d.ts +3 -3
- package/src/Redux/Store/AdaptableStore.js +91 -51
- package/src/Strategy/AdaptableModuleBase.d.ts +2 -2
- package/src/Strategy/AlertModule.d.ts +16 -7
- package/src/Strategy/AlertModule.js +40 -216
- package/src/Strategy/BulkUpdateModule.d.ts +2 -2
- package/src/Strategy/BulkUpdateModule.js +4 -4
- package/src/Strategy/CalculatedColumnModule.d.ts +28 -0
- package/src/Strategy/CalculatedColumnModule.js +29 -0
- package/src/Strategy/CellSummaryModule.d.ts +2 -2
- 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 +2 -3
- package/src/Strategy/DashboardModule.js +1 -7
- package/src/Strategy/DataChangeHistoryModule.js +3 -3
- package/src/Strategy/DataSourceModule.d.ts +9 -1
- package/src/Strategy/DataSourceModule.js +28 -0
- package/src/Strategy/ExportModule.d.ts +14 -2
- package/src/Strategy/ExportModule.js +43 -0
- package/src/Strategy/FilterModule.d.ts +10 -3
- package/src/Strategy/FilterModule.js +27 -0
- package/src/Strategy/FlashingCellModule.d.ts +33 -0
- package/src/Strategy/FlashingCellModule.js +219 -0
- package/src/Strategy/FormatColumnModule.d.ts +11 -1
- package/src/Strategy/FormatColumnModule.js +36 -1
- package/src/Strategy/FreeTextColumnModule.d.ts +9 -1
- package/src/Strategy/FreeTextColumnModule.js +45 -0
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/GridInfoModule.js +58 -36
- package/src/Strategy/Interface/IModule.d.ts +72 -2
- package/src/Strategy/LayoutModule.d.ts +2 -2
- package/src/Strategy/LayoutModule.js +21 -8
- package/src/Strategy/PlusMinusModule.d.ts +11 -0
- package/src/Strategy/PlusMinusModule.js +34 -0
- package/src/Strategy/QueryModule.d.ts +20 -0
- package/src/Strategy/QueryModule.js +27 -0
- package/src/Strategy/ScheduleModule.d.ts +17 -1
- package/src/Strategy/ScheduleModule.js +148 -2
- package/src/Strategy/SetingsPanelModule.d.ts +10 -0
- package/src/Strategy/SetingsPanelModule.js +24 -0
- package/src/Strategy/ShortcutModule.d.ts +11 -0
- package/src/Strategy/ShortcutModule.js +22 -0
- package/src/Strategy/SmartEditModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.js +3 -4
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Strategy/ToolPanelModule.js +1 -1
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +8 -0
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +15 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.d.ts +4 -0
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +19 -0
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +9 -0
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +9 -0
- package/src/Strategy/Utilities/getExportColumnsViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getExportColumnsViewItems.js +22 -0
- package/src/Strategy/Utilities/getExportRowsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getExportRowsViewItems.js +26 -0
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getExpressionViewItems.js +9 -0
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +9 -0
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +10 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +15 -0
- package/src/Strategy/Utilities/getRuleViewItems.d.ts +6 -0
- package/src/Strategy/Utilities/getRuleViewItems.js +15 -0
- package/src/Strategy/Utilities/getScopeViewItems.d.ts +3 -0
- package/src/Strategy/Utilities/getScopeViewItems.js +20 -0
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +15 -0
- package/src/Strategy/Utilities/getStyleViewItems.d.ts +2 -0
- package/src/Strategy/Utilities/getStyleViewItems.js +15 -0
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +2 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +8 -6
- package/src/Utilities/Constants/ModuleConstants.js +9 -7
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +19 -11
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +6 -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 +2 -1
- package/src/Utilities/Helpers/PreviewHelper.js +2 -2
- package/src/Utilities/Helpers/StyleHelper.d.ts +4 -0
- package/src/Utilities/Helpers/StyleHelper.js +4 -1
- package/src/Utilities/Interface/Preview.d.ts +2 -1
- package/src/Utilities/MenuItem.d.ts +1 -1
- package/src/Utilities/MenuItem.js +2 -2
- package/src/Utilities/ObjectFactory.d.ts +7 -8
- package/src/Utilities/ObjectFactory.js +24 -31
- package/src/Utilities/Services/AlertService.d.ts +3 -3
- package/src/Utilities/Services/AlertService.js +11 -17
- package/src/Utilities/Services/EntitlementService.d.ts +1 -0
- package/src/Utilities/Services/EntitlementService.js +8 -0
- package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -7
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +1 -0
- package/src/Utilities/Services/LicenseService.js +16 -2
- package/src/Utilities/Services/ModuleService.js +6 -6
- package/src/Utilities/Services/TeamSharingService.js +3 -4
- package/src/Utilities/Services/ValidationService.js +1 -1
- package/src/View/AdaptableView.js +3 -3
- package/src/View/AdaptableViewFactory.d.ts +2 -1
- package/src/View/AdaptableViewFactory.js +2 -26
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +16 -16
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +6 -6
- package/src/View/AdaptableWizardView/index.js +1 -1
- package/src/View/Alert/AlertEmptyView.d.ts +5 -0
- package/src/View/Alert/AlertEmptyView.js +16 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +2 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +10 -5
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +8 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -7
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -6
- package/src/View/Alert/Wizard/AlertWizard.js +17 -3
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +4 -2
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +5 -4
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/Alert/Wizard/isValidAlertRules.d.ts +2 -3
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.d.ts +2 -0
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +17 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -16
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +18 -2
- package/src/View/CellSummary/CellSummaryPopup.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.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 +9 -8
- package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +7 -7
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -2
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Panels/FilterFormPanel.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +423 -1
- package/src/View/Components/Panels/PanelWithImage.js +2 -2
- package/src/View/Components/Popups/AdaptableChart.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +20 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +119 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +15 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +35 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +9 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +67 -0
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.d.ts +6 -0
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +9 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +13 -0
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +63 -0
- package/src/View/Components/Popups/{PopupContext.d.ts → AdaptablePopup/PopupContext.d.ts} +0 -0
- package/src/View/Components/Popups/{PopupContext.js → AdaptablePopup/PopupContext.js} +0 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +10 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +22 -0
- package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +7 -0
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +29 -0
- package/src/View/Components/Popups/AdaptablePopup/Utilities.d.ts +15 -0
- package/src/View/Components/Popups/AdaptablePopup/Utilities.js +28 -0
- package/src/View/Components/Popups/AdaptablePopup/index.d.ts +1 -0
- package/src/View/Components/Popups/AdaptablePopup/index.js +5 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +22 -9
- package/src/View/Components/Popups/AdaptableToaster.js +6 -6
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -4
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -3
- package/src/View/Components/ValueSelector/index.js +4 -4
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.d.ts +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +19 -5
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -5
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +18 -3
- package/src/View/Dashboard/Dashboard.d.ts +0 -1
- package/src/View/Dashboard/Dashboard.js +20 -67
- package/src/View/Dashboard/DashboardPopup.d.ts +6 -2
- package/src/View/Dashboard/DashboardPopup.js +30 -8
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +6 -6
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +8 -8
- 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/ExportViewPanel.js +6 -6
- package/src/View/Export/ReportExportDropdown.d.ts +5 -0
- package/src/View/Export/ReportExportDropdown.js +37 -0
- package/src/View/Export/Wizard/NewReportWizard.js +15 -2
- package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +2 -2
- package/src/View/FlashingCell/FlashingCellStyle.d.ts +7 -0
- package/src/View/FlashingCell/FlashingCellStyle.js +20 -0
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.d.ts → FlashingCell/Wizard/FlashingCellDurationWizardSection.d.ts} +4 -4
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.js → FlashingCell/Wizard/FlashingCellDurationWizardSection.js} +6 -6
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.d.ts → FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts} +3 -3
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.js → FlashingCell/Wizard/FlashingCellRulesWizardSection.js} +10 -10
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.d.ts → FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts} +1 -2
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.js → FlashingCell/Wizard/FlashingCellScopeWizardSection.js} +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +15 -0
- package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.js → FlashingCell/Wizard/FlashingCellStyleWizardSection.js} +17 -16
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.d.ts +6 -0
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +99 -0
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.d.ts +3 -0
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +30 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +18 -14
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +17 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -0
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +18 -5
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -2
- package/src/View/GridInfo/GridInfoPopup.d.ts +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +21 -16
- package/src/View/GridInfo/GridOptionsComponent.js +2 -2
- package/src/View/Layout/LayoutPopup.js +4 -6
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- 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/QueryViewPanel.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +14 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -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/ScheduleSettingsWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +9 -9
- package/src/View/Schedule/Wizard/ScheduleWizard.d.ts +1 -2
- package/src/View/Schedule/Wizard/ScheduleWizard.js +75 -2
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -6
- package/src/View/Shortcut/Wizard/ShortcutWizard.d.ts +1 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +31 -4
- package/src/View/SmartEdit/SmartEditPopup.js +3 -3
- package/src/View/StateManagement/StateManagementPopup.d.ts +2 -12
- package/src/View/StateManagement/StateManagementPopup.js +23 -115
- package/src/View/StateManagement/StateManagementViewPanel.d.ts +5 -0
- package/src/View/StateManagement/StateManagementViewPanel.js +22 -0
- package/src/View/StateManagement/components/ClearButton.d.ts +6 -0
- package/src/View/StateManagement/components/ClearButton.js +9 -0
- package/src/View/StateManagement/components/ExportDropdown.d.ts +8 -0
- package/src/View/StateManagement/components/ExportDropdown.js +43 -0
- package/src/View/StateManagement/components/LoadButton.d.ts +7 -0
- package/src/View/StateManagement/components/LoadButton.js +38 -0
- package/src/View/StateManagement/handleExportState.d.ts +1 -0
- package/src/View/StateManagement/handleExportState.js +22 -0
- 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/Theme/ThemeViewPanel.js +1 -1
- package/src/View/UIHelper.d.ts +3 -1
- package/src/View/UIHelper.js +35 -16
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +5 -0
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +2 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +10 -2
- package/src/agGrid/Adaptable.d.ts +24 -15
- package/src/agGrid/Adaptable.js +293 -132
- package/src/agGrid/agGridHelper.d.ts +5 -4
- package/src/agGrid/agGridHelper.js +26 -15
- package/src/agGrid/agGridMenuHelper.d.ts +15 -13
- package/src/agGrid/agGridMenuHelper.js +53 -45
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +11 -6
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -2
- package/src/agGrid/editors/AdaptableDateEditor/index.js +16 -6
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +7 -2
- package/src/components/ApplicationIcon.d.ts +5 -0
- package/src/components/ApplicationIcon.js +13 -0
- package/src/components/Dashboard/DashboardManager.js +1 -1
- package/src/components/Datepicker/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/DatepickerContext.d.ts +2 -2
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Datepicker/index.js +10 -9
- 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/Modal/index.d.ts +1 -1
- package/src/components/OverlayTrigger/index.js +3 -3
- package/src/components/OverlayTrigger/useAgGridClassName.d.ts +2 -0
- package/src/components/OverlayTrigger/{useVendorClassName.js → useAgGridClassName.js} +3 -3
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/PopupWithFooter.js +2 -7
- package/src/components/ProgressIndicator/ProgressIndicator.js +1 -1
- package/src/components/StylePreview.d.ts +8 -0
- package/src/components/StylePreview.js +11 -0
- package/src/components/Tag/Tag.d.ts +3 -0
- package/src/components/Tag/Tag.js +11 -0
- package/src/components/Tag/index.d.ts +1 -0
- package/src/components/Tag/index.js +5 -0
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/ToggleButton/index.d.ts +1 -0
- package/src/components/ToggleButton/index.js +8 -4
- package/src/components/WindowModal/WindowModal.d.ts +23 -0
- package/src/components/WindowModal/WindowModal.js +87 -0
- package/src/components/WindowModal/index.d.ts +1 -0
- package/src/components/WindowModal/index.js +4 -0
- package/src/components/icons/index.js +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/icons/upload.d.ts +3 -0
- package/src/components/icons/upload.js +8 -0
- package/src/components/utils/useDraggable.d.ts +3 -1
- package/src/components/utils/useDraggable.js +14 -2
- package/src/metamodel/adaptable.metamodel.d.ts +112 -78
- package/src/metamodel/adaptable.metamodel.js +477 -458
- package/src/types.d.ts +10 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/FlashingAlertFired.d.ts +0 -11
- package/src/PredefinedConfig/DeprecatedState.d.ts +0 -82
- package/src/PredefinedConfig/DeprecatedState.js +0 -5
- package/src/View/Alert/AlertPopup.d.ts +0 -42
- package/src/View/Alert/AlertPopup.js +0 -205
- package/src/View/Alert/FlashingAlertEntityRow.d.ts +0 -7
- package/src/View/Alert/FlashingAlertEntityRow.js +0 -22
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.d.ts +0 -10
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.d.ts +0 -6
- package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.js +0 -89
- package/src/View/CalculatedColumn/CalculatedColumnEntityRow.d.ts +0 -9
- package/src/View/CalculatedColumn/CalculatedColumnEntityRow.js +0 -28
- package/src/View/CalculatedColumn/CalculatedColumnPopup.d.ts +0 -25
- package/src/View/CalculatedColumn/CalculatedColumnPopup.js +0 -117
- package/src/View/Components/Buttons/SuspendToggleButton.js +0 -17
- package/src/View/Components/Popups/AdaptablePopup.d.ts +0 -23
- package/src/View/Components/Popups/AdaptablePopup.js +0 -59
- package/src/View/ConditionalStyle/ConditionalStyleEntityRow.d.ts +0 -5
- package/src/View/ConditionalStyle/ConditionalStyleEntityRow.js +0 -26
- package/src/View/ConditionalStyle/ConditionalStylePopup.d.ts +0 -30
- package/src/View/ConditionalStyle/ConditionalStylePopup.js +0 -144
- package/src/View/CustomSort/CustomSortEntityRow.d.ts +0 -10
- 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/OverlayTrigger/useVendorClassName.d.ts +0 -2
- package/src/components/Toastify/index.d.ts +0 -3
- package/src/components/Toastify/index.js +0 -10
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -124,6 +124,7 @@ class Adaptable {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
this._adaptableReady = false;
|
|
127
|
+
this.isDestroyed = false;
|
|
127
128
|
this.agGridModules = [];
|
|
128
129
|
this.isPluginLoaded = (pluginId) => {
|
|
129
130
|
const plugins = this.adaptableOptions.plugins || [];
|
|
@@ -137,7 +138,7 @@ class Adaptable {
|
|
|
137
138
|
};
|
|
138
139
|
this.isAgGridReady = () => {
|
|
139
140
|
var _a, _b;
|
|
140
|
-
const waitTimeout = (_b = (_a = this.adaptableOptions.containerOptions) === null || _a === void 0 ? void 0 : _a.
|
|
141
|
+
const waitTimeout = (_b = (_a = this.adaptableOptions.containerOptions) === null || _a === void 0 ? void 0 : _a.agGridContainerWaitTimeout) !== null && _b !== void 0 ? _b : 60000;
|
|
141
142
|
return waitForCondition_1.waitForCondition(() => !!this.gridOptions.api, waitTimeout);
|
|
142
143
|
};
|
|
143
144
|
// debounced methods
|
|
@@ -313,7 +314,7 @@ class Adaptable {
|
|
|
313
314
|
AdaptableHelper_1.default.checkAdaptableOptions(this.adaptableOptions);
|
|
314
315
|
this.runtimeConfig = runtimeConfig || {};
|
|
315
316
|
this.agGridModules = this.runtimeConfig.modules || [];
|
|
316
|
-
this.gridOptions = this.adaptableOptions.
|
|
317
|
+
this.gridOptions = this.adaptableOptions.agGridOptions;
|
|
317
318
|
if (this.hasAutogeneratedPrimaryKey() && !this.gridOptions.getRowNodeId) {
|
|
318
319
|
this.gridOptions.getRowNodeId = (rowData) => {
|
|
319
320
|
var _a;
|
|
@@ -357,7 +358,7 @@ class Adaptable {
|
|
|
357
358
|
this.TeamSharingService = new TeamSharingService_1.TeamSharingService(this);
|
|
358
359
|
this.MetamodelService = new MetamodelService_1.MetamodelService(this);
|
|
359
360
|
this.forPlugins((plugin) => plugin.afterInitServices(this));
|
|
360
|
-
// Set up Modules - we set up all the Modules suitable for
|
|
361
|
+
// Set up Modules - we set up all the Modules suitable for AG Grid
|
|
361
362
|
// But users can make some hidden or readonly in their entitlements
|
|
362
363
|
this.modules = this.agGridHelper.setUpModules();
|
|
363
364
|
this.forPlugins((plugin) => plugin.afterInitModules(this, this.modules));
|
|
@@ -404,6 +405,9 @@ class Adaptable {
|
|
|
404
405
|
}
|
|
405
406
|
// Load the store
|
|
406
407
|
this.adaptableStore.Load.then(() => {
|
|
408
|
+
if (this.isDestroyed) {
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
407
411
|
this.initInternalGridLogic();
|
|
408
412
|
AdaptableHelper_1.default.checkValidPrimaryKey(this);
|
|
409
413
|
}, (e) => {
|
|
@@ -478,7 +482,7 @@ class Adaptable {
|
|
|
478
482
|
this.forPlugins((plugin) => plugin.onAdaptableReady(this, this.adaptableOptions));
|
|
479
483
|
this.api.eventApi.emit('AdaptableReady', {
|
|
480
484
|
adaptableApi: this.api,
|
|
481
|
-
|
|
485
|
+
gridOptions: this.adaptableOptions.agGridOptions,
|
|
482
486
|
});
|
|
483
487
|
}
|
|
484
488
|
});
|
|
@@ -554,12 +558,12 @@ class Adaptable {
|
|
|
554
558
|
}
|
|
555
559
|
}
|
|
556
560
|
}
|
|
557
|
-
const
|
|
558
|
-
let
|
|
559
|
-
if (!
|
|
560
|
-
|
|
561
|
-
if (!
|
|
562
|
-
LoggingHelper_1.ConsoleLogError('You must provide an element id in `containerOptions.
|
|
561
|
+
const checkAgGridContainer = () => {
|
|
562
|
+
let agGridContainer = this.getAgGridContainerElement();
|
|
563
|
+
if (!agGridContainer) {
|
|
564
|
+
agGridContainer = this.initAgGridContainerFromInitializedAgGrid();
|
|
565
|
+
if (!agGridContainer) {
|
|
566
|
+
LoggingHelper_1.ConsoleLogError('You must provide an element id in `containerOptions.agGridContainer`');
|
|
563
567
|
return false;
|
|
564
568
|
}
|
|
565
569
|
}
|
|
@@ -567,14 +571,14 @@ class Adaptable {
|
|
|
567
571
|
};
|
|
568
572
|
const isGridInstantiated = this.gridOptions.api && typeof this.gridOptions.api.getValue === 'function';
|
|
569
573
|
if (isGridInstantiated) {
|
|
570
|
-
if (!
|
|
574
|
+
if (!checkAgGridContainer()) {
|
|
571
575
|
return Promise.resolve(false);
|
|
572
576
|
}
|
|
573
577
|
return Promise.resolve(true);
|
|
574
578
|
}
|
|
575
579
|
if (this.runtimeConfig.waitForAgGrid) {
|
|
576
580
|
return this.isAgGridReady().then(() => {
|
|
577
|
-
this.
|
|
581
|
+
this.initAgGridContainerFromInitializedAgGrid();
|
|
578
582
|
return Promise.resolve(true);
|
|
579
583
|
}, () => {
|
|
580
584
|
LoggingHelper_1.ConsoleLogError(`Could not find any agGrid instance rendered. Could not find reference to ag-grid api. Make sure you pass the same gridOptions object reference both to Adaptable and AgGrid`);
|
|
@@ -582,19 +586,19 @@ class Adaptable {
|
|
|
582
586
|
});
|
|
583
587
|
}
|
|
584
588
|
else {
|
|
585
|
-
if (!
|
|
589
|
+
if (!checkAgGridContainer()) {
|
|
586
590
|
return Promise.resolve(false);
|
|
587
591
|
}
|
|
588
592
|
}
|
|
589
593
|
// now create the grid itself - it is done this way as previously when we instantiated the Grid 'properly' it got created as J.Grid
|
|
590
594
|
let grid;
|
|
591
|
-
const modules = (this.adaptableOptions.
|
|
595
|
+
const modules = (this.adaptableOptions.agGridOptions || {}).modules || [];
|
|
592
596
|
this.agGridModules = [...this.agGridModules, ...modules];
|
|
593
|
-
const
|
|
597
|
+
const agGridContainer = this.getAgGridContainerElement();
|
|
594
598
|
if (this.gridOptions.modules) {
|
|
595
599
|
delete this.gridOptions.modules;
|
|
596
600
|
}
|
|
597
|
-
grid = new all_modules_1.Grid(
|
|
601
|
+
grid = new all_modules_1.Grid(agGridContainer, this.gridOptions, { modules });
|
|
598
602
|
// add our adaptable object to the grid options api object
|
|
599
603
|
// this is VERY useful for when we need to access Adaptable inside of agGrid only functions
|
|
600
604
|
if (this.gridOptions.api) {
|
|
@@ -602,8 +606,8 @@ class Adaptable {
|
|
|
602
606
|
}
|
|
603
607
|
return Promise.resolve(grid != null);
|
|
604
608
|
}
|
|
605
|
-
|
|
606
|
-
if (this.
|
|
609
|
+
initAgGridContainerFromInitializedAgGrid() {
|
|
610
|
+
if (this.getAgGridContainerElement()) {
|
|
607
611
|
return;
|
|
608
612
|
}
|
|
609
613
|
const layoutElements = this.gridOptions.api
|
|
@@ -615,21 +619,21 @@ class Adaptable {
|
|
|
615
619
|
// aggrid 25.3.0 doesn't have layoutElements anymore, so we try to retrieve this element
|
|
616
620
|
layoutElements.push(this.gridOptions.api.gridBodyCon.eGridBody);
|
|
617
621
|
}
|
|
618
|
-
let
|
|
622
|
+
let agGridContainer;
|
|
619
623
|
for (let i = 0, len = layoutElements.length; i < len; i++) {
|
|
620
624
|
const element = layoutElements[i];
|
|
621
625
|
if (element && element.matches('.ag-root-wrapper, .ag-root')) {
|
|
622
626
|
const gridContainer = element.closest('[class*="ag-theme"]');
|
|
623
627
|
if (gridContainer) {
|
|
624
|
-
|
|
628
|
+
agGridContainer = gridContainer;
|
|
625
629
|
break;
|
|
626
630
|
}
|
|
627
631
|
}
|
|
628
632
|
}
|
|
629
|
-
if (!
|
|
630
|
-
LoggingHelper_1.ConsoleLogError(`Could not find the
|
|
633
|
+
if (!agGridContainer) {
|
|
634
|
+
LoggingHelper_1.ConsoleLogError(`Could not find the AG Grid Container. This will probably break some AdapTable functionality.`);
|
|
631
635
|
}
|
|
632
|
-
return (this.adaptableOptions.containerOptions.
|
|
636
|
+
return (this.adaptableOptions.containerOptions.agGridContainer = agGridContainer);
|
|
633
637
|
}
|
|
634
638
|
filterOnEditDataChange() {
|
|
635
639
|
if (this.adaptableOptions.filterOptions.filterActionOnUserDataChange.applyFilter ==
|
|
@@ -723,7 +727,7 @@ class Adaptable {
|
|
|
723
727
|
// }
|
|
724
728
|
// }
|
|
725
729
|
const allColumns = [];
|
|
726
|
-
const
|
|
730
|
+
const agGridCols = this.gridOptions.columnApi.getAllColumns();
|
|
727
731
|
const columnGroupChildren = this.gridOptions.columnApi.getAllDisplayedColumnGroups();
|
|
728
732
|
const groupsCount = {};
|
|
729
733
|
const colsToGroups = columnGroupChildren.reduce((acc, columnGroup) => {
|
|
@@ -752,16 +756,16 @@ class Adaptable {
|
|
|
752
756
|
colsToGroups[colId].groupCount = groupsCount[colsToGroups[colId].columnGroupId];
|
|
753
757
|
});
|
|
754
758
|
// TODO sort the visible columns by layout order
|
|
755
|
-
|
|
756
|
-
const colId =
|
|
759
|
+
agGridCols.forEach((agGridColumn) => {
|
|
760
|
+
const colId = agGridColumn.getColId();
|
|
757
761
|
if (!this.api.columnApi.isRowGroupColumn(colId)) {
|
|
758
|
-
allColumns.push(this.createAdaptableColumn(
|
|
762
|
+
allColumns.push(this.createAdaptableColumn(agGridColumn, colsToGroups));
|
|
759
763
|
}
|
|
760
764
|
});
|
|
761
765
|
this.api.internalApi.setColumns(allColumns);
|
|
762
766
|
}
|
|
763
|
-
createAdaptableColumn(
|
|
764
|
-
const abColumn = this.agGridHelper.
|
|
767
|
+
createAdaptableColumn(agGridColumn, colsToGroups) {
|
|
768
|
+
const abColumn = this.agGridHelper.createAdaptableColumnFromAgGridColumn(agGridColumn, colsToGroups);
|
|
765
769
|
return abColumn;
|
|
766
770
|
}
|
|
767
771
|
safeSetColDefs(colDefs) {
|
|
@@ -834,46 +838,94 @@ class Adaptable {
|
|
|
834
838
|
}
|
|
835
839
|
return style;
|
|
836
840
|
}
|
|
837
|
-
|
|
841
|
+
getActiveAlertWithHighlightCell(col, params) {
|
|
838
842
|
const activeAlerts = this.api.internalApi
|
|
839
843
|
.getAdaptableAlerts()
|
|
840
|
-
.filter((
|
|
844
|
+
.filter((alert) => {
|
|
841
845
|
var _a;
|
|
842
|
-
return ((_a =
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
846
|
+
return ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightCell) &&
|
|
847
|
+
alert.dataChangedInfo &&
|
|
848
|
+
alert.dataChangedInfo.column &&
|
|
849
|
+
alert.dataChangedInfo.column.columnId === col.columnId &&
|
|
850
|
+
alert.dataChangedInfo.rowNode === params.node;
|
|
847
851
|
});
|
|
848
|
-
|
|
852
|
+
if (!activeAlerts.length) {
|
|
853
|
+
return null;
|
|
854
|
+
}
|
|
855
|
+
return activeAlerts === null || activeAlerts === void 0 ? void 0 : activeAlerts[0];
|
|
856
|
+
}
|
|
857
|
+
getActiveAlertWithHighlightRow(params) {
|
|
858
|
+
var _a;
|
|
859
|
+
return (_a = this.api.internalApi
|
|
860
|
+
.getAdaptableAlerts()
|
|
861
|
+
.filter((alert) => {
|
|
862
|
+
var _a;
|
|
863
|
+
return ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightRow) &&
|
|
864
|
+
alert.dataChangedInfo &&
|
|
865
|
+
alert.dataChangedInfo.column &&
|
|
866
|
+
alert.dataChangedInfo.rowNode === params.node;
|
|
867
|
+
})) === null || _a === void 0 ? void 0 : _a[0];
|
|
868
|
+
}
|
|
869
|
+
getAlertCellStyle(col, params) {
|
|
870
|
+
const alert = this.getActiveAlertWithHighlightCell(col, params);
|
|
849
871
|
if (alert) {
|
|
872
|
+
const highlightCell = alert.alertDefinition.AlertProperties.HighlightCell;
|
|
873
|
+
if (typeof highlightCell === 'object') {
|
|
874
|
+
return this.convertAdaptableStyleToCSS(highlightCell);
|
|
875
|
+
}
|
|
850
876
|
return {
|
|
851
877
|
backgroundColor: UIHelper_1.default.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
852
878
|
};
|
|
853
879
|
}
|
|
854
880
|
}
|
|
855
|
-
|
|
881
|
+
getAlertCellClass(col, params) {
|
|
882
|
+
var _a, _b;
|
|
883
|
+
const alert = this.getActiveAlertWithHighlightCell(col, params);
|
|
884
|
+
const highlightCell = (_b = (_a = alert === null || alert === void 0 ? void 0 : alert.alertDefinition) === null || _a === void 0 ? void 0 : _a.AlertProperties) === null || _b === void 0 ? void 0 : _b.HighlightCell;
|
|
885
|
+
return typeof highlightCell === 'object' && (highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName)
|
|
886
|
+
? highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName : null;
|
|
887
|
+
}
|
|
888
|
+
getAlertRowClass(params) {
|
|
889
|
+
var _a, _b;
|
|
890
|
+
const alert = this.getActiveAlertWithHighlightRow(params);
|
|
891
|
+
const highlightRow = (_b = (_a = alert === null || alert === void 0 ? void 0 : alert.alertDefinition) === null || _a === void 0 ? void 0 : _a.AlertProperties) === null || _b === void 0 ? void 0 : _b.HighlightRow;
|
|
892
|
+
return typeof highlightRow === 'object' && (highlightRow === null || highlightRow === void 0 ? void 0 : highlightRow.ClassName)
|
|
893
|
+
? highlightRow === null || highlightRow === void 0 ? void 0 : highlightRow.ClassName : null;
|
|
894
|
+
}
|
|
895
|
+
getAlertRowStyle(params) {
|
|
896
|
+
var _a, _b;
|
|
897
|
+
const alert = this.getActiveAlertWithHighlightRow(params);
|
|
898
|
+
const highlightRow = (_b = (_a = alert === null || alert === void 0 ? void 0 : alert.alertDefinition) === null || _a === void 0 ? void 0 : _a.AlertProperties) === null || _b === void 0 ? void 0 : _b.HighlightRow;
|
|
899
|
+
if (highlightRow) {
|
|
900
|
+
return typeof highlightRow === 'object'
|
|
901
|
+
? this.convertAdaptableStyleToCSS(highlightRow)
|
|
902
|
+
: {
|
|
903
|
+
backgroundColor: UIHelper_1.default.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
return null;
|
|
907
|
+
}
|
|
908
|
+
getFlashingCellRowStyle(params) {
|
|
856
909
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
857
|
-
return this.
|
|
910
|
+
return this.getFlashingCellStyleFor(primaryKeyValue);
|
|
858
911
|
}
|
|
859
|
-
|
|
912
|
+
getFlashingCellStyleFor(primaryKey, colId) {
|
|
860
913
|
var _a;
|
|
861
|
-
const
|
|
862
|
-
if (!
|
|
914
|
+
const flashingCell = this.api.internalApi.getAdaptableFlashingCellFor(primaryKey, colId);
|
|
915
|
+
if (!flashingCell) {
|
|
863
916
|
return {};
|
|
864
917
|
}
|
|
865
|
-
return this.convertAdaptableStyleToCSS((_a = (
|
|
866
|
-
?
|
|
867
|
-
:
|
|
868
|
-
?
|
|
869
|
-
:
|
|
918
|
+
return this.convertAdaptableStyleToCSS((_a = (flashingCell.direction === 'up'
|
|
919
|
+
? flashingCell.flashingCellDefinition.UpChangeStyle
|
|
920
|
+
: flashingCell.direction === 'down'
|
|
921
|
+
? flashingCell.flashingCellDefinition.DownChangeStyle
|
|
922
|
+
: flashingCell.flashingCellDefinition.NeutralChangeStyle)) !== null && _a !== void 0 ? _a : {});
|
|
870
923
|
}
|
|
871
|
-
|
|
924
|
+
getFlashingCellStyle(col, params) {
|
|
872
925
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
873
|
-
return this.
|
|
926
|
+
return this.getFlashingCellStyleFor(primaryKeyValue, col.columnId);
|
|
874
927
|
}
|
|
875
928
|
getCellHighlightStyle(col, params) {
|
|
876
|
-
var _a;
|
|
877
929
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
878
930
|
const cellHightlight = this.api.internalApi
|
|
879
931
|
.getSystemState()
|
|
@@ -882,19 +934,33 @@ class Adaptable {
|
|
|
882
934
|
cellHighlightInfo.primaryKeyValue === primaryKeyValue);
|
|
883
935
|
});
|
|
884
936
|
if (cellHightlight) {
|
|
885
|
-
|
|
886
|
-
switch (highhlightType) {
|
|
887
|
-
case 'Error':
|
|
888
|
-
return { backgroundColor: 'var(--ab-color-error)' };
|
|
889
|
-
case 'Info':
|
|
890
|
-
return { backgroundColor: 'var(--ab-color-info)' };
|
|
891
|
-
case 'Success':
|
|
892
|
-
return { backgroundColor: 'var(--ab-color-success)' };
|
|
893
|
-
case 'Warning':
|
|
894
|
-
return { backgroundColor: 'var(--ab-color-warn)' };
|
|
895
|
-
}
|
|
937
|
+
return this.convertAdaptableStyleToCSS(cellHightlight.highlightStyle);
|
|
896
938
|
}
|
|
897
939
|
}
|
|
940
|
+
getRowHighlightStyle(params) {
|
|
941
|
+
var _a;
|
|
942
|
+
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
943
|
+
const highlightRow = (_a = this.api.internalApi
|
|
944
|
+
.getSystemState()
|
|
945
|
+
.HighlightedRows) === null || _a === void 0 ? void 0 : _a.find((highlightRow) => {
|
|
946
|
+
return highlightRow.primaryKeyValue === primaryKeyValue;
|
|
947
|
+
});
|
|
948
|
+
if (highlightRow) {
|
|
949
|
+
return this.convertAdaptableStyleToCSS(highlightRow.highlightStyle);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
getRowHighlightClass(params) {
|
|
953
|
+
var _a;
|
|
954
|
+
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
955
|
+
const highlightRow = (_a = this.api.internalApi
|
|
956
|
+
.getSystemState()
|
|
957
|
+
.HighlightedRows) === null || _a === void 0 ? void 0 : _a.find((highlightRow) => {
|
|
958
|
+
return highlightRow.primaryKeyValue === primaryKeyValue;
|
|
959
|
+
});
|
|
960
|
+
return typeof (highlightRow === null || highlightRow === void 0 ? void 0 : highlightRow.highlightStyle) === 'object'
|
|
961
|
+
? highlightRow.highlightStyle.ClassName
|
|
962
|
+
: null;
|
|
963
|
+
}
|
|
898
964
|
getQuickSearchCellStyle() {
|
|
899
965
|
const quickSearchStyle = this.api.quickSearchApi.getQuickSearchStyle();
|
|
900
966
|
if (!quickSearchStyle || StringExtensions_1.StringExtensions.IsNotNullOrEmpty(quickSearchStyle.ClassName)) {
|
|
@@ -1480,13 +1546,13 @@ class Adaptable {
|
|
|
1480
1546
|
});
|
|
1481
1547
|
}
|
|
1482
1548
|
}
|
|
1483
|
-
const uniqueVals = uniqBy_1.default(returnValues, '
|
|
1549
|
+
const uniqueVals = uniqBy_1.default(returnValues, 'rawValue');
|
|
1484
1550
|
return uniqueVals.slice(0, this.adaptableOptions.filterOptions.maxFilterValuesToDisplay);
|
|
1485
1551
|
}
|
|
1486
1552
|
async getDistinctFilterValuesForColumn(column, visibleRowsOnly, filter, skipRowNode) {
|
|
1487
1553
|
var _a;
|
|
1488
1554
|
const permittedValues = (_a = this.api.userInterfaceApi.getFilterPermittedValuesForColumn(column)) !== null && _a !== void 0 ? _a : {
|
|
1489
|
-
|
|
1555
|
+
suppressFilterSearchBar: false,
|
|
1490
1556
|
values: () => undefined,
|
|
1491
1557
|
};
|
|
1492
1558
|
let preparedPermittedValues = undefined;
|
|
@@ -1502,7 +1568,7 @@ class Adaptable {
|
|
|
1502
1568
|
LoggingHelper_1.ConsoleLogError(`Failed to load filter permitted values`, column, filter, error);
|
|
1503
1569
|
}
|
|
1504
1570
|
return {
|
|
1505
|
-
suppressClientSideFilter: permittedValues.
|
|
1571
|
+
suppressClientSideFilter: permittedValues.suppressFilterSearchBar,
|
|
1506
1572
|
gridCells: this.getDistinctValuesForColumn(column, visibleRowsOnly, skipRowNode, preparedPermittedValues),
|
|
1507
1573
|
};
|
|
1508
1574
|
}
|
|
@@ -1558,8 +1624,7 @@ class Adaptable {
|
|
|
1558
1624
|
else {
|
|
1559
1625
|
permittedMap = null;
|
|
1560
1626
|
}
|
|
1561
|
-
const
|
|
1562
|
-
const eachFn = (rowNode, columnId, useRawValue) => {
|
|
1627
|
+
const eachFn = (rowNode, columnId) => {
|
|
1563
1628
|
if (rowNode && !this.isGroupRowNode(rowNode)) {
|
|
1564
1629
|
const gridCell = this.getGridCellFromRowNode(rowNode, columnId);
|
|
1565
1630
|
let allowed = !permittedMap || permittedMap.has(gridCell.displayValue);
|
|
@@ -1574,12 +1639,12 @@ class Adaptable {
|
|
|
1574
1639
|
};
|
|
1575
1640
|
if (visibleRowsOnly) {
|
|
1576
1641
|
this.gridOptions.api.forEachNodeAfterFilter((rowNode) => {
|
|
1577
|
-
eachFn(rowNode, columnId
|
|
1642
|
+
eachFn(rowNode, columnId);
|
|
1578
1643
|
});
|
|
1579
1644
|
}
|
|
1580
1645
|
else {
|
|
1581
1646
|
this.gridOptions.api.forEachNode((rowNode) => {
|
|
1582
|
-
eachFn(rowNode, columnId
|
|
1647
|
+
eachFn(rowNode, columnId);
|
|
1583
1648
|
});
|
|
1584
1649
|
}
|
|
1585
1650
|
return returnArray.slice(0, this.adaptableOptions.filterOptions.maxFilterValuesToDisplay);
|
|
@@ -1597,16 +1662,22 @@ class Adaptable {
|
|
|
1597
1662
|
return undefined;
|
|
1598
1663
|
}
|
|
1599
1664
|
}
|
|
1600
|
-
|
|
1665
|
+
isInternallyRenderedColumn(column) {
|
|
1666
|
+
if (!column || column.isGrouped) {
|
|
1667
|
+
return true;
|
|
1668
|
+
}
|
|
1601
1669
|
// we need to return false if the column has a cell rendeerer i think...
|
|
1602
1670
|
const colDef = this.gridOptions.api.getColumnDef(column.columnId);
|
|
1603
1671
|
if (colDef && colDef.cellRenderer != null) {
|
|
1604
|
-
return
|
|
1672
|
+
return false;
|
|
1605
1673
|
}
|
|
1606
1674
|
if (this.api.columnApi.isFormatNumericStyleColumn(column)) {
|
|
1607
|
-
return
|
|
1675
|
+
return false;
|
|
1608
1676
|
}
|
|
1609
|
-
|
|
1677
|
+
if (this.api.columnApi.isBooleanColumn(column)) {
|
|
1678
|
+
return false;
|
|
1679
|
+
}
|
|
1680
|
+
return true;
|
|
1610
1681
|
}
|
|
1611
1682
|
getDisplayValue(id, columnId) {
|
|
1612
1683
|
let returnValue;
|
|
@@ -1635,11 +1706,11 @@ class Adaptable {
|
|
|
1635
1706
|
if (rowNode == null) {
|
|
1636
1707
|
return undefined;
|
|
1637
1708
|
}
|
|
1709
|
+
const abColumn = this.api.columnApi.getColumnFromId(columnId);
|
|
1638
1710
|
const pkValue = this.getPrimaryKeyValueFromRowNode(rowNode);
|
|
1639
1711
|
const rawValue = this.getRawValueFromRowNode(rowNode, columnId);
|
|
1640
1712
|
const displayValue = this.getDisplayValueFromRawValue(columnId, rawValue);
|
|
1641
|
-
const normalisedvalue = this.getNormalisedValueFromRowValue(rawValue,
|
|
1642
|
-
const abColumn = this.api.columnApi.getColumnFromId(columnId);
|
|
1713
|
+
const normalisedvalue = this.getNormalisedValueFromRowValue(rawValue, displayValue, abColumn);
|
|
1643
1714
|
return {
|
|
1644
1715
|
rawValue: rawValue,
|
|
1645
1716
|
displayValue: displayValue,
|
|
@@ -1702,24 +1773,28 @@ class Adaptable {
|
|
|
1702
1773
|
};
|
|
1703
1774
|
return formatterFn(params);
|
|
1704
1775
|
}
|
|
1705
|
-
getNormalisedValueFromRowValue(rawValue,
|
|
1706
|
-
if (
|
|
1776
|
+
getNormalisedValueFromRowValue(rawValue, displayValue, column) {
|
|
1777
|
+
if (!column) {
|
|
1778
|
+
return rawValue;
|
|
1779
|
+
}
|
|
1780
|
+
const returnValue = this.isInternallyRenderedColumn(column) ? displayValue : rawValue;
|
|
1781
|
+
if (returnValue === undefined || returnValue === null) {
|
|
1707
1782
|
return rawValue;
|
|
1708
1783
|
}
|
|
1709
|
-
const dataType =
|
|
1784
|
+
const dataType = column.dataType;
|
|
1710
1785
|
if (dataType === 'String') {
|
|
1711
|
-
return typeof rawValue !== 'string' ? String(rawValue) :
|
|
1786
|
+
return typeof rawValue !== 'string' ? String(rawValue) : returnValue;
|
|
1712
1787
|
}
|
|
1713
1788
|
if (dataType === 'Number') {
|
|
1714
|
-
return typeof rawValue !== 'number' ? Number(rawValue) :
|
|
1789
|
+
return typeof rawValue !== 'number' ? Number(rawValue) : returnValue;
|
|
1715
1790
|
}
|
|
1716
1791
|
if (dataType === 'Boolean') {
|
|
1717
|
-
return typeof rawValue !== 'boolean' ? Boolean(rawValue) :
|
|
1792
|
+
return typeof rawValue !== 'boolean' ? Boolean(rawValue) : returnValue;
|
|
1718
1793
|
}
|
|
1719
1794
|
if (dataType === 'Date') {
|
|
1720
|
-
return rawValue instanceof Date ?
|
|
1795
|
+
return rawValue instanceof Date ? returnValue : new Date(rawValue);
|
|
1721
1796
|
}
|
|
1722
|
-
return
|
|
1797
|
+
return returnValue;
|
|
1723
1798
|
}
|
|
1724
1799
|
getRawValueFromRowNode(rowNode, columnId) {
|
|
1725
1800
|
return this.gridOptions.api.getValue(columnId, rowNode);
|
|
@@ -1979,6 +2054,39 @@ class Adaptable {
|
|
|
1979
2054
|
this.safeSetColDefs(allDefs);
|
|
1980
2055
|
this.setLayout();
|
|
1981
2056
|
}
|
|
2057
|
+
cleanupFloatingFilters_WORKAROUND() {
|
|
2058
|
+
// since AG Grid v26.2.0 floating filters have a memory leak due to an dangling reference to an obsolete agSetFilter instance
|
|
2059
|
+
var _a, _b;
|
|
2060
|
+
// 1a. The initial floating filter component is defaulted to the 'agSetColumnFloatingFilter'
|
|
2061
|
+
// (see https://github.com/ag-grid/ag-grid/blob/v26.2.0/community-modules/core/src/ts/headerRendering/cells/floatingFilter/headerFilterCellCtrl.ts#L210) and a corresponding bean component is instantiated.
|
|
2062
|
+
// 1b. A listener to the 'filterChanged' event is created, referencing the newly created bean instance: https://github.com/ag-grid/ag-grid/blob/v26.2.0/community-modules/core/src/ts/headerRendering/cells/floatingFilter/headerFilterCellCtrl.ts#L298
|
|
2063
|
+
// 2a. The floating filter is set to a custom component (via https://www.ag-grid.com/javascript-data-grid/column-properties/#reference-filtering-floatingFilterComponent), triggering the creation of a new floating filter bean component
|
|
2064
|
+
// 2b. Another listener to the 'filterChanged' event is created, referencing the newly created (in step 2a) bean instance https://github.com/ag-grid/ag-grid/blob/v26.2.0/community-modules/core/src/ts/headerRendering/cells/floatingFilter/headerFilterCellCtrl.ts#L298
|
|
2065
|
+
// BUT the listener created in step 1b is NOT destroyed, leading to a state where the 'filterChanged' event has listeners stemming from both the current floating filter bean but also from the initial(now obsolete) bean
|
|
2066
|
+
//
|
|
2067
|
+
// As a consequence, any 'filterChanged' event will be processed by both listeners (1b, 2b) and will more often than not lead to a runtime exception due to the dangling references from the obsolete listener
|
|
2068
|
+
// AG Grid team tracks this issue in AG-6179
|
|
2069
|
+
// until a fix arrives, a workaround is to hide all the visible columns (thus destroying all the HeaderFilterCellCtrl instances)
|
|
2070
|
+
if (!((_b = (_a = this.adaptableOptions) === null || _a === void 0 ? void 0 : _a.filterOptions) === null || _b === void 0 ? void 0 : _b.useAdaptableQuickFilter)) {
|
|
2071
|
+
// no need to do anything if we don't use adaptable quick filter
|
|
2072
|
+
return;
|
|
2073
|
+
}
|
|
2074
|
+
if (this.gridOptions.columnApi.isPivotMode()) {
|
|
2075
|
+
// floating filters are NOT available in pivot mode
|
|
2076
|
+
return;
|
|
2077
|
+
}
|
|
2078
|
+
// floating filter instances (HeaderFilterCellCtrl) are created only for rendered columns (in viewport)
|
|
2079
|
+
// so we have to handle only the displayed columns
|
|
2080
|
+
const allDisplayedCols = this.gridOptions.columnApi.getAllDisplayedColumns();
|
|
2081
|
+
const colsWithFloatingFilter = allDisplayedCols.filter((col) => {
|
|
2082
|
+
const colDef = col.getColDef();
|
|
2083
|
+
return (colDef.floatingFilter ||
|
|
2084
|
+
colDef.floatingFilterComponent ||
|
|
2085
|
+
this.api.columnApi.usesAdaptableQuickFilter(col.getColId()));
|
|
2086
|
+
});
|
|
2087
|
+
colsWithFloatingFilter.forEach((col) => this.gridOptions.columnApi.setColumnsVisible(colsWithFloatingFilter, false));
|
|
2088
|
+
// !! it is important to NOT set the columns visible again as this is already taken care of in the next performed method (this.updateColDefsForSpecialColumns())
|
|
2089
|
+
}
|
|
1982
2090
|
getColDefsForCalculatedColumns() {
|
|
1983
2091
|
const specialColumnsAreFilterable = this.adaptableOptions.filterOptions
|
|
1984
2092
|
.enableFilterOnSpecialColumns
|
|
@@ -2106,6 +2214,7 @@ class Adaptable {
|
|
|
2106
2214
|
(_j = this.TeamSharingService) === null || _j === void 0 ? void 0 : _j.destroy();
|
|
2107
2215
|
(_k = this.MetamodelService) === null || _k === void 0 ? void 0 : _k.destroy();
|
|
2108
2216
|
(_l = this.LicenseService) === null || _l === void 0 ? void 0 : _l.destroy();
|
|
2217
|
+
this.isDestroyed = true;
|
|
2109
2218
|
}
|
|
2110
2219
|
// really really need to do this properly but as a temp fix lets create a default style for when no data
|
|
2111
2220
|
getDefaultIPPStyle() {
|
|
@@ -2174,12 +2283,12 @@ class Adaptable {
|
|
|
2174
2283
|
}
|
|
2175
2284
|
return this.abContainerElement;
|
|
2176
2285
|
}
|
|
2177
|
-
|
|
2286
|
+
getAgGridContainerElement() {
|
|
2178
2287
|
if (!this.gridContainerElement) {
|
|
2179
2288
|
this.gridContainerElement =
|
|
2180
|
-
typeof this.adaptableOptions.containerOptions.
|
|
2181
|
-
? document.getElementById(this.adaptableOptions.containerOptions.
|
|
2182
|
-
: this.adaptableOptions.containerOptions.
|
|
2289
|
+
typeof this.adaptableOptions.containerOptions.agGridContainer === 'string'
|
|
2290
|
+
? document.getElementById(this.adaptableOptions.containerOptions.agGridContainer)
|
|
2291
|
+
: this.adaptableOptions.containerOptions.agGridContainer;
|
|
2183
2292
|
}
|
|
2184
2293
|
return this.gridContainerElement;
|
|
2185
2294
|
}
|
|
@@ -2197,7 +2306,7 @@ class Adaptable {
|
|
|
2197
2306
|
}
|
|
2198
2307
|
return;
|
|
2199
2308
|
}
|
|
2200
|
-
const gridContainerElement = this.
|
|
2309
|
+
const gridContainerElement = this.getAgGridContainerElement();
|
|
2201
2310
|
if (gridContainerElement) {
|
|
2202
2311
|
gridContainerElement.addEventListener('keydown', (event) => this._emit('KeyDown', event));
|
|
2203
2312
|
}
|
|
@@ -2247,7 +2356,7 @@ class Adaptable {
|
|
|
2247
2356
|
const cellEditableFn = this.adaptableOptions.editOptions.isCellEditable;
|
|
2248
2357
|
if (cellEditableFn) {
|
|
2249
2358
|
let gridCell = this.getGridCellFromRowNode(params.node, params.column.getColId());
|
|
2250
|
-
let isEditable = cellEditableFn(gridCell
|
|
2359
|
+
let isEditable = cellEditableFn(gridCell);
|
|
2251
2360
|
if (!isEditable) {
|
|
2252
2361
|
this.gridOptions.api.stopEditing();
|
|
2253
2362
|
}
|
|
@@ -2508,7 +2617,7 @@ class Adaptable {
|
|
|
2508
2617
|
}
|
|
2509
2618
|
return originaldoesExternalFilterPass ? originaldoesExternalFilterPass(node) : true;
|
|
2510
2619
|
};
|
|
2511
|
-
// Build the COLUMN
|
|
2620
|
+
// Build the COLUMN MENU. Note that we do this EACH time the menu is opened (as items can change)
|
|
2512
2621
|
const originalgetMainMenuItems = this.gridOptions.getMainMenuItems;
|
|
2513
2622
|
this.gridOptions.getMainMenuItems = (params) => {
|
|
2514
2623
|
// couldnt find a way to listen for menu close. There is a Menu Item Select, but you can also close menu from filter and clicking outside menu....
|
|
@@ -2529,6 +2638,9 @@ class Adaptable {
|
|
|
2529
2638
|
// add any special renderers, display formats, custom sorts and apply the theme
|
|
2530
2639
|
// then do any final rendering required, filter the grid and - to be on the safe set - redraw
|
|
2531
2640
|
try {
|
|
2641
|
+
// it is very important that this method is executed as soon as possible and BEFORE the updateColDefsForSpecialColumns() method
|
|
2642
|
+
// this will ensure that the columns are recreated as expected (see method implementation&comments for more details)
|
|
2643
|
+
this.cleanupFloatingFilters_WORKAROUND();
|
|
2532
2644
|
this.updateColDefsForSpecialColumns();
|
|
2533
2645
|
this.applyCurrentTheme();
|
|
2534
2646
|
this.applyFinalRendering();
|
|
@@ -2653,7 +2765,7 @@ class Adaptable {
|
|
|
2653
2765
|
? this.getFormatColumnCellStyle(formatColumn, params)
|
|
2654
2766
|
: undefined;
|
|
2655
2767
|
const isQuickSearchActive = hasQuickSearchStyle && this.isQuickSearchActive(abColumn, params);
|
|
2656
|
-
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, defaultCellStyle), this.getReadOnlyCellStyle(abColumn, params)), this.getEditableCellStyle(abColumn, params)), (typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle)), formatColumnCellStyle), this.getConditionalStyleCellStyle(conditionalStyles, abColumn, params)), (isQuickSearchActive ? quickSearchStyle : undefined)), this.getAlertCellStyle(abColumn, params)), this.
|
|
2768
|
+
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, defaultCellStyle), this.getReadOnlyCellStyle(abColumn, params)), this.getEditableCellStyle(abColumn, params)), (typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle)), formatColumnCellStyle), this.getConditionalStyleCellStyle(conditionalStyles, abColumn, params)), (isQuickSearchActive ? quickSearchStyle : undefined)), this.getAlertCellStyle(abColumn, params)), this.getFlashingCellStyle(abColumn, params)), this.getCellHighlightStyle(abColumn, params));
|
|
2657
2769
|
return result;
|
|
2658
2770
|
};
|
|
2659
2771
|
return cellStyle;
|
|
@@ -2670,12 +2782,15 @@ class Adaptable {
|
|
|
2670
2782
|
const hasConditionalStylesWithClassNames = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(conditionalStyles);
|
|
2671
2783
|
const quickSearchStyleClassName = this.api.quickSearchApi.getQuickSearchStyle().ClassName;
|
|
2672
2784
|
const hasQuickSearchStyleClassName = StringExtensions_1.StringExtensions.IsNotNullOrEmpty(quickSearchStyleClassName);
|
|
2785
|
+
const classNameMap = {};
|
|
2673
2786
|
const cellClass = (params) => {
|
|
2787
|
+
var _a;
|
|
2674
2788
|
const isQuickSearchActive = hasQuickSearchStyleClassName && this.isQuickSearchActive(abColumn, params);
|
|
2675
2789
|
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
2676
2790
|
const editableClassName = this.getEditableCellClass(abColumn, params);
|
|
2677
2791
|
const readonlyClassName = this.getReadonlyCellClass(abColumn, params);
|
|
2678
|
-
|
|
2792
|
+
const highlightAlertClassName = this.getAlertCellClass(abColumn, params);
|
|
2793
|
+
const returnValue = [
|
|
2679
2794
|
this.getExcelClassNameForCell(colId, primaryKeyValue),
|
|
2680
2795
|
typeof userCellClass === 'function' ? userCellClass(params) : userCellClass,
|
|
2681
2796
|
formatColumnStyleClassName,
|
|
@@ -2685,9 +2800,28 @@ class Adaptable {
|
|
|
2685
2800
|
isQuickSearchActive ? quickSearchStyleClassName : null,
|
|
2686
2801
|
editableClassName,
|
|
2687
2802
|
readonlyClassName,
|
|
2803
|
+
highlightAlertClassName,
|
|
2688
2804
|
]
|
|
2689
2805
|
.filter((x) => !!x)
|
|
2690
2806
|
.join(' ');
|
|
2807
|
+
const primaryKey = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
2808
|
+
const key = `${primaryKey}:${params.colDef.colId}`;
|
|
2809
|
+
if (classNameMap[key] &&
|
|
2810
|
+
classNameMap[key] !== returnValue &&
|
|
2811
|
+
// only hard-reset when removing class-names
|
|
2812
|
+
// ag-grid does not remove class-names, it accumulates them
|
|
2813
|
+
// https://www.ag-grid.com/javascript-data-grid/cell-styles/#refresh-of-styles
|
|
2814
|
+
returnValue.length < ((_a = classNameMap[key]) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
2815
|
+
setTimeout(() => {
|
|
2816
|
+
/**
|
|
2817
|
+
* This is called inside a getter function, inside ag-grid.
|
|
2818
|
+
* To allow ag-grid run it's logic, the redraw is done inside an timeout
|
|
2819
|
+
* to make sure it is not done in an inappropriate time.
|
|
2820
|
+
*/
|
|
2821
|
+
params.api.redrawRows({ rowNodes: [params.node] });
|
|
2822
|
+
}, 0);
|
|
2823
|
+
}
|
|
2824
|
+
classNameMap[key] = returnValue;
|
|
2691
2825
|
return StringExtensions_1.StringExtensions.IsNotNullOrEmpty(returnValue) ? returnValue : undefined;
|
|
2692
2826
|
};
|
|
2693
2827
|
return cellClass;
|
|
@@ -2896,7 +3030,7 @@ class Adaptable {
|
|
|
2896
3030
|
var _a;
|
|
2897
3031
|
if (cellEditableFn) {
|
|
2898
3032
|
let gridCell = this.getGridCellFromRowNode(params.node, params.column.getColId());
|
|
2899
|
-
let isEditable = cellEditableFn(gridCell
|
|
3033
|
+
let isEditable = cellEditableFn(gridCell);
|
|
2900
3034
|
if (!isEditable) {
|
|
2901
3035
|
return false;
|
|
2902
3036
|
}
|
|
@@ -3231,11 +3365,10 @@ class Adaptable {
|
|
|
3231
3365
|
this.gridOptions.api.onGroupExpandedOrCollapsed();
|
|
3232
3366
|
}
|
|
3233
3367
|
}
|
|
3234
|
-
|
|
3235
|
-
|
|
3368
|
+
getAgGridColumnForAdaptableColumn(abColumn) {
|
|
3369
|
+
return this.gridOptions.columnApi
|
|
3236
3370
|
.getAllColumns()
|
|
3237
3371
|
.find((c) => c.getColId() === abColumn.columnId);
|
|
3238
|
-
return agGridColumn.getColDef().field || '';
|
|
3239
3372
|
}
|
|
3240
3373
|
setRowGroupColumns(columnIds) {
|
|
3241
3374
|
this.gridOptions.columnApi.setRowGroupColumns(columnIds);
|
|
@@ -3299,15 +3432,15 @@ class Adaptable {
|
|
|
3299
3432
|
this.gridOptions.api.clearRangeSelection();
|
|
3300
3433
|
}
|
|
3301
3434
|
hideColumn(columnId) {
|
|
3302
|
-
let
|
|
3303
|
-
if (
|
|
3435
|
+
let agGridColumn = this.gridOptions.columnApi.getColumn(columnId);
|
|
3436
|
+
if (agGridColumn) {
|
|
3304
3437
|
this.gridOptions.columnApi.setColumnVisible(columnId, false);
|
|
3305
3438
|
this.updateColumnsIntoStore();
|
|
3306
3439
|
}
|
|
3307
3440
|
}
|
|
3308
3441
|
showColumn(columnId) {
|
|
3309
|
-
let
|
|
3310
|
-
if (
|
|
3442
|
+
let agGridColumn = this.gridOptions.columnApi.getColumn(columnId);
|
|
3443
|
+
if (agGridColumn) {
|
|
3311
3444
|
this.gridOptions.columnApi.setColumnVisible(columnId, true);
|
|
3312
3445
|
this.updateColumnsIntoStore();
|
|
3313
3446
|
}
|
|
@@ -3393,10 +3526,18 @@ class Adaptable {
|
|
|
3393
3526
|
}
|
|
3394
3527
|
dataUpdateConfig = dataUpdateConfig || {};
|
|
3395
3528
|
if (dataUpdateConfig.runAsync) {
|
|
3396
|
-
|
|
3529
|
+
return new Promise((resolve) => {
|
|
3530
|
+
this.gridOptions.api.applyTransactionAsync({ update: dataRows }, (transaction) => {
|
|
3531
|
+
if (typeof dataUpdateConfig.callback === 'function') {
|
|
3532
|
+
dataUpdateConfig.callback(transaction);
|
|
3533
|
+
}
|
|
3534
|
+
resolve(transaction === null || transaction === void 0 ? void 0 : transaction.update);
|
|
3535
|
+
});
|
|
3536
|
+
});
|
|
3397
3537
|
}
|
|
3398
3538
|
else {
|
|
3399
|
-
this.gridOptions.api.applyTransaction({ update: dataRows });
|
|
3539
|
+
const transaction = this.gridOptions.api.applyTransaction({ update: dataRows });
|
|
3540
|
+
return Promise.resolve(transaction === null || transaction === void 0 ? void 0 : transaction.update);
|
|
3400
3541
|
}
|
|
3401
3542
|
}
|
|
3402
3543
|
addRows(dataRows, dataUpdateConfig) {
|
|
@@ -3409,19 +3550,35 @@ class Adaptable {
|
|
|
3409
3550
|
newData.addIndex = dataUpdateConfig.addIndex;
|
|
3410
3551
|
}
|
|
3411
3552
|
if (dataUpdateConfig.runAsync) {
|
|
3412
|
-
|
|
3553
|
+
return new Promise((resolve) => {
|
|
3554
|
+
this.gridOptions.api.applyTransactionAsync(newData, (transaction) => {
|
|
3555
|
+
if (typeof dataUpdateConfig.callback === 'function') {
|
|
3556
|
+
dataUpdateConfig.callback(transaction);
|
|
3557
|
+
}
|
|
3558
|
+
resolve(transaction === null || transaction === void 0 ? void 0 : transaction.add);
|
|
3559
|
+
});
|
|
3560
|
+
});
|
|
3413
3561
|
}
|
|
3414
3562
|
else {
|
|
3415
|
-
this.gridOptions.api.applyTransaction(newData);
|
|
3563
|
+
const transaction = this.gridOptions.api.applyTransaction(newData);
|
|
3564
|
+
return Promise.resolve(transaction === null || transaction === void 0 ? void 0 : transaction.add);
|
|
3416
3565
|
}
|
|
3417
3566
|
}
|
|
3418
3567
|
deleteRows(dataRows, dataUpdateConfig) {
|
|
3419
3568
|
dataUpdateConfig = dataUpdateConfig || {};
|
|
3420
3569
|
if (dataUpdateConfig.runAsync) {
|
|
3421
|
-
|
|
3570
|
+
return new Promise((resolve) => {
|
|
3571
|
+
this.gridOptions.api.applyTransactionAsync({ remove: dataRows }, (transaction) => {
|
|
3572
|
+
if (typeof dataUpdateConfig.callback === 'function') {
|
|
3573
|
+
dataUpdateConfig.callback(transaction);
|
|
3574
|
+
}
|
|
3575
|
+
resolve(transaction === null || transaction === void 0 ? void 0 : transaction.remove);
|
|
3576
|
+
});
|
|
3577
|
+
});
|
|
3422
3578
|
}
|
|
3423
3579
|
else {
|
|
3424
|
-
this.gridOptions.api.applyTransaction({ remove: dataRows });
|
|
3580
|
+
const transaction = this.gridOptions.api.applyTransaction({ remove: dataRows });
|
|
3581
|
+
return Promise.resolve(transaction.remove);
|
|
3425
3582
|
}
|
|
3426
3583
|
}
|
|
3427
3584
|
getFirstGroupedColumn() {
|
|
@@ -3522,7 +3679,7 @@ class Adaptable {
|
|
|
3522
3679
|
hideQuickFilter() {
|
|
3523
3680
|
this.gridOptions.api.setFloatingFiltersHeight(0);
|
|
3524
3681
|
}
|
|
3525
|
-
|
|
3682
|
+
getAgGridColumnType(columnId) {
|
|
3526
3683
|
var _a;
|
|
3527
3684
|
const { type } = (_a = this.gridOptions.api.getColumnDef(columnId)) !== null && _a !== void 0 ? _a : {};
|
|
3528
3685
|
return type || '';
|
|
@@ -3539,8 +3696,8 @@ class Adaptable {
|
|
|
3539
3696
|
: this.runAdaptableComparerFunction(customSort.ColumnId, customSort.SortedValues);
|
|
3540
3697
|
return comparerFunction;
|
|
3541
3698
|
}
|
|
3542
|
-
|
|
3543
|
-
const container = this.
|
|
3699
|
+
getAgGridLightThemeName() {
|
|
3700
|
+
const container = this.getAgGridContainerElement();
|
|
3544
3701
|
if (container && container.classList) {
|
|
3545
3702
|
// we detect the ag theme class
|
|
3546
3703
|
const classList = container.classList;
|
|
@@ -3552,10 +3709,10 @@ class Adaptable {
|
|
|
3552
3709
|
}
|
|
3553
3710
|
}
|
|
3554
3711
|
}
|
|
3555
|
-
return this.agGridHelper.
|
|
3712
|
+
return this.agGridHelper.getAgGridLightThemeName();
|
|
3556
3713
|
}
|
|
3557
|
-
|
|
3558
|
-
const container = this.
|
|
3714
|
+
getAgGridCurrentThemeName() {
|
|
3715
|
+
const container = this.getAgGridContainerElement();
|
|
3559
3716
|
if (container && container.classList) {
|
|
3560
3717
|
// we detect the ag theme class
|
|
3561
3718
|
const classList = container.classList;
|
|
@@ -3566,7 +3723,7 @@ class Adaptable {
|
|
|
3566
3723
|
}
|
|
3567
3724
|
}
|
|
3568
3725
|
}
|
|
3569
|
-
return this.
|
|
3726
|
+
return this.getAgGridLightThemeName();
|
|
3570
3727
|
}
|
|
3571
3728
|
applyAdaptableTheme(theme) {
|
|
3572
3729
|
const themeName = typeof theme === 'string' ? theme : theme.Name;
|
|
@@ -3622,39 +3779,39 @@ class Adaptable {
|
|
|
3622
3779
|
});
|
|
3623
3780
|
const systemThemes = this.api.themeApi.getAllSystemTheme();
|
|
3624
3781
|
const isSystemTheme = !!systemThemes.filter((t) => t.Name === themeName)[0];
|
|
3625
|
-
const container = this.
|
|
3626
|
-
const
|
|
3627
|
-
const
|
|
3782
|
+
const container = this.getAgGridContainerElement();
|
|
3783
|
+
const getAgGridLightThemeName = () => this.getAgGridLightThemeName();
|
|
3784
|
+
const getAgGridDarkThemeName = () => getAgGridLightThemeName() + '-dark';
|
|
3628
3785
|
if (newTheme && isSystemTheme) {
|
|
3629
3786
|
if (themeName === GeneralConstants_1.LIGHT_THEME) {
|
|
3630
|
-
newTheme.
|
|
3787
|
+
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridLightThemeName();
|
|
3631
3788
|
}
|
|
3632
3789
|
if (themeName === GeneralConstants_1.DARK_THEME) {
|
|
3633
|
-
newTheme.
|
|
3790
|
+
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridDarkThemeName();
|
|
3634
3791
|
}
|
|
3635
3792
|
}
|
|
3636
|
-
if (!newTheme.
|
|
3637
|
-
// default
|
|
3638
|
-
newTheme.
|
|
3793
|
+
if (!newTheme.AgGridClassName) {
|
|
3794
|
+
// default AG Grid to its light theme
|
|
3795
|
+
newTheme.AgGridClassName = getAgGridLightThemeName();
|
|
3639
3796
|
}
|
|
3640
3797
|
if (container != null) {
|
|
3641
3798
|
if (themesToRemove.length) {
|
|
3642
3799
|
themesToRemove.forEach((theme) => {
|
|
3643
|
-
if (theme.
|
|
3644
|
-
container.classList.remove(theme.
|
|
3800
|
+
if (theme.AgGridClassName) {
|
|
3801
|
+
container.classList.remove(theme.AgGridClassName);
|
|
3645
3802
|
}
|
|
3646
3803
|
});
|
|
3647
3804
|
}
|
|
3648
|
-
// also remove all
|
|
3649
|
-
const
|
|
3805
|
+
// also remove all AG Grid theme class names
|
|
3806
|
+
const agGridClassNamesToRemove = [];
|
|
3650
3807
|
container.classList.forEach((x) => {
|
|
3651
3808
|
if (x && x.indexOf('ag-theme-') === 0) {
|
|
3652
|
-
|
|
3809
|
+
agGridClassNamesToRemove.push(x);
|
|
3653
3810
|
}
|
|
3654
3811
|
});
|
|
3655
|
-
|
|
3656
|
-
if (newTheme && newTheme.
|
|
3657
|
-
container.classList.add(newTheme.
|
|
3812
|
+
agGridClassNamesToRemove.forEach((x) => container.classList.remove(x));
|
|
3813
|
+
if (newTheme && newTheme.AgGridClassName) {
|
|
3814
|
+
container.classList.add(newTheme.AgGridClassName);
|
|
3658
3815
|
}
|
|
3659
3816
|
container.classList.add('ab-Grid');
|
|
3660
3817
|
if (this.adaptableOptions.filterOptions.indicateFilteredColumns) {
|
|
@@ -3679,15 +3836,19 @@ import "@adaptabletools/adaptable/themes/${themeName}.css"`);
|
|
|
3679
3836
|
// Set any Row Styles (i.e. items without a classname)
|
|
3680
3837
|
this.setGridOptionsProperty('getRowStyle', (userGetRowStyle) => {
|
|
3681
3838
|
return (params) => {
|
|
3682
|
-
const result = Object.assign(Object.assign({}, userGetRowStyle === null || userGetRowStyle === void 0 ? void 0 : userGetRowStyle(params)), this.getConditionalStyleRowStyle(conditionalStyles, params));
|
|
3839
|
+
const result = Object.assign(Object.assign(Object.assign(Object.assign({}, userGetRowStyle === null || userGetRowStyle === void 0 ? void 0 : userGetRowStyle(params)), this.getRowHighlightStyle(params)), this.getAlertRowStyle(params)), this.getConditionalStyleRowStyle(conditionalStyles, params));
|
|
3683
3840
|
return result;
|
|
3684
3841
|
};
|
|
3685
3842
|
});
|
|
3686
3843
|
// Now set up Row Classes
|
|
3687
3844
|
this.setGridOptionsProperty('getRowClass', (userGetRowClass) => {
|
|
3688
3845
|
return (params) => {
|
|
3689
|
-
|
|
3846
|
+
const alertHighlightClassName = this.getAlertRowClass(params);
|
|
3847
|
+
const highlightClassName = this.getRowHighlightClass(params);
|
|
3848
|
+
const returnValue = [
|
|
3690
3849
|
typeof userGetRowClass === 'function' ? userGetRowClass(params) : userGetRowClass,
|
|
3850
|
+
highlightClassName,
|
|
3851
|
+
alertHighlightClassName,
|
|
3691
3852
|
this.getConditionalStyleRowClass(conditionalStyles.filter((cs) => StringExtensions_1.StringExtensions.IsNotNullOrEmpty(cs.Style.ClassName)), params),
|
|
3692
3853
|
]
|
|
3693
3854
|
.filter((x) => !!x)
|
|
@@ -3999,7 +4160,7 @@ class AdaptableNoCodeWizard {
|
|
|
3999
4160
|
*/
|
|
4000
4161
|
constructor(adaptableOptions, extraOptions = {}) {
|
|
4001
4162
|
const defaultInit = async ({ gridOptions, adaptableOptions }) => {
|
|
4002
|
-
adaptableOptions.
|
|
4163
|
+
adaptableOptions.agGridOptions = gridOptions;
|
|
4003
4164
|
return await Adaptable.init(adaptableOptions);
|
|
4004
4165
|
};
|
|
4005
4166
|
this.adaptableOptions = adaptableOptions;
|
|
@@ -4033,7 +4194,7 @@ class AdaptableNoCodeWizard {
|
|
|
4033
4194
|
ReactDOM.unmountComponentAtNode(container);
|
|
4034
4195
|
this.init({
|
|
4035
4196
|
adaptableOptions,
|
|
4036
|
-
gridOptions: adaptableOptions.
|
|
4197
|
+
gridOptions: adaptableOptions.agGridOptions,
|
|
4037
4198
|
});
|
|
4038
4199
|
} })), container);
|
|
4039
4200
|
}
|