@adaptabletools/adaptable-cjs 19.2.3 → 20.0.0-canary.0
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/agGrid.d.ts +1 -1
- package/base.css +3903 -1294
- package/base.css.map +1 -1
- package/index.css +2967 -2120
- package/index.css.map +1 -1
- package/package.json +17 -16
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +28 -32
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +17 -4
- package/src/AdaptableOptions/AdaptableOptions.d.ts +14 -31
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +2 -2
- package/src/AdaptableOptions/AlertOptions.d.ts +6 -6
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +9 -4
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +4 -3
- package/src/AdaptableOptions/ColumnOptions.d.ts +5 -1
- package/src/AdaptableOptions/ContextMenuOptions.d.ts +13 -9
- package/src/AdaptableOptions/DashboardOptions.d.ts +12 -8
- package/src/AdaptableOptions/DataImportOptions.d.ts +1 -1
- package/src/AdaptableOptions/DefaultAdaptableOptions.d.ts +1 -1
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +233 -250
- package/src/AdaptableOptions/EditOptions.d.ts +27 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +128 -55
- package/src/AdaptableOptions/ExpressionOptions.d.ts +3 -7
- package/src/AdaptableOptions/Fdc3Options.d.ts +7 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +219 -0
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +1 -1
- package/src/AdaptableOptions/LayoutOptions.d.ts +4 -45
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/PredicateOptions.d.ts +6 -0
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +11 -28
- package/src/AdaptableOptions/RowFormOptions.d.ts +116 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -3
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +13 -121
- package/src/Api/ActionColumnApi.d.ts +5 -0
- package/src/Api/AdaptableApi.d.ts +10 -19
- package/src/Api/AlertApi.d.ts +2 -2
- package/src/Api/CalculatedColumnApi.d.ts +4 -0
- package/src/Api/CellSummaryApi.d.ts +6 -6
- package/src/Api/ChartingApi.d.ts +1 -1
- package/src/Api/ColumnApi.d.ts +41 -65
- package/src/Api/ColumnFilterApi.d.ts +3 -3
- package/src/Api/ColumnMenuApi.d.ts +62 -0
- package/src/Api/ColumnScopeApi.d.ts +1 -1
- package/src/Api/CommentApi.d.ts +4 -4
- package/src/Api/ConfigApi.d.ts +1 -3
- package/src/Api/ContextMenuApi.d.ts +62 -0
- package/src/Api/DashboardApi.d.ts +1 -1
- package/src/Api/EventApi.d.ts +22 -22
- package/src/Api/Events/AdaptableReady.d.ts +3 -3
- package/src/Api/Events/AdaptableStateChanged.d.ts +2 -10
- package/src/Api/Events/AdaptableStateReloaded.d.ts +2 -6
- package/src/Api/Events/AlertFired.d.ts +2 -2
- package/src/Api/Events/CalculatedColumnChanged.d.ts +2 -2
- package/src/Api/Events/CellChanged.d.ts +3 -3
- package/src/Api/Events/CellSelectionChanged.d.ts +2 -2
- package/src/Api/Events/ChartChanged.d.ts +2 -3
- package/src/Api/Events/ColumnFilterApplied.d.ts +2 -3
- package/src/Api/Events/CommentChanged.d.ts +2 -3
- package/src/Api/Events/CustomToolbarConfigured.d.ts +2 -2
- package/src/Api/Events/DashboardChanged.d.ts +2 -2
- package/src/Api/Events/DataImported.d.ts +3 -3
- package/src/Api/Events/DataSetSelected.d.ts +2 -3
- package/src/Api/Events/Fdc3MessageInfo.d.ts +3 -3
- package/src/Api/Events/FlashingCellDisplayed.d.ts +2 -2
- package/src/Api/Events/GridFilterApplied.d.ts +2 -3
- package/src/Api/Events/GridSorted.d.ts +3 -17
- package/src/Api/Events/LayoutChanged.d.ts +2 -2
- package/src/Api/Events/LiveDataChanged.d.ts +2 -2
- package/src/Api/Events/RowChanged.d.ts +11 -0
- package/src/Api/Events/RowFormSubmitted.d.ts +54 -0
- package/src/Api/Events/RowSelectionChanged.d.ts +2 -2
- package/src/Api/Events/ScheduleTriggered.d.ts +2 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +2 -2
- package/src/Api/Events/TeamSharingEntityChanged.d.ts +2 -2
- package/src/Api/Events/ThemeChanged.d.ts +2 -2
- package/src/Api/ExportApi.d.ts +75 -69
- package/src/Api/ExpressionApi.d.ts +2 -2
- package/src/Api/Fdc3Api.d.ts +1 -9
- package/src/Api/FilterApi.d.ts +18 -0
- package/src/Api/FormatColumnApi.d.ts +7 -2
- package/src/Api/FreeTextColumnApi.d.ts +1 -1
- package/src/Api/GridApi.d.ts +51 -35
- package/src/Api/GridFilterApi.d.ts +1 -2
- package/src/Api/IPushPullApi.d.ts +1 -1
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +5 -2
- package/src/Api/Implementation/ActionColumnApiImpl.js +8 -31
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +5 -8
- package/src/Api/Implementation/AdaptableApiImpl.js +6 -11
- package/src/Api/Implementation/AlertApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AlertApiImpl.js +42 -48
- package/src/Api/Implementation/ApiBase.d.ts +10 -7
- package/src/Api/Implementation/ApiBase.js +21 -18
- package/src/Api/Implementation/BulkUpdateApiImpl.js +1 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +26 -22
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +3 -3
- package/src/Api/Implementation/CellSummaryApiImpl.js +6 -8
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +30 -24
- package/src/Api/Implementation/ColumnApiImpl.d.ts +22 -16
- package/src/Api/Implementation/ColumnApiImpl.js +186 -114
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ColumnFilterApiImpl.js +53 -51
- package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +13 -0
- package/src/Api/Implementation/ColumnMenuApiImpl.js +51 -0
- package/src/Api/Implementation/ColumnScopeApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnScopeApiImpl.js +16 -21
- package/src/Api/Implementation/CommentsApiImpl.d.ts +4 -4
- package/src/Api/Implementation/CommentsApiImpl.js +8 -11
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -3
- package/src/Api/Implementation/ConfigApiImpl.js +17 -25
- package/src/Api/Implementation/ContextMenuApiImpl.d.ts +13 -0
- package/src/Api/Implementation/ContextMenuApiImpl.js +51 -0
- package/src/Api/Implementation/CustomSortApiImpl.js +5 -3
- package/src/Api/Implementation/DashboardApiImpl.js +8 -7
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +10 -11
- package/src/Api/Implementation/DataSetApiImpl.js +5 -6
- package/src/Api/Implementation/EntitlementApiImpl.js +6 -2
- package/src/Api/Implementation/EventApiImpl.d.ts +2 -0
- package/src/Api/Implementation/EventApiImpl.js +2 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +22 -19
- package/src/Api/Implementation/ExportApiImpl.js +105 -58
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ExpressionApiImpl.js +11 -5
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +1 -3
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -33
- package/src/Api/Implementation/FilterApiImpl.d.ts +13 -0
- package/src/Api/Implementation/FilterApiImpl.js +20 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +16 -25
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +3 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +19 -12
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +5 -6
- package/src/Api/Implementation/GridApiImpl.d.ts +15 -12
- package/src/Api/Implementation/GridApiImpl.js +92 -82
- package/src/Api/Implementation/GridFilterApiImpl.js +6 -4
- package/src/Api/Implementation/LayoutApiImpl.d.ts +7 -9
- package/src/Api/Implementation/LayoutApiImpl.js +45 -50
- package/src/Api/Implementation/LayoutHelpers.d.ts +23 -0
- package/src/Api/Implementation/LayoutHelpers.js +319 -0
- package/src/Api/Implementation/NamedQueryApiImpl.js +1 -1
- package/src/Api/Implementation/NoteApiImpl.js +4 -1
- package/src/Api/Implementation/OptionsApiImpl.d.ts +9 -12
- package/src/Api/Implementation/OptionsApiImpl.js +25 -11
- package/src/Api/Implementation/PlusMinusApiImpl.js +2 -3
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -0
- package/src/Api/Implementation/PredicateApiImpl.js +22 -8
- package/src/Api/Implementation/QuickSearchApiImpl.js +3 -3
- package/src/Api/Implementation/RowFormApiImpl.d.ts +11 -0
- package/src/Api/Implementation/{ActionRowApiImpl.js → RowFormApiImpl.js} +10 -18
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +0 -2
- package/src/Api/Implementation/ScheduleApiImpl.js +10 -14
- package/src/Api/Implementation/ShortcutApiImpl.js +3 -3
- package/src/Api/Implementation/SmartEditApiImpl.js +7 -8
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.js +1 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +8 -7
- package/src/Api/Implementation/TeamSharingApiImpl.js +5 -6
- package/src/Api/Implementation/ThemeApiImpl.js +6 -11
- package/src/Api/Implementation/ToolPanelApiImpl.js +3 -6
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -15
- package/src/Api/Implementation/UserInterfaceApiImpl.js +29 -117
- package/src/Api/Internal/ActionColumnInternalApi.d.ts +13 -0
- package/src/Api/Internal/ActionColumnInternalApi.js +143 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +27 -28
- package/src/Api/Internal/AdaptableInternalApi.js +69 -125
- package/src/Api/Internal/AlertInternalApi.d.ts +15 -18
- package/src/Api/Internal/AlertInternalApi.js +158 -139
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -2
- package/src/Api/Internal/CalculatedColumnInternalApi.js +36 -28
- package/src/Api/Internal/ChartingInternalApi.js +33 -18
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +6 -22
- package/src/Api/Internal/ColumnFilterInternalApi.js +69 -91
- package/src/Api/Internal/ColumnInternalApi.d.ts +4 -1
- package/src/Api/Internal/ColumnInternalApi.js +30 -1
- package/src/Api/Internal/CommentsInternalApi.d.ts +1 -1
- package/src/Api/Internal/CommentsInternalApi.js +2 -3
- package/src/Api/Internal/CustomSortInternalApi.d.ts +2 -0
- package/src/Api/Internal/CustomSortInternalApi.js +22 -7
- package/src/Api/Internal/DashboardInternalApi.d.ts +0 -4
- package/src/Api/Internal/DashboardInternalApi.js +3 -39
- package/src/Api/Internal/DataImportInternalApi.d.ts +0 -6
- package/src/Api/Internal/DataImportInternalApi.js +22 -21
- package/src/Api/Internal/DataSetInternalApi.d.ts +1 -5
- package/src/Api/Internal/DataSetInternalApi.js +15 -8
- package/src/Api/Internal/EntitlementInternalApi.js +2 -2
- package/src/Api/Internal/EventInternalApi.d.ts +27 -0
- package/src/Api/Internal/EventInternalApi.js +199 -0
- package/src/Api/Internal/ExportInternalApi.d.ts +19 -26
- package/src/Api/Internal/ExportInternalApi.js +175 -399
- package/src/Api/Internal/ExpressionInternalApi.js +21 -17
- package/src/Api/Internal/Fdc3InternalApi.d.ts +3 -2
- package/src/Api/Internal/Fdc3InternalApi.js +66 -34
- package/src/Api/Internal/FilterInternalApi.d.ts +3 -0
- package/src/Api/Internal/FilterInternalApi.js +7 -0
- package/src/Api/Internal/FlashingCellInternalApi.js +3 -4
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +34 -23
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -1
- package/src/Api/Internal/FreeTextColumnInternalApi.js +32 -26
- package/src/Api/Internal/GridFilterInternalApi.d.ts +0 -1
- package/src/Api/Internal/GridFilterInternalApi.js +1 -11
- package/src/Api/Internal/GridInternalApi.d.ts +24 -73
- package/src/Api/Internal/GridInternalApi.js +88 -382
- package/src/Api/Internal/LayoutInternalApi.d.ts +7 -24
- package/src/Api/Internal/LayoutInternalApi.js +93 -107
- package/src/Api/Internal/NamedQueryInternalApi.d.ts +2 -0
- package/src/Api/Internal/NamedQueryInternalApi.js +39 -3
- package/src/Api/Internal/NoteInternalApi.js +1 -2
- package/src/Api/Internal/PredicateInternalApi.js +40 -19
- package/src/Api/Internal/RowFormInternalApi.d.ts +22 -0
- package/src/Api/Internal/RowFormInternalApi.js +204 -0
- package/src/Api/Internal/ScheduleInternalApi.d.ts +1 -8
- package/src/Api/Internal/ScheduleInternalApi.js +0 -13
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +1 -1
- package/src/Api/Internal/StyledColumnInternalApi.js +19 -22
- package/src/Api/Internal/SystemStatusInternalApi.d.ts +0 -5
- package/src/Api/Internal/SystemStatusInternalApi.js +3 -11
- package/src/Api/Internal/TeamSharingInternalApi.d.ts +0 -5
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -13
- package/src/Api/Internal/UserInterfaceInternalApi.d.ts +2 -1
- package/src/Api/Internal/UserInterfaceInternalApi.js +11 -0
- package/src/Api/LayoutApi.d.ts +14 -23
- package/src/Api/OptionsApi.d.ts +31 -17
- package/src/Api/PredicateApi.d.ts +1 -0
- package/src/Api/RowFormApi.d.ts +19 -0
- package/src/Api/StatusBarApi.d.ts +1 -1
- package/src/Api/UserInterfaceApi.d.ts +9 -42
- package/src/EnvVars.js +1 -1
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -4
- package/src/PredefinedConfig/AlertState.d.ts +6 -6
- package/src/PredefinedConfig/ChartingState.d.ts +1 -1
- package/src/PredefinedConfig/CommentState.d.ts +2 -3
- package/src/PredefinedConfig/Common/AdaptableAlert.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +37 -7
- package/src/PredefinedConfig/Common/AdaptableColumn.js +6 -7
- package/src/PredefinedConfig/Common/AdaptableColumnContext.d.ts +11 -0
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +1 -2
- package/src/PredefinedConfig/Common/AdaptableForm.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +2 -0
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -2
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +99 -129
- package/src/PredefinedConfig/Common/AdaptableSortState.d.ts +15 -0
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +11 -5
- package/src/PredefinedConfig/Common/AggregationColumns.js +9 -2
- package/src/PredefinedConfig/Common/BaseContext.d.ts +14 -2
- package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/CellSummary.d.ts +5 -5
- package/src/PredefinedConfig/Common/ColumnFilter.d.ts +7 -15
- package/src/PredefinedConfig/Common/ColumnScope.d.ts +1 -1
- package/src/PredefinedConfig/Common/ColumnSetupInfo.d.ts +8 -0
- package/src/PredefinedConfig/Common/CustomWindowConfig.d.ts +1 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -11
- package/src/PredefinedConfig/Common/Enums.js +12 -25
- package/src/PredefinedConfig/Common/Menu.d.ts +7 -5
- package/src/PredefinedConfig/Common/Menu.js +26 -23
- package/src/PredefinedConfig/Common/ProgressIndicatorConfig.d.ts +1 -1
- package/src/PredefinedConfig/Common/RowDataChangedInfo.d.ts +23 -0
- package/src/PredefinedConfig/Common/RowScope.d.ts +2 -2
- package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +2 -1
- package/src/PredefinedConfig/Common/Types.d.ts +0 -4
- package/src/PredefinedConfig/Common/Types.js +2 -2
- package/src/PredefinedConfig/CustomSortState.d.ts +2 -2
- package/src/PredefinedConfig/ExportState.d.ts +70 -15
- package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/InternalState.d.ts +118 -7
- package/src/PredefinedConfig/LayoutState.d.ts +152 -32
- package/src/PredefinedConfig/PopupState.d.ts +7 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +18 -18
- package/src/PredefinedConfig/Selection/GridCell.d.ts +16 -9
- package/src/PredefinedConfig/Selection/GridRow.d.ts +1 -1
- package/src/PredefinedConfig/Selection/SelectedRowInfo.d.ts +1 -1
- package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
- package/src/PredefinedConfig/StatusBarState.d.ts +1 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +7 -6
- package/src/PredefinedConfig/TeamSharingState.d.ts +2 -2
- package/src/Redux/ActionsReducers/AlertRedux.js +26 -8
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +11 -5
- package/src/Redux/ActionsReducers/ChartingRedux.js +41 -14
- package/src/Redux/ActionsReducers/CommentsRedux.js +49 -24
- package/src/Redux/ActionsReducers/CustomSortRedux.js +26 -8
- package/src/Redux/ActionsReducers/DashboardRedux.js +9 -9
- package/src/Redux/ActionsReducers/ExportRedux.d.ts +6 -16
- package/src/Redux/ActionsReducers/ExportRedux.js +19 -23
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +31 -10
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +38 -11
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +12 -7
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +349 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +964 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +13 -1
- package/src/Redux/ActionsReducers/LayoutRedux.js +142 -65
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +12 -6
- package/src/Redux/ActionsReducers/NoteRedux.js +11 -6
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/PluginsRedux.js +1 -1
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +36 -13
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +10 -1
- package/src/Redux/ActionsReducers/PopupRedux.js +66 -7
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -2
- package/src/Redux/ActionsReducers/ScheduleRedux.js +104 -32
- package/src/Redux/ActionsReducers/ShortcutRedux.js +26 -8
- package/src/Redux/ActionsReducers/SmartEditRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/SmartEditRedux.js +1 -1
- package/src/Redux/ActionsReducers/StatusBarRedux.js +4 -1
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +26 -8
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +1 -1
- package/src/Redux/ActionsReducers/ThemeRedux.js +3 -2
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +9 -8
- package/src/Redux/ActionsReducers/utils.js +13 -4
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.d.ts +1 -1
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +7 -26
- package/src/Redux/Store/AdaptableReduxMerger.js +4 -5
- package/src/Redux/Store/AdaptableStore.d.ts +1 -1
- package/src/Redux/Store/AdaptableStore.js +406 -538
- package/src/Strategy/AlertModule.d.ts +10 -5
- package/src/Strategy/AlertModule.js +55 -27
- package/src/Strategy/BulkUpdateModule.d.ts +1 -1
- package/src/Strategy/BulkUpdateModule.js +6 -6
- package/src/Strategy/CalculatedColumnModule.d.ts +12 -11
- package/src/Strategy/CalculatedColumnModule.js +41 -16
- package/src/Strategy/CellSummaryModule.d.ts +18 -11
- package/src/Strategy/CellSummaryModule.js +83 -45
- package/src/Strategy/ChartingModule.d.ts +2 -1
- package/src/Strategy/ChartingModule.js +17 -3
- package/src/Strategy/ColumnFilterModule.d.ts +1 -2
- package/src/Strategy/ColumnFilterModule.js +27 -29
- package/src/Strategy/ColumnInfoModule.d.ts +2 -2
- package/src/Strategy/ColumnInfoModule.js +1 -1
- package/src/Strategy/CommentModule.d.ts +1 -2
- package/src/Strategy/CommentModule.js +18 -14
- package/src/Strategy/CustomSortModule.d.ts +2 -13
- package/src/Strategy/CustomSortModule.js +1 -1
- package/src/Strategy/DashboardModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.d.ts +8 -3
- package/src/Strategy/DataChangeHistoryModule.js +22 -10
- package/src/Strategy/DataSetModule.js +4 -7
- package/src/Strategy/ExportModule.d.ts +5 -17
- package/src/Strategy/ExportModule.js +70 -282
- package/src/Strategy/Fdc3Module.d.ts +1 -1
- package/src/Strategy/Fdc3Module.js +10 -12
- package/src/Strategy/FlashingCellModule.d.ts +12 -9
- package/src/Strategy/FlashingCellModule.js +139 -108
- package/src/Strategy/FormatColumnModule.d.ts +1 -1
- package/src/Strategy/FormatColumnModule.js +5 -5
- package/src/Strategy/FreeTextColumnModule.d.ts +10 -9
- package/src/Strategy/FreeTextColumnModule.js +39 -17
- package/src/Strategy/GridFilterModule.d.ts +3 -1
- package/src/Strategy/GridFilterModule.js +13 -1
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/Interface/ICellDataChangeListenerModule.d.ts +6 -0
- package/src/Strategy/Interface/ICellSummaryModule.d.ts +2 -2
- package/src/Strategy/Interface/{IShortcutModule.d.ts → IKeyDownListenerModule.d.ts} +1 -1
- package/src/Strategy/Interface/IModule.d.ts +4 -0
- package/src/Strategy/Interface/IPlusMinusModule.d.ts +2 -3
- package/src/Strategy/LayoutModule.d.ts +6 -25
- package/src/Strategy/LayoutModule.js +109 -64
- package/src/Strategy/NamedQueryModule.d.ts +2 -15
- package/src/Strategy/NamedQueryModule.js +2 -2
- package/src/Strategy/NoteModule.d.ts +3 -1
- package/src/Strategy/NoteModule.js +12 -7
- package/src/Strategy/PlusMinusModule.d.ts +3 -2
- package/src/Strategy/PlusMinusModule.js +32 -24
- package/src/Strategy/ScheduleModule.js +2 -2
- package/src/Strategy/SettingsPanelModule.d.ts +2 -2
- package/src/Strategy/ShortcutModule.d.ts +3 -2
- package/src/Strategy/ShortcutModule.js +10 -2
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SmartEditModule.js +10 -6
- package/src/Strategy/StatusBarModule.d.ts +1 -1
- package/src/Strategy/StyledColumnModule.d.ts +1 -1
- package/src/Strategy/StyledColumnModule.js +47 -20
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Strategy/TeamSharingModule.js +9 -9
- package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.js +1 -2
- package/src/Strategy/Utilities/CustomSort/getCustomSortSortOrderViewItems.d.ts +1 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +4 -5
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +11 -18
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -2
- package/src/Strategy/Utilities/Shortcut/getShortcutSettingsViewItems.js +2 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +15 -15
- package/src/Utilities/Constants/GeneralConstants.d.ts +31 -85
- package/src/Utilities/Constants/GeneralConstants.js +55 -113
- package/src/Utilities/Constants/ModuleConstants.d.ts +28 -30
- package/src/Utilities/Constants/ModuleConstants.js +30 -33
- package/src/Utilities/Constants/ObjectDefaultConstants.d.ts +7 -0
- package/src/Utilities/Constants/ObjectDefaultConstants.js +9 -0
- package/src/Utilities/Constants/ReduxConstants.d.ts +7 -0
- package/src/Utilities/Constants/ReduxConstants.js +28 -0
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +1 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -4
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +2 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +2 -2
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +365 -71
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +2 -4
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/deepMap.js +8 -8
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +8 -8
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +12 -13
- package/src/Utilities/ExpressionFunctions/groupingMap.js +4 -5
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +13 -17
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +2 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +95 -9
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +5 -4
- package/src/Utilities/Extensions/ArrayExtensions.js +3 -3
- package/src/Utilities/Extensions/NumberExtensions.d.ts +6 -2
- package/src/Utilities/Extensions/NumberExtensions.js +61 -4
- package/src/Utilities/Extensions/ObjectExtensions.js +8 -3
- package/src/Utilities/Extensions/TypeExtensions.d.ts +5 -0
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +4 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +19 -8
- package/src/Utilities/Helpers/FormatHelper.d.ts +1 -1
- package/src/Utilities/Helpers/FormatHelper.js +5 -6
- package/src/Utilities/Helpers/Helper.d.ts +1 -1
- package/src/Utilities/Helpers/Helper.js +19 -33
- package/src/Utilities/Helpers/StyleHelper.js +7 -4
- package/src/Utilities/Interface/Preview.d.ts +1 -1
- package/src/Utilities/MenuItem.d.ts +3 -3
- package/src/Utilities/MenuItem.js +3 -3
- package/src/Utilities/ObjectFactory.d.ts +13 -10
- package/src/Utilities/ObjectFactory.js +66 -35
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -1
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +4 -7
- package/src/Utilities/Services/AlertService.js +3 -3
- package/src/Utilities/Services/{CellPopupService.d.ts → AnnotationsService.d.ts} +7 -3
- package/src/Utilities/Services/{CellPopupService.js → AnnotationsService.js} +47 -33
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +5 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +36 -43
- package/src/Utilities/Services/ChartingService.d.ts +1 -1
- package/src/Utilities/Services/ChartingService.js +22 -12
- package/src/Utilities/Services/DataService.d.ts +7 -7
- package/src/Utilities/Services/DataService.js +23 -18
- package/src/Utilities/Services/Fdc3Service.js +66 -29
- package/src/Utilities/Services/FlashingCellService.d.ts +1 -1
- package/src/Utilities/Services/FlashingCellService.js +2 -2
- package/src/Utilities/Services/Interface/IAlertService.d.ts +7 -7
- package/src/Utilities/Services/Interface/IAlertService.js +4 -4
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +5 -1
- package/src/Utilities/Services/Interface/IChartingService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IDataService.d.ts +6 -5
- package/src/Utilities/Services/Interface/IModuleService.d.ts +2 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +4 -4
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +15 -15
- package/src/Utilities/Services/ModuleService.d.ts +4 -1
- package/src/Utilities/Services/ModuleService.js +34 -23
- package/src/Utilities/Services/QueryLanguageService.d.ts +4 -4
- package/src/Utilities/Services/QueryLanguageService.js +79 -59
- package/src/Utilities/Services/{RowEditService.d.ts → RowFormService.d.ts} +2 -2
- package/src/Utilities/Services/RowFormService.js +49 -0
- package/src/Utilities/Services/RowSummaryService.d.ts +3 -3
- package/src/Utilities/Services/RowSummaryService.js +22 -21
- package/src/Utilities/Services/TeamSharingService.js +29 -21
- package/src/Utilities/Services/ThemeService.js +1 -2
- package/src/Utilities/Services/ValidationService.js +30 -14
- package/src/Utilities/adaptableQlUtils.d.ts +1 -0
- package/src/Utilities/adaptableQlUtils.js +33 -5
- package/src/{agGrid → Utilities}/buildSortedColumnStateForLayout.d.ts +2 -2
- package/src/{agGrid → Utilities}/buildSortedColumnStateForLayout.js +39 -28
- package/src/{agGrid → Utilities}/createAgStatusPanelComponent.d.ts +3 -3
- package/src/{agGrid → Utilities}/createAgStatusPanelComponent.js +1 -2
- package/src/Utilities/getExpressionViewItems.d.ts +3 -0
- package/src/{Strategy/Utilities → Utilities}/getExpressionViewItems.js +2 -2
- package/src/Utilities/getObjectTagsViewItems.d.ts +3 -0
- package/src/{Strategy/Utilities → Utilities}/getObjectTagsViewItems.js +9 -8
- package/src/{Strategy/Utilities → Utilities}/getRuleViewItems.d.ts +1 -1
- package/src/Utilities/getRuleViewItems.js +14 -0
- package/src/Utilities/getScopeViewItems.d.ts +3 -0
- package/src/Utilities/isPivotLayout.d.ts +2 -0
- package/src/Utilities/isPivotLayout.js +5 -0
- package/src/Utilities/license/decode.js +1 -1
- package/src/Utilities/logDeprecation.d.ts +3 -3
- package/src/Utilities/logDeprecation.js +2 -2
- package/src/Utilities/runIfNotResolvedIn.js +1 -1
- package/src/{Strategy/Utilities → Utilities}/updateSingleToMultiplePredicates.js +1 -2
- package/src/{agGrid → Utilities}/weightedAverage.d.ts +1 -1
- package/src/{agGrid → Utilities}/weightedAverage.js +2 -3
- package/src/View/AdaptablePopover/index.d.ts +1 -1
- package/src/View/AdaptablePopover/index.js +3 -4
- package/src/View/AdaptableView.js +6 -9
- package/src/View/AdaptableViewFactory.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +16 -13
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +25 -17
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +25 -11
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +2 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +23 -13
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +12 -7
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +20 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +22 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +1 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +5 -2
- package/src/View/AdaptableWizardView/Wizard.d.ts +2 -2
- package/src/View/AdaptableWizardView/Wizard.js +24 -7
- package/src/View/AdaptableWizardView/helper.d.ts +1 -1
- package/src/View/AdaptableWizardView/helper.js +20 -11
- package/src/View/AdaptableWizardView/index.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +1 -1
- package/src/View/Alert/ActiveAlertsPanelItemLabel.js +1 -1
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/AlertStatusSubPanel.d.ts +2 -2
- package/src/View/Alert/AlertStatusSubPanel.js +5 -3
- package/src/View/Alert/AlertViewPanel.d.ts +7 -5
- package/src/View/Alert/AlertViewPanel.js +4 -4
- package/src/View/Alert/AlertsPanel.js +1 -2
- package/src/View/Alert/Utilities/getAlertType.js +8 -9
- package/src/View/Alert/Utilities/getAvailablePredicates.js +1 -8
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +2 -1
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +5 -6
- package/src/View/Alert/Utilities/mapAlertDefinition.js +9 -10
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +4 -4
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +7 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +2 -2
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +77 -52
- package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +3 -3
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +14 -5
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +2 -2
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +38 -19
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +4 -4
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +20 -11
- package/src/View/Alert/Wizard/AlertScopeWizardSection.d.ts +2 -2
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +3 -3
- package/src/View/Alert/Wizard/AlertWizard.d.ts +2 -2
- package/src/View/Alert/Wizard/AlertWizard.js +8 -10
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +2 -2
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.d.ts +7 -5
- package/src/View/BulkUpdate/BulkUpdatePopup.js +12 -13
- package/src/View/BulkUpdate/BulkUpdateViewPanel.d.ts +7 -6
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +11 -14
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +6 -3
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.d.ts +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +17 -7
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +16 -5
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +28 -14
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +13 -10
- package/src/View/CalculatedColumn/utils.js +1 -2
- package/src/View/CellSummary/CellSummaryDetails.d.ts +3 -3
- package/src/View/CellSummary/CellSummaryDetails.js +5 -5
- package/src/View/CellSummary/CellSummaryPopover.d.ts +2 -2
- package/src/View/CellSummary/CellSummaryPopup.d.ts +8 -6
- package/src/View/CellSummary/CellSummaryPopup.js +5 -6
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.d.ts +2 -2
- package/src/View/CellSummary/CellSummaryStatusPanel.js +4 -5
- package/src/View/CellSummary/CellSummaryViewPanel.d.ts +9 -8
- package/src/View/CellSummary/CellSummaryViewPanel.js +9 -13
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +1 -2
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +6 -3
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +33 -5
- package/src/View/Charting/ChartingWizard/ChartingWizard.js +3 -3
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +2 -4
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +4 -1
- package/src/View/Charting/ShowChartButton.js +18 -17
- package/src/View/Charting/useAgChartState.js +6 -7
- package/src/View/Charting/useChartingElements.d.ts +6 -6
- package/src/View/Charting/useChartingElements.js +4 -5
- package/src/View/ColumnInfo/ColumnInfo.js +144 -98
- package/src/View/ColumnInfo/ColumnInfoPopup.js +1 -2
- package/src/View/Comments/CommentsEditor.js +23 -23
- package/src/View/Comments/CommentsPopup.js +3 -4
- package/src/View/Components/AdaptableButton/index.js +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +4 -2
- package/src/View/Components/AdaptableDateInput/index.js +24 -17
- package/src/View/Components/AdaptableIconComponent/index.js +1 -1
- package/src/View/Components/AdaptableIconSelector/index.js +3 -4
- package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.d.ts +3 -2
- package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.js +4 -7
- package/src/View/Components/AdaptableInput/index.d.ts +5 -3
- package/src/View/Components/AdaptableInput/index.js +3 -4
- package/src/View/Components/AdaptableObjectCollection/index.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +10 -12
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +18 -28
- package/src/View/Components/Badge/index.js +1 -1
- package/src/View/Components/Buttons/ButtonApply.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonApply.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +1 -1
- package/src/View/Components/Buttons/ButtonClear.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonClear.js +1 -1
- package/src/View/Components/Buttons/ButtonClone.d.ts +2 -2
- package/src/View/Components/Buttons/ButtonClone.js +1 -1
- package/src/View/Components/Buttons/ButtonClose.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonClose.js +1 -1
- package/src/View/Components/Buttons/ButtonConfigure.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonConfigure.js +1 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +3 -8
- package/src/View/Components/Buttons/ButtonDelete.js +17 -27
- package/src/View/Components/Buttons/ButtonEdit.js +1 -2
- package/src/View/Components/Buttons/ButtonExpand.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonExpand.js +1 -1
- package/src/View/Components/Buttons/ButtonExport.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonExport.js +1 -1
- package/src/View/Components/Buttons/ButtonFunction.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonFunction.js +1 -1
- package/src/View/Components/Buttons/ButtonGeneral.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonGeneral.js +1 -1
- package/src/View/Components/Buttons/ButtonInfo.js +1 -1
- package/src/View/Components/Buttons/ButtonInvalid.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonInvalid.js +1 -1
- package/src/View/Components/Buttons/ButtonLogin.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonLogin.js +1 -1
- package/src/View/Components/Buttons/ButtonLogout.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonLogout.js +1 -1
- package/src/View/Components/Buttons/ButtonMaximise.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonMaximise.js +1 -1
- package/src/View/Components/Buttons/ButtonMinimise.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonMinimise.js +1 -1
- package/src/View/Components/Buttons/ButtonNew.d.ts +2 -2
- package/src/View/Components/Buttons/ButtonNew.js +1 -1
- package/src/View/Components/Buttons/ButtonNewPage.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonNewPage.js +2 -2
- package/src/View/Components/Buttons/ButtonOpen.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonOpen.js +1 -1
- package/src/View/Components/Buttons/ButtonPause.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonPause.js +13 -15
- package/src/View/Components/Buttons/ButtonPlay.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonPlay.js +3 -5
- package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +2 -2
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +1 -1
- package/src/View/Components/Buttons/ButtonSave.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonSave.js +1 -1
- package/src/View/Components/Buttons/ButtonSchedule.d.ts +1 -3
- package/src/View/Components/Buttons/ButtonSchedule.js +3 -5
- package/src/View/Components/Buttons/ButtonShare.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonShare.js +2 -3
- package/src/View/Components/Buttons/ButtonShow.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonShow.js +1 -1
- package/src/View/Components/Buttons/ButtonShowChart.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonShowChart.js +1 -1
- package/src/View/Components/Buttons/ButtonStop.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonStop.js +1 -1
- package/src/View/Components/Buttons/ButtonUndo.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonUndo.js +1 -1
- package/src/View/Components/Buttons/ButtonUnsuspend.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonUnsuspend.js +1 -1
- package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -1
- package/src/View/Components/CellPopup/index.js +1 -2
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.d.ts +12 -0
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +16 -0
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.d.ts +9 -0
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.js +36 -0
- package/src/View/Components/ColumnFilter/ColumnFilter.d.ts +13 -0
- package/src/View/Components/ColumnFilter/ColumnFilter.js +149 -0
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.d.ts +3 -0
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +37 -0
- package/src/View/Components/ColumnFilter/FloatingFilter.d.ts +12 -0
- package/src/View/Components/ColumnFilter/FloatingFilter.js +89 -0
- package/src/View/Components/ColumnFilter/LayoutColumnFilter.d.ts +6 -0
- package/src/View/Components/ColumnFilter/LayoutColumnFilter.js +30 -0
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.d.ts +27 -0
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +122 -0
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.d.ts +13 -0
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +61 -0
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.d.ts +12 -0
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +22 -0
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.d.ts +13 -0
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +63 -0
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.d.ts +44 -0
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +114 -0
- package/src/View/Components/ColumnFilter/hooks.d.ts +2 -0
- package/src/View/Components/ColumnFilter/hooks.js +15 -0
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.d.ts +12 -0
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.js +67 -0
- package/src/View/Components/ColumnFilter/utils.d.ts +8 -0
- package/src/View/Components/ColumnFilter/utils.js +128 -0
- package/src/View/Components/ColumnSelector/index.d.ts +2 -2
- package/src/View/Components/ColumnSelector/index.js +1 -2
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +18 -16
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +23 -17
- package/src/View/Components/EntityRulesEditor/Utilities.js +11 -12
- package/src/View/Components/EntityRulesEditor/index.d.ts +2 -2
- package/src/View/Components/EntityRulesEditor/index.js +47 -27
- package/src/View/Components/ExpressionWizard.d.ts +1 -1
- package/src/View/Components/ExpressionWizard.js +2 -3
- package/src/View/Components/ExternalRenderer.js +7 -14
- package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +8 -15
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +29 -75
- package/src/View/Components/FilterForm/ListBoxMenu.d.ts +1 -1
- package/src/View/Components/FilterForm/Waiting.js +2 -2
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +2 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +6 -1
- package/src/View/Components/ListBox/DualListBoxEditor.d.ts +1 -1
- package/src/View/Components/ListBox/DualListBoxEditor.js +4 -4
- package/src/View/Components/ListBox/ListBoxFilterSortComponent.d.ts +1 -1
- package/src/View/Components/ModuleValueSelector/index.d.ts +2 -2
- package/src/View/Components/ModuleValueSelector/index.js +4 -4
- package/src/View/Components/NewScopeComponent.d.ts +2 -2
- package/src/View/Components/NewScopeComponent.js +22 -27
- package/src/View/Components/Panels/PanelDashboard/index.d.ts +3 -3
- package/src/View/Components/Panels/PanelDashboard/index.js +4 -4
- package/src/View/Components/Panels/PanelFooter.js +2 -3
- package/src/View/Components/Panels/PanelToolPanel/index.d.ts +1 -1
- package/src/View/Components/Panels/PanelToolPanel/index.js +25 -2
- package/src/View/Components/Panels/PanelWithButton.d.ts +1 -3
- package/src/View/Components/Panels/PanelWithButton.js +15 -21
- package/src/View/Components/Panels/PanelWithImage.js +6 -3
- package/src/View/Components/Panels/PanelWithRow.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithTwoButtons.js +1 -1
- package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +1 -1
- package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +2 -2
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +7 -8
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +2 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +13 -11
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +36 -34
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +7 -7
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +1 -2
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +9 -11
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +7 -5
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -3
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +1 -2
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +3 -3
- package/src/View/Components/Popups/FormPopups/FormPopups.js +6 -3
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +13 -14
- package/src/View/Components/Popups/WindowPopups/WindowPopups.d.ts +1 -1
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +22 -10
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +4 -4
- package/src/View/Components/PredicateEditor/PredicateEditor.js +46 -29
- package/src/View/Components/PreviewResultsPanel.js +23 -32
- package/src/View/Components/RangesComponent.d.ts +1 -1
- package/src/View/Components/RangesComponent.js +21 -10
- package/src/View/Components/ReorderDraggable/index.d.ts +12 -0
- package/src/View/Components/ReorderDraggable/index.js +45 -0
- package/src/View/Components/Selectors/{ColumnValueSelector.d.ts → BulkUpdateValueSelector.d.ts} +2 -2
- package/src/View/Components/Selectors/{ColumnValueSelector.js → BulkUpdateValueSelector.js} +32 -14
- package/src/View/Components/Selectors/ColumnSelector.d.ts +3 -2
- package/src/View/Components/Selectors/ColumnSelector.js +9 -7
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +1 -1
- package/src/View/Components/Selectors/ColumnSelectorOld.js +1 -2
- package/src/View/Components/Selectors/FieldSelector.js +5 -9
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +13 -2
- package/src/View/Components/Selectors/PermittedValuesSelector.js +37 -8
- package/src/View/Components/SharedProps/EditableConfigEntityState.js +1 -1
- package/src/View/Components/StyleComponent.d.ts +1 -1
- package/src/View/Components/StyleComponent.js +3 -4
- package/src/View/Components/TagValueSelector/index.d.ts +3 -3
- package/src/View/Components/TagValueSelector/index.js +1 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +11 -8
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +15 -27
- package/src/View/Components/ToolPanel/CustomToolPanelContent.d.ts +2 -2
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +19 -8
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +7 -4
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +8 -10
- package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +2 -2
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -2
- package/src/View/Components/ValueSelector/index.d.ts +20 -2
- package/src/View/Components/ValueSelector/index.js +57 -43
- package/src/View/Components/WizardSummaryPage.d.ts +2 -2
- package/src/View/Components/WizardSummaryPage.js +4 -4
- package/src/View/CustomSort/CustomSortSummary.d.ts +3 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +3 -3
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +6 -2
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.d.ts +3 -3
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +21 -5
- package/src/View/CustomSort/Wizard/CustomSortWizard.d.ts +2 -2
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +5 -7
- package/src/View/Dashboard/CustomDashboardButton.d.ts +2 -2
- package/src/View/Dashboard/CustomDashboardButton.js +6 -4
- package/src/View/Dashboard/CustomToolbar.d.ts +3 -3
- package/src/View/Dashboard/CustomToolbar.js +13 -20
- package/src/View/Dashboard/Dashboard.d.ts +8 -6
- package/src/View/Dashboard/Dashboard.js +13 -10
- package/src/View/Dashboard/DashboardPopup.d.ts +6 -4
- package/src/View/Dashboard/DashboardPopup.js +6 -6
- package/src/View/Dashboard/DashboardToolbarFactory.js +1 -1
- package/src/View/Dashboard/DashboardViewPanel.d.ts +4 -2
- package/src/View/Dashboard/ModuleToolbarWrapper.d.ts +1 -1
- package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
- package/src/View/Dashboard/PinnedDashboard.js +1 -2
- package/src/View/Dashboard/PinnedToolbarsSelector.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +31 -38
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.d.ts +10 -8
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +9 -9
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +10 -11
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -4
- package/src/View/DataImport/DataImportPopup.js +4 -6
- package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +2 -2
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +26 -23
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +27 -14
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +14 -13
- package/src/View/DataImport/systemFileHandlers.js +1 -2
- package/src/View/DataSet/DataSetSelector.js +2 -2
- package/src/View/DataSet/DataSetViewPanel.d.ts +9 -4
- package/src/View/DataSet/DataSetViewPanel.js +4 -5
- package/src/View/Export/ExportDestinationPicker.d.ts +9 -0
- package/src/View/Export/ExportDestinationPicker.js +27 -0
- package/src/View/Export/ExportStatusBar.d.ts +2 -0
- package/src/View/Export/ExportStatusBar.js +21 -0
- package/src/View/Export/ExportViewPanel.d.ts +2 -26
- package/src/View/Export/ExportViewPanel.js +40 -127
- package/src/View/Export/ReportFormatSelector.d.ts +10 -0
- package/src/View/Export/ReportFormatSelector.js +27 -0
- package/src/View/Export/{ReportExportDropdown.d.ts → ReportListItem.d.ts} +1 -1
- package/src/View/Export/ReportListItem.js +18 -0
- package/src/View/Export/ReportNameSelector.d.ts +10 -0
- package/src/View/Export/ReportNameSelector.js +25 -0
- package/src/View/Export/Wizard/NewReportWizard.d.ts +2 -2
- package/src/View/Export/Wizard/NewReportWizard.js +2 -3
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +1 -1
- package/src/View/Export/Wizard/ReportColumnsWizardSection.d.ts +3 -3
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +5 -2
- package/src/View/Export/Wizard/ReportNameWizardSection.d.ts +3 -3
- package/src/View/Export/Wizard/ReportNameWizardSection.js +5 -2
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +3 -3
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +11 -7
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.d.ts +4 -1
- package/src/View/Filter/FilterSummary.js +2 -2
- package/src/View/Filter/FilterViewPanel.d.ts +9 -5
- package/src/View/Filter/FilterViewPanel.js +14 -20
- package/src/View/FlashingCell/FlashingCellStyle.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +1 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +15 -15
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +6 -7
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.d.ts +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +3 -4
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -2
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +3 -1
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -2
- package/src/View/FormatColumn/MoveFormatColumn.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +37 -45
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.d.ts +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -3
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.d.ts +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +29 -13
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +8 -5
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.d.ts +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +10 -13
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +3 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +3 -12
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +48 -24
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.d.ts +2 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +2 -4
- package/src/View/GridFilter/GridFilterExpressionEditor.d.ts +2 -2
- package/src/View/GridFilter/GridFilterExpressionEditor.js +3 -4
- package/src/View/GridFilter/GridFilterPopup.d.ts +2 -2
- package/src/View/GridFilter/GridFilterPopup.js +2 -2
- package/src/View/GridFilter/GridFilterStatusbar.js +2 -3
- package/src/View/GridFilter/GridFilterViewPanel.d.ts +2 -2
- package/src/View/GridFilter/GridFilterViewPanel.js +2 -2
- package/src/View/GridFilter/NamedQuerySelector.d.ts +3 -3
- package/src/View/GridFilter/NamedQuerySelector.js +1 -2
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +19 -21
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +1 -1
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +3 -4
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +2 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.d.ts +2 -2
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +21 -15
- package/src/View/KeyHint.d.ts +2 -2
- package/src/View/KeyHint.js +1 -1
- package/src/View/Layout/EditCurrentLayoutButton.js +5 -1
- package/src/View/Layout/LayoutCloneButton.js +3 -2
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +18 -10
- package/src/View/Layout/LayoutViewPanel.js +64 -39
- package/src/View/Layout/PivotDetailsPopoup.js +23 -7
- package/src/View/Layout/TransposedPopup.d.ts +2 -2
- package/src/View/Layout/TransposedPopup.js +8 -14
- package/src/View/Layout/Wizard/Components/ColumnLabels.d.ts +1 -1
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +2 -2
- package/src/View/Layout/Wizard/LayoutWizard.js +114 -31
- package/src/View/Layout/Wizard/getGridFilterPreview.d.ts +2 -2
- package/src/View/Layout/Wizard/getGridFilterPreview.js +1 -2
- package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +2 -2
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +78 -37
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +211 -50
- package/src/View/Layout/Wizard/sections/FilterSection.js +28 -30
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +12 -14
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.d.ts +9 -0
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +193 -0
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.d.ts +2 -2
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +7 -7
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.d.ts +8 -0
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +47 -0
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +78 -34
- package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +4 -4
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +76 -41
- package/src/View/Layout/Wizard/sections/SettingsSection.js +12 -10
- package/src/View/Layout/Wizard/sections/SortSection.js +19 -15
- package/src/View/Layout/Wizard/sections/Utilities.js +1 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/NamedQuery/EditCurrentQueryButton.d.ts +2 -2
- package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.d.ts +3 -3
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.d.ts +3 -3
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +4 -1
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.d.ts +2 -2
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +1 -2
- package/src/View/Note/NoteEditor.js +2 -4
- package/src/View/PlusMinus/MovePlusMinus.js +1 -1
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +3 -1
- package/src/View/PlusMinus/PlusMinusSummary.js +1 -2
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.d.ts +3 -3
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +4 -2
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +9 -3
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +7 -7
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +9 -8
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +2 -2
- package/src/View/QuickSearch/QuickSearchInput.js +1 -2
- package/src/View/QuickSearch/QuickSearchPopup.d.ts +4 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
- package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +40 -20
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +28 -8
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +8 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +29 -14
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.d.ts +2 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +16 -10
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +13 -13
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +7 -7
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +9 -10
- package/src/View/Schedule/Wizard/ScheduleWizard.js +3 -4
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +9 -3
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +15 -8
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +4 -8
- package/src/View/SmartEdit/SmartEditPopup.d.ts +9 -6
- package/src/View/SmartEdit/SmartEditPopup.js +8 -8
- package/src/View/SmartEdit/SmartEditViewPanel.d.ts +8 -7
- package/src/View/SmartEdit/SmartEditViewPanel.js +11 -13
- package/src/View/SpecialColumnSettingsWizardStep.js +20 -19
- package/src/View/StateManagement/components/ClearButton.js +1 -1
- package/src/View/StateManagement/components/ExportDropdown.js +1 -1
- package/src/View/StateManagement/components/LoadButton.js +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.d.ts +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +12 -12
- package/src/View/StatusBar/StatusBarPanel.d.ts +1 -1
- package/src/View/StatusBar/StatusBarPanel.js +3 -4
- package/src/View/StatusBar/StatusBarPopup.js +4 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +47 -19
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +51 -114
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.d.ts +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +12 -15
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +3 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +14 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.d.ts +3 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +36 -11
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +9 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +74 -30
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +3 -1
- package/src/View/SystemStatus/SystemStatusEntityRow.js +1 -2
- package/src/View/SystemStatus/SystemStatusPopup.d.ts +6 -4
- package/src/View/SystemStatus/SystemStatusPopup.js +4 -4
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +1 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +7 -2
- package/src/View/SystemStatus/SystemStatusViewPanel.js +2 -2
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +1 -2
- package/src/View/TeamSharing/SharedEntityDependencies.js +3 -1
- package/src/View/TeamSharing/SharedEntityObjectView.d.ts +2 -3
- package/src/View/TeamSharing/SharedEntityObjectView.js +4 -5
- package/src/View/Theme/ThemeEditor.js +29 -13
- package/src/View/Theme/ThemePopup.d.ts +4 -2
- package/src/View/Theme/ThemeStatusbar.d.ts +2 -2
- package/src/View/Theme/ThemeViewPanel.d.ts +2 -2
- package/src/View/Theme/VariantSelector.js +1 -2
- package/src/View/UIHelper.d.ts +2 -2
- package/src/View/UIHelper.js +10 -11
- package/src/View/Wizard/AdaptableWizard.d.ts +2 -2
- package/src/View/Wizard/AdaptableWizard.js +8 -3
- package/src/View/Wizard/ObjectTagsWizardSection.d.ts +3 -3
- package/src/View/Wizard/ObjectTagsWizardSection.js +2 -3
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +2 -2
- package/src/View/Wizard/OnePageAdaptableWizard.js +30 -11
- package/src/View/Wizard/OnePageWizards.d.ts +1 -1
- package/src/View/Wizard/OnePageWizards.js +40 -34
- package/src/View/Wizard/TypeRadio.d.ts +5 -4
- package/src/View/Wizard/TypeRadio.js +1 -1
- package/src/View/Wizard/useKeyboardNavigation.d.ts +1 -1
- package/src/View/renderWithAdaptableContext.d.ts +2 -1
- package/src/agGrid/Adaptable.d.ts +1 -1
- package/src/agGrid/Adaptable.js +12 -11
- package/src/agGrid/AdaptableAgGrid.d.ts +63 -78
- package/src/agGrid/AdaptableAgGrid.js +820 -1587
- package/src/{AdaptableOptions → agGrid}/AdaptableFrameworkComponent.d.ts +1 -7
- package/src/agGrid/AdaptableLogger.d.ts +1 -0
- package/src/agGrid/AdaptableLogger.js +21 -12
- package/src/agGrid/AgGridAdapter.d.ts +25 -10
- package/src/agGrid/AgGridAdapter.js +329 -204
- package/src/agGrid/AgGridColumnAdapter.d.ts +6 -4
- package/src/agGrid/AgGridColumnAdapter.js +211 -144
- package/src/agGrid/AgGridExportAdapter.d.ts +52 -0
- package/src/agGrid/AgGridExportAdapter.js +778 -0
- package/src/agGrid/AgGridMenuAdapter.d.ts +5 -6
- package/src/agGrid/AgGridMenuAdapter.js +116 -104
- package/src/agGrid/AgGridOptionsService.d.ts +1 -1
- package/src/agGrid/AgGridOptionsService.js +1 -1
- package/src/agGrid/FilterWrapper.js +16 -14
- package/src/agGrid/FloatingFilterWrapper.js +7 -7
- package/src/agGrid/agGridDataTypeDefinitions.d.ts +8 -0
- package/src/agGrid/agGridDataTypeDefinitions.js +77 -0
- package/src/agGrid/agGridModules.d.ts +3 -0
- package/src/agGrid/agGridModules.js +18 -0
- package/src/agGrid/{ActionColumnRenderer.d.ts → cellRenderers/ActionColumnRenderer.d.ts} +3 -3
- package/src/agGrid/{ActionColumnRenderer.js → cellRenderers/ActionColumnRenderer.js} +35 -27
- package/src/agGrid/cellRenderers/BadgeRenderer.d.ts +4 -0
- package/src/agGrid/{BadgeRenderer.js → cellRenderers/BadgeRenderer.js} +28 -19
- package/src/agGrid/cellRenderers/PercentBarRenderer.d.ts +4 -0
- package/src/agGrid/{PercentBarRenderer.js → cellRenderers/PercentBarRenderer.js} +2 -3
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +11 -8
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +2 -2
- package/src/agGrid/editors/AdaptableDateEditor/index.js +25 -21
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +17 -7
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -2
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +21 -19
- package/src/agGrid/editors/AdaptablePercentageEditor/InternalAdaptablePercentageEditor.js +10 -7
- package/src/agGrid/editors/AdaptablePercentageEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +23 -22
- package/src/components/Accordion.js +2 -4
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +3 -3
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +22 -28
- package/src/components/CheckBox/index.d.ts +2 -2
- package/src/components/CheckBox/index.js +5 -6
- package/src/components/CodeBlock/index.d.ts +2 -2
- package/src/components/CodeBlock/index.js +1 -1
- package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/src/components/ColorPicker/ColorPicker.js +5 -6
- package/src/components/Dashboard/Dashboard.d.ts +2 -1
- package/src/components/Dashboard/Dashboard.js +1 -2
- package/src/components/Dashboard/DashboardToolbar.d.ts +2 -1
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/DatepickerContext.d.ts +2 -0
- package/src/components/Datepicker/index.d.ts +2 -1
- package/src/components/Datepicker/index.js +30 -37
- package/src/components/Dialog/index.js +5 -5
- package/src/components/DragAndDropContext/ModuleManager.js +19 -6
- package/src/components/DragAndDropContext/TabList.d.ts +5 -5
- package/src/components/DragAndDropContext/TabList.js +11 -9
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +2 -2
- package/src/components/DragAndDropContext/UnusedPanel.js +17 -7
- package/src/components/Drawer/index.js +1 -2
- package/src/components/Dropdown/Arrows.d.ts +2 -2
- package/src/components/Dropdown/index.d.ts +1 -1
- package/src/components/Dropdown/index.js +8 -4
- package/src/components/DropdownButton/index.d.ts +3 -1
- package/src/components/DropdownButton/index.js +36 -17
- package/src/components/DropdownButton/renderItem.d.ts +1 -1
- package/src/components/DropdownButton/renderItem.js +2 -2
- package/src/components/EllipsisContainer/index.d.ts +1 -1
- package/src/components/EllipsisContainer/index.js +6 -9
- package/src/components/EmptyContent/index.d.ts +2 -1
- package/src/components/EmptyContent/index.js +2 -3
- package/src/components/ErrorBox/index.d.ts +2 -2
- package/src/components/ErrorBox/index.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.d.ts +2 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +12 -6
- package/src/components/ExpressionEditor/DataTableEditor.d.ts +2 -2
- package/src/components/ExpressionEditor/DataTableEditor.js +6 -9
- package/src/components/ExpressionEditor/EditorButton.d.ts +2 -2
- package/src/components/ExpressionEditor/EditorButton.js +6 -8
- package/src/components/ExpressionEditor/EditorInput.d.ts +2 -2
- package/src/components/ExpressionEditor/EditorInput.js +4 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.d.ts +2 -2
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +4 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.d.ts +2 -2
- package/src/components/ExpressionEditor/ExpressionPreview.js +1 -2
- package/src/components/ExpressionEditor/NamedQueryEditor.d.ts +2 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +9 -7
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +6 -6
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +14 -18
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +61 -35
- package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +1 -2
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +10 -27
- package/src/components/ExpressionEditor/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +20 -24
- package/src/components/FieldWrap/index.d.ts +2 -2
- package/src/components/FieldWrap/index.js +2 -2
- package/src/components/FileDroppable/index.d.ts +1 -1
- package/src/components/FileDroppable/index.js +4 -5
- package/src/components/FileDroppable/reducer.js +18 -5
- package/src/components/Flex.d.ts +1 -0
- package/src/components/Flex.js +5 -0
- package/src/components/FlexWithFooter.d.ts +1 -1
- package/src/components/FlexWithFooter.js +3 -3
- package/src/components/FormLayout/index.d.ts +4 -5
- package/src/components/FormLayout/index.js +7 -3
- package/src/components/HelpBlock/index.d.ts +2 -2
- package/src/components/HelpBlock/index.js +1 -1
- package/src/components/Icon/index.d.ts +2 -2
- package/src/components/Icon/index.js +9 -10
- package/src/components/IconSelector/IconSelector.js +4 -5
- package/src/components/InfiniteTable/index.d.ts +3 -1
- package/src/components/InfiniteTable/index.js +6 -7
- package/src/components/Input/NumberInput.d.ts +1 -1
- package/src/components/Input/NumberInput.js +4 -6
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/Input/index.js +2 -2
- package/src/components/InputGroup/InputGroup.d.ts +1 -1
- package/src/components/InputGroup/InputGroup.js +2 -4
- package/src/components/List/GridList/index.d.ts +2 -1
- package/src/components/List/GridList/index.js +4 -5
- package/src/components/List/ListGroup/index.d.ts +2 -2
- package/src/components/List/ListGroup/index.js +2 -2
- package/src/components/List/ListGroupItem/index.d.ts +2 -3
- package/src/components/List/ListGroupItem/index.js +3 -3
- package/src/components/Logo/index.js +1 -1
- package/src/components/Modal/Backdrop.d.ts +2 -2
- package/src/components/Modal/Backdrop.js +4 -1
- package/src/components/Modal/index.d.ts +1 -0
- package/src/components/Modal/index.js +16 -3
- package/src/components/NotifyResize/index.d.ts +2 -2
- package/src/components/OverlayTrigger/Overlay.js +3 -4
- package/src/components/OverlayTrigger/index.d.ts +1 -0
- package/src/components/OverlayTrigger/index.js +12 -10
- package/src/components/Panel/index.d.ts +3 -1
- package/src/components/Panel/index.js +16 -12
- package/src/components/PopupWithFooter.js +2 -2
- package/src/components/ProgressIndicator/ProgressIndicator.js +2 -1
- package/src/components/Radio/index.d.ts +4 -3
- package/src/components/Radio/index.js +13 -6
- package/src/components/ResizeObserver/index.d.ts +1 -1
- package/src/components/ResizeObserver/index.js +2 -4
- package/src/components/Select/Select.d.ts +17 -1
- package/src/components/Select/Select.js +279 -51
- package/src/components/SelectableList/index.d.ts +2 -1
- package/src/components/SelectableList/index.js +2 -2
- package/src/components/SimpleButton/index.d.ts +1 -1
- package/src/components/SimpleButton/index.js +8 -8
- package/src/components/SizedContainer/index.d.ts +2 -1
- package/src/components/SizedContainer/index.js +3 -3
- package/src/components/StylePreview.js +1 -4
- package/src/components/Table/index.d.ts +2 -1
- package/src/components/Table/index.js +1 -1
- package/src/components/Tabs/index.d.ts +6 -5
- package/src/components/Tabs/index.js +11 -13
- package/src/components/Tag/Tag.js +1 -4
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/Textarea/index.js +5 -7
- package/src/components/Toggle/Toggle.js +2 -3
- package/src/components/Tooltip/index.d.ts +1 -1
- package/src/components/WarningBox/index.d.ts +2 -2
- package/src/components/WarningBox/index.js +1 -1
- package/src/components/WindowModal/WindowModal.js +4 -4
- package/src/components/WindowModal/useStacking.js +1 -2
- package/src/components/WizardPanel/index.d.ts +2 -2
- package/src/components/WizardPanel/index.js +1 -1
- package/src/components/dnd/index.d.ts +13 -0
- package/src/components/dnd/index.js +61 -0
- package/src/components/icons/DefaultIcon.d.ts +2 -2
- package/src/components/icons/DefaultIcon.js +6 -4
- package/src/components/icons/add-row.d.ts +2 -2
- package/src/components/icons/add-row.js +1 -1
- package/src/components/icons/alert.d.ts +2 -2
- package/src/components/icons/alert.js +1 -1
- package/src/components/icons/align-center.d.ts +2 -2
- package/src/components/icons/align-center.js +1 -1
- package/src/components/icons/align-justify.d.ts +2 -2
- package/src/components/icons/align-justify.js +1 -1
- package/src/components/icons/align-left.d.ts +2 -2
- package/src/components/icons/align-left.js +1 -1
- package/src/components/icons/align-right.d.ts +2 -2
- package/src/components/icons/align-right.js +1 -1
- package/src/components/icons/analysis.d.ts +2 -2
- package/src/components/icons/analysis.js +1 -1
- package/src/components/icons/application.d.ts +2 -2
- package/src/components/icons/application.js +1 -1
- package/src/components/icons/arrow-down-long.d.ts +2 -2
- package/src/components/icons/arrow-down-long.js +1 -1
- package/src/components/icons/arrow-down.d.ts +2 -2
- package/src/components/icons/arrow-down.js +1 -1
- package/src/components/icons/arrow-expand.d.ts +2 -2
- package/src/components/icons/arrow-expand.js +1 -1
- package/src/components/icons/arrow-left.d.ts +2 -2
- package/src/components/icons/arrow-left.js +1 -1
- package/src/components/icons/arrow-right.d.ts +2 -2
- package/src/components/icons/arrow-right.js +1 -1
- package/src/components/icons/arrow-up-long.d.ts +2 -2
- package/src/components/icons/arrow-up-long.js +1 -1
- package/src/components/icons/arrow-up.d.ts +2 -2
- package/src/components/icons/arrow-up.js +1 -1
- package/src/components/icons/attach-file.d.ts +2 -2
- package/src/components/icons/attach-file.js +1 -1
- package/src/components/icons/badge.d.ts +2 -2
- package/src/components/icons/badge.js +1 -1
- package/src/components/icons/blanks.d.ts +2 -2
- package/src/components/icons/blanks.js +1 -1
- package/src/components/icons/bold.d.ts +2 -2
- package/src/components/icons/bold.js +1 -1
- package/src/components/icons/boolean-list.d.ts +2 -2
- package/src/components/icons/boolean-list.js +1 -1
- package/src/components/icons/brush.d.ts +2 -2
- package/src/components/icons/brush.js +1 -1
- package/src/components/icons/build.d.ts +2 -2
- package/src/components/icons/build.js +1 -1
- package/src/components/icons/bulk-update.d.ts +2 -2
- package/src/components/icons/bulk-update.js +2 -6
- package/src/components/icons/calculated-column.d.ts +2 -2
- package/src/components/icons/calculated-column.js +1 -1
- package/src/components/icons/calendar.d.ts +2 -2
- package/src/components/icons/calendar.js +1 -1
- package/src/components/icons/call.d.ts +2 -2
- package/src/components/icons/call.js +1 -1
- package/src/components/icons/campaign.d.ts +2 -2
- package/src/components/icons/campaign.js +1 -1
- package/src/components/icons/case-lower.d.ts +2 -2
- package/src/components/icons/case-lower.js +1 -1
- package/src/components/icons/case-sentence.d.ts +2 -2
- package/src/components/icons/case-sentence.js +1 -1
- package/src/components/icons/case-upper.d.ts +2 -2
- package/src/components/icons/case-upper.js +1 -1
- package/src/components/icons/cell-summary.d.ts +2 -2
- package/src/components/icons/cell-summary.js +1 -1
- package/src/components/icons/cell-validation.d.ts +2 -2
- package/src/components/icons/cell-validation.js +1 -1
- package/src/components/icons/chart.d.ts +2 -2
- package/src/components/icons/chart.js +1 -1
- package/src/components/icons/chat.d.ts +2 -2
- package/src/components/icons/chat.js +1 -1
- package/src/components/icons/check-box-outline.d.ts +2 -2
- package/src/components/icons/check-box-outline.js +1 -1
- package/src/components/icons/check-box.d.ts +2 -2
- package/src/components/icons/check-box.js +1 -1
- package/src/components/icons/check-circle.d.ts +2 -2
- package/src/components/icons/check-circle.js +1 -1
- package/src/components/icons/check.d.ts +2 -2
- package/src/components/icons/check.js +1 -1
- package/src/components/icons/clone.d.ts +2 -2
- package/src/components/icons/clone.js +1 -1
- package/src/components/icons/close.d.ts +2 -2
- package/src/components/icons/close.js +1 -1
- package/src/components/icons/cloud-upload.d.ts +2 -2
- package/src/components/icons/cloud-upload.js +1 -1
- package/src/components/icons/collapse-all.d.ts +2 -2
- package/src/components/icons/collapse-all.js +1 -1
- package/src/components/icons/collapse.d.ts +2 -2
- package/src/components/icons/collapse.js +1 -1
- package/src/components/icons/column-add.d.ts +2 -2
- package/src/components/icons/column-add.js +1 -1
- package/src/components/icons/column-chooser.d.ts +2 -2
- package/src/components/icons/column-chooser.js +1 -1
- package/src/components/icons/column-filter.d.ts +2 -2
- package/src/components/icons/column-filter.js +1 -1
- package/src/components/icons/column-info.d.ts +2 -2
- package/src/components/icons/column-info.js +1 -1
- package/src/components/icons/column-outline.d.ts +2 -2
- package/src/components/icons/column-outline.js +1 -1
- package/src/components/icons/comment.d.ts +2 -2
- package/src/components/icons/comment.js +1 -1
- package/src/components/icons/comments.d.ts +2 -2
- package/src/components/icons/comments.js +1 -1
- package/src/components/icons/contact.d.ts +2 -2
- package/src/components/icons/contact.js +1 -1
- package/src/components/icons/contains.d.ts +2 -2
- package/src/components/icons/contains.js +2 -2
- package/src/components/icons/copy.d.ts +2 -2
- package/src/components/icons/copy.js +1 -1
- package/src/components/icons/csv.d.ts +2 -2
- package/src/components/icons/csv.js +1 -1
- package/src/components/icons/custom-sort.d.ts +2 -2
- package/src/components/icons/custom-sort.js +1 -1
- package/src/components/icons/dashboard.d.ts +2 -2
- package/src/components/icons/dashboard.js +1 -1
- package/src/components/icons/data-object.d.ts +2 -2
- package/src/components/icons/data-object.js +1 -1
- package/src/components/icons/data-set.d.ts +2 -2
- package/src/components/icons/data-set.js +1 -1
- package/src/components/icons/date-range.d.ts +2 -2
- package/src/components/icons/date-range.js +1 -1
- package/src/components/icons/delete.d.ts +2 -2
- package/src/components/icons/delete.js +1 -1
- package/src/components/icons/division.d.ts +2 -2
- package/src/components/icons/division.js +1 -1
- package/src/components/icons/dock.d.ts +2 -2
- package/src/components/icons/dock.js +1 -1
- package/src/components/icons/dollar.d.ts +2 -2
- package/src/components/icons/dollar.js +1 -1
- package/src/components/icons/drag.d.ts +2 -2
- package/src/components/icons/drag.js +1 -1
- package/src/components/icons/edit.d.ts +2 -2
- package/src/components/icons/edit.js +1 -1
- package/src/components/icons/ends-with.d.ts +2 -2
- package/src/components/icons/ends-with.js +1 -1
- package/src/components/icons/equal.d.ts +2 -2
- package/src/components/icons/equal.js +1 -1
- package/src/components/icons/equation.d.ts +2 -2
- package/src/components/icons/equation.js +1 -1
- package/src/components/icons/error.d.ts +2 -2
- package/src/components/icons/error.js +1 -1
- package/src/components/icons/excel.d.ts +2 -2
- package/src/components/icons/excel.js +1 -1
- package/src/components/icons/expand-all.d.ts +2 -2
- package/src/components/icons/expand-all.js +1 -1
- package/src/components/icons/expand.d.ts +2 -2
- package/src/components/icons/expand.js +1 -1
- package/src/components/icons/exponent.d.ts +2 -2
- package/src/components/icons/exponent.js +1 -1
- package/src/components/icons/export.d.ts +2 -2
- package/src/components/icons/export.js +1 -1
- package/src/components/icons/fast-backward.d.ts +2 -2
- package/src/components/icons/fast-backward.js +1 -1
- package/src/components/icons/fast-forward.d.ts +2 -2
- package/src/components/icons/fast-forward.js +1 -1
- package/src/components/icons/fdc3.d.ts +2 -2
- package/src/components/icons/fdc3.js +1 -1
- package/src/components/icons/filter-off.d.ts +2 -2
- package/src/components/icons/filter-off.js +1 -1
- package/src/components/icons/filter.d.ts +2 -2
- package/src/components/icons/filter.js +1 -1
- package/src/components/icons/flashing-cell.d.ts +2 -2
- package/src/components/icons/flashing-cell.js +1 -1
- package/src/components/icons/folder-open.d.ts +2 -2
- package/src/components/icons/folder-open.js +1 -1
- package/src/components/icons/folder-shared.d.ts +2 -2
- package/src/components/icons/folder-shared.js +1 -1
- package/src/components/icons/folder.d.ts +2 -2
- package/src/components/icons/folder.js +1 -1
- package/src/components/icons/format-column.d.ts +2 -2
- package/src/components/icons/format-column.js +1 -1
- package/src/components/icons/freetext-column.d.ts +2 -2
- package/src/components/icons/freetext-column.js +1 -1
- package/src/components/icons/function.d.ts +2 -2
- package/src/components/icons/function.js +1 -1
- package/src/components/icons/gradient-column.d.ts +2 -2
- package/src/components/icons/gradient-column.js +1 -1
- package/src/components/icons/gradient.d.ts +2 -2
- package/src/components/icons/gradient.js +1 -1
- package/src/components/icons/greater-than-or-equal.d.ts +2 -2
- package/src/components/icons/greater-than-or-equal.js +1 -1
- package/src/components/icons/greater-than.d.ts +2 -2
- package/src/components/icons/greater-than.js +1 -1
- package/src/components/icons/grid-filter.d.ts +2 -2
- package/src/components/icons/grid-filter.js +1 -1
- package/src/components/icons/grid-info.d.ts +2 -2
- package/src/components/icons/grid-info.js +1 -1
- package/src/components/icons/hide-column.d.ts +2 -2
- package/src/components/icons/hide-column.js +1 -1
- package/src/components/icons/history.d.ts +2 -2
- package/src/components/icons/history.js +1 -1
- package/src/components/icons/home.d.ts +2 -2
- package/src/components/icons/home.js +1 -1
- package/src/components/icons/import-export.d.ts +2 -2
- package/src/components/icons/import-export.js +1 -1
- package/src/components/icons/import.d.ts +2 -2
- package/src/components/icons/import.js +1 -1
- package/src/components/icons/index.d.ts +7 -4
- package/src/components/icons/index.js +37 -32
- package/src/components/icons/info.d.ts +2 -2
- package/src/components/icons/info.js +1 -1
- package/src/components/icons/instrument.d.ts +2 -2
- package/src/components/icons/instrument.js +1 -1
- package/src/components/icons/interactions.d.ts +2 -2
- package/src/components/icons/interactions.js +1 -1
- package/src/components/icons/invalid.d.ts +2 -2
- package/src/components/icons/invalid.js +1 -1
- package/src/components/icons/ipushpull.d.ts +2 -2
- package/src/components/icons/ipushpull.js +1 -1
- package/src/components/icons/italic.d.ts +2 -2
- package/src/components/icons/italic.js +1 -1
- package/src/components/icons/justify.d.ts +2 -2
- package/src/components/icons/justify.js +1 -1
- package/src/components/icons/layout.d.ts +2 -2
- package/src/components/icons/layout.js +1 -1
- package/src/components/icons/less-than-or-equal.d.ts +2 -2
- package/src/components/icons/less-than-or-equal.js +1 -1
- package/src/components/icons/less-than.d.ts +2 -2
- package/src/components/icons/less-than.js +1 -1
- package/src/components/icons/list.d.ts +2 -2
- package/src/components/icons/list.js +1 -1
- package/src/components/icons/login.d.ts +2 -2
- package/src/components/icons/login.js +1 -1
- package/src/components/icons/logout copy.d.ts +2 -2
- package/src/components/icons/logout copy.js +1 -1
- package/src/components/icons/logout.d.ts +2 -2
- package/src/components/icons/logout.js +1 -1
- package/src/components/icons/mail.d.ts +2 -2
- package/src/components/icons/mail.js +1 -1
- package/src/components/icons/menu.d.ts +2 -2
- package/src/components/icons/menu.js +1 -1
- package/src/components/icons/minus.d.ts +2 -2
- package/src/components/icons/minus.js +1 -1
- package/src/components/icons/money.d.ts +2 -2
- package/src/components/icons/money.js +1 -1
- package/src/components/icons/multiplication.d.ts +2 -2
- package/src/components/icons/multiplication.js +1 -1
- package/src/components/icons/newpage.d.ts +2 -2
- package/src/components/icons/newpage.js +1 -1
- package/src/components/icons/news.d.ts +2 -2
- package/src/components/icons/news.js +1 -1
- package/src/components/icons/non-blanks.d.ts +2 -2
- package/src/components/icons/non-blanks.js +1 -1
- package/src/components/icons/not-contains.d.ts +2 -2
- package/src/components/icons/not-contains.js +2 -2
- package/src/components/icons/not-equal.d.ts +2 -2
- package/src/components/icons/not-equal.js +1 -1
- package/src/components/icons/note.d.ts +2 -2
- package/src/components/icons/note.js +1 -1
- package/src/components/icons/open-in-new.d.ts +2 -2
- package/src/components/icons/open-in-new.js +1 -1
- package/src/components/icons/order.d.ts +2 -2
- package/src/components/icons/order.js +1 -1
- package/src/components/icons/organisation.d.ts +2 -2
- package/src/components/icons/organisation.js +1 -1
- package/src/components/icons/overline.d.ts +2 -2
- package/src/components/icons/overline.js +1 -1
- package/src/components/icons/pause.d.ts +2 -2
- package/src/components/icons/pause.js +1 -1
- package/src/components/icons/percent-bar.d.ts +2 -2
- package/src/components/icons/percent-bar.js +1 -1
- package/src/components/icons/percent.d.ts +2 -2
- package/src/components/icons/percent.js +1 -1
- package/src/components/icons/person.d.ts +2 -2
- package/src/components/icons/person.js +1 -1
- package/src/components/icons/pie-chart.d.ts +2 -2
- package/src/components/icons/pie-chart.js +1 -1
- package/src/components/icons/play.d.ts +2 -2
- package/src/components/icons/play.js +1 -1
- package/src/components/icons/plus-minus.d.ts +2 -2
- package/src/components/icons/plus-minus.js +1 -1
- package/src/components/icons/plus.d.ts +2 -2
- package/src/components/icons/plus.js +1 -1
- package/src/components/icons/query.d.ts +2 -2
- package/src/components/icons/query.js +1 -1
- package/src/components/icons/quick-search.d.ts +2 -2
- package/src/components/icons/quick-search.js +1 -1
- package/src/components/icons/quote.d.ts +2 -2
- package/src/components/icons/quote.js +1 -1
- package/src/components/icons/refresh.d.ts +2 -2
- package/src/components/icons/refresh.js +1 -1
- package/src/components/icons/regex.d.ts +2 -2
- package/src/components/icons/regex.js +1 -1
- package/src/components/icons/reminder.d.ts +2 -2
- package/src/components/icons/reminder.js +1 -1
- package/src/components/icons/resume.d.ts +2 -2
- package/src/components/icons/resume.js +1 -1
- package/src/components/icons/rows.d.ts +2 -2
- package/src/components/icons/rows.js +1 -1
- package/src/components/icons/save.d.ts +2 -2
- package/src/components/icons/save.js +1 -1
- package/src/components/icons/schedule.d.ts +2 -2
- package/src/components/icons/schedule.js +1 -1
- package/src/components/icons/science.d.ts +2 -2
- package/src/components/icons/science.js +1 -1
- package/src/components/icons/select-all.d.ts +2 -2
- package/src/components/icons/select-all.js +1 -1
- package/src/components/icons/select-fwd.d.ts +2 -2
- package/src/components/icons/select-fwd.js +1 -1
- package/src/components/icons/select-off.d.ts +2 -2
- package/src/components/icons/select-off.js +1 -1
- package/src/components/icons/settings.d.ts +2 -2
- package/src/components/icons/settings.js +1 -1
- package/src/components/icons/shortcut.d.ts +2 -2
- package/src/components/icons/shortcut.js +1 -1
- package/src/components/icons/show-column.d.ts +2 -2
- package/src/components/icons/show-column.js +1 -1
- package/src/components/icons/smart-edit.d.ts +2 -2
- package/src/components/icons/smart-edit.js +1 -1
- package/src/components/icons/sort-asc.d.ts +2 -2
- package/src/components/icons/sort-asc.js +1 -1
- package/src/components/icons/sort-desc.d.ts +2 -2
- package/src/components/icons/sort-desc.js +1 -1
- package/src/components/icons/spark-line.d.ts +2 -2
- package/src/components/icons/spark-line.js +1 -1
- package/src/components/icons/starts-with.d.ts +2 -2
- package/src/components/icons/starts-with.js +1 -1
- package/src/components/icons/state-management.d.ts +2 -2
- package/src/components/icons/state-management.js +1 -1
- package/src/components/icons/statusbar.d.ts +2 -2
- package/src/components/icons/statusbar.js +1 -1
- package/src/components/icons/stop.d.ts +2 -2
- package/src/components/icons/stop.js +1 -1
- package/src/components/icons/strikethrough.d.ts +2 -2
- package/src/components/icons/strikethrough.js +1 -1
- package/src/components/icons/styled-grid.d.ts +3 -0
- package/src/components/icons/styled-grid.js +8 -0
- package/src/components/icons/sync.d.ts +2 -2
- package/src/components/icons/sync.js +1 -1
- package/src/components/icons/system-status.d.ts +2 -2
- package/src/components/icons/system-status.js +1 -1
- package/src/components/icons/tab-unselected.d.ts +2 -2
- package/src/components/icons/tab-unselected.js +1 -1
- package/src/components/icons/table-arrow-right.d.ts +2 -2
- package/src/components/icons/table-arrow-right.js +1 -1
- package/src/components/icons/team-share.d.ts +2 -2
- package/src/components/icons/team-share.js +1 -1
- package/src/components/icons/theme.d.ts +2 -2
- package/src/components/icons/theme.js +1 -1
- package/src/components/icons/tool-panel.d.ts +2 -2
- package/src/components/icons/tool-panel.js +1 -1
- package/src/components/icons/track-changes.d.ts +2 -2
- package/src/components/icons/track-changes.js +1 -1
- package/src/components/icons/triangle-down.d.ts +2 -2
- package/src/components/icons/triangle-down.js +1 -1
- package/src/components/icons/triangle-up.d.ts +2 -2
- package/src/components/icons/triangle-up.js +1 -1
- package/src/components/icons/unchecked.d.ts +2 -2
- package/src/components/icons/unchecked.js +1 -1
- package/src/components/icons/underline.d.ts +2 -2
- package/src/components/icons/underline.js +1 -1
- package/src/components/icons/undo.d.ts +2 -2
- package/src/components/icons/undo.js +1 -1
- package/src/components/icons/updated-row.d.ts +2 -2
- package/src/components/icons/updated-row.js +1 -1
- package/src/components/icons/upload.d.ts +2 -2
- package/src/components/icons/upload.js +1 -1
- package/src/components/icons/user-filter.d.ts +2 -2
- package/src/components/icons/user-filter.js +1 -1
- package/src/components/icons/visibility-off.d.ts +2 -2
- package/src/components/icons/visibility-off.js +1 -1
- package/src/components/icons/visibility.d.ts +2 -2
- package/src/components/icons/visibility.js +1 -1
- package/src/components/icons/warning.d.ts +2 -2
- package/src/components/icons/warning.js +1 -1
- package/src/components/utils/useContainerScrollObserver/index.js +1 -2
- package/src/components/utils/useDraggable.d.ts +1 -1
- package/src/components/utils/useDraggable.js +2 -3
- package/src/components/utils/useLatest.d.ts +1 -1
- package/src/components/utils/useProperty.d.ts +1 -1
- package/src/components/utils/useSelectionRange.js +1 -1
- package/src/env.d.ts +1 -1
- package/src/env.js +3 -3
- package/src/layout-manager/src/LMEmitter.d.ts +25 -0
- package/src/layout-manager/src/LMEmitter.js +59 -0
- package/src/layout-manager/src/LMLogger.d.ts +20 -0
- package/src/layout-manager/src/LMLogger.js +66 -0
- package/src/layout-manager/src/LayoutManagerModel.d.ts +111 -0
- package/src/layout-manager/src/index.d.ts +75 -0
- package/src/layout-manager/src/index.js +1046 -0
- package/src/layout-manager/src/isLayoutEqual.d.ts +4 -0
- package/src/layout-manager/src/isLayoutEqual.js +32 -0
- package/src/layout-manager/src/isPivotLayoutModel.d.ts +2 -0
- package/src/layout-manager/src/isPivotLayoutModel.js +7 -0
- package/src/layout-manager/src/normalizeLayoutModel.d.ts +12 -0
- package/src/layout-manager/src/normalizeLayoutModel.js +158 -0
- package/src/layout-manager/src/simplifyLayoutModel.d.ts +4 -0
- package/src/layout-manager/src/simplifyLayoutModel.js +88 -0
- package/src/layout-manager/src/sortColumnIdsByOrder.d.ts +7 -0
- package/src/layout-manager/src/sortColumnIdsByOrder.js +89 -0
- package/src/metamodel/adaptable.metamodel.d.ts +428 -574
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +5 -4
- package/src/migration/VersionUpgrade17.js +56 -50
- package/src/migration/VersionUpgrade20.d.ts +7 -0
- package/src/migration/VersionUpgrade20.js +134 -0
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
- package/src/parser/src/predicate/mapQlPredicateToExpression.d.ts +1 -1
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +2 -2
- package/src/parser/src/predicate/types.d.ts +11 -1
- package/src/parser/src/types.d.ts +6 -2
- package/src/parser/src/types.js +1 -1
- package/src/renderReactRoot.d.ts +3 -3
- package/src/types.d.ts +32 -31
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableOptions/ActionRowOptions.d.ts +0 -175
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +0 -311
- package/src/AdaptableOptions/GridFilterOptions.d.ts +0 -26
- package/src/AdaptableOptions/GroupingOptions.d.ts +0 -19
- package/src/Api/ActionRowApi.d.ts +0 -24
- package/src/Api/Events/ActionRowSubmitted.d.ts +0 -54
- package/src/Api/Events/AdaptableSearchState.d.ts +0 -22
- package/src/Api/Events/BaseEventInfo.d.ts +0 -18
- package/src/Api/Events/GridDataChanged.d.ts +0 -26
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +0 -12
- package/src/Api/Internal/ActionRowInternalApi.d.ts +0 -29
- package/src/Api/Internal/ActionRowInternalApi.js +0 -285
- package/src/PredefinedConfig/GridState.d.ts +0 -23
- package/src/PredefinedConfig/SystemState.d.ts +0 -110
- package/src/Redux/ActionsReducers/GridRedux.d.ts +0 -224
- package/src/Redux/ActionsReducers/GridRedux.js +0 -433
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +0 -330
- package/src/Redux/ActionsReducers/SystemRedux.js +0 -787
- package/src/Redux/DeadRedux.d.ts +0 -27
- package/src/Redux/DeadRedux.js +0 -85
- package/src/Strategy/Interface/IExportModule.d.ts +0 -6
- package/src/Strategy/Interface/IShortcutModule.js +0 -2
- package/src/Strategy/Utilities/getExpressionViewItems.d.ts +0 -4
- package/src/Strategy/Utilities/getObjectTagsViewItems.d.ts +0 -4
- package/src/Strategy/Utilities/getRuleViewItems.js +0 -15
- package/src/Strategy/Utilities/getScopeViewItems.d.ts +0 -3
- package/src/Utilities/Constants/ConfigConstants.d.ts +0 -10
- package/src/Utilities/Constants/ConfigConstants.js +0 -14
- package/src/Utilities/Constants/FilterConstants.d.ts +0 -10
- package/src/Utilities/Constants/FilterConstants.js +0 -11
- package/src/Utilities/Services/RowEditService.js +0 -39
- package/src/Utilities/divideBy100.d.ts +0 -1
- package/src/Utilities/divideBy100.js +0 -34
- package/src/Utilities/times100.d.ts +0 -1
- package/src/Utilities/times100.js +0 -27
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.d.ts +0 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +0 -35
- package/src/View/Components/FilterForm/FilterForm.d.ts +0 -18
- package/src/View/Components/FilterForm/FilterForm.js +0 -298
- package/src/View/Components/FilterForm/QuickFilterForm.d.ts +0 -7
- package/src/View/Components/FilterForm/QuickFilterForm.js +0 -255
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +0 -19
- package/src/View/Components/FilterForm/QuickFilterValues.js +0 -201
- package/src/View/Components/Panels/FilterFormPanel.d.ts +0 -22
- package/src/View/Components/Panels/FilterFormPanel.js +0 -41
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.d.ts +0 -8
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +0 -27
- package/src/View/Components/PermittedValuesSelector/index.d.ts +0 -1
- package/src/View/Components/PermittedValuesSelector/index.js +0 -5
- package/src/View/Export/ExportSelector.d.ts +0 -4
- package/src/View/Export/ExportSelector.js +0 -75
- package/src/View/Export/ExportTablePopup.d.ts +0 -3
- package/src/View/Export/ExportTablePopup.js +0 -61
- package/src/View/Export/ReportExportDropdown.js +0 -39
- package/src/View/Export/constants.d.ts +0 -2
- package/src/View/Export/constants.js +0 -5
- package/src/View/Layout/SaveLayoutButton.d.ts +0 -2
- package/src/View/Layout/SaveLayoutButton.js +0 -29
- package/src/agGrid/BadgeRenderer.d.ts +0 -4
- package/src/agGrid/ColumnSetupInfo.d.ts +0 -8
- package/src/agGrid/PercentBarRenderer.d.ts +0 -4
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +0 -16
- package/src/agGrid/attachAddaptableColumnTypes.js +0 -23
- package/src/components/Datepicker/Caption.d.ts +0 -7
- package/src/components/Datepicker/Caption.js +0 -47
- package/src/components/Datepicker/CaptionLabel.d.ts +0 -8
- package/src/components/Datepicker/CaptionLabel.js +0 -25
- /package/src/AdaptableOptions/{ActionRowOptions.js → FilterOptions.js} +0 -0
- /package/src/AdaptableOptions/{AdaptableFrameworkComponent.js → RowFormOptions.js} +0 -0
- /package/src/{AdaptableOptions/ColumnFilterOptions.js → Api/Events/RowChanged.js} +0 -0
- /package/src/{AdaptableOptions/GridFilterOptions.js → Api/Events/RowFormSubmitted.js} +0 -0
- /package/src/{AdaptableOptions/GroupingOptions.js → Api/FilterApi.js} +0 -0
- /package/src/Api/{ActionRowApi.js → RowFormApi.js} +0 -0
- /package/src/{Api/Events/ActionRowSubmitted.js → PredefinedConfig/Common/AdaptableColumnContext.js} +0 -0
- /package/src/{Api/Events/AdaptableSearchState.js → PredefinedConfig/Common/AdaptableSortState.js} +0 -0
- /package/src/{agGrid → PredefinedConfig/Common}/ColumnSetupInfo.js +0 -0
- /package/src/{Api/Events/BaseEventInfo.js → PredefinedConfig/Common/RowDataChangedInfo.js} +0 -0
- /package/src/{Api/Events/GridDataChanged.js → Strategy/Interface/ICellDataChangeListenerModule.js} +0 -0
- /package/src/{PredefinedConfig/GridState.js → Strategy/Interface/IKeyDownListenerModule.js} +0 -0
- /package/src/{Strategy/Utilities → Utilities}/getScopeViewItems.js +0 -0
- /package/src/{agGrid → Utilities}/sortColumnStateForVisibleColumns.d.ts +0 -0
- /package/src/{agGrid → Utilities}/sortColumnStateForVisibleColumns.js +0 -0
- /package/src/{Strategy/Utilities → Utilities}/updateSingleToMultiplePredicates.d.ts +0 -0
- /package/src/{PredefinedConfig/SystemState.js → agGrid/AdaptableFrameworkComponent.js} +0 -0
- /package/src/{Strategy/Interface/IExportModule.js → layout-manager/src/LayoutManagerModel.js} +0 -0
|
@@ -3,14 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AdaptableStore = exports.LoadState = exports.InitState = exports.LOAD_STATE = exports.INIT_STATE = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Redux = tslib_1.__importStar(require("redux"));
|
|
6
|
-
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
7
6
|
const PluginsRedux = tslib_1.__importStar(require("../ActionsReducers/PluginsRedux"));
|
|
8
7
|
const PopupRedux = tslib_1.__importStar(require("../ActionsReducers/PopupRedux"));
|
|
9
8
|
const PopupRedux_1 = require("../ActionsReducers/PopupRedux");
|
|
10
9
|
const AdaptableReduxLocalStorageEngine_1 = require("./AdaptableReduxLocalStorageEngine");
|
|
11
10
|
const AdaptableReduxMerger_1 = require("./AdaptableReduxMerger");
|
|
12
11
|
const AdaptableAlert_1 = require("../../PredefinedConfig/Common/AdaptableAlert");
|
|
13
|
-
const ConfigConstants = tslib_1.__importStar(require("../../Utilities/Constants/ConfigConstants"));
|
|
14
12
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
15
13
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
16
14
|
const Emitter_1 = tslib_1.__importDefault(require("../../Utilities/Emitter"));
|
|
@@ -30,7 +28,6 @@ const ExportRedux = tslib_1.__importStar(require("../ActionsReducers/ExportRedux
|
|
|
30
28
|
const FlashingCellRedux = tslib_1.__importStar(require("../ActionsReducers/FlashingCellRedux"));
|
|
31
29
|
const FormatColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FormatColumnRedux"));
|
|
32
30
|
const FreeTextColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FreeTextColumnRedux"));
|
|
33
|
-
const GridRedux = tslib_1.__importStar(require("../ActionsReducers/GridRedux"));
|
|
34
31
|
const LayoutRedux = tslib_1.__importStar(require("../ActionsReducers/LayoutRedux"));
|
|
35
32
|
const NamedQueryRedux = tslib_1.__importStar(require("../ActionsReducers/NamedQueryRedux"));
|
|
36
33
|
const NoteRedux = tslib_1.__importStar(require("../ActionsReducers/NoteRedux"));
|
|
@@ -41,8 +38,7 @@ const ShortcutRedux = tslib_1.__importStar(require("../ActionsReducers/ShortcutR
|
|
|
41
38
|
const SmartEditRedux = tslib_1.__importStar(require("../ActionsReducers/SmartEditRedux"));
|
|
42
39
|
const StatusBarRedux = tslib_1.__importStar(require("../ActionsReducers/StatusBarRedux"));
|
|
43
40
|
const StyledColumnRedux = tslib_1.__importStar(require("../ActionsReducers/StyledColumnRedux"));
|
|
44
|
-
const
|
|
45
|
-
const SystemRedux_1 = require("../ActionsReducers/SystemRedux");
|
|
41
|
+
const InternalRedux = tslib_1.__importStar(require("../ActionsReducers/InternalRedux"));
|
|
46
42
|
const TeamSharingRedux = tslib_1.__importStar(require("../ActionsReducers/TeamSharingRedux"));
|
|
47
43
|
const ThemeRedux = tslib_1.__importStar(require("../ActionsReducers/ThemeRedux"));
|
|
48
44
|
const ToolPanelRedux = tslib_1.__importStar(require("../ActionsReducers/ToolPanelRedux"));
|
|
@@ -55,9 +51,15 @@ const NON_PERSIST_ACTIONS = {
|
|
|
55
51
|
[exports.LOAD_STATE]: true,
|
|
56
52
|
[exports.INIT_STATE]: true,
|
|
57
53
|
// progress indicators should NOT interfere with state management as it may lead to race conditions due to load/persist state being async
|
|
58
|
-
[
|
|
59
|
-
[
|
|
54
|
+
[PopupRedux_1.PROGRESS_INDICATOR_SHOW]: true,
|
|
55
|
+
[PopupRedux_1.PROGRESS_INDICATOR_HIDE]: true,
|
|
60
56
|
};
|
|
57
|
+
const NON_PERSISTENT_STORE_KEYS = [
|
|
58
|
+
'Internal',
|
|
59
|
+
'Popup',
|
|
60
|
+
'Comment',
|
|
61
|
+
'Plugins',
|
|
62
|
+
];
|
|
61
63
|
const InitState = () => ({
|
|
62
64
|
type: exports.INIT_STATE,
|
|
63
65
|
});
|
|
@@ -90,7 +92,7 @@ class AdaptableStore {
|
|
|
90
92
|
};
|
|
91
93
|
this.loadStore = (config) => {
|
|
92
94
|
const { adaptable, adaptableStateKey, predefinedConfig, postLoadHook } = config;
|
|
93
|
-
const postProcessState = postLoadHook
|
|
95
|
+
const postProcessState = postLoadHook ?? ((state) => state);
|
|
94
96
|
this.storageEngine.setStateKey(adaptableStateKey);
|
|
95
97
|
// START STATE LOAD
|
|
96
98
|
this.loadStorageInProgress = true;
|
|
@@ -106,7 +108,7 @@ class AdaptableStore {
|
|
|
106
108
|
// END STATE LOAD
|
|
107
109
|
this.loadStorageInProgress = false;
|
|
108
110
|
}, (e) => {
|
|
109
|
-
adaptable.
|
|
111
|
+
adaptable.api.consoleError('Failed to load previous Adaptable State : ', e);
|
|
110
112
|
//for now i'm still initializing Adaptable even if loading state has failed....
|
|
111
113
|
//we may revisit that later
|
|
112
114
|
this.TheStore.dispatch((0, exports.InitState)());
|
|
@@ -122,9 +124,8 @@ class AdaptableStore {
|
|
|
122
124
|
};
|
|
123
125
|
let rootReducerObject = {
|
|
124
126
|
// Reducers for Non-Persisted State
|
|
125
|
-
Grid: GridRedux.GridReducer,
|
|
126
127
|
Popup: PopupRedux.PopupReducer,
|
|
127
|
-
|
|
128
|
+
Internal: InternalRedux.InternalReducer,
|
|
128
129
|
Plugins: PluginsRedux.PluginsReducer,
|
|
129
130
|
Comment: CommentsRedux.CommentsReducer,
|
|
130
131
|
// Reducers for Persisted State
|
|
@@ -154,10 +155,15 @@ class AdaptableStore {
|
|
|
154
155
|
// allow plugins to participate in the root reducer
|
|
155
156
|
adaptable.forPlugins((plugin) => {
|
|
156
157
|
if (plugin.rootReducer) {
|
|
157
|
-
rootReducerObject =
|
|
158
|
+
rootReducerObject = {
|
|
159
|
+
...rootReducerObject,
|
|
160
|
+
...plugin.rootReducer(rootReducerObject),
|
|
161
|
+
};
|
|
158
162
|
}
|
|
159
163
|
});
|
|
160
|
-
const initialRootReducer =
|
|
164
|
+
const initialRootReducer =
|
|
165
|
+
// @ts-ignore
|
|
166
|
+
Redux.combineReducers(rootReducerObject);
|
|
161
167
|
const rootReducerWithResetManagement = (state, action) => {
|
|
162
168
|
switch (action.type) {
|
|
163
169
|
case exports.LOAD_STATE:
|
|
@@ -183,27 +189,18 @@ class AdaptableStore {
|
|
|
183
189
|
persistState: adaptable.adaptableOptions.stateOptions.persistState,
|
|
184
190
|
debounceStateDelay: adaptable.adaptableOptions.stateOptions.debounceStateDelay,
|
|
185
191
|
});
|
|
186
|
-
const nonPersistentReduxKeys = [
|
|
187
|
-
// Non Persisted State
|
|
188
|
-
ConfigConstants.SYSTEM,
|
|
189
|
-
ConfigConstants.GRID,
|
|
190
|
-
ConfigConstants.POPUP,
|
|
191
|
-
ConfigConstants.PLUGINS,
|
|
192
|
-
ConfigConstants.COMMENT,
|
|
193
|
-
];
|
|
194
192
|
const didPersistentStateChange = (state, newState) => {
|
|
195
193
|
return Object.keys(newState).some((key) => {
|
|
196
|
-
if (
|
|
194
|
+
if (NON_PERSISTENT_STORE_KEYS.includes(key)) {
|
|
197
195
|
return false;
|
|
198
196
|
}
|
|
199
|
-
return
|
|
197
|
+
return state?.[key] !== newState?.[key];
|
|
200
198
|
});
|
|
201
199
|
};
|
|
202
200
|
// this is now VERY BADLY NAMED!
|
|
203
201
|
let rootReducer = (0, AdaptableReduxMerger_1.mergeReducer)(rootReducerWithResetManagement, exports.LOAD_STATE);
|
|
204
202
|
const composeEnhancers = (x) => x;
|
|
205
203
|
const persistedReducer = (state, action) => {
|
|
206
|
-
var _a, _b;
|
|
207
204
|
if (adaptable.isDestroyed) {
|
|
208
205
|
return state;
|
|
209
206
|
}
|
|
@@ -217,13 +214,13 @@ class AdaptableStore {
|
|
|
217
214
|
const finalState = emitterArg.newState;
|
|
218
215
|
const shouldPersist = state !== finalState &&
|
|
219
216
|
didPersistentStateChange(state, finalState) &&
|
|
220
|
-
!
|
|
217
|
+
!state?.Internal?.License?.disablePersistence &&
|
|
221
218
|
!NON_PERSIST_ACTIONS[action.type] &&
|
|
222
219
|
!init &&
|
|
223
220
|
!this.loadStorageInProgress;
|
|
224
221
|
if (shouldPersist) {
|
|
225
|
-
const storageState =
|
|
226
|
-
|
|
222
|
+
const storageState = { ...finalState };
|
|
223
|
+
NON_PERSISTENT_STORE_KEYS.forEach((key) => {
|
|
227
224
|
delete storageState[key];
|
|
228
225
|
});
|
|
229
226
|
this.currentStorageState = storageState;
|
|
@@ -245,8 +242,7 @@ class AdaptableStore {
|
|
|
245
242
|
this.storageEngine = storageEngine;
|
|
246
243
|
}
|
|
247
244
|
destroy() {
|
|
248
|
-
|
|
249
|
-
(_a = this.emitter) === null || _a === void 0 ? void 0 : _a.clearListeners();
|
|
245
|
+
this.emitter?.clearListeners();
|
|
250
246
|
this.emitter = null;
|
|
251
247
|
}
|
|
252
248
|
getCurrentStorageState() {
|
|
@@ -267,7 +263,6 @@ exports.AdaptableStore = AdaptableStore;
|
|
|
267
263
|
const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
268
264
|
return function (next) {
|
|
269
265
|
return function (action) {
|
|
270
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
271
266
|
switch (action.type) {
|
|
272
267
|
/*******************
|
|
273
268
|
* NAMED QUERY ACTIONS
|
|
@@ -277,38 +272,26 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
277
272
|
* Action: Check whether it is referenced elsewhere before deleting
|
|
278
273
|
*/
|
|
279
274
|
case NamedQueryRedux.NAMED_QUERY_DELETE: {
|
|
280
|
-
const actionTyped = action;
|
|
281
275
|
// check if Named Query is not referenced elsewhere
|
|
282
|
-
const
|
|
283
|
-
if (
|
|
284
|
-
middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
|
|
285
|
-
alertType: 'generic',
|
|
286
|
-
header: 'Named Query could not be deleted',
|
|
287
|
-
message: `It is still referenced in the following modules: ${namedQueryReferences.join(', ')}`,
|
|
288
|
-
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
289
|
-
}));
|
|
276
|
+
const actionTyped = action;
|
|
277
|
+
if (!adaptable.api.namedQueryApi.internalApi.validateDeletedNamedQuery(actionTyped.namedQuery.Name)) {
|
|
290
278
|
return;
|
|
291
279
|
}
|
|
292
280
|
const ret = next(action);
|
|
293
281
|
return ret;
|
|
294
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* Use Case: User has renamed a Named Query
|
|
285
|
+
* Action: Check whether it is referenced elsewhere before allowing rename
|
|
286
|
+
*/
|
|
295
287
|
case NamedQueryRedux.NAMED_QUERY_EDIT: {
|
|
296
288
|
const actionTyped = action;
|
|
297
|
-
// check if name was changed, in which case we have to check if it's referenced
|
|
298
289
|
const editedNamedQuery = actionTyped.namedQuery;
|
|
299
|
-
const previousNamedQueryName =
|
|
290
|
+
const previousNamedQueryName = middlewareAPI
|
|
300
291
|
.getState()
|
|
301
|
-
.NamedQuery.NamedQueries.find((namedQuery) => namedQuery.Uuid === editedNamedQuery.Uuid)
|
|
292
|
+
.NamedQuery.NamedQueries.find((namedQuery) => namedQuery.Uuid === editedNamedQuery.Uuid)?.Name ?? '';
|
|
302
293
|
if (editedNamedQuery.Name !== previousNamedQueryName) {
|
|
303
|
-
|
|
304
|
-
const namedQueryReferences = adaptable.api.namedQueryApi.internalApi.getNamedQueryModuleReferences(previousNamedQueryName);
|
|
305
|
-
if (namedQueryReferences.length) {
|
|
306
|
-
middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
|
|
307
|
-
alertType: 'generic',
|
|
308
|
-
header: 'Named Query could not be renamed',
|
|
309
|
-
message: `It is currently referenced in the following modules: ${namedQueryReferences.join(', ')}`,
|
|
310
|
-
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
311
|
-
}));
|
|
294
|
+
if (!adaptable.api.namedQueryApi.internalApi.validateRenamedNamedQuery(previousNamedQueryName)) {
|
|
312
295
|
return;
|
|
313
296
|
}
|
|
314
297
|
}
|
|
@@ -318,22 +301,27 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
318
301
|
/*******************
|
|
319
302
|
* System Row Summary ACTIONS
|
|
320
303
|
*******************/
|
|
321
|
-
case
|
|
304
|
+
case InternalRedux.SUMMARY_ROW_SET: {
|
|
322
305
|
let nextAction = next(action);
|
|
323
306
|
adaptable.api.layoutApi.internalApi.setupRowSummaries();
|
|
324
307
|
return nextAction;
|
|
325
308
|
}
|
|
326
309
|
/*******************
|
|
327
|
-
*
|
|
310
|
+
* System Quick Filter ACTIONS
|
|
328
311
|
*******************/
|
|
329
|
-
case
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
.getAlertService()
|
|
334
|
-
.createReactiveAlert(reactiveAlertDefinition));
|
|
335
|
-
return;
|
|
312
|
+
case InternalRedux.QUICK_FILTER_BAR_SHOW: {
|
|
313
|
+
let nextAction = next(action);
|
|
314
|
+
adaptable.showQuickFilter();
|
|
315
|
+
return nextAction;
|
|
336
316
|
}
|
|
317
|
+
case InternalRedux.QUICK_FILTER_BAR_HIDE: {
|
|
318
|
+
let nextAction = next(action);
|
|
319
|
+
adaptable.hideQuickFilter();
|
|
320
|
+
return nextAction;
|
|
321
|
+
}
|
|
322
|
+
/*******************
|
|
323
|
+
* ALERT DEFINITION ACTIONS
|
|
324
|
+
*******************/
|
|
337
325
|
case AlertRedux.ALERT_DEFINITION_ADD:
|
|
338
326
|
case AlertRedux.ALERT_DEFINITION_EDIT:
|
|
339
327
|
case AlertRedux.ALERT_DEFINITION_DELETE:
|
|
@@ -377,6 +365,11 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
377
365
|
}
|
|
378
366
|
// called also for rendered column actions, see RENDERED COLUMN ACTIONS block
|
|
379
367
|
adaptable.updateColumnModelAndRefreshGrid();
|
|
368
|
+
// tell Alert Module to check if need to listen to Cell Change
|
|
369
|
+
let module = (adaptable.adaptableModules.get(ModuleConstants.AlertModuleId));
|
|
370
|
+
if (module) {
|
|
371
|
+
module.checkListenToCellDataChanged();
|
|
372
|
+
}
|
|
380
373
|
return returnAction;
|
|
381
374
|
}
|
|
382
375
|
/*******************
|
|
@@ -392,29 +385,161 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
392
385
|
const returnAction = next(action);
|
|
393
386
|
// called also for rendered column actions, see RENDERED COLUMN ACTIONS block
|
|
394
387
|
adaptable.updateColumnModelAndRefreshGrid();
|
|
388
|
+
// check if cell data change listening needs to be activated
|
|
389
|
+
let module = (adaptable.adaptableModules.get(ModuleConstants.FlashingCellModuleId));
|
|
390
|
+
if (module) {
|
|
391
|
+
module.checkListenToCellDataChanged();
|
|
392
|
+
}
|
|
395
393
|
return returnAction;
|
|
396
394
|
}
|
|
397
395
|
/*******************
|
|
398
|
-
*
|
|
396
|
+
* FREE TEXT COLUMN ACTIONS
|
|
399
397
|
*******************/
|
|
400
398
|
/**
|
|
401
|
-
* Use Case:
|
|
402
|
-
*
|
|
399
|
+
* Use Case: We have added / edited / deleted a Free Text Column
|
|
400
|
+
* Actions: We check if a deleted Column has references and return if so
|
|
401
|
+
* Actions: We update the Special ColumnDefs and refresh the Layout
|
|
402
|
+
*/
|
|
403
|
+
case FreeTextColumnRedux.FREE_TEXT_COLUMN_ADD:
|
|
404
|
+
case FreeTextColumnRedux.FREE_TEXT_COLUMN_EDIT:
|
|
405
|
+
case FreeTextColumnRedux.FREE_TEXT_COLUMN_DELETE: {
|
|
406
|
+
// First check to see Deleted Free Text Column is referenced elsewhwere and return if so
|
|
407
|
+
if (action.type === FreeTextColumnRedux.FREE_TEXT_COLUMN_DELETE) {
|
|
408
|
+
const actionTyped = action;
|
|
409
|
+
if (!adaptable.api.freeTextColumnApi.internalApi.validateDeletedFreeTextColumn(actionTyped.freeTextColumn)) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
const returnAction = next(action);
|
|
414
|
+
// Check listen to Cell Data Changes and refresh the layout
|
|
415
|
+
let module = (adaptable.adaptableModules.get(ModuleConstants.FreeTextColumnModuleId));
|
|
416
|
+
if (module) {
|
|
417
|
+
module.checkListenToCellDataChanged();
|
|
418
|
+
}
|
|
419
|
+
adaptable.api.layoutApi.internalApi.refreshLayout();
|
|
420
|
+
return returnAction;
|
|
421
|
+
}
|
|
422
|
+
/*******************
|
|
423
|
+
* CALCULATED COLUMN ACTIONS
|
|
424
|
+
*******************/
|
|
425
|
+
/**
|
|
426
|
+
* Use Case: We have added / edited / deleted a Calculated Column
|
|
427
|
+
* Action: We update the Special ColumnDefs and refresh the Layout
|
|
428
|
+
*/
|
|
429
|
+
case CalculatedColumnRedux.CALCULATED_COLUMN_ADD:
|
|
430
|
+
case CalculatedColumnRedux.CALCULATED_COLUMN_EDIT:
|
|
431
|
+
case CalculatedColumnRedux.CALCULATED_COLUMN_DELETE: {
|
|
432
|
+
const actionTypedCC = action;
|
|
433
|
+
const calculatedColumn = actionTypedCC.calculatedColumn;
|
|
434
|
+
// First check for Deleted Calculated Columns with references and return if found
|
|
435
|
+
if (action.type === CalculatedColumnRedux.CALCULATED_COLUMN_DELETE) {
|
|
436
|
+
if (!adaptable.api.calculatedColumnApi.internalApi.validateDeletedCalculatedColumn(calculatedColumn)) {
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
const returnAction = next(action);
|
|
441
|
+
// Manage Aggregations, fire Event, set up listener and refresh Layout
|
|
442
|
+
if (action.type === CalculatedColumnRedux.CALCULATED_COLUMN_ADD ||
|
|
443
|
+
action.type === CalculatedColumnRedux.CALCULATED_COLUMN_EDIT) {
|
|
444
|
+
adaptable.api.internalApi
|
|
445
|
+
.getCalculatedColumnExpressionService()
|
|
446
|
+
.createAggregatedScalarLiveValue(calculatedColumn);
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
adaptable.api.internalApi
|
|
450
|
+
.getCalculatedColumnExpressionService()
|
|
451
|
+
.destroyAggregatedScalarLiveValue(calculatedColumn);
|
|
452
|
+
}
|
|
453
|
+
adaptable.api.eventApi.internalApi.fireCalculatedColumnChangedEvent(action.type, calculatedColumn);
|
|
454
|
+
let module = (adaptable.adaptableModules.get(ModuleConstants.CalculatedColumnModuleId));
|
|
455
|
+
if (module) {
|
|
456
|
+
module.checkListenToCellDataChanged();
|
|
457
|
+
}
|
|
458
|
+
adaptable.api.layoutApi.internalApi.refreshLayout();
|
|
459
|
+
return returnAction;
|
|
460
|
+
}
|
|
461
|
+
/*******************
|
|
462
|
+
* RENDERED COLUMN ACTIONS
|
|
463
|
+
*******************/
|
|
464
|
+
/**
|
|
465
|
+
* Use Case: We have updated an AdapTable Module that affects rendering
|
|
466
|
+
* Action: We set up all columns again
|
|
467
|
+
*/
|
|
468
|
+
case QuickSearchRedux.QUICK_SEARCH_SET_STYLE:
|
|
469
|
+
case FormatColumnRedux.FORMAT_COLUMN_ADD:
|
|
470
|
+
case FormatColumnRedux.FORMAT_COLUMN_EDIT:
|
|
471
|
+
case FormatColumnRedux.FORMAT_COLUMN_DELETE:
|
|
472
|
+
case FormatColumnRedux.FORMAT_COLUMN_DELETE_ALL:
|
|
473
|
+
case FormatColumnRedux.FORMAT_COLUMN_MOVE_DOWN:
|
|
474
|
+
case FormatColumnRedux.FORMAT_COLUMN_MOVE_UP:
|
|
475
|
+
case FormatColumnRedux.FORMAT_COLUMN_SUSPEND:
|
|
476
|
+
case FormatColumnRedux.FORMAT_COLUMN_UNSUSPEND:
|
|
477
|
+
case FormatColumnRedux.FORMAT_COLUMN_SUSPEND_ALL:
|
|
478
|
+
case FormatColumnRedux.FORMAT_COLUMN_UNSUSPEND_ALL:
|
|
479
|
+
case StyledColumnRedux.STYLED_COLUMN_ADD:
|
|
480
|
+
case StyledColumnRedux.STYLED_COLUMN_EDIT:
|
|
481
|
+
case StyledColumnRedux.STYLED_COLUMN_DELETE:
|
|
482
|
+
case StyledColumnRedux.STYLED_COLUMN_SUSPEND:
|
|
483
|
+
case StyledColumnRedux.STYLED_COLUMN_UNSUSPEND:
|
|
484
|
+
case StyledColumnRedux.STYLED_COLUMN_SUSPEND_ALL:
|
|
485
|
+
case StyledColumnRedux.STYLED_COLUMN_UNSUSPEND_ALL:
|
|
486
|
+
case CustomSortRedux.CUSTOM_SORT_ADD:
|
|
487
|
+
case CustomSortRedux.CUSTOM_SORT_EDIT:
|
|
488
|
+
case CustomSortRedux.CUSTOM_SORT_DELETE:
|
|
489
|
+
case CustomSortRedux.CUSTOM_SORT_SUSPEND:
|
|
490
|
+
case CustomSortRedux.CUSTOM_SORT_UNSUSPEND:
|
|
491
|
+
case CustomSortRedux.CUSTOM_SORT_SUSPEND_ALL:
|
|
492
|
+
case CustomSortRedux.CUSTOM_SORT_UNSUSPEND_ALL: {
|
|
493
|
+
const returnAction = next(action);
|
|
494
|
+
// called also for alert actions, see ALERT ACTIONS block
|
|
495
|
+
adaptable.updateColumnModelAndRefreshGrid();
|
|
496
|
+
return returnAction;
|
|
497
|
+
}
|
|
498
|
+
/*******************
|
|
499
|
+
* QUICK SEARCH ACTIONS
|
|
500
|
+
*******************/
|
|
501
|
+
/**
|
|
502
|
+
* Use Case: User has run a Quick Search
|
|
503
|
+
* Action1: Call Adaptable to redraw body so cells can be highlighted
|
|
504
|
+
* Action2: Run Query using Quick Search text
|
|
505
|
+
*/
|
|
506
|
+
case QuickSearchRedux.QUICK_SEARCH_RUN: {
|
|
507
|
+
let returnAction = next(action);
|
|
508
|
+
adaptable.api.gridApi.refreshAllCells(true);
|
|
509
|
+
// if set then return a query on the text
|
|
510
|
+
if (adaptable.adaptableOptions.quickSearchOptions.filterResultsAfterQuickSearch) {
|
|
511
|
+
const actionTyped = action;
|
|
512
|
+
const searchText = actionTyped.quickSearchText;
|
|
513
|
+
if (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(searchText)) {
|
|
514
|
+
adaptable.setAgGridQuickSearch(searchText);
|
|
515
|
+
}
|
|
516
|
+
else {
|
|
517
|
+
adaptable.clearAgGridQuickSearch();
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
return returnAction;
|
|
521
|
+
}
|
|
522
|
+
/*******************
|
|
523
|
+
* INTERNAL ACTIONS
|
|
524
|
+
*******************/
|
|
525
|
+
/**
|
|
526
|
+
* Use Case: User has deleted a System Alert which has a Highlight Cell or Highlight Row
|
|
527
|
+
* Action: Refresh the cell / Row (to clear the Highlight)
|
|
403
528
|
*/
|
|
404
|
-
case
|
|
529
|
+
case InternalRedux.ALERT_DELETE: {
|
|
405
530
|
const actionTyped = action;
|
|
406
531
|
let ret = next(action);
|
|
407
532
|
const adaptableAlert = actionTyped.alert;
|
|
408
|
-
if (
|
|
533
|
+
if (adaptableAlert.alertDefinition.AlertProperties?.HighlightCell &&
|
|
409
534
|
(0, AdaptableAlert_1.isAdaptableCellChangedAlert)(adaptableAlert) &&
|
|
410
535
|
adaptableAlert.cellDataChangedInfo) {
|
|
411
536
|
const rowNode = adaptableAlert.cellDataChangedInfo.rowNode;
|
|
412
|
-
adaptable.
|
|
537
|
+
adaptable.api.gridApi.refreshCell(rowNode, adaptableAlert.cellDataChangedInfo.column.columnId, true);
|
|
413
538
|
}
|
|
414
|
-
if (
|
|
539
|
+
if (adaptableAlert.alertDefinition.AlertProperties?.HighlightRow &&
|
|
415
540
|
(0, AdaptableAlert_1.isAdaptableRowChangedAlert)(adaptableAlert) &&
|
|
416
|
-
adaptableAlert.
|
|
417
|
-
adaptable.api.gridApi.refreshRowNodes(adaptableAlert.
|
|
541
|
+
adaptableAlert.rowDataChangedInfo) {
|
|
542
|
+
adaptable.api.gridApi.refreshRowNodes(adaptableAlert.rowDataChangedInfo.rowNodes);
|
|
418
543
|
}
|
|
419
544
|
return ret;
|
|
420
545
|
}
|
|
@@ -422,22 +547,21 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
422
547
|
* Use Case: User has deleted all System Alerts some of which have a Highlight Cell
|
|
423
548
|
* Action: Refresh the cell (to clear the style)
|
|
424
549
|
*/
|
|
425
|
-
case
|
|
550
|
+
case InternalRedux.ALERT_DELETE_ALL: {
|
|
426
551
|
const actionTyped = action;
|
|
427
552
|
let ret = next(action);
|
|
428
553
|
let alerts = actionTyped.alerts;
|
|
429
554
|
alerts.forEach((alert) => {
|
|
430
|
-
|
|
431
|
-
if (((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightCell) &&
|
|
555
|
+
if (alert.alertDefinition.AlertProperties?.HighlightCell &&
|
|
432
556
|
(0, AdaptableAlert_1.isAdaptableCellChangedAlert)(alert) &&
|
|
433
557
|
alert.cellDataChangedInfo) {
|
|
434
558
|
let rowNode = alert.cellDataChangedInfo.rowNode;
|
|
435
|
-
adaptable.
|
|
559
|
+
adaptable.api.gridApi.refreshCell(rowNode, alert.cellDataChangedInfo.column.columnId, true);
|
|
436
560
|
}
|
|
437
|
-
if (
|
|
561
|
+
if (alert.alertDefinition.AlertProperties?.HighlightRow &&
|
|
438
562
|
(0, AdaptableAlert_1.isAdaptableRowChangedAlert)(alert) &&
|
|
439
|
-
alert.
|
|
440
|
-
adaptable.api.gridApi.refreshRowNodes(alert.
|
|
563
|
+
alert.rowDataChangedInfo) {
|
|
564
|
+
adaptable.api.gridApi.refreshRowNodes(alert.rowDataChangedInfo.rowNodes);
|
|
441
565
|
}
|
|
442
566
|
});
|
|
443
567
|
return ret;
|
|
@@ -446,109 +570,108 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
446
570
|
* Use Case: A System Alert had a Highlight Cell with a limited duration
|
|
447
571
|
* Action: Refresh the cell (to clear the style)
|
|
448
572
|
*/
|
|
449
|
-
case
|
|
573
|
+
case InternalRedux.ALERT_REMOVE_CELL_HIGHLIGHT: {
|
|
450
574
|
let ret = next(action);
|
|
451
575
|
const actionTyped = action;
|
|
452
576
|
const adaptableAlert = actionTyped.alert;
|
|
453
|
-
if (
|
|
577
|
+
if (adaptableAlert.alertDefinition.AlertProperties?.HighlightCell) {
|
|
454
578
|
if ((0, AdaptableAlert_1.isAdaptableCellChangedAlert)(adaptableAlert) &&
|
|
455
579
|
adaptableAlert.cellDataChangedInfo) {
|
|
456
580
|
const rowNode = adaptableAlert.cellDataChangedInfo.rowNode;
|
|
457
|
-
adaptable.
|
|
581
|
+
adaptable.api.gridApi.refreshCell(rowNode, adaptableAlert.cellDataChangedInfo.column.columnId, true);
|
|
458
582
|
}
|
|
459
583
|
}
|
|
460
584
|
return ret;
|
|
461
585
|
}
|
|
462
|
-
case
|
|
586
|
+
case InternalRedux.ALERT_REMOVE_ROW_HIGHLIGHT: {
|
|
463
587
|
let ret = next(action);
|
|
464
588
|
const actionTyped = action;
|
|
465
589
|
const adaptableAlert = actionTyped.alert;
|
|
466
|
-
if (
|
|
590
|
+
if (adaptableAlert.alertDefinition.AlertProperties?.HighlightRow) {
|
|
467
591
|
if ((0, AdaptableAlert_1.isAdaptableCellChangedAlert)(adaptableAlert) &&
|
|
468
592
|
adaptableAlert.cellDataChangedInfo) {
|
|
469
593
|
adaptable.api.gridApi.refreshRowNodes([adaptableAlert.cellDataChangedInfo.rowNode]);
|
|
470
594
|
}
|
|
471
|
-
if ((0, AdaptableAlert_1.isAdaptableRowChangedAlert)(adaptableAlert) &&
|
|
472
|
-
adaptableAlert.
|
|
473
|
-
adaptable.api.gridApi.refreshRowNodes(adaptableAlert.gridDataChangedInfo.rowNodes);
|
|
595
|
+
if ((0, AdaptableAlert_1.isAdaptableRowChangedAlert)(adaptableAlert) && adaptableAlert.rowDataChangedInfo) {
|
|
596
|
+
adaptable.api.gridApi.refreshRowNodes(adaptableAlert.rowDataChangedInfo.rowNodes);
|
|
474
597
|
}
|
|
475
598
|
}
|
|
476
599
|
return ret;
|
|
477
600
|
}
|
|
478
|
-
case
|
|
601
|
+
case InternalRedux.HIGHLIGHT_CELL_ADD: {
|
|
479
602
|
const actionTyped = action;
|
|
480
603
|
const ret = next(action);
|
|
481
604
|
const cellHighlightInfo = actionTyped.cellHighlightInfo;
|
|
482
|
-
const rowNode = adaptable.getRowNodeForPrimaryKey(cellHighlightInfo.primaryKeyValue);
|
|
605
|
+
const rowNode = adaptable.api.gridApi.getRowNodeForPrimaryKey(cellHighlightInfo.primaryKeyValue);
|
|
483
606
|
if (rowNode) {
|
|
484
|
-
adaptable.
|
|
607
|
+
adaptable.api.gridApi.refreshCell(rowNode, cellHighlightInfo.columnId, true);
|
|
485
608
|
}
|
|
486
609
|
return ret;
|
|
487
610
|
}
|
|
488
|
-
case
|
|
611
|
+
case InternalRedux.HIGHLIGHT_CELL_DELETE: {
|
|
489
612
|
const actionTyped = action;
|
|
490
613
|
const ret = next(action);
|
|
491
|
-
const rowNode = adaptable.getRowNodeForPrimaryKey(actionTyped.primaryKeyValue);
|
|
614
|
+
const rowNode = adaptable.api.gridApi.getRowNodeForPrimaryKey(actionTyped.primaryKeyValue);
|
|
492
615
|
if (rowNode) {
|
|
493
|
-
adaptable.
|
|
616
|
+
adaptable.api.gridApi.refreshCell(rowNode, actionTyped.columnId, true);
|
|
494
617
|
}
|
|
495
618
|
return ret;
|
|
496
619
|
}
|
|
497
|
-
case
|
|
498
|
-
const cellHighlightInfos = middlewareAPI.getState().
|
|
620
|
+
case InternalRedux.HIGHLIGHT_CELL_DELETE_ALL: {
|
|
621
|
+
const cellHighlightInfos = middlewareAPI.getState().Internal.CellHighlightInfo;
|
|
499
622
|
const ret = next(action);
|
|
500
623
|
cellHighlightInfos.forEach((cellHighlightInfo) => {
|
|
501
|
-
const rowNode = adaptable.getRowNodeForPrimaryKey(cellHighlightInfo.primaryKeyValue);
|
|
624
|
+
const rowNode = adaptable.api.gridApi.getRowNodeForPrimaryKey(cellHighlightInfo.primaryKeyValue);
|
|
502
625
|
if (!rowNode) {
|
|
503
626
|
return;
|
|
504
627
|
}
|
|
505
|
-
adaptable.
|
|
628
|
+
adaptable.api.gridApi.refreshCell(rowNode, cellHighlightInfo.columnId, true);
|
|
506
629
|
});
|
|
507
630
|
return ret;
|
|
508
631
|
}
|
|
509
|
-
case
|
|
632
|
+
case InternalRedux.HIGHLIGHT_ROW_ADD: {
|
|
510
633
|
const actionTyped = action;
|
|
511
634
|
const ret = next(action);
|
|
512
635
|
const rowHighlightInfo = actionTyped.rowHighlightInfo;
|
|
513
|
-
const rowNode = adaptable.getRowNodeForPrimaryKey(rowHighlightInfo.primaryKeyValue);
|
|
636
|
+
const rowNode = adaptable.api.gridApi.getRowNodeForPrimaryKey(rowHighlightInfo.primaryKeyValue);
|
|
514
637
|
if (rowNode) {
|
|
515
638
|
adaptable.api.gridApi.refreshRowNode(rowNode);
|
|
516
639
|
}
|
|
517
640
|
return ret;
|
|
518
641
|
}
|
|
519
|
-
case
|
|
642
|
+
case InternalRedux.HIGHLIGHT_ROW_DELETE: {
|
|
520
643
|
const actionTyped = action;
|
|
521
644
|
const ret = next(action);
|
|
522
|
-
const rowNode = adaptable.getRowNodeForPrimaryKey(actionTyped.primaryKeyValue);
|
|
645
|
+
const rowNode = adaptable.api.gridApi.getRowNodeForPrimaryKey(actionTyped.primaryKeyValue);
|
|
523
646
|
if (rowNode) {
|
|
524
647
|
adaptable.api.gridApi.refreshRowNode(rowNode);
|
|
525
648
|
}
|
|
526
649
|
return ret;
|
|
527
650
|
}
|
|
528
|
-
case
|
|
651
|
+
case InternalRedux.HIGHLIGHT_ROWS_ADD: {
|
|
529
652
|
const actionTyped = action;
|
|
530
653
|
const ret = next(action);
|
|
531
654
|
const rowsHighlightInfo = actionTyped.rowsHighlightInfo;
|
|
532
|
-
const rowNodes = adaptable.getRowNodesForPrimaryKeys(rowsHighlightInfo.primaryKeyValues);
|
|
655
|
+
const rowNodes = adaptable.api.gridApi.getRowNodesForPrimaryKeys(rowsHighlightInfo.primaryKeyValues);
|
|
533
656
|
if (rowNodes.length) {
|
|
534
657
|
adaptable.api.gridApi.refreshRowNodes(rowNodes);
|
|
535
658
|
}
|
|
536
659
|
return ret;
|
|
537
660
|
}
|
|
538
|
-
case
|
|
661
|
+
case InternalRedux.HIGHLIGHT_ROWS_DELETE: {
|
|
539
662
|
const actionTyped = action;
|
|
540
663
|
const ret = next(action);
|
|
541
|
-
const rowNodes = adaptable.getRowNodesForPrimaryKeys(actionTyped.primaryKeyValues);
|
|
664
|
+
const rowNodes = adaptable.api.gridApi.getRowNodesForPrimaryKeys(actionTyped.primaryKeyValues);
|
|
542
665
|
if (rowNodes.length) {
|
|
543
666
|
adaptable.api.gridApi.refreshRowNodes(rowNodes);
|
|
544
667
|
}
|
|
545
668
|
return ret;
|
|
546
669
|
}
|
|
547
|
-
case
|
|
548
|
-
const rowHighlightInfos = middlewareAPI.getState().
|
|
670
|
+
case InternalRedux.HIGHLIGHT_CELL_DELETE_ALL: {
|
|
671
|
+
const rowHighlightInfos = middlewareAPI.getState().Internal.RowHighlightInfo;
|
|
549
672
|
const ret = next(action);
|
|
550
673
|
rowHighlightInfos.forEach((rowHighlightInfo) => {
|
|
551
|
-
const rowNode = adaptable.getRowNodeForPrimaryKey(rowHighlightInfo.primaryKeyValue);
|
|
674
|
+
const rowNode = adaptable.api.gridApi.getRowNodeForPrimaryKey(rowHighlightInfo.primaryKeyValue);
|
|
552
675
|
if (!rowNode) {
|
|
553
676
|
return;
|
|
554
677
|
}
|
|
@@ -556,289 +679,43 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
556
679
|
});
|
|
557
680
|
return ret;
|
|
558
681
|
}
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
case
|
|
567
|
-
case
|
|
568
|
-
case CalculatedColumnRedux.CALCULATED_COLUMN_ADD:
|
|
569
|
-
case CalculatedColumnRedux.CALCULATED_COLUMN_EDIT: {
|
|
570
|
-
const actionTyped = action;
|
|
571
|
-
const returnAction = next(actionTyped);
|
|
572
|
-
if (returnAction.type === CalculatedColumnRedux.CALCULATED_COLUMN_ADD ||
|
|
573
|
-
returnAction.type === CalculatedColumnRedux.CALCULATED_COLUMN_EDIT) {
|
|
574
|
-
adaptable.api.internalApi
|
|
575
|
-
.getCalculatedColumnExpressionService()
|
|
576
|
-
.createAggregatedScalarLiveValue(returnAction.calculatedColumn);
|
|
577
|
-
adaptable.api.calculatedColumnApi.internalApi.fireCalculatedColumnChangedEvent(action.type, actionTyped.calculatedColumn);
|
|
578
|
-
}
|
|
579
|
-
adaptable.updateColumnModelAndRefreshGrid();
|
|
580
|
-
return returnAction;
|
|
581
|
-
}
|
|
582
|
-
/**
|
|
583
|
-
* Use Case: We have deleted a CalculatedColumn (i.e. one not in initial ColumnDefs)
|
|
584
|
-
* Action: Check whether it is referenced elsewhere before deleting then update the Special ColumnDefs
|
|
585
|
-
*/
|
|
586
|
-
case CalculatedColumnRedux.CALCULATED_COLUMN_DELETE: {
|
|
587
|
-
const actionTyped = action;
|
|
588
|
-
// check if CalculatedColumn is not referenced elsewhere
|
|
589
|
-
const calculatedColumnReferences = adaptable.api.calculatedColumnApi.internalApi.getCalculatedColumnModuleReferences(actionTyped.calculatedColumn);
|
|
590
|
-
if (calculatedColumnReferences.length) {
|
|
591
|
-
middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
|
|
592
|
-
alertType: 'generic',
|
|
593
|
-
header: 'CalculatedColumn could not be deleted',
|
|
594
|
-
message: `It is still referenced in the following modules: ${calculatedColumnReferences.join(', ')}`,
|
|
595
|
-
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
596
|
-
}));
|
|
597
|
-
return;
|
|
598
|
-
}
|
|
599
|
-
const returnAction = next(actionTyped);
|
|
600
|
-
adaptable.api.internalApi
|
|
601
|
-
.getCalculatedColumnExpressionService()
|
|
602
|
-
.destroyAggregatedScalarLiveValue(returnAction.calculatedColumn);
|
|
603
|
-
adaptable.api.calculatedColumnApi.internalApi.fireCalculatedColumnChangedEvent(action.type, actionTyped.calculatedColumn);
|
|
604
|
-
adaptable.updateColumnModelAndRefreshGrid();
|
|
605
|
-
return returnAction;
|
|
606
|
-
}
|
|
607
|
-
/**
|
|
608
|
-
* Use Case: We have deleted a FreeText Column (i.e. one not in initial ColumnDefs)
|
|
609
|
-
* Action: Check whether it is referenced elsewhere before deleting then update the Special ColumnDefs
|
|
610
|
-
*/
|
|
611
|
-
case FreeTextColumnRedux.FREE_TEXT_COLUMN_DELETE: {
|
|
612
|
-
const actionTyped = action;
|
|
613
|
-
// check if FreeTextColumn is not referenced elsewhere
|
|
614
|
-
const freeTextColumnReferences = adaptable.api.freeTextColumnApi.internalApi.getFreeTextColumnModuleReferences(actionTyped.freeTextColumn);
|
|
615
|
-
if (freeTextColumnReferences.length) {
|
|
616
|
-
middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
|
|
617
|
-
alertType: 'generic',
|
|
618
|
-
header: 'FreeTextColumn could not be deleted',
|
|
619
|
-
message: `It is still referenced in the following modules: ${freeTextColumnReferences.join(', ')}`,
|
|
620
|
-
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
621
|
-
}));
|
|
622
|
-
return;
|
|
623
|
-
}
|
|
624
|
-
const returnAction = next(action);
|
|
625
|
-
adaptable.updateColumnModelAndRefreshGrid();
|
|
626
|
-
return returnAction;
|
|
627
|
-
}
|
|
628
|
-
/*******************
|
|
629
|
-
* RENDERED COLUMN ACTIONS
|
|
630
|
-
*******************/
|
|
631
|
-
/**
|
|
632
|
-
* Use Case: We have updated an AdapTable Module that affects rendering
|
|
633
|
-
* Action: We set up all columns again
|
|
634
|
-
*/
|
|
635
|
-
case QuickSearchRedux.QUICK_SEARCH_SET_STYLE:
|
|
636
|
-
case FormatColumnRedux.FORMAT_COLUMN_ADD:
|
|
637
|
-
case FormatColumnRedux.FORMAT_COLUMN_EDIT:
|
|
638
|
-
case FormatColumnRedux.FORMAT_COLUMN_DELETE:
|
|
639
|
-
case FormatColumnRedux.FORMAT_COLUMN_DELETE_ALL:
|
|
640
|
-
case FormatColumnRedux.FORMAT_COLUMN_MOVE_DOWN:
|
|
641
|
-
case FormatColumnRedux.FORMAT_COLUMN_MOVE_UP:
|
|
642
|
-
case FormatColumnRedux.FORMAT_COLUMN_SUSPEND:
|
|
643
|
-
case FormatColumnRedux.FORMAT_COLUMN_UNSUSPEND:
|
|
644
|
-
case FormatColumnRedux.FORMAT_COLUMN_SUSPEND_ALL:
|
|
645
|
-
case FormatColumnRedux.FORMAT_COLUMN_UNSUSPEND_ALL:
|
|
646
|
-
case StyledColumnRedux.STYLED_COLUMN_ADD:
|
|
647
|
-
case StyledColumnRedux.STYLED_COLUMN_EDIT:
|
|
648
|
-
case StyledColumnRedux.STYLED_COLUMN_DELETE:
|
|
649
|
-
case StyledColumnRedux.STYLED_COLUMN_SUSPEND:
|
|
650
|
-
case StyledColumnRedux.STYLED_COLUMN_UNSUSPEND:
|
|
651
|
-
case StyledColumnRedux.STYLED_COLUMN_SUSPEND_ALL:
|
|
652
|
-
case StyledColumnRedux.STYLED_COLUMN_UNSUSPEND_ALL:
|
|
653
|
-
case CustomSortRedux.CUSTOM_SORT_ADD:
|
|
654
|
-
case CustomSortRedux.CUSTOM_SORT_EDIT:
|
|
655
|
-
case CustomSortRedux.CUSTOM_SORT_DELETE:
|
|
656
|
-
case CustomSortRedux.CUSTOM_SORT_SUSPEND:
|
|
657
|
-
case CustomSortRedux.CUSTOM_SORT_UNSUSPEND:
|
|
658
|
-
case CustomSortRedux.CUSTOM_SORT_SUSPEND_ALL:
|
|
659
|
-
case CustomSortRedux.CUSTOM_SORT_UNSUSPEND_ALL: {
|
|
682
|
+
case InternalRedux.DATA_CHANGE_HISTORY_UNDO:
|
|
683
|
+
const actionTypedUndo = action;
|
|
684
|
+
const cellDataChangedInfo = actionTypedUndo.changeInfo;
|
|
685
|
+
adaptable.api.gridApi.undoCellEdit(cellDataChangedInfo);
|
|
686
|
+
return next(action);
|
|
687
|
+
case InternalRedux.DATA_CHANGE_HISTORY_ENABLE:
|
|
688
|
+
case InternalRedux.DATA_CHANGE_HISTORY_DISABLE:
|
|
689
|
+
case InternalRedux.DATA_CHANGE_HISTORY_SUSPEND:
|
|
690
|
+
case InternalRedux.DATA_CHANGE_HISTORY_RESUME:
|
|
660
691
|
const returnAction = next(action);
|
|
661
|
-
|
|
662
|
-
|
|
692
|
+
let module = (adaptable.adaptableModules.get(ModuleConstants.DataChangeHistoryModuleId));
|
|
693
|
+
if (module) {
|
|
694
|
+
module.checkListenToCellDataChanged();
|
|
695
|
+
}
|
|
663
696
|
return returnAction;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
* QUICK SEARCH ACTIONS
|
|
667
|
-
*******************/
|
|
668
|
-
/**
|
|
669
|
-
* Use Case: User has run a Quick Search
|
|
670
|
-
* Action1: Call Adaptable to redraw body so cells can be highlighted
|
|
671
|
-
* Action2: Run Query using Quick Search text
|
|
672
|
-
*/
|
|
673
|
-
case QuickSearchRedux.QUICK_SEARCH_RUN: {
|
|
697
|
+
case InternalRedux.CREATE_CELL_SUMMARY_INFO: {
|
|
698
|
+
let module = (adaptable.adaptableModules.get(ModuleConstants.CellSummaryModuleId));
|
|
674
699
|
let returnAction = next(action);
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
const actionTyped = action;
|
|
679
|
-
const searchText = actionTyped.quickSearchText;
|
|
680
|
-
if (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(searchText)) {
|
|
681
|
-
adaptable.setAgGridQuickSearch(searchText);
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
adaptable.setAgGridQuickSearch('');
|
|
685
|
-
}
|
|
686
|
-
}
|
|
700
|
+
let selectedCellInfo = middlewareAPI.getState().Internal.SelectedCellInfo;
|
|
701
|
+
let apiSummaryReturn = module.createCellSummaryInfo(selectedCellInfo);
|
|
702
|
+
adaptable.api.internalApi.setCellSummaryInfo(apiSummaryReturn);
|
|
687
703
|
return returnAction;
|
|
688
704
|
}
|
|
689
|
-
/*******************
|
|
690
|
-
* System FILTER ACTIONS
|
|
691
|
-
*******************/
|
|
692
|
-
case SystemRedux.SYSTEM_QUICK_FILTER_BAR_SHOW: {
|
|
693
|
-
adaptable.showQuickFilter();
|
|
694
|
-
return next(action);
|
|
695
|
-
}
|
|
696
|
-
case SystemRedux.SYSTEM_QUICK_FILTER_BAR_HIDE: {
|
|
697
|
-
adaptable.hideQuickFilter();
|
|
698
|
-
return next(action);
|
|
699
|
-
}
|
|
700
|
-
case SystemRedux.SYSTEM_FILTER_FORM_HIDE: {
|
|
701
|
-
adaptable.api.gridApi.hideFilterForm();
|
|
702
|
-
return next(action);
|
|
703
|
-
}
|
|
704
|
-
/**
|
|
705
|
-
* Use Case: Column Filters have changed
|
|
706
|
-
* Action: Apply Column Filtering and fire associated events
|
|
707
|
-
*/
|
|
708
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_ADD:
|
|
709
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT:
|
|
710
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_SET:
|
|
711
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR:
|
|
712
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL:
|
|
713
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND:
|
|
714
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND_ALL:
|
|
715
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND:
|
|
716
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL: {
|
|
717
|
-
let returnAction;
|
|
718
|
-
// needs to be called before 'next' so previous and next column filters are known
|
|
719
|
-
const shouldTriggerColumnFiltering = adaptable.api.columnFilterApi.internalApi.shouldNewColumnFilterTriggerColumnFiltering(action);
|
|
720
|
-
const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
|
|
721
|
-
if (((_g = adaptable.adaptableOptions.layoutOptions) === null || _g === void 0 ? void 0 : _g.autoSaveLayouts) &&
|
|
722
|
-
!currentLayout.IsReadOnly) {
|
|
723
|
-
returnAction = next(action);
|
|
724
|
-
}
|
|
725
|
-
else {
|
|
726
|
-
if (!middlewareAPI.getState().Grid.CurrentLayout) {
|
|
727
|
-
const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
|
|
728
|
-
middlewareAPI.dispatch(GridRedux.LayoutUpdateCurrentDraft(currentLayout));
|
|
729
|
-
}
|
|
730
|
-
// we have a layout draft, we have to update that state
|
|
731
|
-
let draftLayoutAction;
|
|
732
|
-
switch (action.type) {
|
|
733
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_ADD:
|
|
734
|
-
draftLayoutAction = GridRedux.LayoutDraftColumnFilterAdd(action.columnFilter);
|
|
735
|
-
break;
|
|
736
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT:
|
|
737
|
-
draftLayoutAction = GridRedux.LayoutDraftColumnFilterEdit(action.columnFilter);
|
|
738
|
-
break;
|
|
739
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_SET:
|
|
740
|
-
draftLayoutAction = GridRedux.LayoutDraftColumnFilterSet(action.columnFilter);
|
|
741
|
-
break;
|
|
742
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR:
|
|
743
|
-
draftLayoutAction = GridRedux.LayoutDraftColumnFilterClear(action.columnFilter);
|
|
744
|
-
break;
|
|
745
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL:
|
|
746
|
-
draftLayoutAction = GridRedux.LayoutDraftColumnFilterClearAll();
|
|
747
|
-
break;
|
|
748
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND:
|
|
749
|
-
draftLayoutAction = GridRedux.LayoutDraftColumnFilterSuspend(action.columnFilter);
|
|
750
|
-
break;
|
|
751
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND_ALL:
|
|
752
|
-
draftLayoutAction = GridRedux.LayoutDraftColumnFilterSuspendAll();
|
|
753
|
-
break;
|
|
754
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND:
|
|
755
|
-
draftLayoutAction = GridRedux.LayoutDraftColumnFilterUnsuspend(action.columnFilter);
|
|
756
|
-
break;
|
|
757
|
-
case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL:
|
|
758
|
-
draftLayoutAction = GridRedux.LayoutDraftColumnFilterUnsuspendAll();
|
|
759
|
-
break;
|
|
760
|
-
}
|
|
761
|
-
returnAction = next(draftLayoutAction);
|
|
762
|
-
}
|
|
763
|
-
setTimeout(() => {
|
|
764
|
-
if (shouldTriggerColumnFiltering) {
|
|
765
|
-
adaptable.applyColumnFiltering();
|
|
766
|
-
}
|
|
767
|
-
}, 5);
|
|
768
|
-
adaptable.api.columnFilterApi.internalApi.fireColumnFilterAppliedEvent();
|
|
769
|
-
adaptable.api.layoutApi.internalApi.fireLayoutChangedEvent(action.type, null, middlewareAPI.getState().Layout);
|
|
770
|
-
return returnAction;
|
|
771
|
-
}
|
|
772
|
-
/**
|
|
773
|
-
* Use Case: Grid Filter has changed
|
|
774
|
-
* Action: Apply Grid Filtering and fire associated events
|
|
775
|
-
*/
|
|
776
|
-
case LayoutRedux.LAYOUT_GRID_FILTER_SET:
|
|
777
|
-
case LayoutRedux.LAYOUT_GRID_FILTER_CLEAR:
|
|
778
|
-
case LayoutRedux.LAYOUT_GRID_FILTER_SUSPEND:
|
|
779
|
-
case LayoutRedux.LAYOUT_GRID_FILTER_UNSUSPEND: {
|
|
780
|
-
const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
|
|
781
|
-
let returnAction;
|
|
782
|
-
// - calls GridFilterApplied - examples
|
|
783
|
-
adaptable.api.gridFilterApi.internalApi.fireGridFilterAppliedEvent();
|
|
784
|
-
// - layout change event, row summary is triggered
|
|
785
|
-
adaptable.api.layoutApi.internalApi.fireLayoutChangedEvent(action.type, null, middlewareAPI.getState().Layout);
|
|
786
|
-
setTimeout(() => {
|
|
787
|
-
// - agGridApi.onFilterChanged
|
|
788
|
-
// - internal 'AdapTableFiltersApplied' event - evaluates row summary
|
|
789
|
-
// - refresh selected cells and rows
|
|
790
|
-
adaptable.applyGridFiltering();
|
|
791
|
-
}, 5);
|
|
792
|
-
if (((_h = adaptable.adaptableOptions.layoutOptions) === null || _h === void 0 ? void 0 : _h.autoSaveLayouts) &&
|
|
793
|
-
!currentLayout.IsReadOnly) {
|
|
794
|
-
return next(action);
|
|
795
|
-
}
|
|
796
|
-
else {
|
|
797
|
-
if (!middlewareAPI.getState().Grid.CurrentLayout) {
|
|
798
|
-
const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
|
|
799
|
-
middlewareAPI.dispatch(GridRedux.LayoutUpdateCurrentDraft(currentLayout));
|
|
800
|
-
}
|
|
801
|
-
switch (action.type) {
|
|
802
|
-
case LayoutRedux.LAYOUT_GRID_FILTER_SET:
|
|
803
|
-
returnAction = GridRedux.LayoutDraftGridFilterSet(Object.assign(Object.assign({}, currentLayout.GridFilter), { Expression: action.gridFilter }));
|
|
804
|
-
break;
|
|
805
|
-
case LayoutRedux.LAYOUT_GRID_FILTER_CLEAR:
|
|
806
|
-
returnAction = GridRedux.LayoutDraftGridFilterSet(null);
|
|
807
|
-
break;
|
|
808
|
-
case LayoutRedux.LAYOUT_GRID_FILTER_SUSPEND:
|
|
809
|
-
returnAction = GridRedux.LayoutDraftGridFilterSet(Object.assign(Object.assign({}, currentLayout.GridFilter), { IsSuspended: true }));
|
|
810
|
-
break;
|
|
811
|
-
case LayoutRedux.LAYOUT_GRID_FILTER_UNSUSPEND:
|
|
812
|
-
returnAction = GridRedux.LayoutDraftGridFilterSet(Object.assign(Object.assign({}, currentLayout.GridFilter), { IsSuspended: false }));
|
|
813
|
-
break;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
return next(returnAction);
|
|
817
|
-
}
|
|
818
705
|
/*******************
|
|
819
706
|
* DATA SOURCE ACTIONS
|
|
820
707
|
*******************/
|
|
821
708
|
/**
|
|
822
709
|
* Use Case: Data Sources have been amended
|
|
823
|
-
*
|
|
710
|
+
* Action1: Fire Data Source Changed event
|
|
711
|
+
* Action2: Display a DataSet form if supplied
|
|
824
712
|
*/
|
|
825
|
-
case
|
|
713
|
+
case InternalRedux.DATA_SET_SELECT: {
|
|
826
714
|
let returnAction = next(action);
|
|
827
715
|
const dataSet = adaptable.api.dataSetApi.getCurrentDataSet();
|
|
828
|
-
adaptable.api.
|
|
716
|
+
adaptable.api.eventApi.internalApi.fireDataSetSelectedEvent(dataSet);
|
|
829
717
|
requestAnimationFrame(() => {
|
|
830
|
-
|
|
831
|
-
middlewareAPI.dispatch((0, PopupRedux_1.PopupShowForm)({
|
|
832
|
-
Id: 'data-set-form',
|
|
833
|
-
Form: dataSet.form,
|
|
834
|
-
prepareContext: (context) => {
|
|
835
|
-
return new Promise((resolve) => {
|
|
836
|
-
const preparedContext = Object.assign(Object.assign({}, context), { dataSet });
|
|
837
|
-
resolve(preparedContext);
|
|
838
|
-
});
|
|
839
|
-
},
|
|
840
|
-
}));
|
|
841
|
-
}
|
|
718
|
+
adaptable.api.dataSetApi.internalApi.showDataSetForm(dataSet);
|
|
842
719
|
});
|
|
843
720
|
return returnAction;
|
|
844
721
|
}
|
|
@@ -865,8 +742,9 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
865
742
|
case NoteRedux.NOTE_EDIT:
|
|
866
743
|
case NoteRedux.NOTE_DELETE: {
|
|
867
744
|
let returnAction = next(action);
|
|
868
|
-
|
|
869
|
-
adaptable.
|
|
745
|
+
adaptable.AnnotationsService.checkListenToEvents();
|
|
746
|
+
const rowNode = adaptable.api.gridApi.getRowNodeForPrimaryKey(returnAction.adaptableNote.PrimaryKeyValue);
|
|
747
|
+
adaptable.api.gridApi.refreshCell(rowNode, returnAction.adaptableNote.ColumnId, true);
|
|
870
748
|
return returnAction;
|
|
871
749
|
}
|
|
872
750
|
/*******************
|
|
@@ -882,37 +760,38 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
882
760
|
case CommentsRedux.COMMENTS_CELL_DELETE:
|
|
883
761
|
case CommentsRedux.COMMENTS_CELL_ADD: {
|
|
884
762
|
let returnAction = next(action);
|
|
885
|
-
|
|
763
|
+
adaptable.AnnotationsService.checkListenToEvents();
|
|
764
|
+
let rowNode = null;
|
|
886
765
|
let columnId = null;
|
|
887
766
|
if ('cellAddress' in returnAction) {
|
|
888
|
-
|
|
767
|
+
rowNode = adaptable.api.gridApi.getRowNodeForPrimaryKey(returnAction.cellAddress.PrimaryKeyValue);
|
|
889
768
|
columnId = returnAction.cellAddress.ColumnId;
|
|
890
769
|
}
|
|
891
770
|
else if ('cellComments' in returnAction) {
|
|
892
|
-
|
|
771
|
+
rowNode = adaptable.api.gridApi.getRowNodeForPrimaryKey(returnAction.cellComments.PrimaryKeyValue);
|
|
893
772
|
columnId = returnAction.cellComments.ColumnId;
|
|
894
773
|
}
|
|
895
|
-
if (
|
|
896
|
-
adaptable.
|
|
774
|
+
if (rowNode && columnId) {
|
|
775
|
+
adaptable.api.gridApi.refreshCell(rowNode, columnId, true);
|
|
897
776
|
requestAnimationFrame(() => {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
adaptable.api.
|
|
901
|
-
|
|
902
|
-
|
|
777
|
+
const commentThreads = adaptable.api.commentApi.getAllComments();
|
|
778
|
+
adaptable.api.eventApi.emit('CommentChanged', commentThreads);
|
|
779
|
+
adaptable.api.optionsApi
|
|
780
|
+
.getCommentOptions()
|
|
781
|
+
?.persistCommentThreads?.(commentThreads);
|
|
903
782
|
});
|
|
904
783
|
}
|
|
905
784
|
return returnAction;
|
|
906
785
|
}
|
|
907
786
|
case CommentsRedux.COMMENTS_LOAD: {
|
|
908
|
-
const previousCommentThreads = adaptable.api.commentApi.
|
|
787
|
+
const previousCommentThreads = adaptable.api.commentApi.getAllComments();
|
|
909
788
|
let returnAction = next(action);
|
|
910
|
-
const newCommentThreads =
|
|
789
|
+
const newCommentThreads = adaptable.api.commentApi.getAllComments() ?? [];
|
|
911
790
|
requestAnimationFrame(() => {
|
|
912
791
|
let addedCommentThreads = [];
|
|
913
792
|
let deletedCommentThreads = [];
|
|
914
|
-
const prevCommentThreadsSet = new Set((previousCommentThreads
|
|
915
|
-
const newCommentThreadsSet = new Set((newCommentThreads
|
|
793
|
+
const prevCommentThreadsSet = new Set((previousCommentThreads ?? []).map((c) => c.Uuid));
|
|
794
|
+
const newCommentThreadsSet = new Set((newCommentThreads ?? []).map((c) => c.Uuid));
|
|
916
795
|
for (const commentThread of newCommentThreads) {
|
|
917
796
|
if (!prevCommentThreadsSet.has(commentThread.Uuid)) {
|
|
918
797
|
addedCommentThreads.push(commentThread);
|
|
@@ -929,7 +808,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
929
808
|
[...addedCommentThreads, ...deletedCommentThreads].forEach((commentThread) => {
|
|
930
809
|
const node = adaptable.api.gridApi.getRowNodeForPrimaryKey(commentThread.PrimaryKeyValue);
|
|
931
810
|
if (node && commentThread.ColumnId) {
|
|
932
|
-
adaptable.
|
|
811
|
+
adaptable.api.gridApi.refreshCell(node, commentThread.ColumnId, true);
|
|
933
812
|
}
|
|
934
813
|
});
|
|
935
814
|
});
|
|
@@ -990,7 +869,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
990
869
|
const oldDashboardState = middlewareAPI.getState().Dashboard;
|
|
991
870
|
let returnAction = next(action);
|
|
992
871
|
const newDashboardState = middlewareAPI.getState().Dashboard;
|
|
993
|
-
adaptable.api.
|
|
872
|
+
adaptable.api.eventApi.internalApi.fireDashboardChangedEvent(action.type, oldDashboardState, newDashboardState);
|
|
994
873
|
return returnAction;
|
|
995
874
|
}
|
|
996
875
|
/*******************
|
|
@@ -1007,44 +886,30 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1007
886
|
const previousLayout = adaptable.api.layoutApi.getCurrentLayout();
|
|
1008
887
|
let returnAction = next(action);
|
|
1009
888
|
const newLayoutState = middlewareAPI.getState().Layout;
|
|
1010
|
-
adaptable.api.
|
|
1011
|
-
|
|
1012
|
-
const
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
889
|
+
adaptable.api.eventApi.internalApi.fireLayoutChangedEvent(action.type, oldLayoutState, newLayoutState);
|
|
890
|
+
const oldLayout = (oldLayoutState.Layouts || []).find((l) => l.Name == oldLayoutState.CurrentLayout) || GeneralConstants_1.ERROR_LAYOUT;
|
|
891
|
+
const newLayout = (newLayoutState.Layouts || []).find((l) => l.Name == newLayoutState.CurrentLayout) ||
|
|
892
|
+
newLayoutState.Layouts[0] ||
|
|
893
|
+
GeneralConstants_1.ERROR_LAYOUT;
|
|
894
|
+
// Apply filtering if Column or Grid filters have been changed
|
|
895
|
+
let refreshFilters = false;
|
|
896
|
+
if (adaptable.api.filterApi.columnFilterApi.internalApi.areColumnFiltersDifferent(oldLayout.ColumnFilters, newLayout.ColumnFilters)) {
|
|
897
|
+
refreshFilters = true;
|
|
898
|
+
}
|
|
899
|
+
// Apply Grid filtering if Grid filter has been changed
|
|
900
|
+
if (!refreshFilters &&
|
|
901
|
+
adaptable.api.filterApi.gridFilterApi.internalApi.isGridFilterDifferent(oldLayout.GridFilter, newLayout.GridFilter)) {
|
|
902
|
+
refreshFilters = true;
|
|
1016
903
|
}
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
const newGridFilter = (_o = newLayoutState.Layouts.find((l) => l.Name == newLayoutState.CurrentLayout)) === null || _o === void 0 ? void 0 : _o.GridFilter;
|
|
1020
|
-
if (adaptable.api.gridFilterApi.internalApi.isGridFilterDifferent(oldGridFilter, newGridFilter)) {
|
|
1021
|
-
adaptable.applyGridFiltering();
|
|
904
|
+
if (refreshFilters) {
|
|
905
|
+
adaptable.applyFiltering();
|
|
1022
906
|
}
|
|
1023
907
|
if (returnAction.type == LayoutRedux.LAYOUT_SELECT ||
|
|
1024
908
|
returnAction.type == LayoutRedux.LAYOUT_DELETE ||
|
|
1025
909
|
returnAction.type == LayoutRedux.LAYOUT_COLUMN_SET_CAPTION) {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
currentLayout = gridState.CurrentLayout;
|
|
1030
|
-
}
|
|
1031
|
-
if (currentLayout) {
|
|
1032
|
-
// tell grid the layout has been selected
|
|
1033
|
-
adaptable.setLayout(currentLayout);
|
|
1034
|
-
}
|
|
1035
|
-
if (!((_p = adaptable.adaptableOptions.layoutOptions) === null || _p === void 0 ? void 0 : _p.autoSaveLayouts)) {
|
|
1036
|
-
middlewareAPI.dispatch(GridRedux.LayoutUpdateCurrentDraft(currentLayout));
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
if (returnAction.type == LayoutRedux.LAYOUT_ADD ||
|
|
1040
|
-
returnAction.type == LayoutRedux.LAYOUT_SAVE) {
|
|
1041
|
-
const actionTyped = action;
|
|
1042
|
-
// if autosave is false
|
|
1043
|
-
if (!((_q = adaptable.adaptableOptions.layoutOptions) === null || _q === void 0 ? void 0 : _q.autoSaveLayouts)) {
|
|
1044
|
-
// and the current layout is saved, make sure we also update the draft
|
|
1045
|
-
if (actionTyped.layout.Name === newLayoutState.CurrentLayout) {
|
|
1046
|
-
middlewareAPI.dispatch(GridRedux.LayoutUpdateCurrentDraft(actionTyped.layout));
|
|
1047
|
-
}
|
|
910
|
+
// tell AdapTable the Layout has been selected
|
|
911
|
+
if (newLayout) {
|
|
912
|
+
adaptable.setLayout(newLayout);
|
|
1048
913
|
}
|
|
1049
914
|
}
|
|
1050
915
|
// when changing current layout via the api, the layout should update
|
|
@@ -1058,9 +923,51 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1058
923
|
adaptable.setLayout(savingLayout);
|
|
1059
924
|
}
|
|
1060
925
|
}
|
|
1061
|
-
adaptable.refreshQuickFilter();
|
|
1062
926
|
return returnAction;
|
|
1063
927
|
}
|
|
928
|
+
/**
|
|
929
|
+
* Use Case: Column Filters have changed
|
|
930
|
+
* Action: Apply Column Filtering and fire associated events
|
|
931
|
+
*/
|
|
932
|
+
case LayoutRedux.LAYOUT_COLUMN_FILTER_ADD:
|
|
933
|
+
case LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT:
|
|
934
|
+
case LayoutRedux.LAYOUT_COLUMN_FILTER_SET:
|
|
935
|
+
case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR:
|
|
936
|
+
case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL:
|
|
937
|
+
case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND:
|
|
938
|
+
case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND_ALL:
|
|
939
|
+
case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND:
|
|
940
|
+
case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL: {
|
|
941
|
+
let returnAction;
|
|
942
|
+
// needs to be called before 'next' so previous and next column filters are known
|
|
943
|
+
const shouldTriggerColumnFiltering = adaptable.api.filterApi.columnFilterApi.internalApi.shouldNewColumnFilterTriggerColumnFiltering(action);
|
|
944
|
+
const oldLayoutState = middlewareAPI.getState().Layout;
|
|
945
|
+
returnAction = next(action);
|
|
946
|
+
setTimeout(() => {
|
|
947
|
+
if (shouldTriggerColumnFiltering) {
|
|
948
|
+
adaptable.applyFiltering();
|
|
949
|
+
}
|
|
950
|
+
}, 5);
|
|
951
|
+
adaptable.api.eventApi.internalApi.fireColumnFilterAppliedEvent();
|
|
952
|
+
adaptable.api.eventApi.internalApi.fireLayoutChangedEvent(action.type, oldLayoutState, middlewareAPI.getState().Layout);
|
|
953
|
+
return returnAction;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Use Case: Grid Filter has changed
|
|
957
|
+
* Action: Apply Grid Filtering and fire associated events
|
|
958
|
+
*/
|
|
959
|
+
case LayoutRedux.LAYOUT_GRID_FILTER_SET:
|
|
960
|
+
case LayoutRedux.LAYOUT_GRID_FILTER_CLEAR:
|
|
961
|
+
case LayoutRedux.LAYOUT_GRID_FILTER_SUSPEND:
|
|
962
|
+
case LayoutRedux.LAYOUT_GRID_FILTER_UNSUSPEND: {
|
|
963
|
+
let returnAction = next(action);
|
|
964
|
+
adaptable.api.eventApi.internalApi.fireGridFilterAppliedEvent();
|
|
965
|
+
adaptable.api.eventApi.internalApi.fireLayoutChangedEvent(action.type, null, middlewareAPI.getState().Layout);
|
|
966
|
+
setTimeout(() => {
|
|
967
|
+
adaptable.applyFiltering();
|
|
968
|
+
}, 5);
|
|
969
|
+
return next(returnAction);
|
|
970
|
+
}
|
|
1064
971
|
/*******************
|
|
1065
972
|
* SMART EDIT ACTIONS
|
|
1066
973
|
*******************/
|
|
@@ -1074,7 +981,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1074
981
|
* Action (3): Build the Preview Values (via Smart Edit module)
|
|
1075
982
|
* Action (4): Set the Preview Values (this will populate the preview screen)
|
|
1076
983
|
*/
|
|
1077
|
-
case
|
|
984
|
+
case InternalRedux.SMARTEDIT_CHECK_CELL_SELECTION: {
|
|
1078
985
|
let module = (adaptable.adaptableModules.get(ModuleConstants.SmartEditModuleId));
|
|
1079
986
|
let state = middlewareAPI.getState();
|
|
1080
987
|
let returnAction = next(action);
|
|
@@ -1088,16 +995,16 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1088
995
|
// check if Smart Edit is showing as popup and then close and show error (dont want to do that if from toolbar)
|
|
1089
996
|
if (popup.ComponentName == 'SmartEditPopup') {
|
|
1090
997
|
// We are in SmartEditPopup so let's close it
|
|
1091
|
-
|
|
998
|
+
adaptable.api.internalApi.hidePopupScreen();
|
|
1092
999
|
// and now show the alert Popup
|
|
1093
|
-
|
|
1000
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(apiReturn.Alert);
|
|
1094
1001
|
}
|
|
1095
|
-
middlewareAPI.dispatch(
|
|
1002
|
+
middlewareAPI.dispatch(InternalRedux.SmartEditSetValidSelection(false));
|
|
1096
1003
|
}
|
|
1097
1004
|
else {
|
|
1098
|
-
middlewareAPI.dispatch(
|
|
1099
|
-
let apiPreviewReturn = module.BuildPreviewValues(state.
|
|
1100
|
-
middlewareAPI.dispatch(
|
|
1005
|
+
middlewareAPI.dispatch(InternalRedux.SmartEditSetValidSelection(true));
|
|
1006
|
+
let apiPreviewReturn = module.BuildPreviewValues(state.Internal.SmartEdit.SmartEditValue, state.Internal.SmartEdit.SmartEditOperation);
|
|
1007
|
+
middlewareAPI.dispatch(InternalRedux.SmartEditSetPreview(apiPreviewReturn));
|
|
1101
1008
|
}
|
|
1102
1009
|
}
|
|
1103
1010
|
return returnAction;
|
|
@@ -1107,16 +1014,16 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1107
1014
|
* Action (1): Get the new preview set from the Smart Edit module
|
|
1108
1015
|
* Action (2): Set the Preview Values (this will populate the preview screen)
|
|
1109
1016
|
*/
|
|
1110
|
-
case
|
|
1111
|
-
case
|
|
1112
|
-
case
|
|
1017
|
+
case InternalRedux.SMART_EDIT_CHANGE_OPERATION:
|
|
1018
|
+
case InternalRedux.SMART_EDIT_CHANGE_VALUE:
|
|
1019
|
+
case InternalRedux.SMARTEDIT_FETCH_PREVIEW: {
|
|
1113
1020
|
//all our logic needs to be executed AFTER the main reducers
|
|
1114
1021
|
//so our state is up to date which allow us not to care about the data within each different action
|
|
1115
1022
|
let returnAction = next(action);
|
|
1116
1023
|
let module = (adaptable.adaptableModules.get(ModuleConstants.SmartEditModuleId));
|
|
1117
1024
|
let state = middlewareAPI.getState();
|
|
1118
|
-
let apiReturn = module.BuildPreviewValues(state.
|
|
1119
|
-
middlewareAPI.dispatch(
|
|
1025
|
+
let apiReturn = module.BuildPreviewValues(state.Internal.SmartEdit.SmartEditValue, state.Internal.SmartEdit.SmartEditOperation);
|
|
1026
|
+
middlewareAPI.dispatch(InternalRedux.SmartEditSetPreview(apiReturn));
|
|
1120
1027
|
return returnAction;
|
|
1121
1028
|
}
|
|
1122
1029
|
/**
|
|
@@ -1126,16 +1033,16 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1126
1033
|
*/
|
|
1127
1034
|
case SmartEditRedux.SMART_EDIT_APPLY: {
|
|
1128
1035
|
const actionTyped = action;
|
|
1129
|
-
let thePreview = middlewareAPI.getState().
|
|
1036
|
+
let thePreview = middlewareAPI.getState().Internal.SmartEdit.SmartEditPreviewInfo;
|
|
1130
1037
|
let newValues = PreviewHelper_1.PreviewHelper.GetCellUpdateRequestsFromPreview(thePreview, actionTyped.bypassValidationWarnings);
|
|
1131
1038
|
adaptable.api.gridApi.setCellValues(newValues);
|
|
1132
|
-
|
|
1039
|
+
adaptable.api.internalApi.hidePopupScreen();
|
|
1133
1040
|
return next(action);
|
|
1134
1041
|
}
|
|
1135
1042
|
/*******************
|
|
1136
1043
|
* BULK UPDATE ACTIONS
|
|
1137
1044
|
*******************/
|
|
1138
|
-
case
|
|
1045
|
+
case InternalRedux.BULK_UPDATE_CHECK_CELL_SELECTION: {
|
|
1139
1046
|
let module = (adaptable.adaptableModules.get(ModuleConstants.BulkUpdateModuleId));
|
|
1140
1047
|
let state = middlewareAPI.getState();
|
|
1141
1048
|
let returnAction = next(action);
|
|
@@ -1149,32 +1056,32 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1149
1056
|
// check if BulkUpdate is showing as popup
|
|
1150
1057
|
if (popup.ComponentName == 'BulkUpdatePopup') {
|
|
1151
1058
|
//We close the BulkUpdatePopup
|
|
1152
|
-
|
|
1059
|
+
adaptable.api.internalApi.hidePopupScreen();
|
|
1153
1060
|
//We show the Error Popup -- assume that will alwasy be an Error
|
|
1154
|
-
|
|
1061
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(apiReturn.Alert);
|
|
1155
1062
|
}
|
|
1156
1063
|
}
|
|
1157
|
-
middlewareAPI.dispatch(
|
|
1064
|
+
middlewareAPI.dispatch(InternalRedux.BulkUpdateSetValidSelection(apiReturn));
|
|
1158
1065
|
}
|
|
1159
1066
|
return returnAction;
|
|
1160
1067
|
}
|
|
1161
1068
|
// Here we have all actions that triggers a refresh of the BulkUpdatePreview
|
|
1162
|
-
case
|
|
1069
|
+
case InternalRedux.BULK_UPDATE_CHANGE_VALUE: {
|
|
1163
1070
|
//all our logic needs to be executed AFTER the main reducers
|
|
1164
1071
|
//so our state is up to date which allow us not to care about the data within each different action
|
|
1165
1072
|
let returnAction = next(action);
|
|
1166
1073
|
let module = (adaptable.adaptableModules.get(ModuleConstants.BulkUpdateModuleId));
|
|
1167
1074
|
let state = middlewareAPI.getState();
|
|
1168
|
-
let apiReturn = module.buildPreviewValues(state.
|
|
1169
|
-
middlewareAPI.dispatch(
|
|
1075
|
+
let apiReturn = module.buildPreviewValues(state.Internal.BulkUpdate.BulkUpdateValue);
|
|
1076
|
+
middlewareAPI.dispatch(InternalRedux.BulkUpdateSetPreview(apiReturn));
|
|
1170
1077
|
return returnAction;
|
|
1171
1078
|
}
|
|
1172
1079
|
case BulkUpdateRedux.BULK_UPDATE_APPLY: {
|
|
1173
1080
|
const actionTyped = action;
|
|
1174
|
-
let thePreview = middlewareAPI.getState().
|
|
1081
|
+
let thePreview = middlewareAPI.getState().Internal.BulkUpdate.BulkUpdatePreviewInfo;
|
|
1175
1082
|
let newValues = PreviewHelper_1.PreviewHelper.GetCellUpdateRequestsFromPreview(thePreview, actionTyped.bypassValidationWarnings);
|
|
1176
1083
|
adaptable.api.gridApi.setCellValues(newValues);
|
|
1177
|
-
|
|
1084
|
+
adaptable.api.internalApi.hidePopupScreen();
|
|
1178
1085
|
return next(action);
|
|
1179
1086
|
}
|
|
1180
1087
|
/*******************
|
|
@@ -1224,31 +1131,23 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1224
1131
|
/*******************
|
|
1225
1132
|
* EXPORT ACTIONS
|
|
1226
1133
|
*******************/
|
|
1134
|
+
// When selected report is undefined, clear the format
|
|
1227
1135
|
case ExportRedux.REPORT_SELECT: {
|
|
1228
1136
|
const actionTyped = action;
|
|
1229
1137
|
let returnAction = next(action);
|
|
1230
1138
|
const selectedReport = actionTyped.SelectedReport;
|
|
1231
|
-
if (
|
|
1232
|
-
(
|
|
1233
|
-
middlewareAPI.getState().Export.CurrentDestination !== Enums_1.ExportDestination.Excel)) {
|
|
1234
|
-
middlewareAPI.dispatch(ExportRedux.DestinationSelect(null));
|
|
1139
|
+
if (selectedReport == undefined) {
|
|
1140
|
+
adaptable.api.exportApi.clearFormat();
|
|
1235
1141
|
}
|
|
1236
1142
|
return returnAction;
|
|
1237
1143
|
}
|
|
1238
|
-
|
|
1239
|
-
let module = (adaptable.adaptableModules.get(ModuleConstants.ExportModuleId));
|
|
1240
|
-
const actionTyped = action;
|
|
1241
|
-
module.export(actionTyped.Report, actionTyped.ExportDestination);
|
|
1242
|
-
return next(action);
|
|
1243
|
-
}
|
|
1244
|
-
// When deleting a report check if its the currently selected one
|
|
1245
|
-
// if it is then clear
|
|
1144
|
+
// When deleting a report, if it is currently selected clear it
|
|
1246
1145
|
case ExportRedux.REPORT_DELETE: {
|
|
1247
1146
|
const actionTyped = action;
|
|
1248
1147
|
let report = actionTyped.report;
|
|
1249
1148
|
let currentReport = middlewareAPI.getState().Export.CurrentReport;
|
|
1250
1149
|
if (report && report.Name == currentReport) {
|
|
1251
|
-
|
|
1150
|
+
adaptable.api.exportApi.clearReport();
|
|
1252
1151
|
}
|
|
1253
1152
|
return next(action);
|
|
1254
1153
|
}
|
|
@@ -1271,13 +1170,14 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1271
1170
|
middlewareAPI.dispatch(TeamSharingRedux.TeamSharingSet(sharedEntities));
|
|
1272
1171
|
})
|
|
1273
1172
|
.catch((error) => {
|
|
1274
|
-
adaptable.
|
|
1275
|
-
|
|
1173
|
+
adaptable.api.logError('TeamSharing get error : ' + error.message);
|
|
1174
|
+
const alert = {
|
|
1276
1175
|
alertType: 'generic',
|
|
1277
1176
|
header: 'Team Sharing',
|
|
1278
1177
|
message: "Couldn't get shared items: " + error.message,
|
|
1279
1178
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
1280
|
-
}
|
|
1179
|
+
};
|
|
1180
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
|
|
1281
1181
|
});
|
|
1282
1182
|
return returnAction;
|
|
1283
1183
|
}
|
|
@@ -1298,7 +1198,11 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1298
1198
|
// if it has the same UUID, override it
|
|
1299
1199
|
if ((0, TeamSharingState_1.isCustomSharedEntity)(entity) && entity.Uuid === customSharedEntity.Uuid) {
|
|
1300
1200
|
newCustomShare = false;
|
|
1301
|
-
return
|
|
1201
|
+
return {
|
|
1202
|
+
...customSharedEntity,
|
|
1203
|
+
ChangedAt: Date.now(),
|
|
1204
|
+
ChangedBy: adaptable.api.optionsApi.getUserName(),
|
|
1205
|
+
};
|
|
1302
1206
|
}
|
|
1303
1207
|
return entity;
|
|
1304
1208
|
});
|
|
@@ -1312,11 +1216,11 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1312
1216
|
})
|
|
1313
1217
|
.then(() => {
|
|
1314
1218
|
if (shareSuccessful) {
|
|
1315
|
-
adaptable.
|
|
1219
|
+
adaptable.api.logInfo(`Custom Shared Object '${Configuration.Name}' Shared Successfully`);
|
|
1316
1220
|
}
|
|
1317
1221
|
})
|
|
1318
1222
|
.catch((error) => {
|
|
1319
|
-
adaptable.
|
|
1223
|
+
adaptable.api.logError('TeamSharing share error : ' + error.message, actionTyped.Entity);
|
|
1320
1224
|
});
|
|
1321
1225
|
return returnAction;
|
|
1322
1226
|
}
|
|
@@ -1337,12 +1241,13 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1337
1241
|
const existingActiveSharedEntity = Configuration.type === 'Active' &&
|
|
1338
1242
|
middlewareAPI.getState().TeamSharing.ActiveSharedEntityMap[Entity.Uuid];
|
|
1339
1243
|
if (existingActiveSharedEntity) {
|
|
1340
|
-
|
|
1244
|
+
const alert = {
|
|
1341
1245
|
alertType: 'generic',
|
|
1342
1246
|
header: 'Team Sharing',
|
|
1343
|
-
message: `Couldn't share ${adaptable.
|
|
1247
|
+
message: `Couldn't share ${adaptable.ModuleService.getModuleFriendlyName(Module)}, there is already an existing active share for it: ${existingActiveSharedEntity.Description}`,
|
|
1344
1248
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
1345
|
-
}
|
|
1249
|
+
};
|
|
1250
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
|
|
1346
1251
|
shareSuccessful = false;
|
|
1347
1252
|
return;
|
|
1348
1253
|
}
|
|
@@ -1360,22 +1265,24 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1360
1265
|
})
|
|
1361
1266
|
.then(() => {
|
|
1362
1267
|
if (shareSuccessful) {
|
|
1363
|
-
|
|
1268
|
+
const alert = {
|
|
1364
1269
|
alertType: 'generic',
|
|
1365
1270
|
header: 'Team Sharing',
|
|
1366
|
-
message: `${adaptable.
|
|
1271
|
+
message: `${adaptable.ModuleService.getModuleFriendlyName(Module)} Shared Successfully`,
|
|
1367
1272
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Success'),
|
|
1368
|
-
}
|
|
1273
|
+
};
|
|
1274
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
|
|
1369
1275
|
}
|
|
1370
1276
|
})
|
|
1371
1277
|
.catch((error) => {
|
|
1372
|
-
adaptable.
|
|
1373
|
-
|
|
1278
|
+
adaptable.api.logError('TeamSharing share error : ' + error.message, actionTyped.Entity);
|
|
1279
|
+
const alert = {
|
|
1374
1280
|
alertType: 'generic',
|
|
1375
1281
|
header: 'Team Sharing',
|
|
1376
1282
|
message: "Couldn't share item: " + error.message,
|
|
1377
1283
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
1378
|
-
}
|
|
1284
|
+
};
|
|
1285
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
|
|
1379
1286
|
});
|
|
1380
1287
|
return returnAction;
|
|
1381
1288
|
}
|
|
@@ -1395,14 +1302,15 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1395
1302
|
.getTeamSharingService()
|
|
1396
1303
|
.getSharedEntityDependants(removedEntityId, adaptableSharedEntities);
|
|
1397
1304
|
if (sharedEntityDependants.length) {
|
|
1398
|
-
|
|
1305
|
+
const alert = {
|
|
1399
1306
|
alertType: 'generic',
|
|
1400
1307
|
header: `Cannot remove the shared item as it is referenced in:`,
|
|
1401
1308
|
message: sharedEntityDependants
|
|
1402
|
-
.map((sharedEntity) => `${adaptable.
|
|
1309
|
+
.map((sharedEntity) => `${adaptable.ModuleService.getModuleFriendlyName(sharedEntity.Module)} ${sharedEntity.Description}`)
|
|
1403
1310
|
.join('\n'),
|
|
1404
1311
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Warning'),
|
|
1405
|
-
}
|
|
1312
|
+
};
|
|
1313
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
|
|
1406
1314
|
return;
|
|
1407
1315
|
}
|
|
1408
1316
|
// remove the deleted SharedEntity from local state
|
|
@@ -1412,13 +1320,14 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1412
1320
|
return adaptable.api.teamSharingApi.persistSharedEntities(newSharedEntities);
|
|
1413
1321
|
})
|
|
1414
1322
|
.catch((error) => {
|
|
1415
|
-
adaptable.
|
|
1416
|
-
|
|
1323
|
+
adaptable.api.logError('TeamSharing remove error : ' + error.message);
|
|
1324
|
+
const alert = {
|
|
1417
1325
|
alertType: 'generic',
|
|
1418
1326
|
header: 'Team Sharing',
|
|
1419
1327
|
message: "Couldn't remove item: " + error.message,
|
|
1420
1328
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
1421
|
-
}
|
|
1329
|
+
};
|
|
1330
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
|
|
1422
1331
|
});
|
|
1423
1332
|
return returnAction;
|
|
1424
1333
|
}
|
|
@@ -1445,7 +1354,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1445
1354
|
ShowInputBox: false,
|
|
1446
1355
|
MessageType: 'Warning',
|
|
1447
1356
|
};
|
|
1448
|
-
|
|
1357
|
+
adaptable.api.internalApi.showPopupConfirmation(confirmation);
|
|
1449
1358
|
}
|
|
1450
1359
|
else {
|
|
1451
1360
|
middlewareAPI.dispatch(processImportAction);
|
|
@@ -1470,7 +1379,7 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1470
1379
|
}
|
|
1471
1380
|
}
|
|
1472
1381
|
else {
|
|
1473
|
-
adaptable.
|
|
1382
|
+
adaptable.api.logError('Team Sharing Import Error: Unknown item type', sharedEntity);
|
|
1474
1383
|
}
|
|
1475
1384
|
}
|
|
1476
1385
|
if (activeSharedEntities.length) {
|
|
@@ -1481,12 +1390,13 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1481
1390
|
.waitForTeamSharingImportEnd()
|
|
1482
1391
|
.then(() => middlewareAPI.dispatch(TeamSharingRedux.TeamSharingCommitImport()))
|
|
1483
1392
|
.catch(() => middlewareAPI.dispatch(TeamSharingRedux.TeamSharingCommitImport()));
|
|
1484
|
-
|
|
1393
|
+
const alert = {
|
|
1485
1394
|
alertType: 'generic',
|
|
1486
1395
|
header: 'Team Sharing',
|
|
1487
1396
|
message: `Item Successfully Imported`,
|
|
1488
1397
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Success'),
|
|
1489
|
-
}
|
|
1398
|
+
};
|
|
1399
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
|
|
1490
1400
|
return returnAction;
|
|
1491
1401
|
}
|
|
1492
1402
|
// update the active SharedEntity with the latest (updated) state of the local AdaptableObject
|
|
@@ -1519,13 +1429,14 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1519
1429
|
return adaptable.api.teamSharingApi.persistSharedEntities(updatedSharedEntities);
|
|
1520
1430
|
})
|
|
1521
1431
|
.catch((error) => {
|
|
1522
|
-
adaptable.
|
|
1523
|
-
|
|
1432
|
+
adaptable.api.logError('TeamSharing update active item error : ' + error.message);
|
|
1433
|
+
const alert = {
|
|
1524
1434
|
alertType: 'generic',
|
|
1525
1435
|
header: 'Team Sharing',
|
|
1526
1436
|
message: "Couldn't update active item: " + error.message,
|
|
1527
1437
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
1528
|
-
}
|
|
1438
|
+
};
|
|
1439
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
|
|
1529
1440
|
});
|
|
1530
1441
|
return returnAction;
|
|
1531
1442
|
}
|
|
@@ -1539,58 +1450,17 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1539
1450
|
adaptable.api.internalApi.getTeamSharingService().showUpdateNotifications();
|
|
1540
1451
|
})
|
|
1541
1452
|
.catch((error) => {
|
|
1542
|
-
adaptable.
|
|
1543
|
-
|
|
1453
|
+
adaptable.api.logError('TeamSharing update error : ' + error.message);
|
|
1454
|
+
const alert = {
|
|
1544
1455
|
alertType: 'generic',
|
|
1545
1456
|
header: 'Team Sharing',
|
|
1546
1457
|
message: "Couldn't check for updates: " + error.message,
|
|
1547
1458
|
alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
1548
|
-
}
|
|
1459
|
+
};
|
|
1460
|
+
adaptable.api.alertApi.displayAdaptableAlertNotification(alert);
|
|
1549
1461
|
});
|
|
1550
1462
|
return returnAction;
|
|
1551
1463
|
}
|
|
1552
|
-
/*******************
|
|
1553
|
-
* DATA CHANGE HISTORY ACTIONS
|
|
1554
|
-
*******************/
|
|
1555
|
-
case SystemRedux.SYSTEM_DATA_CHANGE_HISTORY_UNDO:
|
|
1556
|
-
const actionTypedUndo = action;
|
|
1557
|
-
const cellDataChangedInfo = actionTypedUndo.changeInfo;
|
|
1558
|
-
adaptable.api.gridApi.undoCellEdit(cellDataChangedInfo);
|
|
1559
|
-
return next(action);
|
|
1560
|
-
/*******************
|
|
1561
|
-
* SYSTEM (INTERNAL) ACTIONS
|
|
1562
|
-
*******************/
|
|
1563
|
-
case SystemRedux.SYSTEM_SET_NEW_COLUMN_LIST_ORDER:
|
|
1564
|
-
const actionTyped = action;
|
|
1565
|
-
adaptable.setColumnOrder(actionTyped.visibleColumnList);
|
|
1566
|
-
return next(action);
|
|
1567
|
-
/*******************
|
|
1568
|
-
* GRID (INTERNAL) ACTIONS
|
|
1569
|
-
*******************/
|
|
1570
|
-
case GridRedux.GRID_CREATE_CELLS_SUMMARY: {
|
|
1571
|
-
let module = (adaptable.adaptableModules.get(ModuleConstants.CellSummaryModuleId));
|
|
1572
|
-
let returnAction = next(action);
|
|
1573
|
-
let selectedCellInfo = middlewareAPI.getState().Grid.SelectedCellInfo;
|
|
1574
|
-
let apiSummaryReturn = module.createCellSummary(selectedCellInfo);
|
|
1575
|
-
middlewareAPI.dispatch(GridRedux.GridSetCellSummary(apiSummaryReturn));
|
|
1576
|
-
return returnAction;
|
|
1577
|
-
}
|
|
1578
|
-
case GridRedux.GRID_REFRESH_CELLS: {
|
|
1579
|
-
const actionTyped = action;
|
|
1580
|
-
let ret = next(action);
|
|
1581
|
-
adaptable.refreshCells(actionTyped.rowNodes, actionTyped.columnIds, true);
|
|
1582
|
-
return ret;
|
|
1583
|
-
}
|
|
1584
|
-
case GridRedux.GRID_SET_SORT: {
|
|
1585
|
-
let ret = next(action);
|
|
1586
|
-
adaptable.api.gridApi.internalApi.fireGridSortedEvent();
|
|
1587
|
-
return ret;
|
|
1588
|
-
}
|
|
1589
|
-
case GridRedux.GRID_CLEAR_SORT: {
|
|
1590
|
-
let ret = next(action);
|
|
1591
|
-
adaptable.api.gridApi.internalApi.fireGridSortedEvent();
|
|
1592
|
-
return ret;
|
|
1593
|
-
}
|
|
1594
1464
|
/*******************
|
|
1595
1465
|
* POPUP (INTERNAL) ACTIONS
|
|
1596
1466
|
*******************/
|
|
@@ -1630,12 +1500,10 @@ const adaptableMiddleware = (adaptable) => (function(middlewareAPI) {
|
|
|
1630
1500
|
case exports.INIT_STATE: {
|
|
1631
1501
|
let returnAction = next(action);
|
|
1632
1502
|
if (adaptable.isReady) {
|
|
1633
|
-
// TODO see #create-create-module-menu
|
|
1634
|
-
// create the module menu (for use in the dashboard and the toolpanel)
|
|
1635
1503
|
// we need this here for when the state key is changed
|
|
1636
1504
|
// since we need the transient state to be restored in the same
|
|
1637
1505
|
// way as when Adaptable is initialised.
|
|
1638
|
-
adaptable.ModuleService.
|
|
1506
|
+
adaptable.ModuleService.createModuleUIItems();
|
|
1639
1507
|
}
|
|
1640
1508
|
return returnAction;
|
|
1641
1509
|
}
|