@adaptabletools/adaptable-cjs 19.2.4 → 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
|
@@ -0,0 +1,1046 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LayoutManager = void 0;
|
|
4
|
+
const infinite_react_1 = require("@infinite-table/infinite-react");
|
|
5
|
+
const isPivotLayoutModel_1 = require("./isPivotLayoutModel");
|
|
6
|
+
const LMEmitter_1 = require("./LMEmitter");
|
|
7
|
+
const normalizeLayoutModel_1 = require("./normalizeLayoutModel");
|
|
8
|
+
const isLayoutEqual_1 = require("./isLayoutEqual");
|
|
9
|
+
const simplifyLayoutModel_1 = require("./simplifyLayoutModel");
|
|
10
|
+
const sortColumnIdsByOrder_1 = require("./sortColumnIdsByOrder");
|
|
11
|
+
function flattenColDefs(colDefs) {
|
|
12
|
+
const res = [];
|
|
13
|
+
const iteration = (c) => {
|
|
14
|
+
if (c.children) {
|
|
15
|
+
c.children.forEach(iteration);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const colDef = c;
|
|
19
|
+
res.push(colDef);
|
|
20
|
+
};
|
|
21
|
+
colDefs.forEach(iteration);
|
|
22
|
+
return res;
|
|
23
|
+
}
|
|
24
|
+
const DEFAULT_COLUMN_WIDTH = 200;
|
|
25
|
+
const DEFAULT_AGG_FUNC = 'sum';
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @param columnIds the column ids that we want to be in the order
|
|
29
|
+
* @param colDefs all the colDefs in the grid
|
|
30
|
+
* @returns the array of the given column ids, but also any other column id that is not in the given column ids, but
|
|
31
|
+
* has a column definition
|
|
32
|
+
*/
|
|
33
|
+
function getColumnOrderIdsForAllColDefs(columnIds = [], colDefs) {
|
|
34
|
+
const flatColDefs = flattenColDefs(colDefs);
|
|
35
|
+
const flatColIds = flatColDefs.map((c) => c.colId ?? c.field);
|
|
36
|
+
if (columnIds.length === 0) {
|
|
37
|
+
return flatColIds;
|
|
38
|
+
}
|
|
39
|
+
const sortedColIds = (0, sortColumnIdsByOrder_1.sortColumnIdsByOrder)(flatColIds, columnIds);
|
|
40
|
+
return sortedColIds;
|
|
41
|
+
}
|
|
42
|
+
const EXPAND_COLLAPSE_EVENTS = {
|
|
43
|
+
expandOrCollapseAll: true,
|
|
44
|
+
rowGroupOpened: true,
|
|
45
|
+
};
|
|
46
|
+
const COLUMN_EVENTS_THAT_TRIGGERS_AUTO_LAYOUT_SAVE = {
|
|
47
|
+
displayedColumnsChanged: true,
|
|
48
|
+
columnResized: true,
|
|
49
|
+
sortChanged: true,
|
|
50
|
+
columnRowGroupChanged: true,
|
|
51
|
+
...EXPAND_COLLAPSE_EVENTS,
|
|
52
|
+
// TODO check if all of those are needed
|
|
53
|
+
// stateUpdated: true,
|
|
54
|
+
// columnPinned: true,
|
|
55
|
+
// columnPivotChanged: true,
|
|
56
|
+
// columnValueChanged: true,
|
|
57
|
+
};
|
|
58
|
+
function isGridLayoutSame(options) {
|
|
59
|
+
const { layoutFromGrid: gridLayout, layoutFromModel: layout } = options;
|
|
60
|
+
if (!!gridLayout != !!layout) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return (0, isLayoutEqual_1.isLayoutEqual)(gridLayout, layout);
|
|
64
|
+
}
|
|
65
|
+
class LayoutManager extends LMEmitter_1.LMEmitter {
|
|
66
|
+
constructor(options) {
|
|
67
|
+
super({ debugId: options.debugId });
|
|
68
|
+
this.fieldsToIds = {};
|
|
69
|
+
this.idsToFields = {};
|
|
70
|
+
this.idsToColDefs = {};
|
|
71
|
+
this.initialColumnWidths = {};
|
|
72
|
+
this.currentLayout = null;
|
|
73
|
+
this.suppressGlobalAgGridEventListener = false;
|
|
74
|
+
this.supressGlobalAgGridEventTimeoutId = null;
|
|
75
|
+
this.globalAgGridEventListener = (type, event) => {
|
|
76
|
+
if (this.destroyed || this.suppressGlobalAgGridEventListener) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (type in COLUMN_EVENTS_THAT_TRIGGERS_AUTO_LAYOUT_SAVE) {
|
|
80
|
+
if (type === 'columnResized' && !event.finished) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
// called while dragging a column from the sidebar, to the row groups panel
|
|
84
|
+
if (type === 'displayedColumnsChanged' && event.source === 'uiColumnDragged') {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
this.warn(`globalAgGridEventListener-${type}`, event);
|
|
88
|
+
if (!this.currentLayout) {
|
|
89
|
+
const gridLayout = this.getLayoutModelFromGrid();
|
|
90
|
+
// if there's no layout set currently in AG Grid
|
|
91
|
+
// then emit the gridLayoutChanged event directly
|
|
92
|
+
// as we don't have a current layout to compare to
|
|
93
|
+
this.onGridLayoutChanged(gridLayout);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const gridLayout = this.getLayoutModelFromGrid();
|
|
97
|
+
// but if we do have a current layout set
|
|
98
|
+
// then only emit the event if the layout has changed
|
|
99
|
+
if (isGridLayoutSame({
|
|
100
|
+
layoutFromGrid: gridLayout,
|
|
101
|
+
layoutFromModel: this.currentLayout,
|
|
102
|
+
})) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
this.onGridLayoutChanged(gridLayout);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
this.columnDefsChanged = (colDefs) => {
|
|
109
|
+
this.warn('onColumnDefsChanged');
|
|
110
|
+
this.indexColumns();
|
|
111
|
+
if (this.currentLayout) {
|
|
112
|
+
this.applyLayout(this.currentLayout);
|
|
113
|
+
}
|
|
114
|
+
this.emitSync('columnDefsChanged', colDefs);
|
|
115
|
+
};
|
|
116
|
+
this.layoutChangeDebounce = options.layoutChangeDebounce ?? 0;
|
|
117
|
+
if (this.layoutChangeDebounce) {
|
|
118
|
+
this.onGridLayoutChanged = (0, infinite_react_1.debounce)(this.onGridLayoutChanged, {
|
|
119
|
+
wait: this.layoutChangeDebounce,
|
|
120
|
+
}).bind(this);
|
|
121
|
+
}
|
|
122
|
+
this.setOptions(options);
|
|
123
|
+
this.setupEvents();
|
|
124
|
+
this.indexColumns();
|
|
125
|
+
globalThis.layoutManager = this;
|
|
126
|
+
}
|
|
127
|
+
destroy() {
|
|
128
|
+
if (this.destroyed) {
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
super.destroy();
|
|
132
|
+
if (this.setGridOption_default) {
|
|
133
|
+
this.gridApi.setGridOption = this.setGridOption_default;
|
|
134
|
+
}
|
|
135
|
+
if (!this.gridApi.isDestroyed()) {
|
|
136
|
+
this.gridApi.removeGlobalListener(this.globalAgGridEventListener);
|
|
137
|
+
}
|
|
138
|
+
this.gridApi = null;
|
|
139
|
+
}
|
|
140
|
+
setupEvents() {
|
|
141
|
+
this.setupSetColumnDefs();
|
|
142
|
+
this.gridApi.addGlobalListener(this.globalAgGridEventListener);
|
|
143
|
+
}
|
|
144
|
+
setupSetColumnDefs() {
|
|
145
|
+
const setGridOption_default = this.gridApi.setGridOption;
|
|
146
|
+
const self = this;
|
|
147
|
+
this.setGridOption_default = setGridOption_default;
|
|
148
|
+
const setGridOption = (key, value) => {
|
|
149
|
+
let defaultSuppressColumnMoveAnimation = this.gridApi.getGridOption('suppressColumnMoveAnimation');
|
|
150
|
+
if (key === 'columnDefs') {
|
|
151
|
+
if (!defaultSuppressColumnMoveAnimation) {
|
|
152
|
+
setGridOption_default.call(this.gridApi, 'suppressColumnMoveAnimation', true);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const res = setGridOption_default.call(this.gridApi, key, value);
|
|
156
|
+
if (key === 'columnDefs') {
|
|
157
|
+
if (!defaultSuppressColumnMoveAnimation) {
|
|
158
|
+
this.gridApi.setGridOption('suppressColumnMoveAnimation', false);
|
|
159
|
+
}
|
|
160
|
+
self.columnDefsChanged(value);
|
|
161
|
+
}
|
|
162
|
+
return res;
|
|
163
|
+
};
|
|
164
|
+
this.gridApi.setGridOption = setGridOption;
|
|
165
|
+
}
|
|
166
|
+
indexColumns() {
|
|
167
|
+
const colDefs = this.gridApi.getColumnDefs();
|
|
168
|
+
this.fieldsToIds = {};
|
|
169
|
+
this.idsToFields = {};
|
|
170
|
+
this.idsToColDefs = {};
|
|
171
|
+
const iteration = (c) => {
|
|
172
|
+
if (c.children) {
|
|
173
|
+
c.children.forEach(iteration);
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
const colDef = c;
|
|
177
|
+
const colId = colDef.colId ?? colDef.field;
|
|
178
|
+
const field = colDef.field;
|
|
179
|
+
if (field) {
|
|
180
|
+
this.fieldsToIds[field] = colId;
|
|
181
|
+
this.idsToFields[colId] = field;
|
|
182
|
+
}
|
|
183
|
+
this.idsToColDefs[colId] = colDef;
|
|
184
|
+
// const col = this.gridApi.getColumn(colId);
|
|
185
|
+
// this.initialColumnWidths[colId] = colDef.width ?? colDef.initialWidth ?? DEFAULT_COLUMN_WIDTH; // this.gridApi.getColumn(colId).getActualWidth();
|
|
186
|
+
// this.initialColumnWidths[colId] = col.getActualWidth();
|
|
187
|
+
this.initialColumnWidths[colId] = this.getDefaultColumnWidthForCol(colId, colDef);
|
|
188
|
+
const rowGroupColumns = this.gridApi.getRowGroupColumns();
|
|
189
|
+
rowGroupColumns.forEach((column) => {
|
|
190
|
+
const colId = column.getColId();
|
|
191
|
+
// const col = this.gridApi.getColumn(colId);
|
|
192
|
+
// const colDef = col.getColDef();
|
|
193
|
+
this.initialColumnWidths[colId] = this.getDefaultColumnWidthForCol(colId);
|
|
194
|
+
// colDef.width ?? colDef.initialWidth ?? DEFAULT_COLUMN_WIDTH;
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
colDefs.forEach(iteration);
|
|
198
|
+
}
|
|
199
|
+
getColDefById(colId) {
|
|
200
|
+
return this.idsToColDefs[colId] ?? null;
|
|
201
|
+
}
|
|
202
|
+
onGridLayoutChanged(layout) {
|
|
203
|
+
// we want to have this check, since onGridLayoutChanged might be triggered
|
|
204
|
+
// by some AG Grid actions we're not interested - eg: filter changed
|
|
205
|
+
// and the state of which is not captured by the Layout Model
|
|
206
|
+
// so it would result in a layout object that's similar to the previous one
|
|
207
|
+
// that we fired
|
|
208
|
+
// hence we need this check here as well
|
|
209
|
+
if (this._prevFiredLayout && (0, isLayoutEqual_1.isLayoutEqual)(layout, this._prevFiredLayout)) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
this.triggerGridLayoutChange(layout);
|
|
213
|
+
}
|
|
214
|
+
triggerGridLayoutChange(layout) {
|
|
215
|
+
layout = (0, simplifyLayoutModel_1.simplifyLayoutModel)(layout);
|
|
216
|
+
const prevLayout = this._prevFiredLayout;
|
|
217
|
+
this._prevFiredLayout = layout;
|
|
218
|
+
this.currentLayout = layout;
|
|
219
|
+
// emit an event that the layout has changed from the grid
|
|
220
|
+
this.emitSync('gridLayoutChanged', layout);
|
|
221
|
+
const log = this.debugger.extend('gridLayoutChanged');
|
|
222
|
+
log('current grid layout:', JSON.stringify(layout, null, 2), '\nprev layout:\n', prevLayout ? JSON.stringify(prevLayout, null, 2) : 'no prev layout');
|
|
223
|
+
}
|
|
224
|
+
onChange(fn) {
|
|
225
|
+
return this.on('gridLayoutChanged', fn);
|
|
226
|
+
}
|
|
227
|
+
onColumnDefsChanged(fn) {
|
|
228
|
+
return this.on('columnDefsChanged', fn);
|
|
229
|
+
}
|
|
230
|
+
setOptions(options) {
|
|
231
|
+
this.gridApi = options.gridApi;
|
|
232
|
+
}
|
|
233
|
+
getLayoutModelFromGrid() {
|
|
234
|
+
return this.gridApi.isPivotMode()
|
|
235
|
+
? this.getPivotLayoutModelFromGrid()
|
|
236
|
+
: this.getTableLayoutModelFromGrid();
|
|
237
|
+
}
|
|
238
|
+
getPivotLayoutModelFromGrid() {
|
|
239
|
+
const pivotResultColumnsSet = new Set((this.gridApi.getPivotResultColumns() || []).map((col) => col.getColId()));
|
|
240
|
+
const prevLayout = this.currentLayout;
|
|
241
|
+
const columnState = this.gridApi
|
|
242
|
+
.getColumnState()
|
|
243
|
+
.filter((col) => !pivotResultColumnsSet.has(col.colId));
|
|
244
|
+
let PivotColumns = this.gridApi.getPivotColumns().map((col) => col.getColId());
|
|
245
|
+
const layout = this.getUndecidedLayoutModelFromGrid(columnState);
|
|
246
|
+
delete layout.TableColumns;
|
|
247
|
+
const pivotLayout = {
|
|
248
|
+
PivotColumns,
|
|
249
|
+
ColumnPinning: layout.ColumnPinning,
|
|
250
|
+
ColumnSorts: layout.ColumnSorts,
|
|
251
|
+
ColumnWidths: layout.ColumnWidths,
|
|
252
|
+
ColumnVisibility: layout.ColumnVisibility,
|
|
253
|
+
RowGroupValues: layout.RowGroupValues,
|
|
254
|
+
PivotGroupedColumns: layout.RowGroupedColumns,
|
|
255
|
+
PivotAggregationColumns: layout.TableAggregationColumns,
|
|
256
|
+
PivotExpandLevel: prevLayout?.PivotExpandLevel ?? -1,
|
|
257
|
+
};
|
|
258
|
+
return (0, simplifyLayoutModel_1.simplifyPivotLayoutModel)(pivotLayout);
|
|
259
|
+
}
|
|
260
|
+
getTableLayoutModelFromGrid() {
|
|
261
|
+
return this.getUndecidedLayoutModelFromGrid(this.gridApi.getColumnState());
|
|
262
|
+
}
|
|
263
|
+
isTreeMode() {
|
|
264
|
+
return this.gridApi.getGridOption('treeData');
|
|
265
|
+
}
|
|
266
|
+
getUndecidedLayoutModelFromGrid(columnState) {
|
|
267
|
+
let TableColumns = columnState
|
|
268
|
+
.map((c) => c.colId)
|
|
269
|
+
.filter((colId) => colId !== 'ag-Grid-SelectionColumn');
|
|
270
|
+
let ColumnWidths = {};
|
|
271
|
+
let ColumnSorts = [];
|
|
272
|
+
let RowGroupedColumns = [];
|
|
273
|
+
let RowGroupValues = undefined;
|
|
274
|
+
let TableAggregationColumnsv = [];
|
|
275
|
+
let ColumnPinning = {};
|
|
276
|
+
const gridState = this.gridApi.getState();
|
|
277
|
+
const prevLayout = this.currentLayout;
|
|
278
|
+
const prevAggColumns = prevLayout?.TableAggregationColumns;
|
|
279
|
+
const prevAggColumnsMap = prevAggColumns?.reduce((acc, agg) => {
|
|
280
|
+
acc[agg.ColumnId] = agg;
|
|
281
|
+
return acc;
|
|
282
|
+
}, {});
|
|
283
|
+
let ColumnVisibility = columnState.reduce((acc, colState) => {
|
|
284
|
+
const colId = colState.colId;
|
|
285
|
+
// normally we take the initial width from this object
|
|
286
|
+
let initialWidth = this.initialColumnWidths[colId];
|
|
287
|
+
// but if this is a group column
|
|
288
|
+
// we try to infer it from the default width (when display type is single)
|
|
289
|
+
// or from the respective group column (when display type is multi)
|
|
290
|
+
if (initialWidth === undefined) {
|
|
291
|
+
if (colId === normalizeLayoutModel_1.GROUP_COLUMN_ID__SINGLE) {
|
|
292
|
+
const groupByColId = this.gridApi.getRowGroupColumns()[0]?.getColId();
|
|
293
|
+
initialWidth =
|
|
294
|
+
this.initialColumnWidths[colId] || this.initialColumnWidths[groupByColId];
|
|
295
|
+
}
|
|
296
|
+
else if (colId.startsWith(normalizeLayoutModel_1.GROUP_COLUMN_ID__MULTI_PREFIX)) {
|
|
297
|
+
initialWidth =
|
|
298
|
+
this.initialColumnWidths[colId.replace(normalizeLayoutModel_1.GROUP_COLUMN_ID__MULTI_PREFIX, '')];
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
// and only add the col width to the layout ColumnWidths
|
|
302
|
+
// if it's different from the initial default column width
|
|
303
|
+
if (colState.width && initialWidth != colState.width) {
|
|
304
|
+
ColumnWidths[colId] = colState.width;
|
|
305
|
+
}
|
|
306
|
+
if (colState.hide) {
|
|
307
|
+
acc[colId] = false;
|
|
308
|
+
}
|
|
309
|
+
if (colState.sort != undefined) {
|
|
310
|
+
ColumnSorts[colState.sortIndex] = {
|
|
311
|
+
ColumnId: colId,
|
|
312
|
+
SortOrder: colState.sort === 'asc' ? 'Asc' : 'Desc',
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
if (colState.rowGroupIndex != null) {
|
|
316
|
+
RowGroupedColumns[colState.rowGroupIndex] = colId;
|
|
317
|
+
}
|
|
318
|
+
if (colState.pinned) {
|
|
319
|
+
ColumnPinning[colId] = colState.pinned === true ? 'left' : colState.pinned;
|
|
320
|
+
}
|
|
321
|
+
return acc;
|
|
322
|
+
}, {});
|
|
323
|
+
if (gridState.aggregation) {
|
|
324
|
+
TableAggregationColumnsv = gridState.aggregation.aggregationModel.map((agg) => {
|
|
325
|
+
const prevAggForColumn = prevAggColumnsMap?.[agg.colId];
|
|
326
|
+
if (prevAggForColumn && prevAggForColumn.AggFunc.aggFunc === agg.aggFunc) {
|
|
327
|
+
return prevAggForColumn;
|
|
328
|
+
}
|
|
329
|
+
return {
|
|
330
|
+
ColumnId: agg.colId,
|
|
331
|
+
AggFunc: {
|
|
332
|
+
aggFunc: agg.aggFunc,
|
|
333
|
+
},
|
|
334
|
+
};
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
// if there's a current layout set
|
|
338
|
+
// we want to only return the AG Grid columns that are also in the current layout
|
|
339
|
+
if (this.currentLayout &&
|
|
340
|
+
this.currentLayout.TableColumns &&
|
|
341
|
+
this.currentLayout.TableColumns.length > 0) {
|
|
342
|
+
const colsInLayout = new Set(this.currentLayout.TableColumns);
|
|
343
|
+
if (this.currentLayout.RowGroupedColumns?.length) {
|
|
344
|
+
const groupDisplayType = this.gridApi.getGridOption('groupDisplayType');
|
|
345
|
+
if (groupDisplayType === 'singleColumn') {
|
|
346
|
+
colsInLayout.add(normalizeLayoutModel_1.GROUP_COLUMN_ID__SINGLE);
|
|
347
|
+
}
|
|
348
|
+
else {
|
|
349
|
+
this.currentLayout.RowGroupedColumns.forEach((colId) => {
|
|
350
|
+
colsInLayout.add(`${normalizeLayoutModel_1.GROUP_COLUMN_ID__MULTI_PREFIX}${colId}`);
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
// if (this.isTreeMode()) {
|
|
355
|
+
// // colsInLayout.add(GROUP_COLUMN_ID__SINGLE);
|
|
356
|
+
// }
|
|
357
|
+
TableColumns = TableColumns.filter((colId) => {
|
|
358
|
+
if (colsInLayout.has(colId)) {
|
|
359
|
+
return true;
|
|
360
|
+
}
|
|
361
|
+
// we might hit an edge case where we ungroup one of the 2+ group cols
|
|
362
|
+
// in the current layout - in which case in the prev state of the current layout
|
|
363
|
+
// we had the group column
|
|
364
|
+
// but now we will need to include the current column
|
|
365
|
+
if (colsInLayout.has(`${normalizeLayoutModel_1.GROUP_COLUMN_ID__MULTI_PREFIX}${colId}`)) {
|
|
366
|
+
// ColumnVisibility[colId] = false;
|
|
367
|
+
return true;
|
|
368
|
+
}
|
|
369
|
+
const col = this.gridApi.getColumn(colId);
|
|
370
|
+
if (!col) {
|
|
371
|
+
return false;
|
|
372
|
+
}
|
|
373
|
+
return col.isVisible();
|
|
374
|
+
});
|
|
375
|
+
const columnOrderSet = new Set(TableColumns);
|
|
376
|
+
Object.keys(ColumnWidths).forEach((colId) => {
|
|
377
|
+
if (!columnOrderSet.has(colId)) {
|
|
378
|
+
delete ColumnWidths[colId];
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
Object.keys(ColumnVisibility).forEach((colId) => {
|
|
382
|
+
if (!columnOrderSet.has(colId)) {
|
|
383
|
+
delete ColumnVisibility[colId];
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
TableAggregationColumnsv = TableAggregationColumnsv.filter((agg) => {
|
|
387
|
+
if (columnOrderSet.has(agg.ColumnId)) {
|
|
388
|
+
return true;
|
|
389
|
+
}
|
|
390
|
+
return false;
|
|
391
|
+
});
|
|
392
|
+
Object.keys(ColumnPinning).forEach((colId) => {
|
|
393
|
+
if (!columnOrderSet.has(colId)) {
|
|
394
|
+
delete ColumnPinning[colId];
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
if (RowGroupedColumns && RowGroupedColumns.length) {
|
|
399
|
+
if (this.currentLayout?.RowGroupValues) {
|
|
400
|
+
const currentRowGroupValues = this.currentLayout.RowGroupValues;
|
|
401
|
+
if (currentRowGroupValues.RowGroupDisplay === 'always-collapsed') {
|
|
402
|
+
RowGroupValues = {
|
|
403
|
+
RowGroupDisplay: 'always-collapsed',
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
else if (currentRowGroupValues.RowGroupDisplay === 'always-expanded') {
|
|
407
|
+
RowGroupValues = {
|
|
408
|
+
RowGroupDisplay: 'always-expanded',
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
else if (currentRowGroupValues.RowGroupDisplay === 'collapsed') {
|
|
412
|
+
const ExpandedValues = this.getRowGroupNodePathsAs({
|
|
413
|
+
expanded: true,
|
|
414
|
+
});
|
|
415
|
+
RowGroupValues = {
|
|
416
|
+
RowGroupDisplay: 'collapsed',
|
|
417
|
+
Values: ExpandedValues,
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
else if (currentRowGroupValues.RowGroupDisplay === 'expanded') {
|
|
421
|
+
const CollapsedValues = this.getRowGroupNodePathsAs({
|
|
422
|
+
expanded: false,
|
|
423
|
+
});
|
|
424
|
+
RowGroupValues = {
|
|
425
|
+
RowGroupDisplay: 'expanded',
|
|
426
|
+
Values: CollapsedValues,
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
const layout = (0, simplifyLayoutModel_1.simplifyTableLayoutModel)({
|
|
432
|
+
TableColumns: TableColumns,
|
|
433
|
+
ColumnVisibility,
|
|
434
|
+
ColumnWidths: ColumnWidths,
|
|
435
|
+
ColumnSorts,
|
|
436
|
+
RowGroupedColumns,
|
|
437
|
+
TableAggregationColumns: TableAggregationColumnsv,
|
|
438
|
+
ColumnPinning: ColumnPinning,
|
|
439
|
+
RowGroupValues,
|
|
440
|
+
});
|
|
441
|
+
return layout;
|
|
442
|
+
}
|
|
443
|
+
static getAGGridInitialStateForLayout(layout, colDefs, options) {
|
|
444
|
+
if ((0, isPivotLayoutModel_1.isPivotLayoutModel)(layout)) {
|
|
445
|
+
return LayoutManager.getAGGridInitialStateForPivotLayout(layout, colDefs);
|
|
446
|
+
}
|
|
447
|
+
return LayoutManager.getAGGridInitialStateForTableLayout(layout, colDefs, options);
|
|
448
|
+
}
|
|
449
|
+
static getAGGridInitialStateForTableLayout(layout, colDefs, _options) {
|
|
450
|
+
if (!layout.TableColumns) {
|
|
451
|
+
console.error(`TableColumns property is missing in table layout: `, layout);
|
|
452
|
+
console.warn('Setting TableColumns to empty array.');
|
|
453
|
+
layout.TableColumns = [];
|
|
454
|
+
}
|
|
455
|
+
// just in case the enduser provided falsy colIds, it will crash AG Grid internals
|
|
456
|
+
layout.TableColumns = layout.TableColumns.filter((colId) => colId != undefined);
|
|
457
|
+
layout = (0, normalizeLayoutModel_1.normalizeTableLayoutModel)(layout, _options);
|
|
458
|
+
const agGridState = {};
|
|
459
|
+
const columnIds = getColumnOrderIdsForAllColDefs(layout.TableColumns, colDefs);
|
|
460
|
+
agGridState.columnOrder = {
|
|
461
|
+
orderedColIds: columnIds,
|
|
462
|
+
};
|
|
463
|
+
const flatColDefs = flattenColDefs(colDefs);
|
|
464
|
+
const getColDef = (colId) => flatColDefs.find((colDef) => colDef.colId === colId);
|
|
465
|
+
agGridState.columnVisibility = {
|
|
466
|
+
hiddenColIds: flatColDefs
|
|
467
|
+
.filter((colDef) => {
|
|
468
|
+
const colId = colDef.colId ?? colDef.field;
|
|
469
|
+
return (layout.ColumnVisibility?.[colId] === false ||
|
|
470
|
+
!layout.TableColumns.includes(colId) ||
|
|
471
|
+
colDef.hide ||
|
|
472
|
+
colDef.initialHide);
|
|
473
|
+
})
|
|
474
|
+
.map((colDef) => colDef.colId ?? colDef.field),
|
|
475
|
+
};
|
|
476
|
+
if (layout.ColumnWidths) {
|
|
477
|
+
agGridState.columnSizing = {
|
|
478
|
+
columnSizingModel: Object.keys(layout.ColumnWidths).map((colId) => {
|
|
479
|
+
const width = layout.ColumnWidths[colId];
|
|
480
|
+
return {
|
|
481
|
+
colId,
|
|
482
|
+
width,
|
|
483
|
+
};
|
|
484
|
+
}),
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
if (layout.ColumnSorts) {
|
|
488
|
+
agGridState.sort = {
|
|
489
|
+
sortModel: layout.ColumnSorts.map((columnSort) => {
|
|
490
|
+
return {
|
|
491
|
+
colId: columnSort.ColumnId,
|
|
492
|
+
sort: columnSort.SortOrder === 'Asc' ? 'asc' : 'desc',
|
|
493
|
+
};
|
|
494
|
+
}),
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
if (layout.RowGroupedColumns) {
|
|
498
|
+
agGridState.rowGroup = {
|
|
499
|
+
groupColIds: layout.RowGroupedColumns,
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
if (layout.ColumnPinning) {
|
|
503
|
+
const columnPinning = {
|
|
504
|
+
leftColIds: [],
|
|
505
|
+
rightColIds: [],
|
|
506
|
+
};
|
|
507
|
+
Object.keys(layout.ColumnPinning).forEach((colId) => {
|
|
508
|
+
const pinned = layout.ColumnPinning[colId];
|
|
509
|
+
if (pinned === 'left') {
|
|
510
|
+
columnPinning.leftColIds.push(colId);
|
|
511
|
+
}
|
|
512
|
+
else if (pinned === 'right') {
|
|
513
|
+
columnPinning.rightColIds.push(colId);
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
agGridState.columnPinning = columnPinning;
|
|
517
|
+
}
|
|
518
|
+
const TableAggregationColumns = (layout.TableAggregationColumns ?? []).map(({ ColumnId, AggFunc }) => ({
|
|
519
|
+
colId: ColumnId,
|
|
520
|
+
aggFunc: AggFunc.aggFunc,
|
|
521
|
+
}));
|
|
522
|
+
if (TableAggregationColumns.length) {
|
|
523
|
+
agGridState.aggregation = {
|
|
524
|
+
aggregationModel: TableAggregationColumns.map(({ colId, aggFunc }) => {
|
|
525
|
+
if (aggFunc === true) {
|
|
526
|
+
const colDef = getColDef(colId);
|
|
527
|
+
// fallback to SUM if no defaultAggFunc is defined
|
|
528
|
+
aggFunc = colDef?.defaultAggFunc || DEFAULT_AGG_FUNC;
|
|
529
|
+
}
|
|
530
|
+
return {
|
|
531
|
+
colId,
|
|
532
|
+
aggFunc,
|
|
533
|
+
};
|
|
534
|
+
}),
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
return agGridState;
|
|
538
|
+
}
|
|
539
|
+
static getAGGridInitialStateForPivotLayout(layout, colDefs) {
|
|
540
|
+
layout = (0, normalizeLayoutModel_1.normalizePivotLayoutModel)(layout);
|
|
541
|
+
const agGridState = {};
|
|
542
|
+
// const columnIds = getColumnOrderIdsForAllColDefs([], colDefs);
|
|
543
|
+
// agGridState.columnOrder = {
|
|
544
|
+
// orderedColIds: columnIds,
|
|
545
|
+
// };
|
|
546
|
+
const flatColDefs = flattenColDefs(colDefs);
|
|
547
|
+
const getColDef = (colId) => flatColDefs.find((colDef) => colDef.colId === colId);
|
|
548
|
+
// agGridState.columnVisibility = {
|
|
549
|
+
// hiddenColIds: flatColDefs
|
|
550
|
+
// .filter((colDef) => {
|
|
551
|
+
// const colId = colDef.colId ?? colDef.field;
|
|
552
|
+
// return (
|
|
553
|
+
// layout.ColumnVisibility?.[colId] === false ||
|
|
554
|
+
// !layout.OrderedColumns.includes(colId) ||
|
|
555
|
+
// colDef.hide ||
|
|
556
|
+
// colDef.initialHide
|
|
557
|
+
// );
|
|
558
|
+
// })
|
|
559
|
+
// .map((colDef) => colDef.colId ?? colDef.field),
|
|
560
|
+
// };
|
|
561
|
+
agGridState.pivot = {
|
|
562
|
+
pivotMode: true,
|
|
563
|
+
pivotColIds: layout.PivotColumns,
|
|
564
|
+
};
|
|
565
|
+
if (layout.ColumnWidths) {
|
|
566
|
+
agGridState.columnSizing = {
|
|
567
|
+
columnSizingModel: Object.keys(layout.ColumnWidths).map((colId) => {
|
|
568
|
+
const width = layout.ColumnWidths[colId];
|
|
569
|
+
return {
|
|
570
|
+
colId,
|
|
571
|
+
width,
|
|
572
|
+
};
|
|
573
|
+
}),
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
if (layout.ColumnSorts) {
|
|
577
|
+
agGridState.sort = {
|
|
578
|
+
sortModel: layout.ColumnSorts.map((columnSort) => {
|
|
579
|
+
return {
|
|
580
|
+
colId: columnSort.ColumnId,
|
|
581
|
+
sort: columnSort.SortOrder === 'Asc' ? 'asc' : 'desc',
|
|
582
|
+
};
|
|
583
|
+
}),
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
if (layout.PivotGroupedColumns) {
|
|
587
|
+
agGridState.rowGroup = {
|
|
588
|
+
groupColIds: layout.PivotGroupedColumns,
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
if (layout.ColumnPinning) {
|
|
592
|
+
const columnPinning = {
|
|
593
|
+
leftColIds: [],
|
|
594
|
+
rightColIds: [],
|
|
595
|
+
};
|
|
596
|
+
Object.keys(layout.ColumnPinning).forEach((colId) => {
|
|
597
|
+
const pinned = layout.ColumnPinning[colId];
|
|
598
|
+
if (pinned === 'left') {
|
|
599
|
+
columnPinning.leftColIds.push(colId);
|
|
600
|
+
}
|
|
601
|
+
else if (pinned === 'right') {
|
|
602
|
+
columnPinning.rightColIds.push(colId);
|
|
603
|
+
}
|
|
604
|
+
});
|
|
605
|
+
agGridState.columnPinning = columnPinning;
|
|
606
|
+
}
|
|
607
|
+
const PivotAggregationColumns = (layout.PivotAggregationColumns || []).map(({ ColumnId, AggFunc }) => {
|
|
608
|
+
const aggFunc = AggFunc.aggFunc;
|
|
609
|
+
return {
|
|
610
|
+
colId: ColumnId,
|
|
611
|
+
aggFunc,
|
|
612
|
+
};
|
|
613
|
+
});
|
|
614
|
+
if (PivotAggregationColumns.length) {
|
|
615
|
+
agGridState.aggregation = {
|
|
616
|
+
aggregationModel: PivotAggregationColumns.map(({ colId, aggFunc }) => {
|
|
617
|
+
if (aggFunc === true) {
|
|
618
|
+
const colDef = getColDef(colId);
|
|
619
|
+
// fallback to SUM if no defaultAggFunc is defined
|
|
620
|
+
aggFunc = colDef?.defaultAggFunc || DEFAULT_AGG_FUNC;
|
|
621
|
+
}
|
|
622
|
+
return {
|
|
623
|
+
colId,
|
|
624
|
+
aggFunc,
|
|
625
|
+
};
|
|
626
|
+
}),
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
return agGridState;
|
|
630
|
+
}
|
|
631
|
+
silentSetCurrentLayout(layout, options) {
|
|
632
|
+
if (options?.normalize) {
|
|
633
|
+
layout = (0, normalizeLayoutModel_1.normalizeLayoutModel)(layout, { isTree: this.isTreeMode() });
|
|
634
|
+
}
|
|
635
|
+
this.currentLayout = layout;
|
|
636
|
+
// we do this in order to avoid firing the `gridLayoutChanged` event
|
|
637
|
+
// when actually applying the layout
|
|
638
|
+
this._prevFiredLayout = layout;
|
|
639
|
+
}
|
|
640
|
+
setLayout(layout, options) {
|
|
641
|
+
layout = (0, normalizeLayoutModel_1.normalizeLayoutModel)(layout, { isTree: this.isTreeMode() });
|
|
642
|
+
const shouldSkipEqualityCheck = options?.force === true;
|
|
643
|
+
if (!shouldSkipEqualityCheck && (0, isLayoutEqual_1.isLayoutEqual)(this.currentLayout, layout)) {
|
|
644
|
+
return false;
|
|
645
|
+
}
|
|
646
|
+
this.silentSetCurrentLayout(layout);
|
|
647
|
+
this.applyLayout(layout, options);
|
|
648
|
+
this.triggerGridLayoutChange(layout);
|
|
649
|
+
return true;
|
|
650
|
+
}
|
|
651
|
+
isCurrentLayoutPivot() {
|
|
652
|
+
return this.currentLayout && (0, isPivotLayoutModel_1.isPivotLayoutModel)(this.currentLayout);
|
|
653
|
+
}
|
|
654
|
+
applyLayout(layout, options) {
|
|
655
|
+
this.warn('applyLayout', layout);
|
|
656
|
+
// we want to do this supress/unsupress thing
|
|
657
|
+
// as otherwise, our applyLayout will trigger an onChange event
|
|
658
|
+
// which could trigger another setLayout
|
|
659
|
+
// yes, we do check for same layout and bail out if it is the same
|
|
660
|
+
// but we still want to avoid this unnecessary initial loop
|
|
661
|
+
// which may cause more adaptable work
|
|
662
|
+
if (this.supressGlobalAgGridEventTimeoutId) {
|
|
663
|
+
clearTimeout(this.supressGlobalAgGridEventTimeoutId);
|
|
664
|
+
this.supressGlobalAgGridEventTimeoutId = null;
|
|
665
|
+
}
|
|
666
|
+
const unsuppress = () => {
|
|
667
|
+
this.supressGlobalAgGridEventTimeoutId = setTimeout(() => {
|
|
668
|
+
this.suppressGlobalAgGridEventListener = false;
|
|
669
|
+
}, 0);
|
|
670
|
+
};
|
|
671
|
+
this.suppressGlobalAgGridEventListener = true;
|
|
672
|
+
const pivotMode = this.gridApi.isPivotMode();
|
|
673
|
+
if (layout.SuppressAggFuncInHeader !== undefined &&
|
|
674
|
+
layout.SuppressAggFuncInHeader !== this.gridApi.getGridOption('suppressAggFuncInHeader')) {
|
|
675
|
+
// @ts-ignore
|
|
676
|
+
this.gridApi.setGridOption('suppressAggFuncInHeader', layout.SuppressAggFuncInHeader);
|
|
677
|
+
}
|
|
678
|
+
if ((0, isPivotLayoutModel_1.isPivotLayoutModel)(layout)) {
|
|
679
|
+
try {
|
|
680
|
+
const perfApplyPivot = this.beginPerf('applyLayout:pivot');
|
|
681
|
+
this.gridApi.setGridOption('pivotMode', true);
|
|
682
|
+
this.applyPivotLayout(layout);
|
|
683
|
+
perfApplyPivot.end();
|
|
684
|
+
}
|
|
685
|
+
finally {
|
|
686
|
+
unsuppress();
|
|
687
|
+
}
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
try {
|
|
691
|
+
const perfApplyTable = this.beginPerf('applyLayout:table');
|
|
692
|
+
if (pivotMode) {
|
|
693
|
+
this.gridApi.setGridOption('pivotMode', false);
|
|
694
|
+
}
|
|
695
|
+
this.applyTableLayout(layout, options);
|
|
696
|
+
perfApplyTable.end();
|
|
697
|
+
}
|
|
698
|
+
finally {
|
|
699
|
+
unsuppress();
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
applyTableLayout(layout, options) {
|
|
703
|
+
this.withSuppressColumnAnimation(() => {
|
|
704
|
+
// if we apply the state here, before calling setGridOption for groupDisplayType
|
|
705
|
+
// the order is not always correctly applied
|
|
706
|
+
// this.gridApi.applyColumnState(state);
|
|
707
|
+
const hasGroupedColumns = layout.RowGroupedColumns && layout.RowGroupedColumns.length;
|
|
708
|
+
if (hasGroupedColumns) {
|
|
709
|
+
const displayTypeFromLayout = layout.RowGroupDisplayType === 'multi' ? 'multipleColumns' : 'singleColumn';
|
|
710
|
+
const groupDisplayType = this.gridApi.getGridOption('groupDisplayType');
|
|
711
|
+
if (groupDisplayType !== displayTypeFromLayout) {
|
|
712
|
+
this.gridApi.setGridOption('groupDisplayType', displayTypeFromLayout);
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
// so we apply the state at the end
|
|
716
|
+
this.gridApi.applyColumnState(this.computeColumnStateForTableLayout(layout));
|
|
717
|
+
// but also let's not forget to apply the row group values
|
|
718
|
+
if (hasGroupedColumns && layout.RowGroupValues && !options?.skipApplyRowGroupsExpandedState) {
|
|
719
|
+
this.applyRowGroupValues(layout.RowGroupValues);
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
getRowGroupNodePathsAs(options) {
|
|
724
|
+
const expanded = options.expanded === true;
|
|
725
|
+
const result = [];
|
|
726
|
+
this.gridApi.forEachNode((node) => {
|
|
727
|
+
if (node.group) {
|
|
728
|
+
const nodeExpanded = !!node.expanded;
|
|
729
|
+
if (expanded === nodeExpanded) {
|
|
730
|
+
const nodePath = [];
|
|
731
|
+
let currentNode = node;
|
|
732
|
+
do {
|
|
733
|
+
nodePath.unshift(currentNode.key);
|
|
734
|
+
currentNode = currentNode.parent;
|
|
735
|
+
} while (currentNode.parent);
|
|
736
|
+
result.push(nodePath);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
return result;
|
|
741
|
+
}
|
|
742
|
+
applyRowGroupValues(RowGroupValues) {
|
|
743
|
+
if (RowGroupValues) {
|
|
744
|
+
if (RowGroupValues.RowGroupDisplay === 'always-expanded') {
|
|
745
|
+
this.gridApi.expandAll();
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
if (RowGroupValues.RowGroupDisplay === 'always-collapsed') {
|
|
749
|
+
this.gridApi.collapseAll();
|
|
750
|
+
return;
|
|
751
|
+
}
|
|
752
|
+
const defaultExpanded = RowGroupValues.RowGroupDisplay === 'expanded';
|
|
753
|
+
if (RowGroupValues.Values) {
|
|
754
|
+
const deepMap = new infinite_react_1.DeepMap();
|
|
755
|
+
RowGroupValues.Values.forEach((rowGroupValue) => {
|
|
756
|
+
deepMap.set(rowGroupValue, true);
|
|
757
|
+
});
|
|
758
|
+
this.gridApi.forEachNode((node) => {
|
|
759
|
+
if (!node.group) {
|
|
760
|
+
return;
|
|
761
|
+
}
|
|
762
|
+
if (node.group) {
|
|
763
|
+
const nodePath = [];
|
|
764
|
+
let currentNode = node;
|
|
765
|
+
do {
|
|
766
|
+
nodePath.unshift(currentNode.key);
|
|
767
|
+
currentNode = currentNode.parent;
|
|
768
|
+
} while (currentNode.parent);
|
|
769
|
+
const shouldBeExpanded = defaultExpanded
|
|
770
|
+
? // by default nodes should be expanded
|
|
771
|
+
// but this node should be expanded if it is not in the map
|
|
772
|
+
!deepMap.has(nodePath)
|
|
773
|
+
: // by default nodes should be collapsed
|
|
774
|
+
// but this node should be expanded if it is in the map
|
|
775
|
+
deepMap.has(nodePath);
|
|
776
|
+
node.expanded = shouldBeExpanded;
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
this.gridApi.onGroupExpandedOrCollapsed();
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
computeColumnStateForPivotLayout(layout) {
|
|
784
|
+
let columnState = {};
|
|
785
|
+
const pivotColumnsToIndexes = layout.PivotColumns.reduce((acc, colId, index) => {
|
|
786
|
+
acc[colId] = index;
|
|
787
|
+
return acc;
|
|
788
|
+
}, {});
|
|
789
|
+
const rowGroupColumnIndexes = (layout.PivotGroupedColumns || []).reduce((acc, colId, index) => {
|
|
790
|
+
acc[colId] = index;
|
|
791
|
+
return acc;
|
|
792
|
+
}, {});
|
|
793
|
+
columnState.applyOrder = true;
|
|
794
|
+
const columnIds = getColumnOrderIdsForAllColDefs([...layout.PivotColumns, ...layout.PivotAggregationColumns.map((col) => col.ColumnId)], this.gridApi.getColumnDefs());
|
|
795
|
+
const pivotAggsToIndexes = layout.PivotAggregationColumns.reduce((acc, { ColumnId }, index) => {
|
|
796
|
+
acc[ColumnId] = index;
|
|
797
|
+
return acc;
|
|
798
|
+
}, {});
|
|
799
|
+
columnState.state = columnIds.map((columnId) => {
|
|
800
|
+
const pivotIndex = pivotColumnsToIndexes[columnId];
|
|
801
|
+
const rowGroupIndex = rowGroupColumnIndexes[columnId];
|
|
802
|
+
return {
|
|
803
|
+
colId: columnId,
|
|
804
|
+
pivot: pivotIndex != undefined,
|
|
805
|
+
pivotIndex: pivotIndex ?? null,
|
|
806
|
+
rowGroupIndex: rowGroupIndex ?? null,
|
|
807
|
+
rowGroup: rowGroupIndex != null,
|
|
808
|
+
};
|
|
809
|
+
});
|
|
810
|
+
this.computeColumnWidths(layout, columnState);
|
|
811
|
+
this.computeColumnSorts(layout, columnState);
|
|
812
|
+
this.computePinnedColumns(layout, columnState);
|
|
813
|
+
this.computePivotAggregations(layout, columnState);
|
|
814
|
+
return columnState;
|
|
815
|
+
}
|
|
816
|
+
computePivotAggregations(layout, columnState) {
|
|
817
|
+
const pivotAggsToIndexes = layout.PivotAggregationColumns.reduce((acc, { ColumnId }, index) => {
|
|
818
|
+
acc[ColumnId] = index;
|
|
819
|
+
return acc;
|
|
820
|
+
}, {});
|
|
821
|
+
columnState.state = columnState.state.map((colState) => {
|
|
822
|
+
const columnId = colState.colId;
|
|
823
|
+
const aggIndex = pivotAggsToIndexes[columnId];
|
|
824
|
+
const aggFunc = aggIndex != null ? layout.PivotAggregationColumns[aggIndex].AggFunc.aggFunc : null;
|
|
825
|
+
return {
|
|
826
|
+
...colState,
|
|
827
|
+
aggFunc: aggIndex != null ? (aggFunc === true ? DEFAULT_AGG_FUNC : aggFunc) : null,
|
|
828
|
+
};
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
computeColumnStateForTableLayout(layout) {
|
|
832
|
+
const columnState = {};
|
|
833
|
+
this.computeColumnOrderAndVisibility(layout, columnState);
|
|
834
|
+
this.computeColumnWidths(layout, columnState);
|
|
835
|
+
this.computeColumnSorts(layout, columnState);
|
|
836
|
+
this.computeRowGrouping(layout, columnState);
|
|
837
|
+
this.computeAggregations(layout, columnState);
|
|
838
|
+
this.computePinnedColumns(layout, columnState);
|
|
839
|
+
return columnState;
|
|
840
|
+
}
|
|
841
|
+
computePinnedColumns(layout, columnState) {
|
|
842
|
+
const pinnedColumns = layout.ColumnPinning;
|
|
843
|
+
if (!pinnedColumns || !Object.keys(pinnedColumns).length) {
|
|
844
|
+
columnState.state.forEach((colState) => {
|
|
845
|
+
colState.pinned = null;
|
|
846
|
+
});
|
|
847
|
+
return;
|
|
848
|
+
}
|
|
849
|
+
columnState.state.forEach((colState) => {
|
|
850
|
+
const pinnedSide = pinnedColumns[colState.colId];
|
|
851
|
+
if (pinnedSide) {
|
|
852
|
+
colState.pinned = pinnedSide;
|
|
853
|
+
}
|
|
854
|
+
else {
|
|
855
|
+
colState.pinned = null;
|
|
856
|
+
}
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
computeAggregations(layout, columnState) {
|
|
860
|
+
const aggregations = layout.TableAggregationColumns;
|
|
861
|
+
if (!aggregations || !aggregations.length) {
|
|
862
|
+
columnState.state.forEach((colState) => {
|
|
863
|
+
colState.aggFunc = null;
|
|
864
|
+
});
|
|
865
|
+
return;
|
|
866
|
+
}
|
|
867
|
+
const aggsMap = new Map(aggregations.map((agg) => [agg.ColumnId, agg]));
|
|
868
|
+
columnState.state.forEach((colState) => {
|
|
869
|
+
const agg = aggsMap.get(colState.colId)?.AggFunc;
|
|
870
|
+
if (agg) {
|
|
871
|
+
colState.aggFunc = agg.aggFunc === true ? 'sum' : agg.aggFunc;
|
|
872
|
+
}
|
|
873
|
+
else {
|
|
874
|
+
colState.aggFunc = null;
|
|
875
|
+
}
|
|
876
|
+
});
|
|
877
|
+
}
|
|
878
|
+
computeRowGrouping(layout, columnState) {
|
|
879
|
+
const rowGroupedColumns = layout.RowGroupedColumns || [];
|
|
880
|
+
if (!rowGroupedColumns.length) {
|
|
881
|
+
columnState.state.forEach((colState) => {
|
|
882
|
+
colState.rowGroupIndex = null;
|
|
883
|
+
colState.rowGroup = false;
|
|
884
|
+
});
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
const rowGroupsToIndexes = rowGroupedColumns.reduce((acc, colId, index) => {
|
|
888
|
+
acc[colId] = index;
|
|
889
|
+
return acc;
|
|
890
|
+
}, {});
|
|
891
|
+
columnState.state.forEach((colState) => {
|
|
892
|
+
if (rowGroupsToIndexes[colState.colId] != undefined) {
|
|
893
|
+
colState.rowGroupIndex = rowGroupsToIndexes[colState.colId];
|
|
894
|
+
}
|
|
895
|
+
else {
|
|
896
|
+
colState.rowGroupIndex = null;
|
|
897
|
+
colState.rowGroup = false;
|
|
898
|
+
}
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
computeColumnSorts(layout, columnState) {
|
|
902
|
+
const sorts = layout.ColumnSorts || [];
|
|
903
|
+
if (!sorts.length) {
|
|
904
|
+
columnState.state.forEach((colState) => {
|
|
905
|
+
colState.sort = null;
|
|
906
|
+
colState.sortIndex = null;
|
|
907
|
+
});
|
|
908
|
+
return;
|
|
909
|
+
}
|
|
910
|
+
const sortsToIndexes = sorts.reduce((acc, sort, index) => {
|
|
911
|
+
acc[sort.ColumnId] = index;
|
|
912
|
+
return acc;
|
|
913
|
+
}, {});
|
|
914
|
+
columnState.state.forEach((colState) => {
|
|
915
|
+
const colSortIndex = sortsToIndexes[colState.colId];
|
|
916
|
+
const colSort = sorts[colSortIndex];
|
|
917
|
+
if (colSort != undefined) {
|
|
918
|
+
colState.sort = colSort.SortOrder === 'Asc' ? 'asc' : 'desc';
|
|
919
|
+
colState.sortIndex = colSortIndex;
|
|
920
|
+
}
|
|
921
|
+
else {
|
|
922
|
+
colState.sort = null;
|
|
923
|
+
colState.sortIndex = null;
|
|
924
|
+
}
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
getDefaultColumnWidthForCol(colId, colDef) {
|
|
928
|
+
colDef = colDef ?? this.gridApi.getColumnDef(colId);
|
|
929
|
+
return colDef?.width ?? DEFAULT_COLUMN_WIDTH;
|
|
930
|
+
}
|
|
931
|
+
computeColumnWidths(layout, columnState) {
|
|
932
|
+
const widthMap = layout.ColumnWidths;
|
|
933
|
+
if (!widthMap || !Object.keys(widthMap).length) {
|
|
934
|
+
columnState.state.forEach((colState) => {
|
|
935
|
+
colState.width = this.getDefaultColumnWidthForCol(colState.colId);
|
|
936
|
+
});
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
939
|
+
columnState.state.forEach((colState) => {
|
|
940
|
+
if (widthMap[colState.colId]) {
|
|
941
|
+
colState.width = widthMap[colState.colId];
|
|
942
|
+
}
|
|
943
|
+
else {
|
|
944
|
+
colState.width = this.getDefaultColumnWidthForCol(colState.colId);
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
computeColumnOrderAndVisibility(layout, columnState) {
|
|
949
|
+
const visibility = layout.ColumnVisibility || {};
|
|
950
|
+
const columnOrderSet = new Set(layout.TableColumns);
|
|
951
|
+
const isColHidden = (colId) => visibility[colId] === false || !columnOrderSet.has(colId);
|
|
952
|
+
columnState = columnState ?? {};
|
|
953
|
+
columnState.applyOrder = true;
|
|
954
|
+
const columnIds = getColumnOrderIdsForAllColDefs(layout.TableColumns, this.gridApi.getColumnDefs());
|
|
955
|
+
columnState.state = columnIds.map((columnId) => {
|
|
956
|
+
return {
|
|
957
|
+
colId: columnId,
|
|
958
|
+
hide: isColHidden(columnId),
|
|
959
|
+
pivot: false,
|
|
960
|
+
// @ts-ignore
|
|
961
|
+
pivotIndex: null,
|
|
962
|
+
};
|
|
963
|
+
});
|
|
964
|
+
return columnState;
|
|
965
|
+
}
|
|
966
|
+
autoSizeColumns(columnIds) {
|
|
967
|
+
const { currentLayout } = this;
|
|
968
|
+
let tableColumns = [];
|
|
969
|
+
if (currentLayout) {
|
|
970
|
+
tableColumns = currentLayout.TableColumns;
|
|
971
|
+
if (currentLayout.ColumnVisibility) {
|
|
972
|
+
// dont auto size hidden columns
|
|
973
|
+
tableColumns = tableColumns.filter((colId) => !currentLayout.ColumnVisibility[colId]);
|
|
974
|
+
}
|
|
975
|
+
if (currentLayout.ColumnWidths) {
|
|
976
|
+
// dont auto size columns with a set width
|
|
977
|
+
tableColumns = tableColumns.filter((colId) => !currentLayout.ColumnWidths[colId]);
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
columnIds = columnIds ?? tableColumns;
|
|
981
|
+
if (!columnIds.length) {
|
|
982
|
+
return false;
|
|
983
|
+
}
|
|
984
|
+
this.gridApi.autoSizeColumns(columnIds);
|
|
985
|
+
return columnIds;
|
|
986
|
+
}
|
|
987
|
+
applyPivotLayout(layout) {
|
|
988
|
+
const columnState = this.computeColumnStateForPivotLayout(layout);
|
|
989
|
+
// by simply calling this.gridApi.applyColumnState(columnState)
|
|
990
|
+
// the order of aggregations is not preserved/guaranteed by ag-grid
|
|
991
|
+
// so we want to apply multiple states - adding aggregations one by one
|
|
992
|
+
// first: no aggregation
|
|
993
|
+
// second: [agg[0]]
|
|
994
|
+
// third: [agg[0], agg[1]]
|
|
995
|
+
// fourth: ...etc
|
|
996
|
+
// so we apply the states for all aggregations except the last one
|
|
997
|
+
//
|
|
998
|
+
const aggregationsMapForOrder = layout.PivotAggregationColumns.map((_, index) => layout.PivotAggregationColumns.slice(0, index));
|
|
999
|
+
aggregationsMapForOrder.forEach((agg) => {
|
|
1000
|
+
// we're mutating the columnState here
|
|
1001
|
+
this.computePivotAggregations({ ...layout, PivotAggregationColumns: agg }, columnState);
|
|
1002
|
+
// and apply the state
|
|
1003
|
+
this.gridApi.applyColumnState(columnState);
|
|
1004
|
+
});
|
|
1005
|
+
// now recompute and apply the last one
|
|
1006
|
+
this.computePivotAggregations(layout, columnState);
|
|
1007
|
+
this.gridApi.applyColumnState(columnState);
|
|
1008
|
+
this.applyPivotExpandLevel(layout);
|
|
1009
|
+
}
|
|
1010
|
+
applyPivotExpandLevel(layout) {
|
|
1011
|
+
const PivotExpandLevel = layout.PivotExpandLevel ?? -1;
|
|
1012
|
+
const allDisplayedColumnGroups = this.gridApi.getAllDisplayedColumnGroups();
|
|
1013
|
+
const colGroupDefs = allDisplayedColumnGroups
|
|
1014
|
+
.map((colGroup) => colGroup.getDefinition())
|
|
1015
|
+
// we need to filter because there are some fake groups as well, no idea what for
|
|
1016
|
+
.filter(Boolean);
|
|
1017
|
+
const colGroupState = [];
|
|
1018
|
+
const processColGroupDefs = (colGroupDefs) => {
|
|
1019
|
+
colGroupDefs.forEach((colGroupDef) => {
|
|
1020
|
+
if ('children' in colGroupDef && colGroupDef.children) {
|
|
1021
|
+
colGroupState.push({
|
|
1022
|
+
groupId: colGroupDef.groupId,
|
|
1023
|
+
open: PivotExpandLevel === -1 ? true : colGroupDef.pivotKeys?.length <= PivotExpandLevel,
|
|
1024
|
+
});
|
|
1025
|
+
processColGroupDefs(colGroupDef.children);
|
|
1026
|
+
}
|
|
1027
|
+
});
|
|
1028
|
+
};
|
|
1029
|
+
processColGroupDefs(colGroupDefs);
|
|
1030
|
+
if (colGroupState.length > 0) {
|
|
1031
|
+
this.gridApi.setColumnGroupState(colGroupState);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
withSuppressColumnAnimation(fn) {
|
|
1035
|
+
const suppressColumnMoveAnimation = this.gridApi.getGridOption('suppressColumnMoveAnimation');
|
|
1036
|
+
if (!suppressColumnMoveAnimation) {
|
|
1037
|
+
this.gridApi.setGridOption('suppressColumnMoveAnimation', true);
|
|
1038
|
+
}
|
|
1039
|
+
const res = fn();
|
|
1040
|
+
if (!suppressColumnMoveAnimation) {
|
|
1041
|
+
this.gridApi.setGridOption('suppressColumnMoveAnimation', false);
|
|
1042
|
+
}
|
|
1043
|
+
return res;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
exports.LayoutManager = LayoutManager;
|