@adaptabletools/adaptable 20.0.0-canary.9 → 20.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/base.css +1327 -919
- package/base.css.map +1 -1
- package/index.css +464 -919
- package/index.css.map +1 -1
- package/package.json +4 -4
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +8 -8
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -3
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +4 -4
- package/src/AdaptableOptions/AlertOptions.d.ts +3 -3
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +1 -1
- package/src/AdaptableOptions/ChartingOptions.d.ts +1 -1
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +4 -1
- package/src/AdaptableOptions/ContextMenuOptions.d.ts +10 -1
- package/src/AdaptableOptions/CustomSortOptions.d.ts +1 -1
- package/src/AdaptableOptions/DashboardOptions.d.ts +4 -4
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
- package/src/AdaptableOptions/DataSetOptions.d.ts +1 -1
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +7 -7
- package/src/AdaptableOptions/EditOptions.d.ts +3 -3
- package/src/AdaptableOptions/EntitlementOptions.d.ts +2 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +34 -52
- package/src/AdaptableOptions/ExpressionOptions.d.ts +4 -4
- package/src/AdaptableOptions/Fdc3Options.d.ts +3 -3
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -3
- package/src/AdaptableOptions/FlashingCellOptions.d.ts +1 -1
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/LayoutOptions.d.ts +11 -11
- package/src/AdaptableOptions/OpenFinPluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +2 -2
- package/src/AdaptableOptions/RowFormOptions.d.ts +7 -1
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +1 -1
- package/src/AdaptableOptions/StateOptions.d.ts +2 -2
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +3 -3
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +3 -3
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -5
- package/src/{PredefinedConfig → AdaptableState}/AdaptableState.d.ts +7 -7
- package/src/{PredefinedConfig → AdaptableState}/AlertState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/ApplicationState.d.ts +3 -3
- package/src/{PredefinedConfig/ConfigState.d.ts → AdaptableState/BaseState.d.ts} +2 -2
- package/src/{PredefinedConfig → AdaptableState}/CalculatedColumnState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/ChartingState.d.ts +2 -2
- package/src/{PredefinedConfig → AdaptableState}/CommentState.d.ts +2 -2
- package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableColumn.d.ts +3 -0
- package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableObject.d.ts +8 -2
- package/src/{PredefinedConfig → AdaptableState}/Common/AdaptablePredicate.d.ts +1 -1
- package/src/{PredefinedConfig → AdaptableState}/Common/AdaptablePredicate.js +15 -15
- package/src/{PredefinedConfig → AdaptableState}/Common/AggregationColumns.d.ts +6 -0
- package/src/{PredefinedConfig → AdaptableState}/Common/ColumnFilter.d.ts +6 -2
- package/src/{PredefinedConfig → AdaptableState}/Common/Menu.d.ts +6 -0
- package/src/{PredefinedConfig → AdaptableState}/Common/Types.d.ts +1 -1
- package/src/{PredefinedConfig → AdaptableState}/CustomSortState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/DashboardState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/ExportState.d.ts +12 -3
- package/src/{PredefinedConfig → AdaptableState}/FlashingCellState.d.ts +14 -11
- package/src/{PredefinedConfig → AdaptableState}/FormatColumnState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/FreeTextColumnState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/IPushPullState.d.ts +2 -2
- package/src/AdaptableState/InitialState.d.ts +200 -0
- package/src/{PredefinedConfig → AdaptableState}/InternalState.d.ts +1 -1
- package/src/{PredefinedConfig → AdaptableState}/LayoutState.d.ts +6 -6
- package/src/{PredefinedConfig → AdaptableState}/NamedQueryState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/NoteState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/OpenFinState.d.ts +2 -2
- package/src/{PredefinedConfig → AdaptableState}/PlusMinusState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/PopupState.d.ts +2 -2
- package/src/{PredefinedConfig → AdaptableState}/QuickSearchState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/ScheduleState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/ShortcutState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/StatusBarState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/StyledColumnState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/TeamSharingState.d.ts +3 -3
- package/src/{PredefinedConfig → AdaptableState}/ThemeState.d.ts +16 -4
- package/src/{PredefinedConfig → AdaptableState}/ToolPanelState.d.ts +3 -3
- package/src/Api/AdaptableApi.d.ts +2 -2
- package/src/Api/AlertApi.d.ts +3 -3
- package/src/Api/ApplicationApi.d.ts +1 -1
- package/src/Api/CalculatedColumnApi.d.ts +1 -1
- package/src/Api/CellSummaryApi.d.ts +1 -1
- package/src/Api/ChartingApi.d.ts +1 -1
- package/src/Api/ColumnFilterApi.d.ts +6 -1
- package/src/Api/ColumnScopeApi.d.ts +3 -3
- package/src/Api/CommentApi.d.ts +1 -1
- package/src/Api/CustomSortApi.d.ts +1 -1
- package/src/Api/DashboardApi.d.ts +3 -3
- package/src/Api/DataChangeHistoryApi.d.ts +1 -1
- package/src/Api/Events/AdaptableStateChanged.d.ts +1 -1
- package/src/Api/Events/AdaptableStateReloaded.d.ts +1 -1
- package/src/Api/Events/AlertFired.d.ts +1 -1
- package/src/Api/Events/CalculatedColumnChanged.d.ts +1 -1
- package/src/Api/Events/CellChanged.d.ts +1 -1
- package/src/Api/Events/CellSelectionChanged.d.ts +1 -1
- package/src/Api/Events/DashboardChanged.d.ts +1 -1
- package/src/Api/Events/FlashingCellDisplayed.d.ts +1 -1
- package/src/Api/Events/GridSorted.d.ts +1 -1
- package/src/Api/Events/LayoutChanged.d.ts +1 -1
- package/src/Api/Events/LiveDataChanged.d.ts +1 -1
- package/src/Api/Events/RowChanged.d.ts +2 -2
- package/src/Api/Events/RowFormSubmitted.d.ts +1 -1
- package/src/Api/Events/RowSelectionChanged.d.ts +1 -1
- package/src/Api/Events/ScheduleTriggered.d.ts +1 -1
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
- package/src/Api/Events/TeamSharingEntityChanged.d.ts +1 -1
- package/src/Api/Events/ThemeChanged.d.ts +1 -1
- package/src/Api/ExportApi.d.ts +5 -14
- package/src/Api/ExpressionApi.d.ts +3 -3
- package/src/Api/FlashingCellApi.d.ts +5 -5
- package/src/Api/FormatColumnApi.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +1 -1
- package/src/Api/GridApi.d.ts +13 -13
- package/src/Api/IPushPullApi.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
- package/src/Api/Implementation/AlertApiImpl.d.ts +4 -4
- package/src/Api/Implementation/AlertApiImpl.js +1 -1
- package/src/Api/Implementation/ApiBase.d.ts +5 -5
- package/src/Api/Implementation/ApiBase.js +3 -3
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +2 -2
- package/src/Api/Implementation/CellSummaryApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +3 -2
- package/src/Api/Implementation/ColumnFilterApiImpl.js +11 -4
- package/src/Api/Implementation/ColumnScopeApiImpl.d.ts +3 -3
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -1
- package/src/Api/Implementation/DashboardApiImpl.d.ts +3 -3
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExportApiImpl.d.ts +5 -6
- package/src/Api/Implementation/ExportApiImpl.js +52 -48
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +3 -3
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -1
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +4 -4
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -3
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +12 -12
- package/src/Api/Implementation/GridApiImpl.js +1 -1
- package/src/Api/Implementation/LayoutApiImpl.d.ts +4 -4
- package/src/Api/Implementation/LayoutApiImpl.js +1 -1
- package/src/Api/Implementation/LayoutHelpers.js +1 -1
- package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +2 -2
- package/src/Api/Implementation/PredicateApiImpl.js +2 -2
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +5 -5
- package/src/Api/Implementation/SettingsPanelApiImpl.js +3 -1
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
- package/src/Api/Implementation/{ConfigApiImpl.d.ts → StateApiImpl.d.ts} +29 -27
- package/src/Api/Implementation/{ConfigApiImpl.js → StateApiImpl.js} +18 -9
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +2 -2
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -1
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ToolPanelApiImpl.d.ts +3 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -2
- package/src/Api/Internal/ActionColumnInternalApi.d.ts +1 -1
- package/src/Api/Internal/ActionColumnInternalApi.js +2 -2
- package/src/Api/Internal/AdaptableInternalApi.d.ts +9 -9
- package/src/Api/Internal/AdaptableInternalApi.js +2 -2
- package/src/Api/Internal/AlertInternalApi.d.ts +7 -7
- package/src/Api/Internal/AlertInternalApi.js +2 -2
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +1 -1
- package/src/Api/Internal/CalculatedColumnInternalApi.js +1 -1
- package/src/Api/Internal/ChartingInternalApi.d.ts +1 -1
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +4 -4
- package/src/Api/Internal/ColumnFilterInternalApi.js +3 -3
- package/src/Api/Internal/ColumnInternalApi.d.ts +1 -1
- package/src/Api/Internal/ColumnInternalApi.js +1 -2
- package/src/Api/Internal/CustomSortInternalApi.d.ts +2 -2
- package/src/Api/Internal/DashboardInternalApi.d.ts +2 -2
- package/src/Api/Internal/DashboardInternalApi.js +1 -1
- package/src/Api/Internal/EventInternalApi.d.ts +2 -2
- package/src/Api/Internal/EventInternalApi.js +1 -1
- package/src/Api/Internal/ExportInternalApi.d.ts +5 -6
- package/src/Api/Internal/ExportInternalApi.js +34 -42
- package/src/Api/Internal/ExpressionInternalApi.d.ts +1 -1
- package/src/Api/Internal/Fdc3InternalApi.d.ts +2 -2
- package/src/Api/Internal/Fdc3InternalApi.js +1 -1
- package/src/Api/Internal/FlashingCellInternalApi.d.ts +2 -2
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -2
- package/src/Api/Internal/FreeTextColumnInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.d.ts +6 -6
- package/src/Api/Internal/GridInternalApi.js +1 -1
- package/src/Api/Internal/LayoutInternalApi.d.ts +2 -2
- package/src/Api/Internal/NamedQueryInternalApi.js +1 -1
- package/src/Api/Internal/PredicateInternalApi.d.ts +3 -3
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +2 -2
- package/src/Api/Internal/SystemStatusInternalApi.d.ts +1 -1
- package/src/Api/Internal/TeamSharingInternalApi.d.ts +1 -1
- package/src/Api/LayoutApi.d.ts +3 -3
- package/src/Api/NoteApi.d.ts +1 -1
- package/src/Api/OpenFinApi.d.ts +2 -2
- package/src/Api/PlusMinusApi.d.ts +2 -2
- package/src/Api/PredicateApi.d.ts +1 -1
- package/src/Api/QuickSearchApi.d.ts +2 -2
- package/src/Api/ScheduleApi.d.ts +5 -5
- package/src/Api/ShortcutApi.d.ts +1 -1
- package/src/Api/SmartEditApi.d.ts +1 -1
- package/src/Api/{ConfigApi.d.ts → StateApi.d.ts} +37 -29
- package/src/Api/StatusBarApi.d.ts +1 -1
- package/src/Api/StyledColumnApi.d.ts +4 -4
- package/src/Api/SystemStatusApi.d.ts +1 -1
- package/src/Api/TeamSharingApi.d.ts +2 -2
- package/src/Api/ThemeApi.d.ts +1 -1
- package/src/Api/ToolPanelApi.d.ts +3 -3
- package/src/Api/UserInterfaceApi.d.ts +4 -4
- package/src/Redux/ActionsReducers/AlertRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ApplicationRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ChartingRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ChartingRedux.js +1 -1
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +4 -4
- package/src/Redux/ActionsReducers/ExportRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +10 -10
- package/src/Redux/ActionsReducers/InternalRedux.js +1 -1
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +6 -5
- package/src/Redux/ActionsReducers/LayoutRedux.js +3 -3
- package/src/Redux/ActionsReducers/NamedQueryRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +0 -93
- package/src/Redux/ActionsReducers/PluginsRedux.js +0 -93
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +4 -4
- package/src/Redux/ActionsReducers/QuickSearchRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +5 -47
- package/src/Redux/ActionsReducers/ScheduleRedux.js +0 -42
- package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/StatusBarRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/SystemStatusRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/TeamSharingRedux.d.ts +3 -3
- package/src/Redux/ActionsReducers/ThemeRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ToolPanelRedux.d.ts +2 -2
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.d.ts +2 -2
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -6
- package/src/Redux/Store/AdaptableReduxMerger.d.ts +4 -4
- package/src/Redux/Store/AdaptableReduxMerger.js +16 -16
- package/src/Redux/Store/AdaptableStore.d.ts +4 -4
- package/src/Redux/Store/AdaptableStore.js +7 -7
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +3 -3
- package/src/Redux/Store/Interface/IStorageEngine.d.ts +3 -3
- package/src/Strategy/AdaptableModuleBase.d.ts +9 -9
- package/src/Strategy/AdaptableModuleBase.js +2 -3
- package/src/Strategy/AlertModule.d.ts +5 -5
- package/src/Strategy/BulkUpdateModule.d.ts +1 -1
- package/src/Strategy/CalculatedColumnModule.d.ts +5 -5
- package/src/Strategy/CellSummaryModule.d.ts +6 -6
- package/src/Strategy/ChartingModule.d.ts +1 -1
- package/src/Strategy/ChartingModule.js +1 -1
- package/src/Strategy/ColumnFilterModule.d.ts +4 -4
- package/src/Strategy/ColumnFilterModule.js +4 -4
- package/src/Strategy/ColumnInfoModule.d.ts +1 -1
- package/src/Strategy/CommentModule.d.ts +1 -1
- package/src/Strategy/CustomSortModule.d.ts +4 -4
- package/src/Strategy/DashboardModule.d.ts +1 -1
- package/src/Strategy/DataImportModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.d.ts +4 -4
- package/src/Strategy/Fdc3Module.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +4 -4
- package/src/Strategy/FlashingCellModule.js +1 -1
- package/src/Strategy/FormatColumnModule.d.ts +5 -5
- package/src/Strategy/FreeTextColumnModule.d.ts +3 -3
- package/src/Strategy/GridInfoModule.d.ts +3 -3
- package/src/Strategy/Interface/IBulkUpdateModule.d.ts +2 -2
- package/src/Strategy/Interface/ICellSummaryModule.d.ts +2 -2
- package/src/Strategy/Interface/IModule.d.ts +8 -8
- package/src/Strategy/Interface/IModuleActionReturn.d.ts +1 -1
- package/src/Strategy/Interface/IPlusMinusModule.d.ts +2 -2
- package/src/Strategy/Interface/ISmartEditModule.d.ts +1 -1
- package/src/Strategy/LayoutModule.d.ts +5 -5
- package/src/Strategy/LayoutModule.js +1 -1
- package/src/Strategy/NamedQueryModule.d.ts +1 -1
- package/src/Strategy/NoteModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.d.ts +5 -5
- package/src/Strategy/ScheduleModule.d.ts +1 -1
- package/src/Strategy/ScheduleModule.js +1 -1
- package/src/Strategy/SettingsPanelModule.d.ts +2 -2
- package/src/Strategy/ShortcutModule.d.ts +3 -3
- package/src/Strategy/ShortcutModule.js +1 -1
- package/src/Strategy/SmartEditModule.d.ts +2 -2
- package/src/Strategy/SmartEditModule.js +1 -1
- package/src/Strategy/StateManagementModule.js +1 -1
- package/src/Strategy/StyledColumnModule.d.ts +5 -5
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Strategy/TeamSharingModule.d.ts +1 -1
- package/src/Strategy/ThemeModule.d.ts +1 -1
- package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/FlashingCell/getFlashingTargetViewItems.d.ts +1 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +5 -4
- package/src/Utilities/Constants/GeneralConstants.js +1 -0
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -1
- package/src/Utilities/Constants/ObjectDefaultConstants.d.ts +1 -1
- package/src/Utilities/Constants/ReduxConstants.d.ts +2 -2
- package/src/Utilities/Constants/ReduxConstants.js +1 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +1 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +1 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +3 -3
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -13
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -2
- package/src/Utilities/Extensions/ArrayExtensions.js +1 -1
- package/src/Utilities/Extensions/EnumExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +5 -5
- package/src/Utilities/Helpers/AdaptableHelper.js +5 -5
- package/src/Utilities/Helpers/DateHelper.js +1 -2
- package/src/Utilities/Helpers/FormatHelper.d.ts +1 -1
- package/src/Utilities/Helpers/FormatHelper.js +18 -5
- package/src/Utilities/Helpers/PreviewHelper.d.ts +1 -1
- package/src/Utilities/Interface/ColumnFilterProps.d.ts +1 -1
- package/src/Utilities/Interface/MessagePopups.d.ts +2 -2
- package/src/Utilities/Interface/Preview.d.ts +1 -1
- package/src/Utilities/MenuItem.d.ts +3 -3
- package/src/Utilities/ObjectFactory.d.ts +23 -25
- package/src/Utilities/ObjectFactory.js +2 -13
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -1
- package/src/Utilities/Services/AlertService.d.ts +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +3 -3
- package/src/Utilities/Services/DataService.d.ts +1 -1
- package/src/Utilities/Services/Fdc3Service.js +2 -2
- package/src/Utilities/Services/FlashingCellService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -3
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +3 -3
- package/src/Utilities/Services/Interface/IDataService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IModuleService.d.ts +3 -3
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +3 -3
- package/src/Utilities/Services/Interface/ITeamSharingService.d.ts +4 -4
- package/src/Utilities/Services/Interface/IValidationService.d.ts +2 -2
- package/src/Utilities/Services/ModuleService.d.ts +2 -2
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
- package/src/Utilities/Services/RowSummaryService.js +1 -1
- package/src/Utilities/Services/TeamSharingService.d.ts +4 -4
- package/src/Utilities/Services/TeamSharingService.js +1 -1
- package/src/Utilities/Services/ThemeService.js +3 -3
- package/src/Utilities/Services/ValidationService.d.ts +2 -2
- package/src/Utilities/getScopeViewItems.d.ts +2 -2
- package/src/View/AdaptablePopover/index.d.ts +1 -1
- package/src/View/AdaptableViewFactory.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +4 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +4 -4
- package/src/View/Alert/AlertEmptyView.js +1 -2
- package/src/View/Alert/AlertEntityRow.d.ts +2 -2
- package/src/View/Alert/AlertViewPanel.d.ts +2 -2
- package/src/View/Alert/AlertsPanel.d.ts +1 -1
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +2 -2
- package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +4 -2
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertSelectQueryWizard.d.ts +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryDetails.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopover.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.d.ts +3 -3
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/Charting/ChartingStatusBarPopover.js +1 -2
- package/src/View/Charting/ChartingWizard/ChartingWizard.d.ts +1 -1
- package/src/View/Charting/ChartingWizard/ChartingWizard.js +1 -1
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.d.ts +1 -1
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +1 -1
- package/src/View/Charting/DeleteChartButton.d.ts +1 -1
- package/src/View/Charting/DeleteChartButton.js +1 -1
- package/src/View/Charting/EditChartButton.d.ts +1 -1
- package/src/View/Charting/ShowChartButton.js +1 -1
- package/src/View/Charting/useChartingElements.d.ts +1 -1
- package/src/View/Charting/useChartingElements.js +1 -1
- package/src/View/Charting/useExternalChartState.d.ts +1 -1
- package/src/View/ColumnInfo/ColumnInfo.js +5 -5
- package/src/View/Comments/CommentsEditor.js +5 -2
- package/src/View/Comments/CommentsPopup.js +5 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonShare.d.ts +1 -1
- package/src/View/Components/Buttons/EntityListActionButtons.d.ts +4 -4
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +3 -3
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.d.ts +1 -0
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +4 -1
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.d.ts +2 -0
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.js +10 -3
- package/src/View/Components/ColumnFilter/ColumnFilter.d.ts +1 -1
- package/src/View/Components/ColumnFilter/ColumnFilter.js +4 -2
- package/src/View/Components/ColumnFilter/FloatingFilter.js +2 -2
- package/src/View/Components/ColumnFilter/LayoutColumnFilter.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.d.ts +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +7 -1
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +7 -0
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.d.ts +1 -1
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.js +6 -2
- package/src/View/Components/ColumnFilter/utils.js +5 -3
- package/src/View/Components/EntityRulesEditor/index.d.ts +1 -1
- package/src/View/Components/ExpressionWizard.d.ts +1 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +4 -4
- package/src/View/Components/FilterForm/ListBoxMenu.d.ts +1 -1
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/ListBox/DualListBoxEditor.d.ts +1 -1
- package/src/View/Components/ListBox/DualListBoxEditor.js +1 -1
- package/src/View/Components/ListBox/ListBoxFilterSortComponent.d.ts +1 -1
- package/src/View/Components/ListBox/ListBoxFilterSortComponent.js +1 -1
- package/src/View/Components/ModuleSummary/ModuleDetail.d.ts +3 -3
- package/src/View/Components/ModuleSummary/ModuleHeader.d.ts +1 -1
- package/src/View/Components/ModuleValueSelector/index.d.ts +1 -1
- package/src/View/Components/NewScopeComponent.d.ts +1 -1
- package/src/View/Components/Panels/PanelDashboard/index.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithButton.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopupConfirmation.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.d.ts +1 -1
- package/src/View/Components/Popups/AdaptableToaster.d.ts +1 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.js +1 -1
- package/src/View/Components/PreviewResultsPanel.d.ts +1 -1
- package/src/View/Components/RangesComponent.d.ts +2 -2
- package/src/View/Components/Selectors/BulkUpdateValueSelector.d.ts +1 -1
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +2 -2
- package/src/View/Components/Selectors/ColumnSelectorOld.js +1 -1
- package/src/View/Components/SharedProps/BaseProps.d.ts +1 -1
- package/src/View/Components/SharedProps/ConfigEntityRowProps.d.ts +3 -3
- package/src/View/Components/SharedProps/EditableConfigEntityState.d.ts +1 -1
- package/src/View/Components/SharedProps/ModuleSummaryProps.d.ts +3 -3
- package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
- package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.d.ts +2 -2
- package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.d.ts +1 -1
- package/src/View/Components/SharedProps/ViewPanelProps.d.ts +1 -1
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +1 -1
- package/src/View/Components/StyleComponent.d.ts +1 -1
- package/src/View/Components/StyleComponent.js +1 -1
- package/src/View/Components/StyleVisualItem.d.ts +1 -1
- package/src/View/Components/StyleVisualItem.js +1 -1
- package/src/View/Components/TagValueSelector/index.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +4 -4
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +3 -3
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +2 -2
- package/src/View/CustomSort/CustomSortSummary.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.d.ts +1 -1
- package/src/View/Dashboard/CustomDashboardButton.d.ts +2 -2
- package/src/View/Dashboard/CustomToolbar.js +2 -2
- package/src/View/Dashboard/Dashboard.d.ts +3 -3
- package/src/View/Dashboard/DashboardPopup.d.ts +2 -2
- package/src/View/Dashboard/DashboardToolbarFactory.js +2 -3
- package/src/View/Dashboard/ModuleToolbarWrapper.d.ts +1 -1
- package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -5
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.d.ts +2 -2
- package/src/View/Export/ExportDestinationPicker.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.js +1 -1
- package/src/View/Export/ReportFormatSelector.d.ts +1 -1
- package/src/View/Export/ReportNameSelector.d.ts +1 -1
- package/src/View/Export/Wizard/NewReportWizard.d.ts +1 -1
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +1 -1
- package/src/View/Export/Wizard/ReportColumnsWizardSection.d.ts +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.d.ts +1 -1
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +1 -1
- package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +1 -1
- package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +1 -1
- package/src/View/Filter/FilterSummary.js +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.d.ts +1 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.d.ts +1 -1
- package/src/View/GridFilter/NamedQuerySelector.d.ts +1 -1
- package/src/View/GridFilter/NamedQuerySelector.js +1 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +1 -1
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +6 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/TransposedPopup.js +2 -2
- package/src/View/Layout/Wizard/Components/ColumnLabels.d.ts +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
- package/src/View/Note/NotePopup.js +5 -2
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.d.ts +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.d.ts +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.d.ts +1 -1
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.d.ts +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +1 -1
- package/src/View/Shortcut/Wizard/ShortcutWizard.d.ts +1 -1
- package/src/View/Shortcut/shortcutOperations.d.ts +1 -1
- package/src/View/Shortcut/shortcutOperations.js +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
- package/src/View/StateManagement/StateManagementPopup.js +8 -8
- package/src/View/StateManagement/StateManagementViewPanel.js +3 -3
- package/src/View/StateManagement/components/ExportDropdown.d.ts +1 -1
- package/src/View/StateManagement/components/ExportDropdown.js +4 -4
- package/src/View/StateManagement/components/LoadButton.js +2 -2
- package/src/View/StateManagement/handleExportState.d.ts +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +7 -5
- package/src/View/StatusBar/StatusBarPopup.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.d.ts +1 -1
- package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/Theme/ThemeEditor.js +9 -7
- package/src/View/Theme/ThemePopup.d.ts +1 -1
- package/src/View/Theme/VariantSelector.d.ts +1 -0
- package/src/View/Theme/VariantSelector.js +6 -3
- package/src/View/UIHelper.d.ts +5 -5
- package/src/View/UIHelper.js +1 -1
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.d.ts +1 -1
- package/src/agGrid/AdaptableAgGrid.d.ts +3 -2
- package/src/agGrid/AdaptableAgGrid.js +50 -16
- package/src/agGrid/AdaptableLogger.d.ts +1 -1
- package/src/agGrid/AgGridAdapter.d.ts +3 -3
- package/src/agGrid/AgGridAdapter.js +16 -33
- package/src/agGrid/AgGridColumnAdapter.d.ts +3 -3
- package/src/agGrid/AgGridColumnAdapter.js +4 -11
- package/src/agGrid/AgGridExportAdapter.d.ts +2 -2
- package/src/agGrid/AgGridExportAdapter.js +9 -3
- package/src/agGrid/AgGridMenuAdapter.d.ts +2 -2
- package/src/agGrid/AgGridThemeAdapter.d.ts +1 -1
- package/src/agGrid/AgGridThemeAdapter.js +2 -2
- package/src/agGrid/FilterWrapper.js +64 -35
- package/src/agGrid/FloatingFilterWrapper.js +14 -2
- package/src/agGrid/agGridDataTypeDefinitions.d.ts +1 -1
- package/src/agGrid/cellRenderers/BadgeRenderer.d.ts +2 -2
- package/src/agGrid/cellRenderers/PercentBarRenderer.d.ts +2 -2
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +1 -1
- package/src/agGrid/getAgGridFilterNotifyModelFn.d.ts +2 -0
- package/src/agGrid/getAgGridFilterNotifyModelFn.js +10 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +2 -2
- package/src/components/Dashboard/DashboardManager.d.ts +2 -2
- package/src/components/Dashboard/DashboardToolbar.d.ts +1 -1
- package/src/components/Datepicker/DatepickerContext.d.ts +1 -0
- package/src/components/Datepicker/index.d.ts +1 -0
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -1
- package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.d.ts +1 -1
- package/src/components/Icon/index.d.ts +1 -1
- package/src/components/Select/Select.d.ts +1 -0
- package/src/components/Select/Select.js +125 -20
- package/src/components/SimpleButton/index.d.ts +2 -2
- package/src/components/icons/index.d.ts +1 -1
- package/src/env.js +2 -2
- package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +134 -33
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.d.ts +4 -4
- package/src/migration/VersionUpgrade.d.ts +1 -1
- package/src/migration/VersionUpgrade17.d.ts +1 -1
- package/src/migration/VersionUpgrade17.js +1 -1
- package/src/migration/VersionUpgrade18.d.ts +1 -1
- package/src/migration/VersionUpgrade20.d.ts +3 -1
- package/src/migration/VersionUpgrade20.js +43 -15
- package/src/themes/index.d.ts +1 -1
- package/src/types.d.ts +83 -83
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -110
- /package/src/{PredefinedConfig → AdaptableState}/AdaptableState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/AlertState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/ApplicationState.js +0 -0
- /package/src/{Api/ConfigApi.js → AdaptableState/BaseState.js} +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/CalculatedColumnState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/ChartingState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/CommentState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableAlert.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableAlert.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableButton.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableButton.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableColumn.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableColumnContext.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableColumnContext.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableComparerFunction.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableComparerFunction.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableField.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableField.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableFlashingCell.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableFlashingCell.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableForm.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableForm.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableFormat.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableFormat.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableIcon.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableIcon.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableMessageType.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableMessageType.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableObject.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableQuery.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableQuery.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableSearchState.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableSearchState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableSortState.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableSortState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableStyle.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AdaptableStyle.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AggregationColumns.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AlternativeModuleName.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/AlternativeModuleName.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/BaseContext.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/BaseContext.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ButtonStyle.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ButtonStyle.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/CellDataChangedInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/CellDataChangedInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/CellHighlightInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/CellHighlightInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/CellSummary.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/CellSummary.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ColumnFilter.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ColumnScope.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ColumnScope.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ColumnSetupInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ColumnSetupInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ColumnSort.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ColumnSort.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/CustomWindowConfig.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/CustomWindowConfig.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/DataChangedScope.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/DataChangedScope.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/DataUpdateConfig.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/DataUpdateConfig.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Entitlement.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Entitlement.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Enums.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Enums.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ExtendedLayoutInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ExtendedLayoutInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Fdc3Context.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Fdc3Context.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Fdc3Intent.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Fdc3Intent.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/FilterActionOnDataChange.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/FilterActionOnDataChange.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/FormContext.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/FormContext.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/GridFilter.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/GridFilter.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Menu.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ProgressIndicatorConfig.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/ProgressIndicatorConfig.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowDataChangedInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowDataChangedInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowHighlightInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowHighlightInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowScope.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowScope.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowSummary.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowSummary.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowsHighlightInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/RowsHighlightInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Schedule.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Schedule.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/SpecialColumnSettings.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/SpecialColumnSettings.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/SuspendableObject.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/SuspendableObject.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/SystemStatusMessageInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/SystemStatusMessageInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/TransposeConfig.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/TransposeConfig.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Common/Types.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/CustomSortState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/DashboardState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/ExportState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/FlashingCellState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/FormatColumnState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/FreeTextColumnState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/IPushPullState.js +0 -0
- /package/src/{PredefinedConfig/ConfigState.js → AdaptableState/InitialState.js} +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/InternalState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/LayoutState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/NamedQueryState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/NoteState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/OpenFinState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/PlusMinusState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/PopupState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/QuickSearchState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/ScheduleState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/GridCell.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/GridCell.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/GridCellRange.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/GridCellRange.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/GridRow.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/GridRow.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/SelectedCellInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/SelectedCellInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/SelectedRowInfo.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Selection/SelectedRowInfo.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/ShortcutState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/StatusBarState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/StyledColumnState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/TeamSharingState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/ThemeState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/ToolPanelState.js +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Uuid.d.ts +0 -0
- /package/src/{PredefinedConfig → AdaptableState}/Uuid.js +0 -0
- /package/src/{PredefinedConfig/PredefinedConfig.js → Api/StateApi.js} +0 -0
|
@@ -24,7 +24,7 @@ import { AlertService } from '../Utilities/Services/AlertService';
|
|
|
24
24
|
import { TeamSharingService } from '../Utilities/Services/TeamSharingService';
|
|
25
25
|
import { MetamodelService } from '../Utilities/Services/MetamodelService';
|
|
26
26
|
import { LicenseService } from '../Utilities/Services/LicenseService';
|
|
27
|
-
import { ALL_TOOL_PANELS } from '../
|
|
27
|
+
import { ALL_TOOL_PANELS } from '../AdaptableState/Common/Types';
|
|
28
28
|
import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
|
|
29
29
|
import { GridFilterModuleId } from '../Utilities/Constants/ModuleConstants';
|
|
30
30
|
import { DashboardModule } from '../Strategy/DashboardModule';
|
|
@@ -67,7 +67,7 @@ import { Helper } from '../Utilities/Helpers/Helper';
|
|
|
67
67
|
import { createUuid } from '../components/utils/uuid';
|
|
68
68
|
import UIHelper from '../View/UIHelper';
|
|
69
69
|
import { getAdaptableToolPanelAgGridComponent } from '../View/Components/ToolPanel/AdaptableToolPanel';
|
|
70
|
-
import { ADAPTABLE_STATUS_PANEL } from '../
|
|
70
|
+
import { ADAPTABLE_STATUS_PANEL } from '../AdaptableState/StatusBarState';
|
|
71
71
|
import { AdaptableStatusBar } from '../View/StatusBar/AdaptableStatusBar';
|
|
72
72
|
import ArrayExtensions from '../Utilities/Extensions/ArrayExtensions';
|
|
73
73
|
import { AgGridMenuAdapter } from './AgGridMenuAdapter';
|
|
@@ -77,9 +77,9 @@ import { AgGridOptionsService } from './AgGridOptionsService';
|
|
|
77
77
|
import { parseDateValue } from '../Utilities/Helpers/DateHelper';
|
|
78
78
|
import { AgGridColumnAdapter } from './AgGridColumnAdapter';
|
|
79
79
|
import getScrollbarSize from '../Utilities/getScrollbarSize';
|
|
80
|
-
import { WEIGHTED_AVERAGE_AGG_FN_NAME, } from '../
|
|
80
|
+
import { WEIGHTED_AVERAGE_AGG_FN_NAME, } from '../AdaptableState/Common/AggregationColumns';
|
|
81
81
|
import { RowFormService } from '../Utilities/Services/RowFormService';
|
|
82
|
-
import { FilterOnDataChangeOptions } from '../
|
|
82
|
+
import { FilterOnDataChangeOptions } from '../AdaptableState/Common/Enums';
|
|
83
83
|
import { ADAPTABLE_PUBLISH_TIMESTAMP } from '../EnvVars';
|
|
84
84
|
import { AdaptableUpgradeHelper } from '../migration/AdaptableUpgradeHelper';
|
|
85
85
|
import { ensureLoadingScreenPortalElement } from '../components/Modal';
|
|
@@ -87,18 +87,24 @@ import { AdaptableLoadingScreen } from '../View/Components/Popups/AdaptableLoadi
|
|
|
87
87
|
import { createElement } from 'react';
|
|
88
88
|
import { createAgStatusPanelComponent } from '../Utilities/createAgStatusPanelComponent';
|
|
89
89
|
import { weightedAverage } from '../Utilities/weightedAverage';
|
|
90
|
-
import { ROW_SUMMARY_ROW_ID } from '../
|
|
90
|
+
import { ROW_SUMMARY_ROW_ID } from '../AdaptableState/Common/RowSummary';
|
|
91
91
|
import { FlashingCellService } from '../Utilities/Services/FlashingCellService';
|
|
92
92
|
import { AgGridExportAdapter } from './AgGridExportAdapter';
|
|
93
93
|
import { checkForDuplicateColumns, isPivotLayout, layoutModelToLayoutState, layoutStateToLayoutModel, normalizeLayout, tableLayoutToTableLayoutModel, } from '../Api/Implementation/LayoutHelpers';
|
|
94
94
|
import { LayoutManager } from '../layout-manager/src';
|
|
95
95
|
import { isPivotLayoutModel } from '../layout-manager/src/isPivotLayoutModel';
|
|
96
|
-
import { ACTION_COLUMN_TYPE, CALCULATED_COLUMN_TYPE, FDC3_COLUMN_TYPE, FREE_TEXT_COLUMN_TYPE, } from '../
|
|
96
|
+
import { ACTION_COLUMN_TYPE, CALCULATED_COLUMN_TYPE, FDC3_COLUMN_TYPE, FREE_TEXT_COLUMN_TYPE, } from '../AdaptableState/Common/AdaptableColumn';
|
|
97
97
|
import { agGridDataTypeDefinitions } from './agGridDataTypeDefinitions';
|
|
98
98
|
import { AgGridThemeAdapter } from './AgGridThemeAdapter';
|
|
99
|
+
import { mapOldTypeToDataType } from '../migration/VersionUpgrade20';
|
|
99
100
|
const LocalEventService_Prototype = LocalEventService.prototype;
|
|
100
101
|
const LocalEventService_dispatchEvent = LocalEventService_Prototype.dispatchEvent;
|
|
101
102
|
LocalEventService_Prototype.dispatchEvent = function (event) {
|
|
103
|
+
const agGridApi = event.api;
|
|
104
|
+
if (agGridApi?.isDestroyed()) {
|
|
105
|
+
// do nothing if AG Grid was destroyed in the meantime
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
102
108
|
LocalEventService_dispatchEvent.apply(this, arguments);
|
|
103
109
|
if (event.type === 'cellChanged' || event.type === 'dataChanged') {
|
|
104
110
|
const eventRowNode = event.node;
|
|
@@ -118,6 +124,10 @@ LocalEventService_Prototype.dispatchEvent = function (event) {
|
|
|
118
124
|
// so IGNORE IT
|
|
119
125
|
return;
|
|
120
126
|
}
|
|
127
|
+
if (adaptable.isDestroyed) {
|
|
128
|
+
// do nothing if adaptable is destroyed (this is a rare case and happens when Adaptable is quickly destroyed and recreated)
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
121
131
|
// we're on the correct instance, so do this
|
|
122
132
|
//@ts-ignore
|
|
123
133
|
const fn = adaptable.rowListeners ? adaptable.rowListeners[event.type] : null;
|
|
@@ -309,11 +319,13 @@ export class AdaptableAgGrid {
|
|
|
309
319
|
*/
|
|
310
320
|
postLoadHook: (state) => {
|
|
311
321
|
if (this.adaptableOptions.stateOptions.autoMigrateState) {
|
|
312
|
-
|
|
322
|
+
this.api.logError;
|
|
323
|
+
const config = {
|
|
313
324
|
// version 16 actually includes all versions up until 16
|
|
314
325
|
fromVersion: 16,
|
|
315
326
|
logger: this.logger,
|
|
316
|
-
}
|
|
327
|
+
};
|
|
328
|
+
state = AdaptableUpgradeHelper.migrateAdaptableState(state, config);
|
|
317
329
|
}
|
|
318
330
|
state = this.normalizeAdaptableState(state, config.gridOptions);
|
|
319
331
|
return state;
|
|
@@ -353,9 +365,10 @@ export class AdaptableAgGrid {
|
|
|
353
365
|
this.lifecycleState = 'initAgGrid';
|
|
354
366
|
this.agGridAdapter.initialGridOptions = gridOptions;
|
|
355
367
|
const perfInitAgGrid = this.logger.beginPerf(`initAgGrid()`);
|
|
356
|
-
// AG Grid evaluates early on the floatingFilter params, so we need to "
|
|
368
|
+
// AG Grid evaluates early on the floatingFilter params, so we need to "suppress" the floating filter temporarily
|
|
357
369
|
// we will reset it once Adaptable is ready
|
|
358
370
|
this.agGridColumnAdapter.setupColumnFloatingFilterTemporarily(gridOptions);
|
|
371
|
+
this.validateColumnDefTypes(gridOptions.columnDefs);
|
|
359
372
|
const agGridApi = await this.initializeAgGrid(gridOptions, config.modules, config.renderAgGridFrameworkComponent);
|
|
360
373
|
if (agGridApi === false) {
|
|
361
374
|
this.midwayDestroy();
|
|
@@ -482,7 +495,7 @@ export class AdaptableAgGrid {
|
|
|
482
495
|
// ensure that at least one Layout has been provided
|
|
483
496
|
if (!layoutState || !layoutState.Layouts?.length) {
|
|
484
497
|
this.logger
|
|
485
|
-
.consoleError(`You have not defined any Layout in your
|
|
498
|
+
.consoleError(`You have not defined any Layout in your InitialState.Layout.Layouts[] state!
|
|
486
499
|
|
|
487
500
|
You need to define at least one Layout!`);
|
|
488
501
|
}
|
|
@@ -516,7 +529,7 @@ You need to define at least one Layout!`);
|
|
|
516
529
|
isTree: !!gridOptions.treeData,
|
|
517
530
|
};
|
|
518
531
|
// it's very important that we do this here
|
|
519
|
-
// as the layout may not be fully specified in the
|
|
532
|
+
// as the layout may not be fully specified in the initialState
|
|
520
533
|
// eg: might not include the generated row group columns in the column order
|
|
521
534
|
// but the normalization does this for us
|
|
522
535
|
state.Layout.Layouts = state.Layout.Layouts.map((layout) => normalizeLayout(layout, normalizeOptions));
|
|
@@ -527,7 +540,7 @@ You need to define at least one Layout!`);
|
|
|
527
540
|
if (state?.ToolPanel?.ToolPanels) {
|
|
528
541
|
return state;
|
|
529
542
|
}
|
|
530
|
-
// no
|
|
543
|
+
// no Initial Adaptable State provided, we will display all the panels collapsed (custom & module)
|
|
531
544
|
const defaultToolPanels = [];
|
|
532
545
|
this.adaptableOptions.toolPanelOptions?.customToolPanels?.forEach((customToolPanel) => defaultToolPanels.push({ Name: customToolPanel.name }));
|
|
533
546
|
ALL_TOOL_PANELS.forEach((moduleToolPanel) => defaultToolPanels.push({ Name: moduleToolPanel }));
|
|
@@ -537,11 +550,12 @@ You need to define at least one Layout!`);
|
|
|
537
550
|
return state;
|
|
538
551
|
}
|
|
539
552
|
applyFiltering() {
|
|
540
|
-
this.agGridAdapter.getAgGridApi()
|
|
553
|
+
const agGridApi = this.agGridAdapter.getAgGridApi();
|
|
541
554
|
this._emit('AdapTableFiltersApplied');
|
|
542
555
|
this.refreshSelectedCellsState();
|
|
543
556
|
this.refreshSelectedRowsState();
|
|
544
557
|
this.agGridAdapter.updateColumnFilterActiveState();
|
|
558
|
+
agGridApi.onFilterChanged();
|
|
545
559
|
}
|
|
546
560
|
// refreshAgGridWithAdaptableState() {
|
|
547
561
|
// this.refreshColDefs();
|
|
@@ -2621,7 +2635,7 @@ You need to define at least one Layout!`);
|
|
|
2621
2635
|
themeClassNamesToRemove.forEach((cssClassName) => el.classList.remove(cssClassName));
|
|
2622
2636
|
// remove infinite table classnames
|
|
2623
2637
|
themesToRemove.forEach((theme) => {
|
|
2624
|
-
el.classList.remove(`infinite
|
|
2638
|
+
el.classList.remove(`infinite-theme-mode--${theme.Name}`);
|
|
2625
2639
|
});
|
|
2626
2640
|
// VARIANT
|
|
2627
2641
|
let variantTheme = '';
|
|
@@ -2637,10 +2651,10 @@ You need to define at least one Layout!`);
|
|
|
2637
2651
|
}
|
|
2638
2652
|
if (isSystemTheme) {
|
|
2639
2653
|
// add infinite table classname for theme
|
|
2640
|
-
el.classList.add(`infinite
|
|
2654
|
+
el.classList.add(`infinite-theme-mode--${themeName}`);
|
|
2641
2655
|
}
|
|
2642
2656
|
else if (variantTheme) {
|
|
2643
|
-
el.classList.add(`infinite
|
|
2657
|
+
el.classList.add(`infinite-theme-mode--${variantTheme}`);
|
|
2644
2658
|
}
|
|
2645
2659
|
// Update AG THEME
|
|
2646
2660
|
this.agGridThemeAdapter.applyAgGridThemeOnAdaptableThemeChange(newTheme, variantTheme, container, themesToRemove);
|
|
@@ -3288,4 +3302,24 @@ You need to define at least one Layout!`);
|
|
|
3288
3302
|
this.__prevLayoutForOnChange = layout;
|
|
3289
3303
|
this.api.layoutApi.createOrUpdateLayout(layout);
|
|
3290
3304
|
}
|
|
3305
|
+
validateColumnDefTypes(columnDefs) {
|
|
3306
|
+
// in Adaptable version 20 we switched from colDef.type to colDef.cellDataType
|
|
3307
|
+
// although we documented this change and try to infer the correct cellDataTypes, it's best to also check if the client dev forgot to adjust his colDefs
|
|
3308
|
+
columnDefs.forEach((colDef) => {
|
|
3309
|
+
if (colDef.children?.length) {
|
|
3310
|
+
this.validateColumnDefTypes(colDef.children);
|
|
3311
|
+
}
|
|
3312
|
+
const columnDefinition = colDef;
|
|
3313
|
+
const colDefType = columnDefinition.type;
|
|
3314
|
+
const colDefTypes = typeof colDefType === 'string' ? [colDefType] : colDefType || [];
|
|
3315
|
+
colDefTypes
|
|
3316
|
+
.filter((colType) => colType.startsWith('abColDef'))
|
|
3317
|
+
.forEach((colType) => {
|
|
3318
|
+
const newValidCellDataType = mapOldTypeToDataType(colType);
|
|
3319
|
+
if (newValidCellDataType) {
|
|
3320
|
+
this.logger.consoleWarn(`Column ${columnDefinition.colId ?? columnDefinition.field} has a type of ${colType} which is no longer in use${newValidCellDataType !== 'unknown' ? `. Please use 'colDef.cellDataType' instead: ${newValidCellDataType}` : ''}`);
|
|
3321
|
+
}
|
|
3322
|
+
});
|
|
3323
|
+
});
|
|
3324
|
+
}
|
|
3291
3325
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdaptableMessageType } from '../
|
|
1
|
+
import { AdaptableMessageType } from '../AdaptableState/Common/AdaptableMessageType';
|
|
2
2
|
export declare const errorOnce: (message: string) => void;
|
|
3
3
|
export declare class AdaptableLogger {
|
|
4
4
|
private adaptableId;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ColDef, ColGroupDef, Column, GridApi, GridOptions, IRowNode, ManagedGridOptionKey, ManagedGridOptions, Module, ModuleName } from 'ag-grid-enterprise';
|
|
2
2
|
import { AdaptableAgGrid } from './AdaptableAgGrid';
|
|
3
|
-
import { AdaptableColumn, AdaptableColumnGroup } from '../
|
|
4
|
-
import { SelectedCellInfo } from '../
|
|
5
|
-
import { SelectedRowInfo } from '../
|
|
3
|
+
import { AdaptableColumn, AdaptableColumnGroup } from '../AdaptableState/Common/AdaptableColumn';
|
|
4
|
+
import { SelectedCellInfo } from '../AdaptableState/Selection/SelectedCellInfo';
|
|
5
|
+
import { SelectedRowInfo } from '../AdaptableState/Selection/SelectedRowInfo';
|
|
6
6
|
export type AgGridThemeMode = 'legacy' | 'themingApi';
|
|
7
7
|
export declare class AgGridAdapter {
|
|
8
8
|
private _adaptableInstance;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnApiModule, } from 'ag-grid-enterprise';
|
|
2
|
-
import { ACTION_COLUMN_TYPE, CALCULATED_COLUMN_TYPE, FDC3_COLUMN_TYPE, FREE_TEXT_COLUMN_TYPE, } from '../
|
|
2
|
+
import { ACTION_COLUMN_TYPE, CALCULATED_COLUMN_TYPE, FDC3_COLUMN_TYPE, FREE_TEXT_COLUMN_TYPE, } from '../AdaptableState/Common/AdaptableColumn';
|
|
3
3
|
import { ADAPTABLE_FDC3_ACTION_COLUMN_FRIENDLY_NAME, } from '../Utilities/Constants/GeneralConstants';
|
|
4
|
-
import { createUuid } from '../
|
|
4
|
+
import { createUuid } from '../AdaptableState/Uuid';
|
|
5
5
|
import ArrayExtensions from '../Utilities/Extensions/ArrayExtensions';
|
|
6
6
|
import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
|
|
7
7
|
import { ALL_AG_GRID_MODULES } from './agGridModules';
|
|
@@ -168,39 +168,17 @@ export class AgGridAdapter {
|
|
|
168
168
|
return this.agGridOptionsService.getUserGridOptionsProperty(propertyName);
|
|
169
169
|
}
|
|
170
170
|
updateColumnFilterActiveState() {
|
|
171
|
+
const filteredCols = new Set();
|
|
171
172
|
const columnFilters = this.adaptableApi.filterApi.columnFilterApi.getActiveColumnFilters();
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
if (isFilterActive) {
|
|
176
|
-
// used in particular at init time to show the filter icon correctly
|
|
177
|
-
for (const colFilter of activeFilters) {
|
|
178
|
-
// AG Grid exposes the Column interface, but we need the AG Column class
|
|
179
|
-
const agGridCol = this.getAgGridApi().getColumn(colFilter.ColumnId);
|
|
180
|
-
if (agGridCol) {
|
|
181
|
-
columnsWithActiveFilters[agGridCol.getColId()] = true;
|
|
182
|
-
if (!agGridCol.isFilterActive()) {
|
|
183
|
-
// FIXME AFL: changed from fn call; is this enough?
|
|
184
|
-
agGridCol.filterActive = true;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
const agFilterModel = this.getAgGridApi().getFilterModel();
|
|
190
|
-
// AG Grid exposes the Column interface, but we need the AG Column class
|
|
191
|
-
(this.getAgGridApi().getColumns() || []).forEach((col) => {
|
|
192
|
-
/**
|
|
193
|
-
* When AG Grid filters are used active state should not be removed for all columns.
|
|
194
|
-
* Need to check if the column has a filter model.
|
|
195
|
-
*/
|
|
196
|
-
const isColumnInFilterModel = agFilterModel && agFilterModel[col.getColId()];
|
|
197
|
-
if (!isColumnInFilterModel &&
|
|
198
|
-
!columnsWithActiveFilters[col.getColId()] &&
|
|
199
|
-
col.isFilterActive()) {
|
|
200
|
-
// FIXME AFL: changed from fn call; is this enough?
|
|
201
|
-
col.filterActive = false;
|
|
173
|
+
columnFilters?.forEach?.((columnFilter) => {
|
|
174
|
+
if (this.adaptableApi.filterApi.columnFilterApi.isColumnFilterActive(columnFilter)) {
|
|
175
|
+
filteredCols.add(columnFilter.ColumnId);
|
|
202
176
|
}
|
|
203
177
|
});
|
|
178
|
+
const agGridApi = this.getAgGridApi();
|
|
179
|
+
(agGridApi.getColumns() || []).forEach((col) => {
|
|
180
|
+
col.filterActive = filteredCols.has(col.getColId());
|
|
181
|
+
});
|
|
204
182
|
}
|
|
205
183
|
getColumnDefinitionsInclSpecialColumns(agGridColDefs) {
|
|
206
184
|
const allColDefs = this.enhanceColDefsWithSpecialColumns(agGridColDefs ?? this.getAgGridApi().getColumnDefs());
|
|
@@ -470,6 +448,11 @@ export class AgGridAdapter {
|
|
|
470
448
|
this.logger.warn(`Column is undefined, returning 'text' for Type`);
|
|
471
449
|
return 'text';
|
|
472
450
|
}
|
|
451
|
+
const colDefType = [].concat(agColumn.getColDef()?.type || []).filter(Boolean);
|
|
452
|
+
const skippedSpecialCols = ['actionColumn', 'fdc3Column'];
|
|
453
|
+
if (skippedSpecialCols.some((specialColType) => colDefType.includes(specialColType))) {
|
|
454
|
+
return 'unknown';
|
|
455
|
+
}
|
|
473
456
|
let dataType = 'unknown';
|
|
474
457
|
// get the column type if already in store (and not unknown)
|
|
475
458
|
const existingColumn = this.adaptableApi.columnApi.getColumnWithColumnId(agColumn.getId(), logWarning);
|
|
@@ -521,7 +504,7 @@ export class AgGridAdapter {
|
|
|
521
504
|
else if (Array.isArray(value)) {
|
|
522
505
|
const arrayDataType = ALL_ADAPTABLE_DATA_TYPES.find((arrayType) => {
|
|
523
506
|
const dataTypeDefinition = agGridDataTypeDefinitions[arrayType];
|
|
524
|
-
const dataTypeMatching = dataTypeDefinition?.dataTypeMatcher(value);
|
|
507
|
+
const dataTypeMatching = dataTypeDefinition?.dataTypeMatcher?.(value);
|
|
525
508
|
return dataTypeMatching;
|
|
526
509
|
});
|
|
527
510
|
if (arrayDataType) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptableAgGrid } from './AdaptableAgGrid';
|
|
2
|
-
import { ColumnSetupInfo } from '../
|
|
2
|
+
import { ColumnSetupInfo } from '../AdaptableState/Common/ColumnSetupInfo';
|
|
3
3
|
import { ColDef, ColGroupDef, Column, GridOptions } from 'ag-grid-enterprise';
|
|
4
|
-
import { AdaptableColumnDataType } from '../
|
|
4
|
+
import { AdaptableColumnDataType } from '../AdaptableState/Common/AdaptableColumn';
|
|
5
5
|
import { AdaptableVariant } from '../AdaptableInterfaces/IAdaptable';
|
|
6
6
|
export declare function getEditorForColumnDataType(columnDataType: AdaptableColumnDataType, variant: AdaptableVariant): ColDef['cellEditor'];
|
|
7
7
|
export declare class AgGridColumnAdapter {
|
|
@@ -23,7 +23,7 @@ export declare class AgGridColumnAdapter {
|
|
|
23
23
|
private setupColumnCellEditor;
|
|
24
24
|
private setupColumnCellRenderer;
|
|
25
25
|
private setupColumnTooltipValueGetter;
|
|
26
|
-
private
|
|
26
|
+
private setupColumnQuickFilterText;
|
|
27
27
|
private setupColumnAllowedAggFuncs;
|
|
28
28
|
private setupColumnType;
|
|
29
29
|
private setupColumnCellDataType;
|
|
@@ -3,7 +3,7 @@ import { FilterWrapperFactory } from './FilterWrapper';
|
|
|
3
3
|
import { FloatingFilterWrapperFactory } from './FloatingFilterWrapper';
|
|
4
4
|
import { convertAdaptableStyleToCSS, getVariableColor, normalizeStyleForAgGrid, } from '../Utilities/Helpers/StyleHelper';
|
|
5
5
|
import StringExtensions from '../Utilities/Extensions/StringExtensions';
|
|
6
|
-
import { ACTION_COLUMN_TYPE, CALCULATED_COLUMN_TYPE, FDC3_COLUMN_TYPE, FREE_TEXT_COLUMN_TYPE, } from '../
|
|
6
|
+
import { ACTION_COLUMN_TYPE, CALCULATED_COLUMN_TYPE, FDC3_COLUMN_TYPE, FREE_TEXT_COLUMN_TYPE, } from '../AdaptableState/Common/AdaptableColumn';
|
|
7
7
|
import tinycolor from 'tinycolor2';
|
|
8
8
|
import UIHelper from '../View/UIHelper';
|
|
9
9
|
import { getPercentBarRendererForColumn } from './cellRenderers/PercentBarRenderer';
|
|
@@ -135,7 +135,7 @@ export class AgGridColumnAdapter {
|
|
|
135
135
|
this.setupColumnComparator(colSetupInfo);
|
|
136
136
|
this.setupColumnCellEditor(colSetupInfo);
|
|
137
137
|
this.setupColumnHeader(colSetupInfo);
|
|
138
|
-
this.
|
|
138
|
+
this.setupColumnQuickFilterText(colSetupInfo);
|
|
139
139
|
this.setupColumnAllowedAggFuncs(colSetupInfo);
|
|
140
140
|
this.setupColumnType(colSetupInfo);
|
|
141
141
|
this.setupColumnCellDataType(colSetupInfo);
|
|
@@ -157,7 +157,7 @@ export class AgGridColumnAdapter {
|
|
|
157
157
|
if (!gridCell.column) {
|
|
158
158
|
return null;
|
|
159
159
|
}
|
|
160
|
-
// if a
|
|
160
|
+
// if a VisualExcel report format export is in progress, we are interested only in the Excel Style Class
|
|
161
161
|
if (this.adaptableApi.exportApi.internalApi.isVisualDataExportInProgress()) {
|
|
162
162
|
const userDefinedCellClass = typeof userCellClass === 'function' ? userCellClass(params) : userCellClass;
|
|
163
163
|
const cellClassKey = AgGridExportAdapter.getExcelClassNameForCell(colId, gridCell.primaryKeyValue, userDefinedCellClass);
|
|
@@ -238,13 +238,6 @@ export class AgGridColumnAdapter {
|
|
|
238
238
|
return cellDataTypeEditor;
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
|
-
this.setColDefProperty(col, 'cellEditorPopup', () => {
|
|
242
|
-
// as specified in https://www.ag-grid.com/react-data-grid/provided-cell-editors/#rich-select-cell-editor
|
|
243
|
-
// agRichSelectCellEditor should always set cellEditorPopup=true. Otherwise the editor will be clipped to the cell contents
|
|
244
|
-
if (shouldShowSelectCellEditor && hasRichSelectCellEditor) {
|
|
245
|
-
return true;
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
241
|
this.setColDefProperty(col, 'cellEditorParams', (params) => {
|
|
249
242
|
if (shouldShowSelectCellEditor) {
|
|
250
243
|
return (params) => {
|
|
@@ -325,7 +318,7 @@ export class AgGridColumnAdapter {
|
|
|
325
318
|
}
|
|
326
319
|
});
|
|
327
320
|
}
|
|
328
|
-
|
|
321
|
+
setupColumnQuickFilterText({ col, abColumn }) {
|
|
329
322
|
this.setColDefProperty(col, 'getQuickFilterText', (userGetQuickFilterText) => {
|
|
330
323
|
if (userGetQuickFilterText) {
|
|
331
324
|
return userGetQuickFilterText;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AdaptableAgGrid } from './AdaptableAgGrid';
|
|
2
|
-
import { Report, ReportFormatType } from '../
|
|
2
|
+
import { Report, ReportFormatType } from '../AdaptableState/ExportState';
|
|
3
3
|
import { CsvExportParams, ExcelExportParams, ExcelStyle } from 'ag-grid-enterprise';
|
|
4
4
|
import { ExportDestinationType, ExportResultData } from '../AdaptableOptions/ExportOptions';
|
|
5
|
-
import { Layout } from '../
|
|
5
|
+
import { Layout } from '../AdaptableState/LayoutState';
|
|
6
6
|
export interface ExportConfig {
|
|
7
7
|
report: Report;
|
|
8
8
|
format: ReportFormatType;
|
|
@@ -4,9 +4,9 @@ import { convertCSSAbsoluteFontSizeToPt, getVariableColor, sanitizeStyle, } from
|
|
|
4
4
|
import { DateFormatter } from '../Utilities/Helpers/FormatHelper';
|
|
5
5
|
import tinycolor from 'tinycolor2';
|
|
6
6
|
import StringExtensions from '../Utilities/Extensions/StringExtensions';
|
|
7
|
-
import { createUuid } from '../
|
|
7
|
+
import { createUuid } from '../AdaptableState/Uuid';
|
|
8
8
|
import { inferSchema, initParser } from 'udsv';
|
|
9
|
-
import { AG_GRID_GROUPED_COLUMN } from '../Utilities/Constants/GeneralConstants';
|
|
9
|
+
import { AG_GRID_GROUPED_COLUMN, AG_GRID_SELECTION_COLUMN, } from '../Utilities/Constants/GeneralConstants';
|
|
10
10
|
export class AgGridExportAdapter {
|
|
11
11
|
constructor(_adaptableInstance) {
|
|
12
12
|
this._adaptableInstance = _adaptableInstance;
|
|
@@ -452,7 +452,9 @@ export class AgGridExportAdapter {
|
|
|
452
452
|
formatColumnsWithDisplayFormatMemo[columnId] = formatColumns;
|
|
453
453
|
return formatColumns;
|
|
454
454
|
};
|
|
455
|
-
const agGridDisplayedColumns = this.agGridApi
|
|
455
|
+
const agGridDisplayedColumns = this.agGridApi
|
|
456
|
+
.getAllDisplayedColumns()
|
|
457
|
+
.filter((agCol) => agCol.getId() !== AG_GRID_SELECTION_COLUMN);
|
|
456
458
|
const colDefs = agGridDisplayedColumns.map((column) => {
|
|
457
459
|
return column.getColDef();
|
|
458
460
|
});
|
|
@@ -472,6 +474,10 @@ export class AgGridExportAdapter {
|
|
|
472
474
|
const colDef = colDefs[columnIndex];
|
|
473
475
|
const columnId = column.getId();
|
|
474
476
|
const adaptableColumn = getAdaptableColumnWithColumnId(columnId);
|
|
477
|
+
if (!adaptableColumn) {
|
|
478
|
+
this.logger.warn(`Export Styling: Column with id ${columnId} not found in Adaptable`);
|
|
479
|
+
return;
|
|
480
|
+
}
|
|
475
481
|
const isDateCellExportedAsFormattedValue = this.isDateCellExportedAsFormattedValue(adaptableColumn);
|
|
476
482
|
let cellClassParams;
|
|
477
483
|
const getLazyCellClassParams = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AdaptableAgGrid } from './AdaptableAgGrid';
|
|
2
2
|
import { DefaultMenuItem, GetContextMenuItems, GetContextMenuItemsParams, GetMainMenuItems, GetMainMenuItemsParams, MenuItemDef } from 'ag-grid-enterprise';
|
|
3
|
-
import { AdaptableColumn } from '../
|
|
4
|
-
import { AdaptableMenuItem } from '../
|
|
3
|
+
import { AdaptableColumn } from '../AdaptableState/Common/AdaptableColumn';
|
|
4
|
+
import { AdaptableMenuItem } from '../AdaptableState/Common/Menu';
|
|
5
5
|
export declare class AgGridMenuAdapter {
|
|
6
6
|
private _adaptableInstance;
|
|
7
7
|
constructor(_adaptableInstance: AdaptableAgGrid);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdaptableAgGrid } from './AdaptableAgGrid';
|
|
2
2
|
import { AgGridThemeMode } from './AgGridAdapter';
|
|
3
|
-
import { AdaptableTheme } from '../
|
|
3
|
+
import { AdaptableTheme } from '../AdaptableState/ThemeState';
|
|
4
4
|
export declare class AgGridThemeAdapter {
|
|
5
5
|
private _adaptableInstance;
|
|
6
6
|
private agGridThemeMode;
|
|
@@ -24,10 +24,10 @@ export class AgGridThemeAdapter {
|
|
|
24
24
|
const isSystemTheme = this.api.themeApi.internalApi.isSystemTheme(themeName);
|
|
25
25
|
if (adaptableTheme && (isSystemTheme || variantTheme)) {
|
|
26
26
|
if ((variantTheme || themeName) === LIGHT_THEME) {
|
|
27
|
-
document.body.dataset.agThemeMode = 'light';
|
|
27
|
+
document.body.dataset.agThemeMode = adaptableTheme.AgThemeMode ?? 'light';
|
|
28
28
|
}
|
|
29
29
|
if ((variantTheme || themeName) === DARK_THEME) {
|
|
30
|
-
document.body.dataset.agThemeMode = 'dark';
|
|
30
|
+
document.body.dataset.agThemeMode = adaptableTheme.AgThemeMode ?? 'dark';
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { forwardRef, useImperativeHandle, useState } from 'react';
|
|
3
2
|
import { AdaptableColumnFilter } from '../View/Components/ColumnFilter/AdaptableColumnFilter';
|
|
4
3
|
import { renderWithAdaptableContext } from '../View/renderWithAdaptableContext';
|
|
5
4
|
export const FilterWrapperFactory = (adaptable) => {
|
|
@@ -9,9 +8,7 @@ export const FilterWrapperFactory = (adaptable) => {
|
|
|
9
8
|
return false;
|
|
10
9
|
}
|
|
11
10
|
//make the small filter icon to appear when there is a filter
|
|
12
|
-
return
|
|
13
|
-
.getColumnFilters()
|
|
14
|
-
.findIndex((x) => x.ColumnId == colId) > -1);
|
|
11
|
+
return adaptable.api.filterApi.columnFilterApi.isColumnFilterActiveForColumn(colId);
|
|
15
12
|
}
|
|
16
13
|
function getFilterProps(colId, hidePopup) {
|
|
17
14
|
let column = adaptable.api.columnApi.getColumnWithColumnId(colId);
|
|
@@ -26,35 +23,62 @@ export const FilterWrapperFactory = (adaptable) => {
|
|
|
26
23
|
return 'filter_' + colId + '_' + adaptable.adaptableOptions.adaptableId;
|
|
27
24
|
}
|
|
28
25
|
if (adaptable.variant === 'react') {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
26
|
+
// We used to have the implementation below. However, for updating the filtered/not filtered state of the column
|
|
27
|
+
// we have to call the onModelChange function, and also provide the doesFilterPass function.
|
|
28
|
+
// starting with version 33 of AG Grid, the doesFilterPass has to be passed to the `useGridFilter` hook
|
|
29
|
+
// which needs to be imported from 'ag-grid-react' - see https://www.ag-grid.com/react-data-grid/component-filter/#implementing-a-filter-component
|
|
30
|
+
// but since Adaptable cannot depend on 'ag-grid-react' directly, we can't use a React component anymore
|
|
31
|
+
// so we simply return the same implementation as the vanilla version
|
|
32
|
+
// and comment out the implementation below
|
|
33
|
+
//
|
|
34
|
+
// return forwardRef(function ReactFilterWrapper(
|
|
35
|
+
// props: {
|
|
36
|
+
// column: Column;
|
|
37
|
+
// onModelChange: (model: any) => void;
|
|
38
|
+
// },
|
|
39
|
+
// ref
|
|
40
|
+
// ) {
|
|
41
|
+
// const [filterProps, setFilterProps] = useState<ColumnFilterProps | null>(null);
|
|
42
|
+
// const colId = props.column.getId();
|
|
43
|
+
// const column: AdaptableColumn | undefined =
|
|
44
|
+
// adaptable.api.columnApi.getColumnWithColumnId(colId);
|
|
45
|
+
// const afterGuidAttached = React.useCallback(
|
|
46
|
+
// (params?: { hidePopup?: Function }) => {
|
|
47
|
+
// const hidePopup = params?.hidePopup ?? null;
|
|
48
|
+
// const filterProps = getFilterProps(colId, !!hidePopup);
|
|
49
|
+
// setFilterProps(filterProps);
|
|
50
|
+
// },
|
|
51
|
+
// [colId]
|
|
52
|
+
// );
|
|
53
|
+
// const notifyModel = getNotifyModel(colId, props.onModelChange);
|
|
54
|
+
// React.useEffect(() => {
|
|
55
|
+
// afterGuidAttached();
|
|
56
|
+
// }, []);
|
|
57
|
+
// useImperativeHandle(ref, () => {
|
|
58
|
+
// return {
|
|
59
|
+
// isFilterActive: () => isFilterActive(colId),
|
|
60
|
+
// // left here for backward compatibility
|
|
61
|
+
// afterGuidAttached,
|
|
62
|
+
// // getModel: () => {},
|
|
63
|
+
// // setModel: () => {},
|
|
64
|
+
// //we do not filter here.... we filter using the doesExternalFilterPass. Not sure there is a difference....
|
|
65
|
+
// doesFilterPass: () => true,
|
|
66
|
+
// };
|
|
67
|
+
// });
|
|
68
|
+
// if (!column || !filterProps) {
|
|
69
|
+
// return null;
|
|
70
|
+
// }
|
|
71
|
+
// return renderWithAdaptableContext(
|
|
72
|
+
// <div id={getContainerId(colId)}>
|
|
73
|
+
// <AdaptableColumnFilter
|
|
74
|
+
// wrapperProps={{ p: 2 }}
|
|
75
|
+
// columnId={filterProps.Column.columnId}
|
|
76
|
+
// onChange={notifyModel}
|
|
77
|
+
// />
|
|
78
|
+
// </div>,
|
|
79
|
+
// adaptable
|
|
80
|
+
// );
|
|
81
|
+
// });
|
|
58
82
|
}
|
|
59
83
|
return class FilterWrapper {
|
|
60
84
|
init(params) {
|
|
@@ -82,11 +106,16 @@ export const FilterWrapperFactory = (adaptable) => {
|
|
|
82
106
|
afterGuiAttached(params) {
|
|
83
107
|
//we always unmount first so the autofocus from the form works... in other grids we unmount when hidden
|
|
84
108
|
this.unmountReactRoot?.();
|
|
85
|
-
|
|
109
|
+
const columnId = this.column.getColId();
|
|
110
|
+
let column = adaptable.api.columnApi.getColumnWithColumnId(columnId);
|
|
111
|
+
// for whatever reason, it works without this
|
|
112
|
+
// const notifyModel = getNotifyModel(colId, this.params.filterChangedCallback);
|
|
86
113
|
if (column) {
|
|
87
114
|
this.unmountReactRoot = adaptable.renderReactRoot(renderWithAdaptableContext(React.createElement(AdaptableColumnFilter, {
|
|
88
|
-
columnId
|
|
115
|
+
columnId,
|
|
89
116
|
wrapperProps: { p: 2 },
|
|
117
|
+
// for whatever reason, it works without this
|
|
118
|
+
// onChange: notifyModel,
|
|
90
119
|
}), adaptable),
|
|
91
120
|
// AdaptableColumnFilter(filterProps),
|
|
92
121
|
this.filterContainer);
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { forwardRef, useImperativeHandle } from 'react';
|
|
3
3
|
import { renderWithAdaptableContext } from '../View/renderWithAdaptableContext';
|
|
4
4
|
import { AdaptableFloatingFilter } from '../View/Components/ColumnFilter/AdaptableFloatingFilter';
|
|
5
|
+
import { getAgGridFilterNotifyModelFn } from './getAgGridFilterNotifyModelFn';
|
|
5
6
|
const filterContainerStyle = {
|
|
6
7
|
overflow: 'hidden',
|
|
7
8
|
minWidth: '0',
|
|
@@ -9,6 +10,7 @@ const filterContainerStyle = {
|
|
|
9
10
|
display: 'flex',
|
|
10
11
|
alignItems: 'stretch',
|
|
11
12
|
position: 'relative',
|
|
13
|
+
flex: '1 1 auto',
|
|
12
14
|
};
|
|
13
15
|
export const FloatingFilterWrapperFactory = (adaptable) => {
|
|
14
16
|
const adaptableApi = adaptable.api;
|
|
@@ -24,6 +26,9 @@ export const FloatingFilterWrapperFactory = (adaptable) => {
|
|
|
24
26
|
};
|
|
25
27
|
return columnFilterProps;
|
|
26
28
|
}
|
|
29
|
+
function getNotifyModel(colId, onModelChange) {
|
|
30
|
+
return getAgGridFilterNotifyModelFn(adaptableApi, colId, onModelChange);
|
|
31
|
+
}
|
|
27
32
|
function patchParentElement(filterContainer) {
|
|
28
33
|
if (filterContainer) {
|
|
29
34
|
// todo: consider theme
|
|
@@ -54,17 +59,19 @@ export const FloatingFilterWrapperFactory = (adaptable) => {
|
|
|
54
59
|
if (adaptable.variant === 'react') {
|
|
55
60
|
return forwardRef(function ReactFloatingFilterWrapper(props, ref) {
|
|
56
61
|
const colId = props.column.getId();
|
|
62
|
+
const { onModelChange } = props;
|
|
57
63
|
const column = adaptableApi.columnApi.getColumnWithColumnId(colId);
|
|
58
64
|
useImperativeHandle(ref, () => {
|
|
59
65
|
return {
|
|
60
66
|
onParentModelChanged() { },
|
|
61
67
|
};
|
|
62
68
|
});
|
|
69
|
+
const notifyModel = getNotifyModel(colId, onModelChange);
|
|
63
70
|
if (!column) {
|
|
64
71
|
return null;
|
|
65
72
|
}
|
|
66
73
|
return renderWithAdaptableContext(React.createElement("div", { ref: patchParentElement, id: getContainerId(colId), style: filterContainerStyle },
|
|
67
|
-
React.createElement(AdaptableFloatingFilter, { ...getFilterProps(colId) })), adaptable);
|
|
74
|
+
React.createElement(AdaptableFloatingFilter, { ...getFilterProps(colId), onChange: notifyModel, onClear: notifyModel })), adaptable);
|
|
68
75
|
});
|
|
69
76
|
}
|
|
70
77
|
return class FloatingFilterWrapper {
|
|
@@ -82,10 +89,15 @@ export const FloatingFilterWrapperFactory = (adaptable) => {
|
|
|
82
89
|
//@ts-ignore
|
|
83
90
|
this.filterContainer.style[key] = filterContainerStyle[key];
|
|
84
91
|
});
|
|
92
|
+
const notifyModel = getNotifyModel(colId, params.filterParams.filterChangedCallback);
|
|
85
93
|
const column = adaptableApi.columnApi.getColumnWithColumnId(colId);
|
|
86
94
|
if (column) {
|
|
87
95
|
const filterProps = getFilterProps(colId);
|
|
88
|
-
this.unmountReactRoot = adaptable.renderReactRoot(renderWithAdaptableContext(React.createElement(AdaptableFloatingFilter,
|
|
96
|
+
this.unmountReactRoot = adaptable.renderReactRoot(renderWithAdaptableContext(React.createElement(AdaptableFloatingFilter, {
|
|
97
|
+
...filterProps,
|
|
98
|
+
onChange: notifyModel,
|
|
99
|
+
onClear: notifyModel,
|
|
100
|
+
}), adaptable), this.filterContainer);
|
|
89
101
|
}
|
|
90
102
|
}
|
|
91
103
|
getGui() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridOptions } from 'ag-grid-enterprise';
|
|
2
|
-
import { AdaptableColumnDataType } from '../
|
|
2
|
+
import { AdaptableColumnDataType } from '../AdaptableState/Common/AdaptableColumn';
|
|
3
3
|
export declare const TEXT_ARRAY_DATA_TYPE: AdaptableColumnDataType;
|
|
4
4
|
export declare const NUMBER_ARRAY_DATA_TYPE: AdaptableColumnDataType;
|
|
5
5
|
export declare const TUPLE_ARRAY_DATA_TYPE: AdaptableColumnDataType;
|