@adaptabletools/adaptable 17.0.6 → 18.0.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.js +26 -32
- package/base.css +24 -13
- package/base.css.map +1 -1
- package/index.css +217 -164
- package/index.css.map +1 -1
- package/package.json +8 -5
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +1 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -0
- package/src/AdaptableInterfaces/IAdaptable.js +1 -2
- package/src/AdaptableOptions/ActionColumnOptions.js +1 -2
- package/src/AdaptableOptions/ActionRowOptions.js +1 -2
- package/src/AdaptableOptions/AdaptableFrameworkComponent.js +1 -2
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/AdaptableOptions.js +1 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +1 -5
- package/src/AdaptableOptions/AlertOptions.d.ts +7 -7
- package/src/AdaptableOptions/AlertOptions.js +1 -2
- package/src/AdaptableOptions/CalendarOptions.js +1 -2
- package/src/AdaptableOptions/CellSummaryOptions.js +1 -2
- package/src/AdaptableOptions/ChartingOptions.js +1 -2
- package/src/AdaptableOptions/ColumnFilterOptions.js +1 -2
- package/src/AdaptableOptions/ColumnOptions.js +1 -2
- package/src/AdaptableOptions/CommentsOptions.d.ts +28 -0
- package/src/AdaptableOptions/CommentsOptions.js +1 -0
- package/src/AdaptableOptions/ContainerOptions.js +1 -2
- package/src/AdaptableOptions/CustomSortOptions.js +1 -2
- package/src/AdaptableOptions/DashboardOptions.js +1 -2
- package/src/AdaptableOptions/DataChangeHistoryOptions.js +1 -2
- package/src/AdaptableOptions/DataImportOptions.js +1 -2
- package/src/AdaptableOptions/DataSetOptions.js +1 -2
- package/src/AdaptableOptions/DateInputOptions.js +1 -2
- package/src/AdaptableOptions/EditOptions.js +1 -2
- package/src/AdaptableOptions/EntitlementOptions.js +1 -2
- package/src/AdaptableOptions/ExportOptions.js +1 -2
- package/src/AdaptableOptions/ExpressionOptions.js +1 -2
- package/src/AdaptableOptions/Fdc3Options.js +2 -5
- package/src/AdaptableOptions/FlashingCellOptions.js +1 -2
- package/src/AdaptableOptions/FormatColumnOptions.js +1 -2
- package/src/AdaptableOptions/GridFilterOptions.d.ts +5 -5
- package/src/AdaptableOptions/GridFilterOptions.js +1 -2
- package/src/AdaptableOptions/GroupingOptions.d.ts +5 -5
- package/src/AdaptableOptions/GroupingOptions.js +1 -2
- package/src/AdaptableOptions/IPushPullPluginOptions.js +1 -2
- package/src/AdaptableOptions/InteropioPluginOptions.d.ts +10 -0
- package/src/AdaptableOptions/InteropioPluginOptions.js +1 -0
- package/src/AdaptableOptions/LayoutOptions.js +1 -2
- package/src/AdaptableOptions/MasterDetailPluginOptions.js +1 -2
- package/src/AdaptableOptions/MenuOptions.d.ts +18 -4
- package/src/AdaptableOptions/MenuOptions.js +15 -11
- package/src/AdaptableOptions/NotesOptions.d.ts +2 -9
- package/src/AdaptableOptions/NotesOptions.js +1 -2
- package/src/AdaptableOptions/NotificationsOptions.js +1 -2
- package/src/AdaptableOptions/OpenFinPluginOptions.js +1 -2
- package/src/AdaptableOptions/PredicateOptions.js +1 -2
- package/src/AdaptableOptions/QuickSearchOptions.js +1 -2
- package/src/AdaptableOptions/SettingsPanelOptions.js +1 -2
- package/src/AdaptableOptions/StateOptions.js +1 -2
- package/src/AdaptableOptions/TeamSharingOptions.js +1 -2
- package/src/AdaptableOptions/ToolPanelOptions.js +1 -2
- package/src/AdaptableOptions/UserInterfaceOptions.js +1 -2
- package/src/Api/ActionColumnApi.js +1 -2
- package/src/Api/ActionRowApi.js +1 -2
- package/src/Api/AdaptableApi.d.ts +6 -1
- package/src/Api/AdaptableApi.js +1 -2
- package/src/Api/AlertApi.js +1 -2
- package/src/Api/ApplicationApi.js +1 -2
- package/src/Api/BulkUpdateApi.js +1 -2
- package/src/Api/CalculatedColumnApi.js +1 -2
- package/src/Api/CalendarApi.js +1 -2
- package/src/Api/CellSummaryApi.js +1 -2
- package/src/Api/ChartingApi.js +1 -2
- package/src/Api/ColumnApi.js +1 -2
- package/src/Api/ColumnFilterApi.js +1 -2
- package/src/Api/CommentApi.d.ts +58 -0
- package/src/Api/CommentApi.js +1 -0
- package/src/Api/ConfigApi.js +1 -2
- package/src/Api/CustomSortApi.js +1 -2
- package/src/Api/DashboardApi.js +1 -2
- package/src/Api/DataChangeHistoryApi.js +1 -2
- package/src/Api/DataImportApi.js +1 -2
- package/src/Api/DataSetApi.js +1 -2
- package/src/Api/EntitlementApi.js +1 -2
- package/src/Api/EventApi.d.ts +16 -3
- package/src/Api/EventApi.js +1 -2
- package/src/Api/Events/ActionRowSubmitted.js +1 -2
- package/src/Api/Events/AdaptableReady.js +1 -2
- package/src/Api/Events/AdaptableSearchState.js +1 -2
- package/src/Api/Events/AdaptableStateChanged.js +1 -2
- package/src/Api/Events/AdaptableStateReloaded.js +1 -2
- package/src/Api/Events/AlertFired.js +1 -2
- package/src/Api/Events/BaseEventInfo.js +1 -2
- package/src/Api/Events/CalculatedColumnChanged.js +1 -2
- package/src/Api/Events/CellChanged.js +1 -2
- package/src/Api/Events/CellSelectionChanged.js +1 -2
- package/src/Api/Events/ChartChanged.js +1 -2
- package/src/Api/Events/ColumnFilterApplied.js +1 -2
- package/src/Api/Events/CommentsChangedInfo.d.ts +5 -0
- package/src/Api/Events/CommentsChangedInfo.js +1 -0
- package/src/Api/Events/CustomToolbarConfigured.js +1 -2
- package/src/Api/Events/DashboardChanged.js +1 -2
- package/src/Api/Events/DataImported.js +1 -2
- package/src/Api/Events/DataSetSelected.js +1 -2
- package/src/Api/Events/Fdc3MessageInfo.js +1 -2
- package/src/Api/Events/FlashingCellDisplayed.js +1 -2
- package/src/Api/Events/GridDataChanged.js +1 -2
- package/src/Api/Events/GridFilterApplied.js +1 -2
- package/src/Api/Events/GridSorted.js +1 -2
- package/src/Api/Events/LayoutChanged.js +1 -2
- package/src/Api/Events/LiveDataChanged.d.ts +3 -3
- package/src/Api/Events/LiveDataChanged.js +1 -2
- package/src/Api/Events/RowSelectionChanged.js +1 -2
- package/src/Api/Events/ScheduleTriggered.js +1 -2
- package/src/Api/Events/SystemStatusMessageDisplayed.js +1 -2
- package/src/Api/Events/TeamSharingEntityChanged.js +1 -2
- package/src/Api/Events/ThemeChanged.js +1 -2
- package/src/Api/Events/ThemeEdited.js +1 -2
- package/src/Api/ExportApi.js +1 -2
- package/src/Api/ExpressionApi.js +1 -2
- package/src/Api/Fdc3Api.js +1 -2
- package/src/Api/FlashingCellApi.js +1 -2
- package/src/Api/FormatColumnApi.js +1 -2
- package/src/Api/FreeTextColumnApi.js +1 -2
- package/src/Api/GridApi.js +1 -2
- package/src/Api/GridFilterApi.js +1 -2
- package/src/Api/IPushPullApi.js +1 -2
- package/src/Api/Implementation/ActionColumnApiImpl.js +2 -6
- package/src/Api/Implementation/ActionRowApiImpl.js +8 -12
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -6
- package/src/Api/Implementation/AdaptableApiImpl.js +99 -101
- package/src/Api/Implementation/AlertApiImpl.js +18 -23
- package/src/Api/Implementation/ApiBase.js +5 -10
- package/src/Api/Implementation/ApplicationApiImpl.js +3 -8
- package/src/Api/Implementation/BulkUpdateApiImpl.js +5 -10
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +6 -11
- package/src/Api/Implementation/CalendarApiImpl.js +2 -6
- package/src/Api/Implementation/CellSummaryApiImpl.js +17 -22
- package/src/Api/Implementation/ChartingApiImpl.js +13 -18
- package/src/Api/Implementation/ColumnApiImpl.js +11 -16
- package/src/Api/Implementation/ColumnFilterApiImpl.js +9 -14
- package/src/Api/Implementation/CommentsApiImpl.d.ts +15 -0
- package/src/Api/Implementation/CommentsApiImpl.js +41 -0
- package/src/Api/Implementation/ConfigApiImpl.js +29 -34
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -11
- package/src/Api/Implementation/DashboardApiImpl.js +9 -14
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +10 -15
- package/src/Api/Implementation/DataImportApiImpl.js +4 -8
- package/src/Api/Implementation/DataSetApiImpl.js +6 -11
- package/src/Api/Implementation/EntitlementApiImpl.js +2 -6
- package/src/Api/Implementation/EventApiImpl.js +4 -9
- package/src/Api/Implementation/ExportApiImpl.js +12 -17
- package/src/Api/Implementation/ExpressionApiImpl.js +5 -10
- package/src/Api/Implementation/Fdc3ApiImpl.js +8 -12
- package/src/Api/Implementation/FlashingCellApiImpl.js +6 -11
- package/src/Api/Implementation/FormatColumnApiImpl.js +6 -11
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +9 -14
- package/src/Api/Implementation/GridApiImpl.js +18 -23
- package/src/Api/Implementation/GridFilterApiImpl.js +9 -14
- package/src/Api/Implementation/LayoutApiImpl.js +25 -30
- package/src/Api/Implementation/NamedQueryApiImpl.js +8 -13
- package/src/Api/Implementation/NotesApiImpl.d.ts +3 -7
- package/src/Api/Implementation/NotesApiImpl.js +4 -23
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/OptionsApiImpl.js +5 -6
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -6
- package/src/Api/Implementation/PluginsApiImpl.js +6 -23
- package/src/Api/Implementation/PlusMinusApiImpl.js +4 -9
- package/src/Api/Implementation/PredicateApiImpl.js +12 -17
- package/src/Api/Implementation/QuickSearchApiImpl.js +5 -10
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -12
- package/src/Api/Implementation/ScheduleApiImpl.js +6 -47
- package/src/Api/Implementation/ScopeApiImpl.js +8 -13
- package/src/Api/Implementation/SettingsPanelApiImpl.js +3 -8
- package/src/Api/Implementation/ShortcutApiImpl.js +4 -9
- package/src/Api/Implementation/SmartEditApiImpl.js +5 -10
- package/src/Api/Implementation/StatusBarApiImpl.js +5 -9
- package/src/Api/Implementation/StyledColumnApiImpl.js +6 -11
- package/src/Api/Implementation/SystemStatusApiImpl.js +16 -21
- package/src/Api/Implementation/TeamSharingApiImpl.js +12 -17
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +13 -15
- package/src/Api/Implementation/ToolPanelApiImpl.js +6 -11
- package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -20
- package/src/Api/Internal/ActionRowInternalApi.js +3 -7
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +24 -26
- package/src/Api/Internal/AlertInternalApi.js +20 -25
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -6
- package/src/Api/Internal/ChartingInternalApi.js +8 -12
- package/src/Api/Internal/ColumnFilterInternalApi.js +8 -13
- package/src/Api/Internal/ColumnInternalApi.js +4 -8
- package/src/Api/Internal/CustomSortInternalApi.js +2 -6
- package/src/Api/Internal/DashboardInternalApi.js +6 -11
- package/src/Api/Internal/DataImportInternalApi.js +6 -11
- package/src/Api/Internal/DataSetInternalApi.js +4 -7
- package/src/Api/Internal/ExportInternalApi.js +2 -6
- package/src/Api/Internal/ExpressionInternalApi.js +2 -6
- package/src/Api/Internal/Fdc3InternalApi.js +24 -28
- package/src/Api/Internal/FlashingCellInternalApi.js +7 -12
- package/src/Api/Internal/FormatColumnInternalApi.js +17 -22
- package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -6
- package/src/Api/Internal/GridFilterInternalApi.js +2 -6
- package/src/Api/Internal/GridInternalApi.js +13 -18
- package/src/Api/Internal/LayoutInternalApi.js +16 -21
- package/src/Api/Internal/NamedQueryInternalApi.js +3 -8
- package/src/Api/Internal/PredicateInternalApi.js +2 -6
- package/src/Api/Internal/ScheduleInternalApi.js +2 -6
- package/src/Api/Internal/StyledColumnInternalApi.js +5 -10
- package/src/Api/Internal/SystemStatusInternalApi.js +3 -8
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -6
- package/src/Api/Internal/ThemeInternalApi.js +5 -9
- package/src/Api/Internal/UserInterfaceInternalApi.js +2 -6
- package/src/Api/InteropioPluginApi.d.ts +10 -0
- package/src/Api/InteropioPluginApi.js +1 -0
- package/src/Api/LayoutApi.js +1 -2
- package/src/Api/NamedQueryApi.js +1 -2
- package/src/Api/{NotesAPi.d.ts → NotesApi.d.ts} +19 -21
- package/src/Api/NotesApi.js +1 -0
- package/src/Api/OpenFinApi.js +1 -2
- package/src/Api/OptionsApi.d.ts +5 -0
- package/src/Api/OptionsApi.js +1 -2
- package/src/Api/PluginsApi.d.ts +3 -13
- package/src/Api/PluginsApi.js +1 -2
- package/src/Api/PlusMinusApi.js +1 -2
- package/src/Api/PredicateApi.js +1 -2
- package/src/Api/QuickSearchApi.js +1 -2
- package/src/Api/ScheduleApi.d.ts +1 -48
- package/src/Api/ScheduleApi.js +1 -2
- package/src/Api/ScopeApi.js +1 -2
- package/src/Api/SettingsPanelApi.js +1 -2
- package/src/Api/ShortcutApi.js +1 -2
- package/src/Api/SmartEditApi.js +1 -2
- package/src/Api/StatusBarApi.js +1 -2
- package/src/Api/StyledColumnApi.js +1 -2
- package/src/Api/SystemStatusApi.js +1 -2
- package/src/Api/TeamSharingApi.js +1 -2
- package/src/Api/ThemeApi.d.ts +5 -0
- package/src/Api/ThemeApi.js +1 -2
- package/src/Api/ToolPanelApi.js +1 -2
- package/src/Api/UserInterfaceApi.js +1 -2
- package/src/PredefinedConfig/AdaptableState.d.ts +4 -2
- package/src/PredefinedConfig/AdaptableState.js +1 -2
- package/src/PredefinedConfig/AlertState.js +1 -2
- package/src/PredefinedConfig/ApplicationState.js +1 -2
- package/src/PredefinedConfig/CalculatedColumnState.js +1 -2
- package/src/PredefinedConfig/CellAddress.d.ts +13 -0
- package/src/PredefinedConfig/CellAddress.js +4 -0
- package/src/PredefinedConfig/ChartingState.js +2 -7
- package/src/PredefinedConfig/CommentState.d.ts +48 -0
- package/src/PredefinedConfig/CommentState.js +1 -0
- package/src/PredefinedConfig/Common/AdaptableAlert.js +2 -7
- package/src/PredefinedConfig/Common/AdaptableButton.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.js +1 -5
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableFlashingCell.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableForm.js +1 -5
- package/src/PredefinedConfig/Common/AdaptableFormat.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableMessageType.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableObject.js +1 -2
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +54 -57
- package/src/PredefinedConfig/Common/AdaptableQuery.js +1 -5
- package/src/PredefinedConfig/Common/AdaptableScope.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableStyle.js +1 -2
- package/src/PredefinedConfig/Common/AggregationColumns.js +1 -4
- package/src/PredefinedConfig/Common/AlternativeModuleName.js +1 -2
- package/src/PredefinedConfig/Common/BaseContext.js +1 -2
- package/src/PredefinedConfig/Common/ButtonStyle.js +1 -2
- package/src/PredefinedConfig/Common/CellDataChangedInfo.js +1 -2
- package/src/PredefinedConfig/Common/CellHighlightInfo.js +1 -2
- package/src/PredefinedConfig/Common/CellSummary.js +1 -2
- package/src/PredefinedConfig/Common/ColumnFilter.js +1 -2
- package/src/PredefinedConfig/Common/ColumnSort.js +1 -2
- package/src/PredefinedConfig/Common/DataChangedScope.js +1 -2
- package/src/PredefinedConfig/Common/DataUpdateConfig.js +1 -2
- package/src/PredefinedConfig/Common/Entitlement.js +1 -2
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +26 -30
- package/src/PredefinedConfig/Common/Fdc3Context.js +32 -35
- package/src/PredefinedConfig/Common/Fdc3Intent.js +64 -67
- package/src/PredefinedConfig/Common/FilterActionOnDataChange.js +1 -2
- package/src/PredefinedConfig/Common/FormContext.js +1 -2
- package/src/PredefinedConfig/Common/GridFilter.js +1 -2
- package/src/PredefinedConfig/Common/Menu.js +1 -2
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +1 -2
- package/src/PredefinedConfig/Common/RowsHighlightInfo.js +1 -2
- package/src/PredefinedConfig/Common/Schedule.d.ts +1 -1
- package/src/PredefinedConfig/Common/Schedule.js +1 -2
- package/src/PredefinedConfig/Common/SpecialColumnSettings.js +1 -2
- package/src/PredefinedConfig/Common/SuspendableObject.js +1 -2
- package/src/PredefinedConfig/Common/SystemStatusMessageInfo.js +1 -2
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +5 -11
- package/src/PredefinedConfig/ConfigState.js +1 -2
- package/src/PredefinedConfig/CustomSortState.js +1 -2
- package/src/PredefinedConfig/DashboardState.js +1 -2
- package/src/PredefinedConfig/ExportState.js +1 -2
- package/src/PredefinedConfig/FlashingCellState.js +1 -2
- package/src/PredefinedConfig/FormatColumnState.js +1 -2
- package/src/PredefinedConfig/FreeTextColumnState.js +1 -2
- package/src/PredefinedConfig/GridState.js +1 -2
- package/src/PredefinedConfig/IPushPullState.js +1 -2
- package/src/PredefinedConfig/InternalState.js +1 -2
- package/src/PredefinedConfig/LayoutState.js +1 -2
- package/src/PredefinedConfig/NamedQueryState.js +1 -2
- package/src/PredefinedConfig/NotesState.d.ts +0 -13
- package/src/PredefinedConfig/NotesState.js +1 -2
- package/src/PredefinedConfig/OpenFinState.js +1 -2
- package/src/PredefinedConfig/PlusMinusState.js +1 -2
- package/src/PredefinedConfig/PopupState.js +1 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -0
- package/src/PredefinedConfig/PredefinedConfig.js +1 -2
- package/src/PredefinedConfig/QueryState.js +1 -2
- package/src/PredefinedConfig/QuickSearchState.js +1 -2
- package/src/PredefinedConfig/ScheduleState.d.ts +0 -5
- package/src/PredefinedConfig/ScheduleState.js +1 -2
- package/src/PredefinedConfig/Selection/GridCell.js +1 -2
- package/src/PredefinedConfig/Selection/GridCellRange.js +1 -2
- package/src/PredefinedConfig/Selection/GridRow.js +1 -2
- package/src/PredefinedConfig/Selection/SelectedCellInfo.js +1 -2
- package/src/PredefinedConfig/Selection/SelectedRowInfo.js +1 -2
- package/src/PredefinedConfig/ShortcutState.js +1 -2
- package/src/PredefinedConfig/StatusBarState.js +1 -4
- package/src/PredefinedConfig/StyledColumnState.js +1 -2
- package/src/PredefinedConfig/SystemState.d.ts +5 -6
- package/src/PredefinedConfig/SystemState.js +1 -2
- package/src/PredefinedConfig/TeamSharingState.js +2 -7
- package/src/PredefinedConfig/ThemeState.d.ts +1 -1
- package/src/PredefinedConfig/ThemeState.js +1 -2
- package/src/PredefinedConfig/ToolPanelState.js +1 -2
- package/src/PredefinedConfig/Uuid.js +2 -6
- package/src/Redux/ActionsReducers/AlertRedux.js +45 -59
- package/src/Redux/ActionsReducers/ApplicationRedux.js +15 -22
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +9 -15
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +20 -29
- package/src/Redux/ActionsReducers/CellSummaryRedux.js +3 -7
- package/src/Redux/ActionsReducers/ChartingRedux.js +41 -55
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +79 -0
- package/src/Redux/ActionsReducers/CommentsRedux.js +173 -0
- package/src/Redux/ActionsReducers/CustomSortRedux.js +41 -54
- package/src/Redux/ActionsReducers/DashboardRedux.js +50 -66
- package/src/Redux/ActionsReducers/ExportRedux.js +31 -43
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +43 -57
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +54 -70
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +24 -34
- package/src/Redux/ActionsReducers/GridRedux.js +125 -160
- package/src/Redux/ActionsReducers/LayoutRedux.js +89 -115
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +25 -35
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NotesRedux.js +25 -36
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +0 -48
- package/src/Redux/ActionsReducers/PluginsRedux.js +36 -89
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +53 -69
- package/src/Redux/ActionsReducers/PopupRedux.js +64 -84
- package/src/Redux/ActionsReducers/QueryRedux.js +8 -13
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +16 -23
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +0 -53
- package/src/Redux/ActionsReducers/ScheduleRedux.js +146 -270
- package/src/Redux/ActionsReducers/ShortcutRedux.js +41 -54
- package/src/Redux/ActionsReducers/SmartEditRedux.js +9 -15
- package/src/Redux/ActionsReducers/StatusBarRedux.js +12 -19
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +41 -54
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +18 -12
- package/src/Redux/ActionsReducers/SystemRedux.js +287 -335
- package/src/Redux/ActionsReducers/SystemStatusRedux.js +6 -11
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +40 -55
- package/src/Redux/ActionsReducers/ThemeRedux.js +32 -43
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +28 -39
- package/src/Redux/ActionsReducers/utils.js +3 -9
- package/src/Redux/DeadRedux.js +25 -38
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +15 -20
- package/src/Redux/Store/AdaptableReduxMerger.js +21 -30
- package/src/Redux/Store/AdaptableStore.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.js +174 -122
- package/src/Redux/Store/Interface/IAdaptableStore.js +1 -2
- package/src/Redux/Store/Interface/IStorageEngine.js +1 -2
- package/src/Strategy/AdaptableModuleBase.js +8 -13
- package/src/Strategy/AlertModule.js +35 -40
- package/src/Strategy/BulkUpdateModule.js +17 -22
- package/src/Strategy/CalculatedColumnModule.js +16 -21
- package/src/Strategy/CellSummaryModule.js +17 -22
- package/src/Strategy/ChartingModule.js +15 -20
- package/src/Strategy/ColumnFilterModule.js +11 -16
- package/src/Strategy/ColumnInfoModule.js +3 -8
- package/src/Strategy/CommentsModule.d.ts +16 -0
- package/src/Strategy/CommentsModule.js +77 -0
- package/src/Strategy/CustomSortModule.js +12 -17
- package/src/Strategy/DashboardModule.js +4 -9
- package/src/Strategy/DataChangeHistoryModule.js +10 -15
- package/src/Strategy/DataImportModule.js +3 -8
- package/src/Strategy/DataSetModule.js +11 -16
- package/src/Strategy/ExportModule.js +55 -60
- package/src/Strategy/Fdc3Module.js +3 -8
- package/src/Strategy/FlashingCellModule.js +28 -33
- package/src/Strategy/FormatColumnModule.js +27 -32
- package/src/Strategy/FreeTextColumnModule.js +8 -13
- package/src/Strategy/GridFilterModule.js +9 -14
- package/src/Strategy/GridInfoModule.js +3 -8
- package/src/Strategy/Interface/IBulkUpdateModule.js +1 -2
- package/src/Strategy/Interface/ICellSummaryModule.js +1 -2
- package/src/Strategy/Interface/IExportModule.js +1 -2
- package/src/Strategy/Interface/IModule.js +1 -2
- package/src/Strategy/Interface/IModuleActionReturn.js +1 -2
- package/src/Strategy/Interface/IPlusMinusModule.js +1 -2
- package/src/Strategy/Interface/IScheduleModule.js +1 -2
- package/src/Strategy/Interface/IShortcutModule.js +1 -2
- package/src/Strategy/Interface/ISmartEditModule.js +1 -2
- package/src/Strategy/LayoutModule.js +32 -38
- package/src/Strategy/NamedQueryModule.js +12 -17
- package/src/Strategy/NotesModule.d.ts +0 -13
- package/src/Strategy/NotesModule.js +12 -96
- package/src/Strategy/PlusMinusModule.js +23 -28
- package/src/Strategy/QuickSearchModule.js +5 -10
- package/src/Strategy/ScheduleModule.js +35 -63
- package/src/Strategy/SettingsPanelModule.js +4 -9
- package/src/Strategy/ShortcutModule.js +21 -26
- package/src/Strategy/SmartEditModule.js +22 -27
- package/src/Strategy/StateManagementModule.js +3 -8
- package/src/Strategy/StatusBarModule.js +3 -8
- package/src/Strategy/StyledColumnModule.js +17 -22
- package/src/Strategy/SystemStatusModule.js +5 -10
- package/src/Strategy/TeamSharingModule.js +32 -37
- package/src/Strategy/ThemeModule.js +5 -10
- package/src/Strategy/ToolPanelModule.js +8 -13
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.js +5 -9
- package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.js +6 -11
- package/src/Strategy/Utilities/Alert/getAlertTypeViewItems.js +4 -8
- package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +1 -5
- package/src/Strategy/Utilities/CustomSort/getCustomSortSortOrderViewItems.js +1 -5
- package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +1 -5
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +6 -11
- package/src/Strategy/Utilities/FlashingCell/getFlashingCellDurationViewItems.js +1 -5
- package/src/Strategy/Utilities/FlashingCell/getFlashingCellStyleViewItems.js +3 -7
- package/src/Strategy/Utilities/FlashingCell/getFlashingTargetViewItems.js +1 -5
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +1 -5
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +5 -10
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +3 -8
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -5
- package/src/Strategy/Utilities/Shortcut/getShortcutSettingsViewItems.js +1 -5
- package/src/Strategy/Utilities/getExpressionViewItems.js +6 -11
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +7 -12
- package/src/Strategy/Utilities/getRuleViewItems.js +1 -5
- package/src/Strategy/Utilities/getScopeViewItems.js +1 -5
- package/src/Strategy/Utilities/updateSingleToMultiplePredicates.js +1 -5
- package/src/Utilities/Cancelable.js +1 -2
- package/src/Utilities/Constants/ConfigConstants.d.ts +1 -0
- package/src/Utilities/Constants/ConfigConstants.js +10 -12
- package/src/Utilities/Constants/DocumentationLinkConstants.js +14 -17
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +76 -75
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -3
- package/src/Utilities/Constants/ModuleConstants.js +115 -119
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -28
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +3 -5
- package/src/Utilities/Emitter.js +3 -5
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +27 -25
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +51 -54
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +31 -36
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +18 -7
- package/src/Utilities/ExpressionFunctions/deepMap.js +1 -5
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +39 -57
- package/src/Utilities/ExpressionFunctions/groupingMap.js +3 -7
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +66 -70
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +3 -7
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +53 -57
- package/src/Utilities/Extensions/ArrayExtensions.js +40 -75
- package/src/Utilities/Extensions/EnumExtensions.js +14 -21
- package/src/Utilities/Extensions/NumberExtensions.js +4 -9
- package/src/Utilities/Extensions/ObjectExtensions.js +3 -9
- package/src/Utilities/Extensions/StringExtensions.js +23 -46
- package/src/Utilities/Extensions/TypeExtensions.js +1 -5
- package/src/Utilities/Helpers/AdaptableHelper.js +59 -70
- package/src/Utilities/Helpers/DateHelper.js +18 -28
- package/src/Utilities/Helpers/FormatHelper.js +10 -18
- package/src/Utilities/Helpers/Helper.js +28 -50
- package/src/Utilities/Helpers/PreviewHelper.js +13 -17
- package/src/Utilities/Helpers/StyleHelper.js +11 -20
- package/src/Utilities/Interface/AdaptableToolPanelContext.js +1 -2
- package/src/Utilities/Interface/ColumnFilterProps.js +1 -2
- package/src/Utilities/Interface/IPPStyle.js +1 -2
- package/src/Utilities/Interface/KeyValuePair.js +1 -2
- package/src/Utilities/Interface/MessagePopups.js +1 -2
- package/src/Utilities/Interface/Preview.js +1 -2
- package/src/Utilities/MenuItem.js +4 -11
- package/src/Utilities/ObjectFactory.d.ts +19 -22
- package/src/Utilities/ObjectFactory.js +152 -203
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +3 -7
- package/src/Utilities/Services/AlertService.js +11 -16
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +9 -13
- package/src/Utilities/Services/CellPopupService.d.ts +23 -0
- package/src/Utilities/Services/CellPopupService.js +133 -0
- package/src/Utilities/Services/ChartingService.js +10 -15
- package/src/Utilities/Services/DataService.js +8 -13
- package/src/Utilities/Services/EntitlementService.js +1 -5
- package/src/Utilities/Services/Fdc3Service.js +7 -11
- package/src/Utilities/Services/Interface/IAdaptableService.js +1 -2
- package/src/Utilities/Services/Interface/IAlertService.js +3 -8
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.js +1 -2
- package/src/Utilities/Services/Interface/IChartingService.js +1 -2
- package/src/Utilities/Services/Interface/IDataService.js +1 -2
- package/src/Utilities/Services/Interface/IEntitlementService.js +1 -2
- package/src/Utilities/Services/Interface/ILicenseService.js +1 -2
- package/src/Utilities/Services/Interface/IMetamodelService.js +1 -2
- package/src/Utilities/Services/Interface/IModuleService.js +1 -2
- package/src/Utilities/Services/Interface/IQueryLanguageService.js +1 -2
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IReportService.js +1 -2
- package/src/Utilities/Services/Interface/IRowEditService.js +1 -2
- package/src/Utilities/Services/Interface/ITeamSharingService.js +1 -2
- package/src/Utilities/Services/Interface/IThemeService.d.ts +8 -0
- package/src/Utilities/Services/Interface/IThemeService.js +1 -2
- package/src/Utilities/Services/Interface/IValidationService.js +1 -2
- package/src/Utilities/Services/LicenseService/index.js +181 -1
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +1 -5
- package/src/Utilities/Services/MetamodelService.js +12 -17
- package/src/Utilities/Services/ModuleService.js +8 -15
- package/src/Utilities/Services/QueryLanguageService.js +24 -29
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ReportService.js +48 -53
- package/src/Utilities/Services/RowEditService.js +1 -5
- package/src/Utilities/Services/TeamSharingService.js +6 -11
- package/src/Utilities/Services/ThemeService.d.ts +3 -0
- package/src/Utilities/Services/ThemeService.js +34 -6
- package/src/Utilities/Services/ValidationService.js +10 -15
- package/src/Utilities/getScrollbarSize.js +1 -3
- package/src/Utilities/isAdaptableObject.js +1 -5
- package/src/Utilities/isMacLike.js +1 -5
- package/src/Utilities/license/LicenseDetails.js +1 -2
- package/src/Utilities/license/decode.js +65 -1
- package/src/Utilities/license/hashing.js +43 -1
- package/src/Utilities/logDeprecation.js +3 -9
- package/src/Utilities/reorder.js +1 -5
- package/src/Utilities/runIfNotResolvedIn.js +1 -5
- package/src/Utilities/sortWithOrder.js +1 -5
- package/src/Utilities/waitForCondition.js +1 -5
- package/src/Utilities/waitForTimeout.js +1 -5
- package/src/View/AdaptableContext.js +3 -8
- package/src/View/AdaptablePopover/index.js +17 -22
- package/src/View/AdaptableView.js +31 -36
- package/src/View/AdaptableViewFactory.js +69 -71
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +1 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +25 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +44 -46
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +4 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +21 -26
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +4 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +27 -30
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +2 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +17 -20
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +8 -13
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +16 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +24 -29
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +18 -23
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +2 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +3 -5
- package/src/View/AdaptableWizardView/Utils.js +1 -5
- package/src/View/AdaptableWizardView/Wizard.js +20 -26
- package/src/View/AdaptableWizardView/helper.js +4 -10
- package/src/View/AdaptableWizardView/index.js +7 -10
- package/src/View/Alert/ActiveAlertsPanel.js +9 -14
- package/src/View/Alert/ActiveAlertsPanelItemLabel.js +10 -15
- package/src/View/Alert/AlertEmptyView.js +4 -9
- package/src/View/Alert/AlertEntityRow.js +13 -18
- package/src/View/Alert/AlertStatusSubPanel.js +13 -18
- package/src/View/Alert/AlertViewPanel.js +16 -20
- package/src/View/Alert/AlertsPanel.js +22 -27
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +6 -11
- package/src/View/Alert/Utilities/getAlertType.js +4 -9
- package/src/View/Alert/Utilities/getAvailablePredicates.js +1 -5
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +9 -14
- package/src/View/Alert/Utilities/mapAlertDefinition.js +1 -5
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +43 -50
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +35 -40
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +31 -37
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +27 -33
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +27 -33
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +8 -13
- package/src/View/Alert/Wizard/AlertSelectQueryWizard.js +14 -19
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +20 -26
- package/src/View/Alert/Wizard/AlertWizard.js +60 -65
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +14 -19
- package/src/View/Alert/Wizard/isValidAlertRules.js +3 -7
- package/src/View/BulkUpdate/BulkUpdatePopup.js +33 -37
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +27 -31
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +17 -22
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags.js +1 -5
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +36 -43
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +21 -28
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +33 -40
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +13 -18
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +49 -54
- package/src/View/CalculatedColumn/utils.js +1 -5
- package/src/View/CellSummary/CellSummaryDetails.js +6 -11
- package/src/View/CellSummary/CellSummaryPopover.js +4 -9
- package/src/View/CellSummary/CellSummaryPopup.js +8 -12
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +11 -12
- package/src/View/CellSummary/CellSummaryStatusPanel.js +11 -16
- package/src/View/CellSummary/CellSummaryViewPanel.js +22 -26
- package/src/View/Charting/ChartingStatusBarPopover.js +12 -17
- package/src/View/Charting/ChartingViewPanel.js +13 -18
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +18 -23
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +9 -14
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +16 -22
- package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +1 -4
- package/src/View/Charting/ChartingWizard/ChartingWizard.js +10 -14
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +13 -18
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +8 -14
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +1 -4
- package/src/View/Charting/ChartingWizard/index.js +1 -4
- package/src/View/Charting/DeleteChartButton.js +6 -11
- package/src/View/Charting/EditChartButton.js +8 -13
- package/src/View/Charting/ShowChartButton.js +21 -26
- package/src/View/Charting/useAgChartState.js +7 -12
- package/src/View/Charting/useChartingElements.js +26 -31
- package/src/View/Charting/useExternalChartState.js +7 -12
- package/src/View/ColumnInfo/ColumnInfo.js +33 -38
- package/src/View/ColumnInfo/ColumnInfoPopup.js +8 -13
- package/src/View/Comments/CommentsEditor.d.ts +7 -0
- package/src/View/Comments/CommentsEditor.js +95 -0
- package/src/View/Comments/CommentsPopup.d.ts +2 -0
- package/src/View/Comments/CommentsPopup.js +82 -0
- package/src/View/Components/AdaptableButton/index.js +8 -13
- package/src/View/Components/AdaptableDateInput/index.js +13 -15
- package/src/View/Components/AdaptableIconComponent/index.js +6 -11
- package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +3 -7
- package/src/View/Components/AdaptableIconSelector/index.js +6 -11
- package/src/View/Components/AdaptableInput/index.js +8 -11
- package/src/View/Components/AdaptableObjectCollection/index.js +6 -11
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +27 -33
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +42 -48
- package/src/View/Components/AdaptableObjectList/index.js +1 -5
- package/src/View/Components/AdaptableObjectRow/index.js +7 -12
- package/src/View/Components/Badge/index.js +6 -11
- package/src/View/Components/Buttons/ButtonApply.js +4 -9
- package/src/View/Components/Buttons/ButtonBase/index.js +5 -10
- package/src/View/Components/Buttons/ButtonClear.js +4 -9
- package/src/View/Components/Buttons/ButtonClone.js +4 -9
- package/src/View/Components/Buttons/ButtonClose.js +4 -9
- package/src/View/Components/Buttons/ButtonConfigure.js +4 -9
- package/src/View/Components/Buttons/ButtonDelete.js +8 -11
- package/src/View/Components/Buttons/ButtonEdit.js +4 -9
- package/src/View/Components/Buttons/ButtonExpand.js +4 -9
- package/src/View/Components/Buttons/ButtonExport.js +4 -9
- package/src/View/Components/Buttons/ButtonFunction.js +4 -9
- package/src/View/Components/Buttons/ButtonGeneral.js +4 -9
- package/src/View/Components/Buttons/ButtonInfo.js +4 -9
- package/src/View/Components/Buttons/ButtonInvalid.js +4 -9
- package/src/View/Components/Buttons/ButtonLogin.js +4 -9
- package/src/View/Components/Buttons/ButtonLogout.js +4 -9
- package/src/View/Components/Buttons/ButtonMaximise.js +4 -9
- package/src/View/Components/Buttons/ButtonMinimise.js +4 -9
- package/src/View/Components/Buttons/ButtonNew.js +4 -9
- package/src/View/Components/Buttons/ButtonNewPage.js +4 -9
- package/src/View/Components/Buttons/ButtonOpen.js +4 -9
- package/src/View/Components/Buttons/ButtonPause.js +4 -9
- package/src/View/Components/Buttons/ButtonPlay.js +5 -10
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +4 -7
- package/src/View/Components/Buttons/ButtonSave.js +4 -9
- package/src/View/Components/Buttons/ButtonSchedule.js +4 -9
- package/src/View/Components/Buttons/ButtonShare.js +8 -12
- package/src/View/Components/Buttons/ButtonShow.js +4 -9
- package/src/View/Components/Buttons/ButtonShowChart.js +4 -9
- package/src/View/Components/Buttons/ButtonStop.js +4 -9
- package/src/View/Components/Buttons/ButtonUndo.js +4 -9
- package/src/View/Components/Buttons/ButtonUnsuspend.js +4 -9
- package/src/View/Components/Buttons/EntityListActionButtons.js +14 -19
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +4 -8
- package/src/View/Components/Buttons/SuspendToggleButton/index.js +1 -4
- package/src/View/Components/CellPopup/index.js +11 -15
- package/src/View/Components/ColumnSelector/index.js +7 -12
- package/src/View/Components/EntityRowItem.js +2 -7
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +18 -23
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +27 -32
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/index.js +1 -5
- package/src/View/Components/EntityRulesEditor/Utilities.js +1 -5
- package/src/View/Components/EntityRulesEditor/index.js +45 -42
- package/src/View/Components/ExpressionWizard.js +17 -22
- package/src/View/Components/ExternalRenderer.js +6 -10
- package/src/View/Components/FilterForm/FilterForm.js +51 -56
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +30 -35
- package/src/View/Components/FilterForm/ListBoxMenu.js +8 -13
- package/src/View/Components/FilterForm/QuickFilterForm.js +41 -46
- package/src/View/Components/FilterForm/QuickFilterValues.js +23 -28
- package/src/View/Components/FilterForm/Waiting.js +10 -14
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +1 -5
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +10 -14
- package/src/View/Components/ListBox/DualListBoxEditor.js +53 -58
- package/src/View/Components/ListBox/ListBoxFilterSortComponent.js +10 -15
- package/src/View/Components/ModuleProfile.js +4 -9
- package/src/View/Components/ModuleSummary/ModuleDetail.js +6 -11
- package/src/View/Components/ModuleSummary/ModuleHeader.js +8 -13
- package/src/View/Components/ModuleSummary/SummaryRowItem.js +4 -9
- package/src/View/Components/ModuleValueSelector/index.js +15 -19
- package/src/View/Components/NewScopeComponent.js +45 -52
- package/src/View/Components/Panels/FilterFormPanel.js +22 -27
- package/src/View/Components/Panels/PanelDashboard/index.js +4 -9
- package/src/View/Components/Panels/PanelFooter.js +8 -13
- package/src/View/Components/Panels/PanelToolPanel/index.js +16 -20
- package/src/View/Components/Panels/PanelWithButton.js +16 -21
- package/src/View/Components/Panels/PanelWithImage.js +16 -20
- package/src/View/Components/Panels/PanelWithRow.js +7 -12
- package/src/View/Components/Panels/PanelWithTwoButtons.js +7 -12
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +6 -11
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +15 -20
- package/src/View/Components/PermittedValuesSelector/index.js +1 -5
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +6 -11
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +26 -31
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +7 -12
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +21 -25
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +24 -29
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +4 -9
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +11 -16
- package/src/View/Components/Popups/AdaptablePopup/PopupContext.js +3 -8
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +12 -17
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +12 -17
- package/src/View/Components/Popups/AdaptablePopup/index.js +1 -5
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +10 -15
- package/src/View/Components/Popups/AdaptablePopupAlert.js +22 -27
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +25 -30
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +18 -23
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +26 -31
- package/src/View/Components/Popups/AdaptableToaster.js +13 -18
- package/src/View/Components/Popups/FormPopups/FormPopups.js +19 -25
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.d.ts +5 -0
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +62 -0
- package/src/View/Components/Popups/GridCellPopup/index.d.ts +1 -0
- package/src/View/Components/Popups/GridCellPopup/index.js +1 -0
- package/src/View/Components/Popups/Utilities.js +10 -17
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +23 -27
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +13 -16
- package/src/View/Components/PredicateEditor/PredicateEditor.js +21 -26
- package/src/View/Components/PreviewResultsPanel.js +13 -18
- package/src/View/Components/RangesComponent.js +51 -56
- package/src/View/Components/ScopeComponent.js +23 -28
- package/src/View/Components/Selectors/ColumnSelector.js +6 -11
- package/src/View/Components/Selectors/ColumnSelectorOld.js +13 -18
- package/src/View/Components/Selectors/ColumnValueSelector.js +15 -20
- package/src/View/Components/Selectors/PermittedValuesSelector.js +8 -13
- package/src/View/Components/SharedProps/BaseProps.js +1 -2
- package/src/View/Components/SharedProps/ConfigEntityRowProps.js +1 -2
- package/src/View/Components/SharedProps/EditableConfigEntityState.js +2 -5
- package/src/View/Components/SharedProps/ModuleSummaryProps.js +1 -2
- package/src/View/Components/SharedProps/ModuleViewPopupProps.js +1 -2
- package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.js +1 -2
- package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.js +1 -2
- package/src/View/Components/SharedProps/ViewPanelProps.js +1 -2
- package/src/View/Components/SharedProps/WizardScopeState.js +1 -2
- package/src/View/Components/StyleComponent.js +64 -69
- package/src/View/Components/StyleVisualItem.js +9 -14
- package/src/View/Components/TagValueSelector/index.js +9 -15
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +39 -44
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +13 -18
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +24 -28
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +17 -25
- package/src/View/Components/ValueSelector/index.js +47 -53
- package/src/View/Components/WizardSummaryPage.js +7 -12
- package/src/View/Components/WizardSummaryRow.js +6 -11
- package/src/View/CustomSort/CustomSortSummary.js +32 -37
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +17 -24
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +4 -9
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +29 -36
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +31 -36
- package/src/View/Dashboard/CustomDashboardButton.js +7 -12
- package/src/View/Dashboard/CustomToolbar.js +19 -25
- package/src/View/Dashboard/Dashboard.js +38 -42
- package/src/View/Dashboard/DashboardPopup.js +29 -33
- package/src/View/Dashboard/DashboardToolbarFactory.js +13 -18
- package/src/View/Dashboard/DashboardViewPanel.js +10 -14
- package/src/View/Dashboard/ModuleToolbarWrapper.js +9 -14
- package/src/View/Dashboard/PinnedDashboard.js +12 -17
- package/src/View/Dashboard/PinnedToolbarsSelector.js +11 -16
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +15 -20
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +34 -38
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +4 -9
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +36 -41
- package/src/View/DataChangeHistory/buildActionColumnButton.js +1 -5
- package/src/View/DataImport/DataImportPopup.js +12 -17
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +25 -30
- package/src/View/DataImport/DataImportWizard/index.js +1 -4
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +29 -34
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +21 -26
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +18 -23
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +5 -10
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +17 -22
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +6 -11
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +1 -4
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +18 -23
- package/src/View/DataImport/systemFileHandlers.js +5 -9
- package/src/View/DataSet/DataSetSelector.js +6 -11
- package/src/View/DataSet/DataSetStatusPanelPopover.js +6 -11
- package/src/View/DataSet/DataSetViewPanel.js +12 -16
- package/src/View/Export/ExportSelector.js +11 -16
- package/src/View/Export/ExportTablePopup.js +7 -12
- package/src/View/Export/ExportViewPanel.js +37 -41
- package/src/View/Export/ReportExportDropdown.js +16 -21
- package/src/View/Export/Wizard/NewReportWizard.js +32 -37
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +14 -19
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +28 -35
- package/src/View/Export/Wizard/ReportNameWizardSection.js +21 -28
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +14 -19
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +32 -39
- package/src/View/Export/Wizard/ReportScopeWizard.js +9 -14
- package/src/View/Export/Wizard/ReportSettingsWizard.js +18 -23
- package/src/View/Export/Wizard/ReportSummaryWizard.js +4 -9
- package/src/View/Export/constants.js +2 -5
- package/src/View/Filter/ActiveFiltersPanel.js +7 -12
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +4 -9
- package/src/View/Filter/FilterSummary.js +18 -23
- package/src/View/Filter/FilterViewPanel.js +20 -24
- package/src/View/FlashingCell/FlashingCellStyle.js +10 -14
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +14 -20
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +8 -13
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +36 -42
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +28 -34
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +44 -49
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +3 -7
- package/src/View/FormatColumn/FormatColumnSummary.js +27 -32
- package/src/View/FormatColumn/MoveFormatColumn.js +10 -15
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +153 -161
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +6 -11
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +10 -16
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +30 -36
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +17 -25
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +48 -53
- package/src/View/FormatColumn/Wizard/constants.js +1 -4
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +27 -32
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +52 -59
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +26 -31
- package/src/View/GridFilter/GridFilterExpressionEditor.js +30 -35
- package/src/View/GridFilter/GridFilterPopup.js +36 -41
- package/src/View/GridFilter/GridFilterStatusbar.js +5 -10
- package/src/View/GridFilter/GridFilterViewPanel.js +70 -40
- package/src/View/GridFilter/GridFilterWindowPopup.js +4 -9
- package/src/View/GridFilter/NamedQuerySelector.js +31 -37
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +23 -28
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +3 -7
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +11 -16
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +20 -25
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +33 -37
- package/src/View/GridInfo/GridInfoPopup/index.js +1 -4
- package/src/View/KeyHint.js +4 -9
- package/src/View/Layout/EditCurrentLayoutButton.js +6 -11
- package/src/View/Layout/LayoutCloneButton.js +6 -11
- package/src/View/Layout/LayoutRadioSelector.js +6 -11
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +10 -15
- package/src/View/Layout/LayoutViewPanel.js +26 -30
- package/src/View/Layout/PivotDetailsPopoup.js +7 -12
- package/src/View/Layout/SaveLayoutButton.js +12 -17
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +11 -15
- package/src/View/Layout/Wizard/LayoutWizard.js +51 -56
- package/src/View/Layout/Wizard/getGridFilterPreview.js +6 -11
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +37 -44
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +62 -68
- package/src/View/Layout/Wizard/sections/FilterSection.js +30 -37
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +24 -31
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +21 -27
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +27 -33
- package/src/View/Layout/Wizard/sections/SettingsSection.js +29 -35
- package/src/View/Layout/Wizard/sections/SortSection.js +26 -32
- package/src/View/Layout/Wizard/sections/Utilities.js +1 -5
- package/src/View/License/LicenseWatermark.js +61 -1
- package/src/View/License/index.js +1 -5
- package/src/View/NamedQuery/EditCurrentQueryButton.js +6 -11
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +17 -24
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +21 -28
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +28 -33
- package/src/View/Notes/NoteEditor.d.ts +8 -0
- package/src/View/Notes/NoteEditor.js +28 -0
- package/src/View/Notes/NotesPopup.d.ts +2 -2
- package/src/View/Notes/NotesPopup.js +80 -62
- package/src/View/PlusMinus/MovePlusMinus.js +11 -16
- package/src/View/PlusMinus/PlusMinusSummary.js +26 -31
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +12 -18
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +6 -11
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +32 -39
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +26 -31
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +13 -18
- package/src/View/QuickSearch/QuickSearchInput.js +13 -18
- package/src/View/QuickSearch/QuickSearchPopup.js +26 -30
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +10 -15
- package/src/View/QuickSearch/QuickSearchViewPanel.js +4 -9
- package/src/View/QuickSearch/useQuickSearchDebounced.js +7 -12
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +8 -13
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +26 -32
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +24 -29
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +13 -18
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +24 -29
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +17 -22
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +13 -28
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +17 -26
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/index.js +3 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +16 -27
- package/src/View/Schedule/Wizard/ScheduleWizard.js +43 -56
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +6 -11
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +43 -50
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +32 -37
- package/src/View/Shortcut/shortcutKeys.js +1 -4
- package/src/View/Shortcut/shortcutOperations.js +6 -9
- package/src/View/SmartEdit/SmartEditPopup.js +26 -30
- package/src/View/SmartEdit/SmartEditViewPanel.js +30 -34
- package/src/View/SpecialColumnSettingsWizardStep.js +35 -40
- package/src/View/StateManagement/StateManagementPopup.js +22 -27
- package/src/View/StateManagement/StateManagementViewPanel.js +14 -19
- package/src/View/StateManagement/components/ClearButton.js +4 -9
- package/src/View/StateManagement/components/ExportDropdown.js +7 -12
- package/src/View/StateManagement/components/LoadButton.js +6 -11
- package/src/View/StateManagement/handleExportState.js +4 -9
- package/src/View/StatusBar/AdaptableStatusBar.js +14 -19
- package/src/View/StatusBar/StatusBarPanel.js +12 -16
- package/src/View/StatusBar/StatusBarPopup.js +14 -19
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +63 -60
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +137 -142
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +45 -51
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +17 -24
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +21 -27
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +9 -14
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +7 -12
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +7 -12
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +14 -19
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +49 -56
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +1 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +23 -29
- package/src/View/SystemStatus/SystemStatusEntityRow.js +12 -17
- package/src/View/SystemStatus/SystemStatusPopup.js +18 -22
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +8 -13
- package/src/View/SystemStatus/SystemStatusViewPanel.js +8 -12
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +4 -9
- package/src/View/TeamSharing/SharedEntityDependencies.js +12 -18
- package/src/View/TeamSharing/SharedEntityObjectView.js +23 -30
- package/src/View/TeamSharing/TeamSharingApplyButton.js +6 -11
- package/src/View/Theme/ThemeEditor.js +27 -32
- package/src/View/Theme/ThemeEditorWindow.js +8 -13
- package/src/View/Theme/ThemeField.js +18 -23
- package/src/View/Theme/ThemePopup.js +24 -28
- package/src/View/Theme/ThemeSelector.js +11 -16
- package/src/View/Theme/ThemeStatusbar.js +6 -11
- package/src/View/Theme/ThemeViewPanel.js +7 -12
- package/src/View/Theme/VariantSelector.js +8 -13
- package/src/View/UIHelper.js +120 -152
- package/src/View/UIInterfaces.js +1 -2
- package/src/View/Wizard/AdaptableWizard.js +24 -30
- package/src/View/Wizard/Interface/IAdaptableWizard.js +1 -2
- package/src/View/Wizard/ObjectTagsWizardSection.js +14 -20
- package/src/View/Wizard/OnePageAdaptableWizard.js +32 -42
- package/src/View/Wizard/OnePageWizards.js +50 -59
- package/src/View/Wizard/TypeRadio.js +7 -12
- package/src/View/Wizard/WizardLegend.js +6 -11
- package/src/View/Wizard/useKeyboardNavigation.js +4 -9
- package/src/View/renderWithAdaptableContext.js +9 -14
- package/src/agGrid/ActionColumnRenderer.js +9 -15
- package/src/agGrid/Adaptable.d.ts +9 -5
- package/src/agGrid/Adaptable.js +275 -261
- package/src/agGrid/AdaptableLogger.js +2 -6
- package/src/agGrid/BadgeRenderer.js +14 -15
- package/src/agGrid/CheckboxRenderer.js +2 -7
- package/src/agGrid/ColumnSetupInfo.js +1 -2
- package/src/agGrid/FilterWrapper.js +9 -14
- package/src/agGrid/FloatingFilterWrapper.js +8 -13
- package/src/agGrid/PercentBarRenderer.js +5 -10
- package/src/agGrid/agGridHelper.js +102 -105
- package/src/agGrid/agGridMenuHelper.d.ts +2 -0
- package/src/agGrid/agGridMenuHelper.js +72 -47
- package/src/agGrid/attachAddaptableColumnTypes.js +4 -8
- package/src/agGrid/createAgStatusPanelComponent.js +5 -10
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +12 -16
- package/src/agGrid/editors/AdaptableDateEditor/index.js +19 -24
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +6 -10
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -21
- package/src/agGrid/index.js +6 -11
- package/src/agGrid/weightedAverage.js +10 -17
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +25 -31
- package/src/components/AdaptableFormComponent/index.js +1 -4
- package/src/components/CheckBox/index.js +13 -17
- package/src/components/CodeBlock/index.js +6 -11
- package/src/components/ColorPicker/ColorPicker.js +16 -19
- package/src/components/ColorPicker/index.js +1 -4
- package/src/components/ContainerProps.js +1 -2
- package/src/components/Dashboard/Dashboard.js +17 -22
- package/src/components/Dashboard/DashboardManager.js +4 -7
- package/src/components/Dashboard/DashboardTab.js +1 -5
- package/src/components/Dashboard/DashboardToolbar.js +9 -14
- package/src/components/Dashboard/index.js +3 -6
- package/src/components/Datepicker/Caption.js +15 -20
- package/src/components/Datepicker/CaptionLabel.js +16 -21
- package/src/components/Datepicker/DatepickerContext.js +4 -9
- package/src/components/Datepicker/index.js +36 -39
- package/src/components/Dialog/index.js +29 -32
- package/src/components/Dialog/useIsOpen.js +3 -6
- package/src/components/DragAndDropContext/DragAndDropContext.js +2 -6
- package/src/components/DragAndDropContext/ModuleManager.js +13 -18
- package/src/components/DragAndDropContext/TabList.js +19 -27
- package/src/components/DragAndDropContext/UnusedPanel.js +10 -15
- package/src/components/DragAndDropContext/types.js +1 -2
- package/src/components/Drawer/index.js +2 -7
- package/src/components/Dropdown/Arrows.js +5 -8
- package/src/components/Dropdown/index.js +18 -20
- package/src/components/DropdownButton/DropdownButtonItem.js +1 -2
- package/src/components/DropdownButton/index.js +23 -26
- package/src/components/DropdownButton/renderItem.js +4 -7
- package/src/components/DropdownButton/useExpanded.js +9 -12
- package/src/components/EllipsisContainer/index.js +17 -21
- package/src/components/EmptyContent/index.js +8 -10
- package/src/components/ErrorBox/index.js +6 -10
- package/src/components/ExpressionEditor/BaseEditorInput.js +55 -60
- package/src/components/ExpressionEditor/EditorButton.js +8 -10
- package/src/components/ExpressionEditor/EditorContext.js +4 -8
- package/src/components/ExpressionEditor/EditorInput.js +22 -25
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +24 -27
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +10 -15
- package/src/components/ExpressionEditor/ExpressionPreview.js +4 -9
- package/src/components/ExpressionEditor/NamedQueryContext.js +4 -8
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +36 -42
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +51 -60
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +54 -59
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +1 -4
- package/src/components/ExpressionEditor/QueryBuilder/index.js +1 -4
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +17 -26
- package/src/components/ExpressionEditor/editorButtonsAggregatedBoolean.js +1 -4
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +1 -4
- package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +1 -4
- package/src/components/ExpressionEditor/editorButtonsObservable.js +1 -4
- package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +1 -4
- package/src/components/ExpressionEditor/editorButtonsSearch.js +1 -4
- package/src/components/ExpressionEditor/index.js +99 -101
- package/src/components/FieldWrap/index.js +5 -8
- package/src/components/FileDroppable/FileDroppableState.js +1 -2
- package/src/components/FileDroppable/index.js +29 -33
- package/src/components/FileDroppable/reducer.js +3 -6
- package/src/components/FlexWithFooter.js +9 -11
- package/src/components/FormLayout/index.js +13 -17
- package/src/components/HelpBlock/index.js +6 -10
- package/src/components/Icon/index.js +20 -29
- package/src/components/IconSelector/IconSelector.js +27 -32
- package/src/components/IconSelector/index.js +1 -4
- package/src/components/InfiniteTable/index.js +6 -10
- package/src/components/Input/NumberInput.js +4 -9
- package/src/components/Input/index.js +8 -11
- package/src/components/InputGroup/InputGroup.js +4 -8
- package/src/components/InputGroup/index.js +1 -4
- package/src/components/List/GridList/index.js +7 -10
- package/src/components/List/ListGroup/index.js +7 -9
- package/src/components/List/ListGroupItem/index.js +8 -10
- package/src/components/Loader/Loader.js +4 -10
- package/src/components/Loader/index.js +2 -7
- package/src/components/Logo/index.js +2 -7
- package/src/components/Modal/Backdrop.js +12 -17
- package/src/components/Modal/index.js +19 -23
- package/src/components/NotifyResize/index.js +4 -7
- package/src/components/OverlayTrigger/Overlay.js +19 -23
- package/src/components/OverlayTrigger/index.js +43 -48
- package/src/components/OverlayTrigger/useAgGridClassName.js +5 -7
- package/src/components/OverlayTrigger/utils.js +3 -9
- package/src/components/Panel/index.js +12 -15
- package/src/components/PopupWithFooter.js +8 -11
- package/src/components/ProgressIndicator/ProgressIndicator.js +12 -17
- package/src/components/Radio/index.js +15 -20
- package/src/components/ResizeObserver/getResizeObserverObject.js +1 -5
- package/src/components/ResizeObserver/index.js +17 -24
- package/src/components/Select/Select.js +15 -20
- package/src/components/Select/index.js +1 -4
- package/src/components/SelectList.js +4 -9
- package/src/components/SelectableList/index.js +8 -13
- package/src/components/SimpleButton/index.js +19 -22
- package/src/components/SizedContainer/index.js +9 -11
- package/src/components/StylePreview.js +6 -11
- package/src/components/Table/index.js +4 -7
- package/src/components/Tabs/index.js +28 -34
- package/src/components/Tag/Tag.js +5 -9
- package/src/components/Tag/index.js +1 -5
- package/src/components/Textarea/index.d.ts +9 -0
- package/src/components/Textarea/index.js +56 -11
- package/src/components/Toastify/index.d.ts +2 -2
- package/src/components/Toastify/index.js +1 -10
- package/src/components/Toggle/Toggle.js +8 -12
- package/src/components/Toggle/ToggleGroup.js +4 -9
- package/src/components/Toggle/index.js +2 -5
- package/src/components/ToggleButton/index.js +6 -11
- package/src/components/Tooltip/index.js +4 -7
- package/src/components/WarningBox/index.js +6 -11
- package/src/components/WindowModal/WindowModal.js +12 -17
- package/src/components/WindowModal/index.js +1 -4
- package/src/components/WindowModal/useStacking.js +4 -9
- package/src/components/WizardPanel/index.js +5 -8
- package/src/components/icons/DefaultIcon.js +8 -12
- package/src/components/icons/add-row.js +3 -6
- package/src/components/icons/alert.js +3 -6
- package/src/components/icons/align-center.js +3 -6
- package/src/components/icons/align-justify.js +3 -6
- package/src/components/icons/align-left.js +3 -6
- package/src/components/icons/align-right.js +3 -6
- package/src/components/icons/analysis.js +3 -6
- package/src/components/icons/application.js +3 -6
- package/src/components/icons/arrow-down-long.js +3 -6
- package/src/components/icons/arrow-down.js +3 -6
- package/src/components/icons/arrow-expand.js +3 -6
- package/src/components/icons/arrow-left.js +3 -6
- package/src/components/icons/arrow-right.js +3 -6
- package/src/components/icons/arrow-up-long.js +3 -6
- package/src/components/icons/arrow-up.js +3 -6
- package/src/components/icons/attach-file.js +3 -6
- package/src/components/icons/badge.js +3 -6
- package/src/components/icons/blanks.js +3 -6
- package/src/components/icons/bold.js +3 -6
- package/src/components/icons/boolean-list.js +3 -6
- package/src/components/icons/brush.js +3 -6
- package/src/components/icons/build.js +3 -6
- package/src/components/icons/bulk-update.js +3 -6
- package/src/components/icons/calculated-column.js +3 -6
- package/src/components/icons/calendar.js +3 -6
- package/src/components/icons/call.js +3 -6
- package/src/components/icons/campaign.js +3 -6
- package/src/components/icons/case-lower.js +3 -6
- package/src/components/icons/case-sentence.js +3 -6
- package/src/components/icons/case-upper.js +3 -6
- package/src/components/icons/cell-summary.js +3 -6
- package/src/components/icons/cell-validation.js +3 -6
- package/src/components/icons/chart.js +3 -6
- package/src/components/icons/chat.js +3 -6
- package/src/components/icons/check-box-outline.js +3 -6
- package/src/components/icons/check-box.js +3 -6
- package/src/components/icons/check-circle.js +3 -6
- package/src/components/icons/check.js +3 -6
- package/src/components/icons/clone.js +3 -6
- package/src/components/icons/close.js +3 -6
- package/src/components/icons/cloud-upload.js +3 -6
- package/src/components/icons/collapse.js +3 -6
- package/src/components/icons/column-add.js +3 -6
- package/src/components/icons/column-chooser.js +3 -6
- package/src/components/icons/column-filter.js +3 -6
- package/src/components/icons/column-info.js +3 -6
- package/src/components/icons/comment.js +3 -6
- package/src/components/icons/comments.d.ts +3 -0
- package/src/components/icons/comments.js +4 -0
- package/src/components/icons/contact.js +3 -6
- package/src/components/icons/contains.js +3 -6
- package/src/components/icons/custom-sort.js +3 -6
- package/src/components/icons/dashboard.js +3 -6
- package/src/components/icons/data-set.js +3 -6
- package/src/components/icons/date-range.js +3 -6
- package/src/components/icons/delete.js +3 -6
- package/src/components/icons/division.js +3 -6
- package/src/components/icons/dock.js +3 -6
- package/src/components/icons/dollar.js +3 -6
- package/src/components/icons/drag.js +3 -6
- package/src/components/icons/edit.js +3 -6
- package/src/components/icons/ends-with.js +3 -6
- package/src/components/icons/equal.js +3 -6
- package/src/components/icons/equation.js +3 -6
- package/src/components/icons/error.js +3 -6
- package/src/components/icons/expand.js +3 -6
- package/src/components/icons/exponent.js +3 -6
- package/src/components/icons/export.js +3 -6
- package/src/components/icons/fast-backward.js +3 -6
- package/src/components/icons/fast-forward.js +3 -6
- package/src/components/icons/fdc3.js +3 -6
- package/src/components/icons/filter.js +3 -6
- package/src/components/icons/flashing-cell.js +3 -6
- package/src/components/icons/folder-open.js +3 -6
- package/src/components/icons/folder-shared.js +3 -6
- package/src/components/icons/folder.js +3 -6
- package/src/components/icons/format-column.js +3 -6
- package/src/components/icons/freetext-column.js +3 -6
- package/src/components/icons/function.js +3 -6
- package/src/components/icons/gradient-column.js +3 -6
- package/src/components/icons/gradient.js +3 -6
- package/src/components/icons/greater-than-or-equal.js +3 -6
- package/src/components/icons/greater-than.js +3 -6
- package/src/components/icons/grid-filter.js +3 -6
- package/src/components/icons/hide-column.js +3 -6
- package/src/components/icons/history.js +3 -6
- package/src/components/icons/home.js +3 -6
- package/src/components/icons/import-export.js +3 -6
- package/src/components/icons/import.js +3 -6
- package/src/components/icons/index.js +323 -326
- package/src/components/icons/info.js +3 -6
- package/src/components/icons/instrument.js +3 -6
- package/src/components/icons/interactions.js +3 -6
- package/src/components/icons/invalid.js +3 -6
- package/src/components/icons/ipushpull.js +3 -6
- package/src/components/icons/italic.js +3 -6
- package/src/components/icons/justify.js +3 -6
- package/src/components/icons/layout.js +3 -6
- package/src/components/icons/less-than-or-equal.js +3 -6
- package/src/components/icons/less-than.js +3 -6
- package/src/components/icons/list.js +3 -6
- package/src/components/icons/login.js +3 -6
- package/src/components/icons/logout copy.js +3 -6
- package/src/components/icons/logout.js +3 -6
- package/src/components/icons/mail.js +3 -6
- package/src/components/icons/menu.js +3 -6
- package/src/components/icons/minus.js +3 -6
- package/src/components/icons/money.js +3 -6
- package/src/components/icons/multiplication.js +3 -6
- package/src/components/icons/newpage.js +3 -6
- package/src/components/icons/news.js +3 -6
- package/src/components/icons/non-blanks.js +3 -6
- package/src/components/icons/not-contains.js +3 -6
- package/src/components/icons/not-equal.js +3 -6
- package/src/components/icons/note.js +3 -6
- package/src/components/icons/open-in-new.js +3 -6
- package/src/components/icons/order.js +3 -6
- package/src/components/icons/organisation.js +3 -6
- package/src/components/icons/overline.js +3 -6
- package/src/components/icons/pause.js +3 -6
- package/src/components/icons/percent-bar.js +3 -6
- package/src/components/icons/percent.js +3 -6
- package/src/components/icons/person.js +3 -6
- package/src/components/icons/pie-chart.js +3 -6
- package/src/components/icons/play.js +3 -6
- package/src/components/icons/plus-minus.js +3 -6
- package/src/components/icons/plus.js +3 -6
- package/src/components/icons/query.js +3 -6
- package/src/components/icons/quick-search.js +3 -6
- package/src/components/icons/quote.js +3 -6
- package/src/components/icons/refresh.js +3 -6
- package/src/components/icons/regex.js +3 -6
- package/src/components/icons/reminder.js +3 -6
- package/src/components/icons/resume.js +3 -6
- package/src/components/icons/save.js +3 -6
- package/src/components/icons/schedule.js +3 -6
- package/src/components/icons/science.js +3 -6
- package/src/components/icons/settings.js +3 -6
- package/src/components/icons/shortcut.js +3 -6
- package/src/components/icons/show-column.js +3 -6
- package/src/components/icons/smart-edit.js +3 -6
- package/src/components/icons/sort-asc.js +3 -6
- package/src/components/icons/sort-desc.js +3 -6
- package/src/components/icons/spark-line.js +3 -6
- package/src/components/icons/starts-with.js +3 -6
- package/src/components/icons/state-management.js +3 -6
- package/src/components/icons/statusbar.js +3 -6
- package/src/components/icons/stop.js +3 -6
- package/src/components/icons/strikethrough.js +3 -6
- package/src/components/icons/system-status.js +3 -6
- package/src/components/icons/tab-unselected.js +3 -6
- package/src/components/icons/table-arrow-right.js +3 -6
- package/src/components/icons/team-share.js +3 -6
- package/src/components/icons/theme.js +3 -6
- package/src/components/icons/tool-panel.js +3 -6
- package/src/components/icons/track-changes.js +3 -6
- package/src/components/icons/triangle-down.js +3 -6
- package/src/components/icons/triangle-up.js +3 -6
- package/src/components/icons/unchecked.js +3 -6
- package/src/components/icons/underline.js +3 -6
- package/src/components/icons/undo.js +3 -6
- package/src/components/icons/updated-row.js +3 -6
- package/src/components/icons/upload.js +3 -6
- package/src/components/icons/user-filter.js +3 -6
- package/src/components/icons/visibility-off.js +3 -6
- package/src/components/icons/visibility.js +3 -6
- package/src/components/icons/warning.js +3 -6
- package/src/components/utils/batchUpdate.js +3 -5
- package/src/components/utils/captureTabNavigation/getFocusableChildren.js +1 -3
- package/src/components/utils/captureTabNavigation/index.js +3 -6
- package/src/components/utils/contains.js +1 -4
- package/src/components/utils/getAvailableSizeInfo.js +1 -3
- package/src/components/utils/join.js +1 -3
- package/src/components/utils/selectParent/index.js +3 -6
- package/src/components/utils/selectParent/matches.js +1 -2
- package/src/components/utils/useAutoFocus.js +5 -8
- package/src/components/utils/useContainerScrollObserver/index.js +9 -13
- package/src/components/utils/useDraggable.js +7 -10
- package/src/components/utils/useGlobalEvent.js +2 -7
- package/src/components/utils/useLatest.js +4 -8
- package/src/components/utils/usePrevious.js +4 -6
- package/src/components/utils/usePropState.js +3 -6
- package/src/components/utils/useProperty.js +4 -6
- package/src/components/utils/useRerender.js +4 -8
- package/src/components/utils/useSelectionRange.js +5 -9
- package/src/components/utils/useTheme.js +2 -5
- package/src/components/utils/uuid.js +2 -6
- package/src/env.d.ts +3 -1
- package/src/env.js +4 -4
- package/src/metamodel/adaptable-metamodel-model.js +1 -2
- package/src/metamodel/adaptable.metamodel.d.ts +22 -115
- package/src/metamodel/adaptable.metamodel.js +9313 -1
- package/src/parser/src/ExpressionEvaluationError.js +1 -5
- package/src/parser/src/evaluator.js +3 -7
- package/src/parser/src/index.js +9 -18
- package/src/parser/src/parser.d.ts +2 -0
- package/src/parser/src/parser.js +1878 -705
- package/src/parser/src/predicate/index.js +2 -5
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +12 -16
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +6 -11
- package/src/parser/src/predicate/types.js +1 -5
- package/src/parser/src/tokenizer.js +3 -8
- package/src/parser/src/types.js +1 -5
- package/src/parser/src/utils.js +3 -9
- package/src/renderReactRoot.js +2 -7
- package/src/theme.js +1 -3
- package/src/themes/index.js +8 -7
- package/src/types.d.ts +5 -10
- package/src/types.js +1 -5
- package/themes/dark.css +3 -3
- package/themes/dark.css.map +1 -1
- package/themes/light.css.map +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -0
- package/types.js +1 -4
- package/bundle.cjs.js +0 -689
- package/publishTimestamp.d.ts +0 -2
- package/publishTimestamp.js +0 -3
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +0 -35
- package/src/AdaptableOptions/FinsemblePluginOptions.js +0 -2
- package/src/AdaptableOptions/Glue42PluginOptions.d.ts +0 -25
- package/src/AdaptableOptions/Glue42PluginOptions.js +0 -2
- package/src/AdaptableOptions/Glue42WebPluginOptions.d.ts +0 -10
- package/src/AdaptableOptions/Glue42WebPluginOptions.js +0 -2
- package/src/Api/FinsembleApi.d.ts +0 -10
- package/src/Api/FinsembleApi.js +0 -2
- package/src/Api/Glue42Api.d.ts +0 -75
- package/src/Api/Glue42Api.js +0 -2
- package/src/Api/Glue42WebApi.d.ts +0 -10
- package/src/Api/Glue42WebApi.js +0 -2
- package/src/Api/NotesAPi.js +0 -2
- package/src/PredefinedConfig/Glue42State.d.ts +0 -46
- package/src/PredefinedConfig/Glue42State.js +0 -2
- package/src/View/Notes/NotesListing.d.ts +0 -2
- package/src/View/Notes/NotesListing.js +0 -88
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.d.ts +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +0 -25
- package/src/bundle-dependencies/bundles/react-toastify/components/CloseButton.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-toastify/components/Icons.d.ts +0 -24
- package/src/bundle-dependencies/bundles/react-toastify/components/ProgressBar.d.ts +0 -59
- package/src/bundle-dependencies/bundles/react-toastify/components/Toast.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/ToastContainer.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/Transitions.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/components/index.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/core/eventManager.d.ts +0 -39
- package/src/bundle-dependencies/bundles/react-toastify/core/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/core/toast.d.ts +0 -41
- package/src/bundle-dependencies/bundles/react-toastify/hooks/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToast.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToastContainer.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/index.js +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/inject-style.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-toastify/types/index.d.ts +0 -269
- package/src/bundle-dependencies/bundles/react-toastify/utils/collapseToast.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/constant.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/utils/cssTransition.d.ts +0 -43
- package/src/bundle-dependencies/bundles/react-toastify/utils/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/mapper.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/utils/propValidator.d.ts +0 -9
- package/version.d.ts +0 -2
- package/version.js +0 -3
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -1,74 +1,72 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const getScrollbarSize_1 = tslib_1.__importDefault(require("../Utilities/getScrollbarSize"));
|
|
26
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../Utilities/Helpers/AdaptableHelper"));
|
|
27
|
-
const Helper_1 = require("../Utilities/Helpers/Helper");
|
|
28
|
-
const ObjectFactory_1 = require("../Utilities/ObjectFactory");
|
|
1
|
+
import { CssClassManager, Events, Grid, GridApi, ModuleNames, ModuleRegistry, RowNode, } from '@ag-grid-community/core';
|
|
2
|
+
import merge from 'lodash/merge';
|
|
3
|
+
import debounce from 'lodash/debounce';
|
|
4
|
+
import lodashIsEqual from 'lodash/isEqual';
|
|
5
|
+
import throttle from 'lodash/throttle';
|
|
6
|
+
import uniqBy from 'lodash/uniqBy';
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import clamp from 'lodash/clamp';
|
|
9
|
+
import { AdaptableApiImpl } from '../Api/Implementation/AdaptableApiImpl';
|
|
10
|
+
import { FilterOnDataChangeOptions } from '../PredefinedConfig/Common/Enums';
|
|
11
|
+
import { createUuid } from '../PredefinedConfig/Uuid';
|
|
12
|
+
import { AdaptableStore, INIT_STATE } from '../Redux/Store/AdaptableStore';
|
|
13
|
+
import * as GeneralConstants from '../Utilities/Constants/GeneralConstants';
|
|
14
|
+
import { AB_SPECIAL_COLUMN, ADAPTABLE_ROW_ACTION_BUTTONS, AUTOGENERATED_PK_COLUMN, BLANK_DISTINCT_COLUMN_VALUE, DARK_THEME, HALF_SECOND, LIGHT_THEME, } from '../Utilities/Constants/GeneralConstants';
|
|
15
|
+
import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
|
|
16
|
+
import { GridFilterModuleId } from '../Utilities/Constants/ModuleConstants';
|
|
17
|
+
import { DefaultAdaptableOptions } from '../Utilities/Defaults/DefaultAdaptableOptions';
|
|
18
|
+
import Emitter from '../Utilities/Emitter';
|
|
19
|
+
import { ArrayExtensions } from '../Utilities/Extensions/ArrayExtensions';
|
|
20
|
+
import { StringExtensions } from '../Utilities/Extensions/StringExtensions';
|
|
21
|
+
import getScrollbarSize from '../Utilities/getScrollbarSize';
|
|
22
|
+
import AdaptableHelper from '../Utilities/Helpers/AdaptableHelper';
|
|
23
|
+
import { Helper } from '../Utilities/Helpers/Helper';
|
|
24
|
+
import { createBaseContext, CreateEmptyCalculatedColumn, CreateEmptyFreeTextColumn, } from '../Utilities/ObjectFactory';
|
|
29
25
|
// services
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
26
|
+
import { CalculatedColumnExpressionService } from '../Utilities/Services/CalculatedColumnExpressionService';
|
|
27
|
+
import { DataService } from '../Utilities/Services/DataService';
|
|
28
|
+
import { LicenseService } from '../Utilities/Services/LicenseService';
|
|
29
|
+
import { TeamSharingService } from '../Utilities/Services/TeamSharingService';
|
|
30
|
+
import { ReportService } from '../Utilities/Services/ReportService';
|
|
31
|
+
import { ModuleService } from '../Utilities/Services/ModuleService';
|
|
32
|
+
import { ValidationService } from '../Utilities/Services/ValidationService';
|
|
33
|
+
import { EntitlementService } from '../Utilities/Services/EntitlementService';
|
|
34
|
+
import { QueryLanguageService } from '../Utilities/Services/QueryLanguageService';
|
|
35
|
+
import { AlertService } from '../Utilities/Services/AlertService';
|
|
36
|
+
import { AdaptableApp } from '../View/AdaptableView';
|
|
37
|
+
import AdaptableWizardView from '../View/AdaptableWizardView';
|
|
38
|
+
import { getAdaptableToolPanelAgGridComponent } from '../View/Components/ToolPanel/AdaptableToolPanel';
|
|
39
|
+
import UIHelper from '../View/UIHelper';
|
|
40
|
+
import { ActionColumnRenderer, ReactActionColumnRenderer } from './ActionColumnRenderer';
|
|
41
|
+
import { agGridHelper } from './agGridHelper';
|
|
42
|
+
import { agGridMenuHelper } from './agGridMenuHelper';
|
|
47
43
|
// components
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
44
|
+
import { FilterWrapperFactory } from './FilterWrapper';
|
|
45
|
+
import { FloatingFilterWrapperFactory } from './FloatingFilterWrapper';
|
|
46
|
+
import { convertAdaptableStyleToCSS, convertCSSAbsoluteFontSizeToPt, getVariableColor, normalizeStyleForAgGrid, sanitizeStyle, } from '../Utilities/Helpers/StyleHelper';
|
|
47
|
+
import { AdaptableNumberEditor, ReactAdaptableNumberEditor } from './editors/AdaptableNumberEditor';
|
|
48
|
+
import { AdaptableDateEditor, ReactAdaptableDateEditor } from './editors/AdaptableDateEditor';
|
|
49
|
+
import { waitForCondition } from '../Utilities/waitForCondition';
|
|
50
|
+
import { MetamodelService } from '../Utilities/Services/MetamodelService';
|
|
51
|
+
import { AgGridModulesDocsLink, PrimaryKeyDocsLink, } from '../Utilities/Constants/DocumentationLinkConstants';
|
|
52
|
+
import { parseDateValue } from '../Utilities/Helpers/DateHelper';
|
|
53
|
+
import { ADAPTABLE_STATUS_PANEL } from '../PredefinedConfig/StatusBarState';
|
|
54
|
+
import { createAgStatusPanelComponent } from './createAgStatusPanelComponent';
|
|
55
|
+
import { AdaptableStatusBar } from '../View/StatusBar/AdaptableStatusBar';
|
|
56
|
+
import { RowEditService } from '../Utilities/Services/RowEditService';
|
|
57
|
+
import { weightedAverage } from './weightedAverage';
|
|
58
|
+
import { WEIGHTED_AVERAGE_AGG_FN_NAME, } from '../PredefinedConfig/Common/AggregationColumns';
|
|
59
|
+
import { renderReactRoot as defaultRenderReactRoot } from '../renderReactRoot';
|
|
60
|
+
import { ChartingService } from '../Utilities/Services/ChartingService';
|
|
61
|
+
import { ThemeService } from '../Utilities/Services/ThemeService';
|
|
62
|
+
import { AdaptableLogger } from './AdaptableLogger';
|
|
63
|
+
import { attachColumnTypes } from './attachAddaptableColumnTypes';
|
|
64
|
+
import { DateFormatter } from '../Utilities/Helpers/FormatHelper';
|
|
65
|
+
import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
|
|
66
|
+
import { CellPopupService } from '../Utilities/Services/CellPopupService';
|
|
67
|
+
import tinycolor from 'tinycolor2';
|
|
68
|
+
import env from '../env';
|
|
69
|
+
const publishTimestamp = Number(env.PUBLISH_TIMESTAMP);
|
|
72
70
|
const GROUP_PATH_SEPARATOR = '/';
|
|
73
71
|
// IMPORTANT - we need colId to be set in order for safeSetColDefs to work correctly
|
|
74
72
|
const assignColId = (colDef, logger) => {
|
|
@@ -87,14 +85,14 @@ const assignColId = (colDef, logger) => {
|
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
87
|
};
|
|
90
|
-
const RowNodeProto =
|
|
88
|
+
const RowNodeProto = RowNode.prototype;
|
|
91
89
|
const RowNode_dispatchLocalEvent = RowNodeProto.dispatchLocalEvent;
|
|
92
|
-
const GridApi_setColumnDefs =
|
|
90
|
+
const GridApi_setColumnDefs = GridApi.prototype.setColumnDefs;
|
|
93
91
|
['addCssClass', 'removeCssClass', 'containsCssClass', 'addOrRemoveCssClass'].forEach((methodName) => {
|
|
94
92
|
// @ts-ignore
|
|
95
|
-
const CssClassManager_originalMethod =
|
|
93
|
+
const CssClassManager_originalMethod = CssClassManager.prototype[methodName];
|
|
96
94
|
// @ts-ignore
|
|
97
|
-
|
|
95
|
+
CssClassManager.prototype[methodName] = function () {
|
|
98
96
|
return this.getGui() ? CssClassManager_originalMethod.apply(this, arguments) : undefined;
|
|
99
97
|
};
|
|
100
98
|
});
|
|
@@ -111,7 +109,7 @@ RowNodeProto.dispatchLocalEvent = function (event) {
|
|
|
111
109
|
// starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
|
|
112
110
|
const rowNodeApi = (_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _a === void 0 ? void 0 : _a.gridApi;
|
|
113
111
|
if (!rowNodeApi) {
|
|
114
|
-
|
|
112
|
+
AdaptableLogger.consoleErrorBase(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
|
|
115
113
|
}
|
|
116
114
|
return rowNodeApi;
|
|
117
115
|
};
|
|
@@ -150,7 +148,7 @@ const forEachColumn = (cols, fn, parentColGroup) => {
|
|
|
150
148
|
});
|
|
151
149
|
};
|
|
152
150
|
const adaptableInstances = {};
|
|
153
|
-
class Adaptable {
|
|
151
|
+
export class Adaptable {
|
|
154
152
|
get isLive() {
|
|
155
153
|
return this.isInitialised && !this.isDestroyed;
|
|
156
154
|
}
|
|
@@ -164,7 +162,7 @@ class Adaptable {
|
|
|
164
162
|
static init(adaptableOptions, agGridConfig) {
|
|
165
163
|
var _a;
|
|
166
164
|
if (!((_a = agGridConfig === null || agGridConfig === void 0 ? void 0 : agGridConfig.modules) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
167
|
-
|
|
165
|
+
AdaptableLogger.consoleErrorBase(`No AG Grid modules were provided, thus limiting AdapTables features significantly!\n\nRead further info here:${AgGridModulesDocsLink}`);
|
|
168
166
|
}
|
|
169
167
|
return Adaptable.initInternal(adaptableOptions, Object.assign({}, agGridConfig));
|
|
170
168
|
}
|
|
@@ -225,7 +223,7 @@ class Adaptable {
|
|
|
225
223
|
}
|
|
226
224
|
}
|
|
227
225
|
static collectInstance(adaptable) {
|
|
228
|
-
adaptable._id = adaptable.adaptableOptions.adaptableId ||
|
|
226
|
+
adaptable._id = adaptable.adaptableOptions.adaptableId || createUuid();
|
|
229
227
|
adaptableInstances[adaptable._id] = adaptable;
|
|
230
228
|
}
|
|
231
229
|
static forEachAdaptable(fn) {
|
|
@@ -268,7 +266,7 @@ class Adaptable {
|
|
|
268
266
|
};
|
|
269
267
|
this._adaptableReady = false;
|
|
270
268
|
this.isDestroyed = false;
|
|
271
|
-
this.renderReactRoot = (node, container) => (
|
|
269
|
+
this.renderReactRoot = (node, container) => defaultRenderReactRoot(node, container);
|
|
272
270
|
this.isPluginLoaded = (pluginId) => {
|
|
273
271
|
const plugins = this.adaptableOptions.plugins || [];
|
|
274
272
|
for (let i = 0, len = plugins.length; i < len; i++) {
|
|
@@ -282,34 +280,34 @@ class Adaptable {
|
|
|
282
280
|
this.isAgGridReady = () => {
|
|
283
281
|
var _a, _b;
|
|
284
282
|
const waitTimeout = (_b = (_a = this.adaptableOptions.containerOptions) === null || _a === void 0 ? void 0 : _a.agGridContainerWaitTimeout) !== null && _b !== void 0 ? _b : 60000;
|
|
285
|
-
return
|
|
283
|
+
return waitForCondition(() => !!this.gridOptions.api, waitTimeout);
|
|
286
284
|
};
|
|
287
285
|
// debounced methods
|
|
288
|
-
this.debouncedSetColumnIntoStore = (
|
|
286
|
+
this.debouncedSetColumnIntoStore = debounce(() => {
|
|
289
287
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
290
288
|
return;
|
|
291
289
|
}
|
|
292
290
|
this.updateColumnsIntoStore();
|
|
293
|
-
},
|
|
294
|
-
this.debouncedSaveGridLayout = (
|
|
291
|
+
}, HALF_SECOND);
|
|
292
|
+
this.debouncedSaveGridLayout = debounce(() => {
|
|
295
293
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
296
294
|
return;
|
|
297
295
|
}
|
|
298
296
|
this.updateLayoutFromGrid();
|
|
299
|
-
},
|
|
300
|
-
this.debouncedSetSelectedCells = (
|
|
297
|
+
}, HALF_SECOND);
|
|
298
|
+
this.debouncedSetSelectedCells = debounce(() => {
|
|
301
299
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
302
300
|
return;
|
|
303
301
|
}
|
|
304
302
|
this.setSelectedCells();
|
|
305
303
|
}, 250);
|
|
306
|
-
this.debouncedSetSelectedRows = (
|
|
304
|
+
this.debouncedSetSelectedRows = debounce(() => {
|
|
307
305
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
308
306
|
return;
|
|
309
307
|
}
|
|
310
308
|
this.setSelectedRows();
|
|
311
|
-
},
|
|
312
|
-
this.debouncedFilterGrid = (
|
|
309
|
+
}, HALF_SECOND);
|
|
310
|
+
this.debouncedFilterGrid = debounce((callback = () => { }) => {
|
|
313
311
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
314
312
|
return;
|
|
315
313
|
}
|
|
@@ -317,7 +315,7 @@ class Adaptable {
|
|
|
317
315
|
if (callback) {
|
|
318
316
|
callback();
|
|
319
317
|
}
|
|
320
|
-
},
|
|
318
|
+
}, HALF_SECOND);
|
|
321
319
|
/**
|
|
322
320
|
* This creates a clone of the current column definitions. If config.removeEmpty is true, will also remove empty column groups
|
|
323
321
|
*
|
|
@@ -359,7 +357,7 @@ class Adaptable {
|
|
|
359
357
|
// the 'old' constructor which takes an Adaptable adaptable object
|
|
360
358
|
// this is still used internally but should not be used externally as a preference
|
|
361
359
|
async init(adaptableOptions, runtimeConfig, _staticInit) {
|
|
362
|
-
this.logger = new
|
|
360
|
+
this.logger = new AdaptableLogger(adaptableOptions.adaptableId || String(Date.now()));
|
|
363
361
|
const perfAdaptableInit = this.logger.beginPerf(`Adaptable init()`);
|
|
364
362
|
if (runtimeConfig.variant) {
|
|
365
363
|
this.variant = runtimeConfig.variant;
|
|
@@ -372,19 +370,19 @@ class Adaptable {
|
|
|
372
370
|
!!!!!!! Use const api = await Adaptable.init(adaptableOptions) instead.
|
|
373
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!`);
|
|
374
372
|
}
|
|
375
|
-
this.emitter = new
|
|
373
|
+
this.emitter = new Emitter();
|
|
376
374
|
this.runtimeConfig = runtimeConfig;
|
|
377
375
|
this.gridOptions = this.runtimeConfig.gridOptions;
|
|
378
376
|
this._rawAdaptableOptions = adaptableOptions;
|
|
379
377
|
// we create AdaptableOptions by merging the values provided by the user with the defaults (where no value has been set)
|
|
380
|
-
this.adaptableOptions =
|
|
378
|
+
this.adaptableOptions = AdaptableHelper.assignAdaptableOptions(adaptableOptions);
|
|
381
379
|
if (this.hasAutogeneratedPrimaryKey()) {
|
|
382
380
|
this.logger
|
|
383
381
|
.warn(`Autogenerated primary key (adaptableOptions.autogeneratedPrimaryKey = TRUE) should be used only as a last resort,
|
|
384
382
|
when no unique column is available, as it limits some Adaptable functionalities!
|
|
385
383
|
|
|
386
|
-
For more details see: ${
|
|
387
|
-
this.adaptableOptions.primaryKey =
|
|
384
|
+
For more details see: ${PrimaryKeyDocsLink}`);
|
|
385
|
+
this.adaptableOptions.primaryKey = AUTOGENERATED_PK_COLUMN;
|
|
388
386
|
}
|
|
389
387
|
Adaptable.collectInstance(this);
|
|
390
388
|
if (this.gridOptions.allowContextMenuWithControlKey === undefined) {
|
|
@@ -395,13 +393,13 @@ class Adaptable {
|
|
|
395
393
|
this.forPlugins((plugin) => plugin.afterInitOptions(this, this.adaptableOptions));
|
|
396
394
|
this.registerAdaptableAggFuncs();
|
|
397
395
|
// get the api ready
|
|
398
|
-
this.api = new
|
|
396
|
+
this.api = new AdaptableApiImpl(this);
|
|
399
397
|
this.forPlugins((plugin) => plugin.afterInitApi(this, this.api));
|
|
400
398
|
// data source needs to be created early
|
|
401
|
-
this.DataService = new
|
|
399
|
+
this.DataService = new DataService(this);
|
|
402
400
|
// set up the ag Grid helper and menu helper
|
|
403
|
-
this.agGridHelper = new
|
|
404
|
-
this.agGridMenuHelper = new
|
|
401
|
+
this.agGridHelper = new agGridHelper(this, this.gridOptions);
|
|
402
|
+
this.agGridMenuHelper = new agGridMenuHelper(this, this.gridOptions);
|
|
405
403
|
// Build the default group sort comparator - will get custom sort values (but not functions) in real time
|
|
406
404
|
// TODO: if a custom 'aggFunc' property is defined (see setupColumnAggFunc()), it won't be evaluated
|
|
407
405
|
if (this.adaptableOptions.groupingOptions.autoOrderGroupedColumns) {
|
|
@@ -418,20 +416,21 @@ class Adaptable {
|
|
|
418
416
|
this.initStore();
|
|
419
417
|
// create the services
|
|
420
418
|
this.LicenseService = this.initLicenseService();
|
|
421
|
-
this.ChartingService = new
|
|
422
|
-
this.ThemeService = new
|
|
423
|
-
this.ValidationService = new
|
|
424
|
-
this.ReportService = new
|
|
425
|
-
this.ModuleService = new
|
|
426
|
-
this.CalculatedColumnExpressionService = new
|
|
427
|
-
this.EntitlementService = new
|
|
428
|
-
this.QueryLanguageService = new
|
|
429
|
-
this.AlertService = new
|
|
430
|
-
this.TeamSharingService = new
|
|
431
|
-
this.Fdc3Service = new
|
|
419
|
+
this.ChartingService = new ChartingService(this.api);
|
|
420
|
+
this.ThemeService = new ThemeService(this.api);
|
|
421
|
+
this.ValidationService = new ValidationService(this.api);
|
|
422
|
+
this.ReportService = new ReportService(this.api);
|
|
423
|
+
this.ModuleService = new ModuleService(this.api);
|
|
424
|
+
this.CalculatedColumnExpressionService = new CalculatedColumnExpressionService(this.api);
|
|
425
|
+
this.EntitlementService = new EntitlementService(this.api);
|
|
426
|
+
this.QueryLanguageService = new QueryLanguageService(this.api);
|
|
427
|
+
this.AlertService = new AlertService(this.api);
|
|
428
|
+
this.TeamSharingService = new TeamSharingService(this.api);
|
|
429
|
+
this.Fdc3Service = new Fdc3Service(this.api);
|
|
430
|
+
this.CellPopupService = new CellPopupService(this.api);
|
|
432
431
|
// @ts-ignore
|
|
433
|
-
this.RowEditService = new
|
|
434
|
-
this.MetamodelService = new
|
|
432
|
+
this.RowEditService = new RowEditService(this.api);
|
|
433
|
+
this.MetamodelService = new MetamodelService(() => this.api.optionsApi.getAdaptableOptions());
|
|
435
434
|
// validate the provided AdaptableOptions
|
|
436
435
|
this.MetamodelService.validateAdaptableOptionsValues();
|
|
437
436
|
this.forPlugins((plugin) => plugin.afterInitServices(this));
|
|
@@ -444,14 +443,14 @@ class Adaptable {
|
|
|
444
443
|
this.gridOptions.api.__adaptable = this;
|
|
445
444
|
}
|
|
446
445
|
this.gridOptions.columnTypes = this.gridOptions.columnTypes || {};
|
|
447
|
-
|
|
446
|
+
attachColumnTypes(this.gridOptions);
|
|
448
447
|
if (this.gridOptions.columnTypes.abColDefNumber.cellEditor === undefined) {
|
|
449
448
|
this.gridOptions.columnTypes.abColDefNumber.cellEditor =
|
|
450
|
-
this.variant === 'react' ?
|
|
449
|
+
this.variant === 'react' ? ReactAdaptableNumberEditor : AdaptableNumberEditor;
|
|
451
450
|
}
|
|
452
451
|
if (this.gridOptions.columnTypes.abColDefDate.cellEditor === undefined) {
|
|
453
452
|
this.gridOptions.columnTypes.abColDefDate.cellEditor =
|
|
454
|
-
this.variant === 'react' ?
|
|
453
|
+
this.variant === 'react' ? ReactAdaptableDateEditor : AdaptableDateEditor;
|
|
455
454
|
}
|
|
456
455
|
return this.initializeAgGrid().then((initialized) => {
|
|
457
456
|
if (!initialized) {
|
|
@@ -484,7 +483,7 @@ class Adaptable {
|
|
|
484
483
|
const perfInitInternalGridLogic = this.logger.beginPerf('InitInternalGridLogic');
|
|
485
484
|
this.initInternalGridLogic();
|
|
486
485
|
perfInitInternalGridLogic.end();
|
|
487
|
-
|
|
486
|
+
AdaptableHelper.checkValidPrimaryKey(this);
|
|
488
487
|
}, (e) => {
|
|
489
488
|
this.logger.error('Failed to Init Modules : ', e);
|
|
490
489
|
// for now we initialize the grid even if initialising Modules has failed (perhaps revisit this?)
|
|
@@ -500,16 +499,16 @@ class Adaptable {
|
|
|
500
499
|
}
|
|
501
500
|
if (this.abContainerElement != null) {
|
|
502
501
|
this.abContainerElement.innerHTML = '';
|
|
503
|
-
this.unmountReactRoot = this.renderReactRoot(
|
|
502
|
+
this.unmountReactRoot = this.renderReactRoot(AdaptableApp({ Adaptable: this }), this.abContainerElement);
|
|
504
503
|
}
|
|
505
504
|
// create debounce methods that take a time based on user settings
|
|
506
|
-
this.throttleFilterOnEditDataChange = (
|
|
505
|
+
this.throttleFilterOnEditDataChange = throttle(
|
|
507
506
|
// the extra function is to make sure we have a reference to ag-grid-api
|
|
508
507
|
() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.columnFilterOptions.filterActionOnUserDataChange.throttleDelay, {
|
|
509
508
|
trailing: true,
|
|
510
509
|
leading: false,
|
|
511
510
|
});
|
|
512
|
-
this.throttleFilterOnTickingDataChange = (
|
|
511
|
+
this.throttleFilterOnTickingDataChange = throttle(() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.columnFilterOptions.filterActionOnExternalDataChange.throttleDelay, {
|
|
513
512
|
trailing: true,
|
|
514
513
|
leading: false,
|
|
515
514
|
});
|
|
@@ -554,12 +553,12 @@ class Adaptable {
|
|
|
554
553
|
}
|
|
555
554
|
initStore() {
|
|
556
555
|
const perfNewAdaptableStore = this.logger.beginPerf(`new AdaptableStore()`);
|
|
557
|
-
this.adaptableStore = new
|
|
556
|
+
this.adaptableStore = new AdaptableStore(this, this.isAgGridReady());
|
|
558
557
|
perfNewAdaptableStore.end();
|
|
559
558
|
this.adaptableStore.onAny((eventName, data) => {
|
|
560
559
|
this.performAudit(data.action, data.state, data.newState);
|
|
561
560
|
this.forPlugins((plugin) => plugin.onStoreEvent(eventName, data, this.adaptableStore));
|
|
562
|
-
if (eventName ==
|
|
561
|
+
if (eventName == INIT_STATE) {
|
|
563
562
|
const perfInitState = this.logger.beginPerf('InitState');
|
|
564
563
|
const perfUpdateOldConfig = this.logger.beginPerf('updateOldConfig()');
|
|
565
564
|
this.adaptableModules.forEach((m) => m.updateOldConfig());
|
|
@@ -627,7 +626,7 @@ class Adaptable {
|
|
|
627
626
|
const adaptableSideBarDef = this.createAdaptableSideBarDef();
|
|
628
627
|
if (!!adaptableSideBarDef) {
|
|
629
628
|
this.gridOptions.components = this.gridOptions.components || {};
|
|
630
|
-
this.gridOptions.components.AdaptableToolPanel =
|
|
629
|
+
this.gridOptions.components.AdaptableToolPanel = getAdaptableToolPanelAgGridComponent(this);
|
|
631
630
|
}
|
|
632
631
|
if (this.agGridHelper.isSideBarDefObject(adaptableSideBarDef)) {
|
|
633
632
|
this.setGridOptionsProperty('sideBar', () => {
|
|
@@ -683,7 +682,7 @@ class Adaptable {
|
|
|
683
682
|
if ((_a = this.runtimeConfig.modules) === null || _a === void 0 ? void 0 : _a.length) {
|
|
684
683
|
gridParams = { modules: this.runtimeConfig.modules };
|
|
685
684
|
}
|
|
686
|
-
grid = new
|
|
685
|
+
grid = new Grid(agGridContainer, this.gridOptions, gridParams);
|
|
687
686
|
perfAgGridInstance.end();
|
|
688
687
|
// add our adaptable object to the grid options api object
|
|
689
688
|
// this is VERY useful for when we need to access Adaptable inside of agGrid only functions
|
|
@@ -781,12 +780,12 @@ class Adaptable {
|
|
|
781
780
|
this.setGridOptionsProperty('statusBar', (originalStatusBar) => {
|
|
782
781
|
var _a, _b;
|
|
783
782
|
const statusPanels = (_b = ((_a = originalStatusBar === null || originalStatusBar === void 0 ? void 0 : originalStatusBar.statusPanels) !== null && _a !== void 0 ? _a : [])) === null || _b === void 0 ? void 0 : _b.map((statusPanel) => {
|
|
784
|
-
if (statusPanel.statusPanel ===
|
|
783
|
+
if (statusPanel.statusPanel === ADAPTABLE_STATUS_PANEL) {
|
|
785
784
|
adaptableStatusPanelKeys.push(statusPanel.key);
|
|
786
785
|
const context = {
|
|
787
786
|
Key: statusPanel.key,
|
|
788
787
|
};
|
|
789
|
-
return Object.assign(Object.assign({}, statusPanel), { statusPanel:
|
|
788
|
+
return Object.assign(Object.assign({}, statusPanel), { statusPanel: createAgStatusPanelComponent(AdaptableStatusBar, this, context) });
|
|
790
789
|
}
|
|
791
790
|
return statusPanel;
|
|
792
791
|
});
|
|
@@ -806,21 +805,21 @@ class Adaptable {
|
|
|
806
805
|
}
|
|
807
806
|
filterOnEditDataChange() {
|
|
808
807
|
if (this.adaptableOptions.columnFilterOptions.filterActionOnUserDataChange.applyFilter ==
|
|
809
|
-
|
|
808
|
+
FilterOnDataChangeOptions.Always) {
|
|
810
809
|
this.gridOptions.api.onFilterChanged();
|
|
811
810
|
}
|
|
812
811
|
else if (this.adaptableOptions.columnFilterOptions.filterActionOnUserDataChange.applyFilter ==
|
|
813
|
-
|
|
812
|
+
FilterOnDataChangeOptions.Throttle) {
|
|
814
813
|
this.throttleFilterOnEditDataChange();
|
|
815
814
|
}
|
|
816
815
|
}
|
|
817
816
|
filterOnTickingDataChange() {
|
|
818
817
|
if (this.adaptableOptions.columnFilterOptions.filterActionOnExternalDataChange.applyFilter ==
|
|
819
|
-
|
|
818
|
+
FilterOnDataChangeOptions.Always) {
|
|
820
819
|
this.gridOptions.api.onFilterChanged();
|
|
821
820
|
}
|
|
822
821
|
else if (this.adaptableOptions.columnFilterOptions.filterActionOnExternalDataChange.applyFilter ==
|
|
823
|
-
|
|
822
|
+
FilterOnDataChangeOptions.Throttle) {
|
|
824
823
|
this.throttleFilterOnTickingDataChange();
|
|
825
824
|
}
|
|
826
825
|
}
|
|
@@ -993,7 +992,7 @@ class Adaptable {
|
|
|
993
992
|
* Color should always be in bounds, it should not overflow.
|
|
994
993
|
* If the value is out of range, it shoul set the maximum/minimum color.
|
|
995
994
|
*/
|
|
996
|
-
colValue = (
|
|
995
|
+
colValue = clamp(params.value, minColumnValue, maxColumnValue);
|
|
997
996
|
}
|
|
998
997
|
else {
|
|
999
998
|
return style;
|
|
@@ -1020,7 +1019,7 @@ class Adaptable {
|
|
|
1020
1019
|
if (reverseGradient) {
|
|
1021
1020
|
alpha = 1 - alpha;
|
|
1022
1021
|
}
|
|
1023
|
-
const preparedColor =
|
|
1022
|
+
const preparedColor = getVariableColor(cellBackColor);
|
|
1024
1023
|
// if no range match, do not apply color (black in this case)
|
|
1025
1024
|
if (cellBackColor) {
|
|
1026
1025
|
style.backgroundColor = tinycolor(preparedColor).setAlpha(alpha).toRgbString();
|
|
@@ -1089,7 +1088,7 @@ class Adaptable {
|
|
|
1089
1088
|
return this.convertAdaptableStyleToCSS(highlightCell);
|
|
1090
1089
|
}
|
|
1091
1090
|
return {
|
|
1092
|
-
backgroundColor:
|
|
1091
|
+
backgroundColor: UIHelper.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
1093
1092
|
};
|
|
1094
1093
|
}
|
|
1095
1094
|
}
|
|
@@ -1117,7 +1116,7 @@ class Adaptable {
|
|
|
1117
1116
|
return typeof highlightRow === 'object'
|
|
1118
1117
|
? this.convertAdaptableStyleToCSS(highlightRow)
|
|
1119
1118
|
: {
|
|
1120
|
-
backgroundColor:
|
|
1119
|
+
backgroundColor: UIHelper.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
1121
1120
|
};
|
|
1122
1121
|
}
|
|
1123
1122
|
return null;
|
|
@@ -1149,6 +1148,20 @@ class Adaptable {
|
|
|
1149
1148
|
}
|
|
1150
1149
|
return 'ab-Cell-Note';
|
|
1151
1150
|
}
|
|
1151
|
+
getCommentCellClassName(gridCell, params) {
|
|
1152
|
+
if (!this.api.internalApi.getModuleService().isModuleAvailable('Comments')) {
|
|
1153
|
+
return;
|
|
1154
|
+
}
|
|
1155
|
+
const position = {
|
|
1156
|
+
PrimaryKeyValue: gridCell.primaryKeyValue,
|
|
1157
|
+
ColumnId: gridCell.column.columnId,
|
|
1158
|
+
};
|
|
1159
|
+
const cellComments = this.api.commentApi.getCommentThread(position);
|
|
1160
|
+
if (!cellComments) {
|
|
1161
|
+
return undefined;
|
|
1162
|
+
}
|
|
1163
|
+
return 'ab-Cell-Comment';
|
|
1164
|
+
}
|
|
1152
1165
|
getFlashingCellClass(gridcell, params) {
|
|
1153
1166
|
var _a, _b, _c;
|
|
1154
1167
|
const primaryKey = params.node.aggData ? params.node.id : gridcell.primaryKeyValue;
|
|
@@ -1201,7 +1214,7 @@ class Adaptable {
|
|
|
1201
1214
|
}
|
|
1202
1215
|
getQuickSearchCellStyle() {
|
|
1203
1216
|
const quickSearchStyle = this.api.quickSearchApi.getQuickSearchStyle();
|
|
1204
|
-
if (!quickSearchStyle ||
|
|
1217
|
+
if (!quickSearchStyle || StringExtensions.IsNotNullOrEmpty(quickSearchStyle.ClassName)) {
|
|
1205
1218
|
return undefined;
|
|
1206
1219
|
}
|
|
1207
1220
|
return this.convertAdaptableStyleToCSS(quickSearchStyle);
|
|
@@ -1248,7 +1261,7 @@ class Adaptable {
|
|
|
1248
1261
|
}
|
|
1249
1262
|
isQuickSearchActive(gridCell, params) {
|
|
1250
1263
|
let quickSearchValue = this.api.quickSearchApi.getQuickSearchValue();
|
|
1251
|
-
if (
|
|
1264
|
+
if (StringExtensions.IsNullOrEmpty(quickSearchValue)) {
|
|
1252
1265
|
return false;
|
|
1253
1266
|
}
|
|
1254
1267
|
if (gridCell.column.isExcludedFromQuickSearch) {
|
|
@@ -1277,7 +1290,7 @@ class Adaptable {
|
|
|
1277
1290
|
const i = ignoreCase ? String(quickSearchValue).toLocaleLowerCase() : String(quickSearchValue);
|
|
1278
1291
|
const applyQuickSearchFunction = this.adaptableOptions.quickSearchOptions.runBespokeQuickSearch;
|
|
1279
1292
|
if (applyQuickSearchFunction) {
|
|
1280
|
-
const quickSearchContext = Object.assign(Object.assign({},
|
|
1293
|
+
const quickSearchContext = Object.assign(Object.assign({}, createBaseContext(this.api)), { gridCell, quickSearchValue: quickSearchValue });
|
|
1281
1294
|
return applyQuickSearchFunction(quickSearchContext);
|
|
1282
1295
|
}
|
|
1283
1296
|
return displayValue.indexOf(i) !== -1;
|
|
@@ -1463,7 +1476,7 @@ class Adaptable {
|
|
|
1463
1476
|
colDef === null || colDef === void 0 ? void 0 : colDef.defaultAggFunc) !== null && _e !== void 0 ? _e : 'sum';
|
|
1464
1477
|
}
|
|
1465
1478
|
else if (adaptableAggFunc && adaptableAggFunc.type === 'weightedAverage') {
|
|
1466
|
-
aggFunc =
|
|
1479
|
+
aggFunc = WEIGHTED_AVERAGE_AGG_FN_NAME;
|
|
1467
1480
|
}
|
|
1468
1481
|
else if (typeof aggFuncFromLayout === 'string') {
|
|
1469
1482
|
aggFunc = aggFuncFromLayout;
|
|
@@ -1478,7 +1491,7 @@ class Adaptable {
|
|
|
1478
1491
|
newColState.sort = null;
|
|
1479
1492
|
newColState.sortIndex = null;
|
|
1480
1493
|
}
|
|
1481
|
-
isChanged = isChanged || !(
|
|
1494
|
+
isChanged = isChanged || !lodashIsEqual(newColState, oldColState);
|
|
1482
1495
|
return newColState;
|
|
1483
1496
|
})
|
|
1484
1497
|
.filter((x) => !!x);
|
|
@@ -1620,7 +1633,7 @@ class Adaptable {
|
|
|
1620
1633
|
layout = this.api.layoutApi.getCurrentLayout();
|
|
1621
1634
|
}
|
|
1622
1635
|
if (this.api.layoutApi.internalApi.areExpandedRowGroupsSavedInLayouts() &&
|
|
1623
|
-
|
|
1636
|
+
ArrayExtensions.IsNotNullOrEmpty(layout.ExpandedRowGroupValues)) {
|
|
1624
1637
|
this.expandRowGroupsForValues(layout.ExpandedRowGroupValues);
|
|
1625
1638
|
}
|
|
1626
1639
|
if (this.adaptableOptions.layoutOptions.displayRowGroups === 'expanded') {
|
|
@@ -1797,7 +1810,7 @@ class Adaptable {
|
|
|
1797
1810
|
// dont perform row selection in pivot mode
|
|
1798
1811
|
return undefined;
|
|
1799
1812
|
}
|
|
1800
|
-
if (
|
|
1813
|
+
if (ArrayExtensions.IsNotNullOrEmpty(nodes)) {
|
|
1801
1814
|
nodes.forEach((node) => {
|
|
1802
1815
|
const rowInfo = {
|
|
1803
1816
|
isMaster: !!(node.master != null && node.master == true),
|
|
@@ -1889,9 +1902,9 @@ class Adaptable {
|
|
|
1889
1902
|
if (gridCell && gridCell.rowNode !== distinctValuesParams.skipRowNode) {
|
|
1890
1903
|
if (gridCell.rawValue == undefined &&
|
|
1891
1904
|
this.adaptableOptions.columnFilterOptions.valuesFilterOptions.includeBlankFilterValues) {
|
|
1892
|
-
gridCell.rawValue =
|
|
1893
|
-
gridCell.displayValue =
|
|
1894
|
-
gridCell.normalisedValue =
|
|
1905
|
+
gridCell.rawValue = BLANK_DISTINCT_COLUMN_VALUE;
|
|
1906
|
+
gridCell.displayValue = BLANK_DISTINCT_COLUMN_VALUE;
|
|
1907
|
+
gridCell.normalisedValue = BLANK_DISTINCT_COLUMN_VALUE;
|
|
1895
1908
|
}
|
|
1896
1909
|
gridCells.push(gridCell);
|
|
1897
1910
|
}
|
|
@@ -1900,7 +1913,7 @@ class Adaptable {
|
|
|
1900
1913
|
return gridCells;
|
|
1901
1914
|
}
|
|
1902
1915
|
getUniqueGridCells(column, gridCells) {
|
|
1903
|
-
let uniqueVals = (
|
|
1916
|
+
let uniqueVals = uniqBy(gridCells, (dataItem) => {
|
|
1904
1917
|
const value = dataItem.rawValue;
|
|
1905
1918
|
if (value instanceof Date) {
|
|
1906
1919
|
return value.toISOString();
|
|
@@ -1908,7 +1921,7 @@ class Adaptable {
|
|
|
1908
1921
|
return value;
|
|
1909
1922
|
});
|
|
1910
1923
|
if (column.dataType == 'String' && this.api.predicateApi.useCaseSensitivity()) {
|
|
1911
|
-
uniqueVals = (
|
|
1924
|
+
uniqueVals = uniqBy(uniqueVals, (d) => d.displayValue.toLowerCase());
|
|
1912
1925
|
}
|
|
1913
1926
|
return uniqueVals.slice(0, this.adaptableOptions.columnFilterOptions.valuesFilterOptions.maxFilterValuesToDisplay);
|
|
1914
1927
|
}
|
|
@@ -1916,7 +1929,7 @@ class Adaptable {
|
|
|
1916
1929
|
var _a;
|
|
1917
1930
|
let gridCells = [];
|
|
1918
1931
|
const permittedValues = (_a = distinctValuesParams.permittedValues) !== null && _a !== void 0 ? _a : this.api.userInterfaceApi.getPermittedValuesForColumn(column);
|
|
1919
|
-
if (
|
|
1932
|
+
if (ArrayExtensions.IsNotNullOrEmpty(permittedValues)) {
|
|
1920
1933
|
gridCells = permittedValues.map((pv) => {
|
|
1921
1934
|
return {
|
|
1922
1935
|
rawValue: pv,
|
|
@@ -1934,7 +1947,7 @@ class Adaptable {
|
|
|
1934
1947
|
}
|
|
1935
1948
|
getDistinctValuesForColumn(column, distinctValuesParams) {
|
|
1936
1949
|
let gridCells = this.getGridCellsForPermittedValues(column, distinctValuesParams);
|
|
1937
|
-
if (
|
|
1950
|
+
if (ArrayExtensions.IsNullOrEmpty(gridCells)) {
|
|
1938
1951
|
gridCells = this.getDistinctGridCellsForColumn(column, distinctValuesParams);
|
|
1939
1952
|
}
|
|
1940
1953
|
return this.getUniqueGridCells(column, gridCells);
|
|
@@ -2009,7 +2022,7 @@ class Adaptable {
|
|
|
2009
2022
|
// NB. this currently contains a small bug as we dont check for visibility so if using permitted values then ALL are returned :(
|
|
2010
2023
|
const abColumn = this.api.columnApi.getColumnWithColumnId(columnId);
|
|
2011
2024
|
const permittedValuesForColumn = this.api.userInterfaceApi.getPermittedValuesForColumn(abColumn);
|
|
2012
|
-
if (
|
|
2025
|
+
if (ArrayExtensions.IsNotNullOrEmpty(permittedValuesForColumn)) {
|
|
2013
2026
|
permittedValuesForColumn.forEach((pv) => {
|
|
2014
2027
|
permittedMap.set(pv, {
|
|
2015
2028
|
rawValue: pv,
|
|
@@ -2055,7 +2068,7 @@ class Adaptable {
|
|
|
2055
2068
|
// otherwise they would appear in the filter dropdown etc....
|
|
2056
2069
|
if (rowNode && !this.isGroupRowNode(rowNode)) {
|
|
2057
2070
|
const returnValue = this.getGridCellFromRowNode(rowNode, columnId);
|
|
2058
|
-
if (
|
|
2071
|
+
if (Helper.objectExists(returnValue)) {
|
|
2059
2072
|
return returnValue;
|
|
2060
2073
|
}
|
|
2061
2074
|
}
|
|
@@ -2178,7 +2191,7 @@ class Adaptable {
|
|
|
2178
2191
|
}
|
|
2179
2192
|
if (dataType === 'Number') {
|
|
2180
2193
|
// empty string or space should not be converted to 0
|
|
2181
|
-
return typeof rawValue !== 'number' &&
|
|
2194
|
+
return typeof rawValue !== 'number' && StringExtensions.IsNumeric(rawValue)
|
|
2182
2195
|
? Number(rawValue)
|
|
2183
2196
|
: rawValue;
|
|
2184
2197
|
}
|
|
@@ -2186,7 +2199,7 @@ class Adaptable {
|
|
|
2186
2199
|
return typeof rawValue !== 'boolean' ? Boolean(rawValue) : rawValue;
|
|
2187
2200
|
}
|
|
2188
2201
|
if (dataType === 'Date') {
|
|
2189
|
-
return rawValue instanceof Date ? rawValue :
|
|
2202
|
+
return rawValue instanceof Date ? rawValue : parseDateValue(rawValue);
|
|
2190
2203
|
}
|
|
2191
2204
|
return rawValue;
|
|
2192
2205
|
}
|
|
@@ -2281,12 +2294,12 @@ class Adaptable {
|
|
|
2281
2294
|
return this.gridOptions.api.getRenderedNodes();
|
|
2282
2295
|
}
|
|
2283
2296
|
selectNodes(rowNodes, clearSelection) {
|
|
2284
|
-
if (
|
|
2297
|
+
if (ArrayExtensions.IsNotNullOrEmpty(rowNodes)) {
|
|
2285
2298
|
rowNodes.forEach((node) => this.selectNode(node, clearSelection));
|
|
2286
2299
|
}
|
|
2287
2300
|
}
|
|
2288
2301
|
deSelectNodes(rowNodes, clearSelection) {
|
|
2289
|
-
if (
|
|
2302
|
+
if (ArrayExtensions.IsNotNullOrEmpty(rowNodes)) {
|
|
2290
2303
|
rowNodes.forEach((node) => this.deSelectNode(node, clearSelection));
|
|
2291
2304
|
}
|
|
2292
2305
|
}
|
|
@@ -2386,20 +2399,20 @@ class Adaptable {
|
|
|
2386
2399
|
];
|
|
2387
2400
|
}
|
|
2388
2401
|
getColDefsForFreeTextColumns() {
|
|
2389
|
-
const defaultFreeTextColumnSettings =
|
|
2402
|
+
const defaultFreeTextColumnSettings = CreateEmptyFreeTextColumn().FreeTextColumnSettings;
|
|
2390
2403
|
return this.api.freeTextColumnApi.getFreeTextColumns().map((freeTextColumn) => {
|
|
2391
2404
|
var _a;
|
|
2392
2405
|
const freeTextColumnSettings = Object.assign(Object.assign({}, defaultFreeTextColumnSettings), freeTextColumn.FreeTextColumnSettings);
|
|
2393
2406
|
const dataTypeEditor = freeTextColumnSettings.DataType === 'Number'
|
|
2394
|
-
?
|
|
2407
|
+
? AdaptableNumberEditor
|
|
2395
2408
|
: freeTextColumnSettings.DataType === 'Date'
|
|
2396
|
-
?
|
|
2409
|
+
? AdaptableDateEditor
|
|
2397
2410
|
: null;
|
|
2398
2411
|
const columnTypes = [
|
|
2399
|
-
|
|
2412
|
+
AB_SPECIAL_COLUMN,
|
|
2400
2413
|
this.agGridHelper.getAgGridDataType(freeTextColumnSettings.DataType),
|
|
2401
2414
|
];
|
|
2402
|
-
if (
|
|
2415
|
+
if (ArrayExtensions.IsNotNullOrEmpty((_a = freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.FreeTextColumnSettings) === null || _a === void 0 ? void 0 : _a.ColumnTypes)) {
|
|
2403
2416
|
columnTypes.push(...freeTextColumn.FreeTextColumnSettings.ColumnTypes);
|
|
2404
2417
|
}
|
|
2405
2418
|
const newColDef = {
|
|
@@ -2529,11 +2542,11 @@ class Adaptable {
|
|
|
2529
2542
|
return [
|
|
2530
2543
|
{
|
|
2531
2544
|
headerName: '',
|
|
2532
|
-
colId:
|
|
2545
|
+
colId: ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2533
2546
|
hide: false,
|
|
2534
2547
|
editable: false,
|
|
2535
2548
|
// 15px is the icon width + left&right padding + left&right border
|
|
2536
|
-
width: Math.max(actionButtons.length * (
|
|
2549
|
+
width: Math.max(actionButtons.length * (UIHelper.getSimpleButtonPaddingWidth() * 2 + 15) + 2,
|
|
2537
2550
|
// If the width of the column is to small, the width will not be applied
|
|
2538
2551
|
// this triggers the setLayout an infinite loop because the width read from the grid is always different
|
|
2539
2552
|
40),
|
|
@@ -2549,9 +2562,9 @@ class Adaptable {
|
|
|
2549
2562
|
pinned: this.adaptableOptions.actionRowOptions.actionRowButtonOptions.position === 'pinnedRight'
|
|
2550
2563
|
? 'right'
|
|
2551
2564
|
: 'left',
|
|
2552
|
-
cellRenderer: this.variant === 'react' ?
|
|
2553
|
-
cellClass:
|
|
2554
|
-
type: [
|
|
2565
|
+
cellRenderer: this.variant === 'react' ? ReactActionColumnRenderer : ActionColumnRenderer,
|
|
2566
|
+
cellClass: ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2567
|
+
type: [AB_SPECIAL_COLUMN, 'abColDefObject'],
|
|
2555
2568
|
},
|
|
2556
2569
|
];
|
|
2557
2570
|
}
|
|
@@ -2575,8 +2588,8 @@ class Adaptable {
|
|
|
2575
2588
|
filter: false,
|
|
2576
2589
|
sortable: false,
|
|
2577
2590
|
enableRowGroup: false,
|
|
2578
|
-
cellRenderer: this.variant === 'react' ?
|
|
2579
|
-
type: [
|
|
2591
|
+
cellRenderer: this.variant === 'react' ? ReactActionColumnRenderer : ActionColumnRenderer,
|
|
2592
|
+
type: [AB_SPECIAL_COLUMN, 'abColDefObject'],
|
|
2580
2593
|
};
|
|
2581
2594
|
this.logger.info('Setting up Action Column: ' + actionColumn.columnId);
|
|
2582
2595
|
return newColDef;
|
|
@@ -2587,7 +2600,7 @@ class Adaptable {
|
|
|
2587
2600
|
const specialColDefs = this.getColDefsForSpecialColumns();
|
|
2588
2601
|
const isSpecialColDef = (colDef) => {
|
|
2589
2602
|
const { type } = colDef;
|
|
2590
|
-
if (type ===
|
|
2603
|
+
if (type === AB_SPECIAL_COLUMN || (Array.isArray(type) && type.includes(AB_SPECIAL_COLUMN))) {
|
|
2591
2604
|
return true;
|
|
2592
2605
|
}
|
|
2593
2606
|
return false;
|
|
@@ -2645,7 +2658,7 @@ class Adaptable {
|
|
|
2645
2658
|
this.setLayout();
|
|
2646
2659
|
}
|
|
2647
2660
|
getColDefsForCalculatedColumns() {
|
|
2648
|
-
const defaultCalculatedColumnSettings =
|
|
2661
|
+
const defaultCalculatedColumnSettings = CreateEmptyCalculatedColumn().CalculatedColumnSettings;
|
|
2649
2662
|
return this.api.calculatedColumnApi.getCalculatedColumns().map((calculatedColumn) => {
|
|
2650
2663
|
const calculatedColumnSettings = Object.assign(Object.assign({}, defaultCalculatedColumnSettings), calculatedColumn.CalculatedColumnSettings);
|
|
2651
2664
|
if (!calculatedColumnSettings.DataType) {
|
|
@@ -2653,10 +2666,10 @@ class Adaptable {
|
|
|
2653
2666
|
this.CalculatedColumnExpressionService.getCalculatedColumnDataType(calculatedColumn.Query);
|
|
2654
2667
|
}
|
|
2655
2668
|
const columnTypes = [
|
|
2656
|
-
|
|
2669
|
+
AB_SPECIAL_COLUMN,
|
|
2657
2670
|
this.agGridHelper.getAgGridDataType(calculatedColumnSettings.DataType),
|
|
2658
2671
|
];
|
|
2659
|
-
if (
|
|
2672
|
+
if (ArrayExtensions.IsNotNullOrEmpty(calculatedColumnSettings.ColumnTypes)) {
|
|
2660
2673
|
columnTypes.push(...calculatedColumnSettings.ColumnTypes);
|
|
2661
2674
|
}
|
|
2662
2675
|
const isExternalEvaluation = !this.api.expressionApi.internalApi.evaluateExpressionInAdaptableQL('CalculatedColumn', calculatedColumn, this.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query));
|
|
@@ -2667,7 +2680,7 @@ class Adaptable {
|
|
|
2667
2680
|
}
|
|
2668
2681
|
// if the grid data is NOT client side, we can aggregate only simple scalar expression (which depend on row data, not on other rows)
|
|
2669
2682
|
if (this.api.gridApi.getAgGridRowModelType() !== 'clientSide' &&
|
|
2670
|
-
|
|
2683
|
+
StringExtensions.IsNotNullOrEmpty(calculatedColumn.Query.AggregatedScalarExpression)) {
|
|
2671
2684
|
return (_b = params.data) === null || _b === void 0 ? void 0 : _b[calculatedColumn.ColumnId];
|
|
2672
2685
|
}
|
|
2673
2686
|
return this.CalculatedColumnExpressionService.evaluateCalculatedColumnQuery(calculatedColumn, params.node);
|
|
@@ -2751,15 +2764,15 @@ class Adaptable {
|
|
|
2751
2764
|
destroy(config) {
|
|
2752
2765
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
2753
2766
|
if (this.gridOptions && this.gridOptions.api) {
|
|
2754
|
-
this.gridOptions.api.removeEventListener(
|
|
2755
|
-
this.gridOptions.api.removeEventListener(
|
|
2756
|
-
this.gridOptions.api.removeEventListener(
|
|
2757
|
-
this.gridOptions.api.removeEventListener(
|
|
2758
|
-
this.gridOptions.api.removeEventListener(
|
|
2759
|
-
this.gridOptions.api.removeEventListener(
|
|
2760
|
-
this.gridOptions.api.removeEventListener(
|
|
2761
|
-
this.gridOptions.api.removeEventListener(
|
|
2762
|
-
this.gridOptions.api.removeEventListener(
|
|
2767
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_FIRST_DATA_RENDERED, this.listenerFirstDataRendered);
|
|
2768
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.listenerPivotModeChanged);
|
|
2769
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_COLUMN_PIVOT_CHANGED, this.listenerPivotChanged);
|
|
2770
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_CELL_EDITING_STARTED, this.listenerCellEditingStarted);
|
|
2771
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.listenerColumnRowGroupChanged);
|
|
2772
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_RANGE_SELECTION_CHANGED, this.listenerRangeSelectionChanged);
|
|
2773
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_COLUMN_RESIZED, this.listenerColumnResized);
|
|
2774
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_SORT_CHANGED, this.listenerSortChanged);
|
|
2775
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_MODEL_UPDATED, this.listenerModelUpdated);
|
|
2763
2776
|
this.gridOptions.api.removeGlobalListener(this.listenerGlobalSetRowSelection);
|
|
2764
2777
|
this.gridOptions.api.removeGlobalListener(this.listenerGlobalColumnEventsThatTriggerStateChange);
|
|
2765
2778
|
this.gridOptions.api.removeGlobalListener(this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave);
|
|
@@ -2976,12 +2989,12 @@ class Adaptable {
|
|
|
2976
2989
|
* Action: Set Columns in store and filter grid
|
|
2977
2990
|
*/
|
|
2978
2991
|
const columnEventsThatTriggersStateChange = [
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2992
|
+
Events.EVENT_COLUMN_MOVED,
|
|
2993
|
+
Events.EVENT_GRID_COLUMNS_CHANGED,
|
|
2994
|
+
Events.EVENT_COLUMN_EVERYTHING_CHANGED,
|
|
2995
|
+
Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
|
|
2996
|
+
Events.EVENT_COLUMN_VISIBLE,
|
|
2997
|
+
Events.EVENT_NEW_COLUMNS_LOADED,
|
|
2985
2998
|
];
|
|
2986
2999
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalColumnEventsThatTriggerStateChange = (type) => {
|
|
2987
3000
|
if (columnEventsThatTriggersStateChange.indexOf(type) > -1) {
|
|
@@ -2992,7 +3005,7 @@ class Adaptable {
|
|
|
2992
3005
|
* Use Case: User has started inline editing but its distabled in Action Row Options
|
|
2993
3006
|
* Action: Stop editing
|
|
2994
3007
|
*/
|
|
2995
|
-
this.gridOptions.api.addEventListener(
|
|
3008
|
+
this.gridOptions.api.addEventListener(Events.EVENT_CELL_EDITING_STARTED, (this.listenerCellEditingStarted = () => {
|
|
2996
3009
|
var _a;
|
|
2997
3010
|
if ((_a = this.adaptableOptions.actionRowOptions) === null || _a === void 0 ? void 0 : _a.disableInlineEditing)
|
|
2998
3011
|
this.gridOptions.api.stopEditing();
|
|
@@ -3003,7 +3016,7 @@ class Adaptable {
|
|
|
3003
3016
|
* Action2: Ensure that we have set column data types
|
|
3004
3017
|
* Note: Deals with scenario where the data is provided to AdapTable after grid has been setup
|
|
3005
3018
|
*/
|
|
3006
|
-
this.gridOptions.api.addEventListener(
|
|
3019
|
+
this.gridOptions.api.addEventListener(Events.EVENT_FIRST_DATA_RENDERED, (this.listenerFirstDataRendered = () => {
|
|
3007
3020
|
this.checkColumnsDataTypeSet();
|
|
3008
3021
|
this.api.calculatedColumnApi.refreshAggregatedCalculatedColumns();
|
|
3009
3022
|
this.setLayout();
|
|
@@ -3013,7 +3026,7 @@ class Adaptable {
|
|
|
3013
3026
|
* Action 1: Autosize pivot columns when entering pivot mode (if autosize pivot in Layout is true)
|
|
3014
3027
|
* Action 2: Set pivot mode on / off in api as necessary
|
|
3015
3028
|
*/
|
|
3016
|
-
this.gridOptions.api.addEventListener(
|
|
3029
|
+
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, (this.listenerPivotModeChanged = (params) => {
|
|
3017
3030
|
if (params.type == 'columnPivotModeChanged' &&
|
|
3018
3031
|
params.columnApi != null &&
|
|
3019
3032
|
params.columnApi.columnController != null &&
|
|
@@ -3031,7 +3044,7 @@ class Adaptable {
|
|
|
3031
3044
|
* Use Case: A pivot column has changed
|
|
3032
3045
|
* Action: Autosize pivot columns (if autosize pivot in Layout is true)
|
|
3033
3046
|
*/
|
|
3034
|
-
this.gridOptions.api.addEventListener(
|
|
3047
|
+
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_PIVOT_CHANGED, (this.listenerPivotChanged = (params) => {
|
|
3035
3048
|
if (params.type == 'columnPivotChanged' &&
|
|
3036
3049
|
params.columnApi != null &&
|
|
3037
3050
|
params.columnApi.columnController != null &&
|
|
@@ -3046,13 +3059,13 @@ class Adaptable {
|
|
|
3046
3059
|
* Action: Save the Layout (on a debounce)
|
|
3047
3060
|
*/
|
|
3048
3061
|
const columnEventsThatTriggersAutoLayoutSave = [
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3062
|
+
Events.EVENT_COLUMN_PINNED,
|
|
3063
|
+
Events.EVENT_COLUMN_PIVOT_CHANGED,
|
|
3064
|
+
Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,
|
|
3065
|
+
Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
|
|
3066
|
+
Events.EVENT_SORT_CHANGED,
|
|
3067
|
+
Events.EVENT_COLUMN_ROW_GROUP_CHANGED,
|
|
3068
|
+
Events.EVENT_COLUMN_VALUE_CHANGED,
|
|
3056
3069
|
];
|
|
3057
3070
|
// ADD filter event
|
|
3058
3071
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave = (type) => {
|
|
@@ -3062,8 +3075,8 @@ class Adaptable {
|
|
|
3062
3075
|
}));
|
|
3063
3076
|
// Save Layout if Display Row Groups is "dynamic"
|
|
3064
3077
|
const rowGroupEventsThatTriggersAutoLayoutSave = [
|
|
3065
|
-
|
|
3066
|
-
|
|
3078
|
+
Events.EVENT_ROW_GROUP_OPENED,
|
|
3079
|
+
Events.EVENT_EXPAND_COLLAPSE_ALL,
|
|
3067
3080
|
];
|
|
3068
3081
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalRowGroupEventsThatTriggerAutoLayoutSave = (type) => {
|
|
3069
3082
|
if (rowGroupEventsThatTriggersAutoLayoutSave.indexOf(type) > -1) {
|
|
@@ -3076,7 +3089,7 @@ class Adaptable {
|
|
|
3076
3089
|
* Use Case: Column Row Grouping changes and 'restoreUngroupedColumns' is true
|
|
3077
3090
|
* Action: Make the column invisiblel
|
|
3078
3091
|
*/
|
|
3079
|
-
this.gridOptions.api.addEventListener(
|
|
3092
|
+
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_ROW_GROUP_CHANGED, (this.listenerColumnRowGroupChanged = (params) => {
|
|
3080
3093
|
var _a, _b;
|
|
3081
3094
|
if (this.api.internalApi.isGridInPivotMode()) {
|
|
3082
3095
|
return;
|
|
@@ -3090,7 +3103,7 @@ class Adaptable {
|
|
|
3090
3103
|
* Action 1: Save the Layout (on a debounce)
|
|
3091
3104
|
* Action 2: Emit the internal ColumnResized event - used by Sparkline Column (in Charts)
|
|
3092
3105
|
*/
|
|
3093
|
-
this.gridOptions.api.addEventListener(
|
|
3106
|
+
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_RESIZED, (this.listenerColumnResized = (params) => {
|
|
3094
3107
|
if (params.finished == true && params.type == 'columnResized' && params.column) {
|
|
3095
3108
|
this.debouncedSaveGridLayout();
|
|
3096
3109
|
}
|
|
@@ -3100,12 +3113,12 @@ class Adaptable {
|
|
|
3100
3113
|
* Action: Set Selected Rows (on a debeounce)
|
|
3101
3114
|
*/
|
|
3102
3115
|
const columnEventsThatTriggerSetRowSelection = [
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3116
|
+
Events.EVENT_ROW_GROUP_OPENED,
|
|
3117
|
+
Events.EVENT_SELECTION_CHANGED,
|
|
3118
|
+
Events.EVENT_ROW_SELECTED,
|
|
3106
3119
|
];
|
|
3107
3120
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalSetRowSelection = (type) => {
|
|
3108
|
-
if (
|
|
3121
|
+
if (ArrayExtensions.ContainsItem(columnEventsThatTriggerSetRowSelection, type)) {
|
|
3109
3122
|
this.debouncedSetSelectedRows();
|
|
3110
3123
|
}
|
|
3111
3124
|
}));
|
|
@@ -3113,7 +3126,7 @@ class Adaptable {
|
|
|
3113
3126
|
* Use Case: User has selected a range of cells
|
|
3114
3127
|
* Action: Set Selected Cells (on a debounce)
|
|
3115
3128
|
*/
|
|
3116
|
-
this.gridOptions.api.addEventListener(
|
|
3129
|
+
this.gridOptions.api.addEventListener(Events.EVENT_RANGE_SELECTION_CHANGED, (this.listenerRangeSelectionChanged = (params) => {
|
|
3117
3130
|
if (params.finished == true) {
|
|
3118
3131
|
this.debouncedSetSelectedCells();
|
|
3119
3132
|
}
|
|
@@ -3123,7 +3136,7 @@ class Adaptable {
|
|
|
3123
3136
|
* Action1: Update AdapTable Sort Info
|
|
3124
3137
|
* Action2: Set Selected Cells (on a debounce)
|
|
3125
3138
|
*/
|
|
3126
|
-
this.gridOptions.api.addEventListener(
|
|
3139
|
+
this.gridOptions.api.addEventListener(Events.EVENT_SORT_CHANGED, (this.listenerSortChanged = () => {
|
|
3127
3140
|
this.onSortChanged();
|
|
3128
3141
|
this.debouncedSetSelectedCells();
|
|
3129
3142
|
this._emit('SortChanged');
|
|
@@ -3133,7 +3146,7 @@ class Adaptable {
|
|
|
3133
3146
|
* Use Case: Model has updated
|
|
3134
3147
|
* Action: If user has set to see grouping totals as header create a pinned row (bit of a hack)
|
|
3135
3148
|
*/
|
|
3136
|
-
this.gridOptions.api.addEventListener(
|
|
3149
|
+
this.gridOptions.api.addEventListener(Events.EVENT_MODEL_UPDATED, (this.listenerModelUpdated = (params) => {
|
|
3137
3150
|
if (showGroupingTotalsAsHeader) {
|
|
3138
3151
|
if (params && params.api) {
|
|
3139
3152
|
const pinnedData = params.api.getPinnedTopRow(0);
|
|
@@ -3149,18 +3162,18 @@ class Adaptable {
|
|
|
3149
3162
|
}
|
|
3150
3163
|
}));
|
|
3151
3164
|
const eventsThatTriggerChartingChanges = [
|
|
3152
|
-
|
|
3165
|
+
Events.EVENT_CHART_CREATED,
|
|
3153
3166
|
/** Chart Range selection has changed */
|
|
3154
|
-
|
|
3167
|
+
Events.EVENT_CHART_RANGE_SELECTION_CHANGED,
|
|
3155
3168
|
/** Chart Options have changed */
|
|
3156
|
-
|
|
3169
|
+
Events.EVENT_CHART_OPTIONS_CHANGED,
|
|
3157
3170
|
/** Chart was destroyed */
|
|
3158
|
-
|
|
3171
|
+
Events.EVENT_CHART_DESTROYED,
|
|
3159
3172
|
];
|
|
3160
3173
|
const chartingModule = this.ModuleService.getModuleById('Charting');
|
|
3161
3174
|
if (chartingModule.isModuleAvailable()) {
|
|
3162
3175
|
this.gridOptions.api.addGlobalListener((type, params) => {
|
|
3163
|
-
if (
|
|
3176
|
+
if (ArrayExtensions.ContainsItem(eventsThatTriggerChartingChanges, type)) {
|
|
3164
3177
|
this.ChartingService.onChartModelChange(this.getChartModels(), type, params);
|
|
3165
3178
|
}
|
|
3166
3179
|
});
|
|
@@ -3195,8 +3208,8 @@ class Adaptable {
|
|
|
3195
3208
|
return true;
|
|
3196
3209
|
}
|
|
3197
3210
|
const columnFilters = this.api.columnFilterApi.getActiveColumnFilters();
|
|
3198
|
-
const isColumnFiltersActive =
|
|
3199
|
-
const isGridFilterActive =
|
|
3211
|
+
const isColumnFiltersActive = ArrayExtensions.IsNotNullOrEmpty(columnFilters);
|
|
3212
|
+
const isGridFilterActive = StringExtensions.IsNotNullOrEmpty(this.api.gridFilterApi.getCurrentGridFilterExpression());
|
|
3200
3213
|
return (isColumnFiltersActive ||
|
|
3201
3214
|
isGridFilterActive ||
|
|
3202
3215
|
// it means that originalIsExternalFilterPresent will be called so we reinit that collection
|
|
@@ -3214,11 +3227,11 @@ class Adaptable {
|
|
|
3214
3227
|
if (currentGridFilter) {
|
|
3215
3228
|
const evaluateGridFilterOnClient = this.api.expressionApi.internalApi.evaluateExpressionInAdaptableQL('GridFilter', undefined, currentGridFilter);
|
|
3216
3229
|
if (evaluateGridFilterOnClient) {
|
|
3217
|
-
const isCurrentGridFilterValid = this.api.expressionApi.isValidBooleanExpression(currentGridFilter,
|
|
3230
|
+
const isCurrentGridFilterValid = this.api.expressionApi.isValidBooleanExpression(currentGridFilter, GridFilterModuleId, `Invalid Grid Filter '${currentGridFilter}'`);
|
|
3218
3231
|
if (!isCurrentGridFilterValid ||
|
|
3219
3232
|
!this.api.internalApi
|
|
3220
3233
|
.getQueryLanguageService()
|
|
3221
|
-
.evaluateBooleanExpression(currentGridFilter,
|
|
3234
|
+
.evaluateBooleanExpression(currentGridFilter, GridFilterModuleId, node)) {
|
|
3222
3235
|
return false;
|
|
3223
3236
|
}
|
|
3224
3237
|
}
|
|
@@ -3262,7 +3275,7 @@ class Adaptable {
|
|
|
3262
3275
|
var _a;
|
|
3263
3276
|
const columnFilters = this.api.columnFilterApi.getActiveColumnFilters();
|
|
3264
3277
|
const activeFilters = (_a = columnFilters === null || columnFilters === void 0 ? void 0 : columnFilters.filter) === null || _a === void 0 ? void 0 : _a.call(columnFilters, (columnFilter) => this.api.columnFilterApi.isColumnFilterActive(columnFilter));
|
|
3265
|
-
const isFilterActive =
|
|
3278
|
+
const isFilterActive = ArrayExtensions.IsNotNullOrEmpty(activeFilters);
|
|
3266
3279
|
const columnsWithActiveFilters = {};
|
|
3267
3280
|
if (isFilterActive) {
|
|
3268
3281
|
// used in particular at init time to show the filter icon correctly
|
|
@@ -3441,7 +3454,7 @@ class Adaptable {
|
|
|
3441
3454
|
const isQuickSearchActive = hasQuickSearchStyle && this.isQuickSearchActive(gridCell, params);
|
|
3442
3455
|
const userDefined = typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle;
|
|
3443
3456
|
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, userDefined), this.getReadOnlyCellStyle(gridCell, params)), this.getEditableCellStyle(gridCell, params)), this.getFormatColumnAndStyledColumnCellStyle(gridCell, params)), (isQuickSearchActive ? quickSearchStyle : {})), this.getAlertCellStyle(gridCell, params)), this.getFlashingCellStyle(gridCell, params)), this.getCellHighlightStyle(gridCell, params));
|
|
3444
|
-
return
|
|
3457
|
+
return normalizeStyleForAgGrid(result);
|
|
3445
3458
|
};
|
|
3446
3459
|
return cellStyle;
|
|
3447
3460
|
});
|
|
@@ -3450,7 +3463,7 @@ class Adaptable {
|
|
|
3450
3463
|
this.setColDefProperty(col, 'cellClass', (userCellClass) => {
|
|
3451
3464
|
const formatColumns = this.api.formatColumnApi.internalApi.getFormatColumnWithStyleClassNameForColumn(abColumn);
|
|
3452
3465
|
const quickSearchStyleClassName = this.api.quickSearchApi.getQuickSearchStyle().ClassName;
|
|
3453
|
-
const hasQuickSearchStyleClassName =
|
|
3466
|
+
const hasQuickSearchStyleClassName = StringExtensions.IsNotNullOrEmpty(quickSearchStyleClassName);
|
|
3454
3467
|
const cellClass = (params) => {
|
|
3455
3468
|
const gridCell = this.getGridCellFromRowNode(params.node, abColumn.columnId);
|
|
3456
3469
|
// if a Visual Data export is in progress, we are interested only in the Excel Style Class
|
|
@@ -3469,6 +3482,7 @@ class Adaptable {
|
|
|
3469
3482
|
const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(colId);
|
|
3470
3483
|
const hasStyledColumn = !!styledColumn && !styledColumn.IsSuspended;
|
|
3471
3484
|
const noteClassName = this.getNoteCellClassName(gridCell, params);
|
|
3485
|
+
const commentsClassName = this.getCommentCellClassName(gridCell, params);
|
|
3472
3486
|
const returnValue = [
|
|
3473
3487
|
typeof userCellClass === 'function' ? userCellClass(params) : userCellClass,
|
|
3474
3488
|
!hasStyledColumn && formatColumns.length
|
|
@@ -3480,6 +3494,7 @@ class Adaptable {
|
|
|
3480
3494
|
highlightAlertClassName,
|
|
3481
3495
|
flashingClassName,
|
|
3482
3496
|
noteClassName,
|
|
3497
|
+
commentsClassName,
|
|
3483
3498
|
]
|
|
3484
3499
|
// we flatten the array because some rules ('userCellClass' etc) might return a string[]
|
|
3485
3500
|
.flat()
|
|
@@ -3504,7 +3519,7 @@ class Adaptable {
|
|
|
3504
3519
|
setupColumnCellEditor({ colId, col }) {
|
|
3505
3520
|
const adaptableColumn = this.api.columnApi.getColumnWithColumnId(colId);
|
|
3506
3521
|
const editLookUpItem = this.api.userInterfaceApi.getEditLookUpItemForColumn(adaptableColumn);
|
|
3507
|
-
const hasRichSelectCellEditor = this.isAgGridModulePresent(
|
|
3522
|
+
const hasRichSelectCellEditor = this.isAgGridModulePresent(ModuleNames.RichSelectModule);
|
|
3508
3523
|
this.setColDefProperty(col, 'cellEditor', () => {
|
|
3509
3524
|
if (editLookUpItem) {
|
|
3510
3525
|
return hasRichSelectCellEditor ? 'agRichSelectCellEditor' : 'agSelectCellEditor';
|
|
@@ -3547,7 +3562,7 @@ class Adaptable {
|
|
|
3547
3562
|
const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(abColumn.columnId);
|
|
3548
3563
|
if (styledColumn && !styledColumn.IsSuspended) {
|
|
3549
3564
|
if (styledColumn.SparkLineStyle) {
|
|
3550
|
-
const sparklineOptions = (
|
|
3565
|
+
const sparklineOptions = merge({}, userDefined === null || userDefined === void 0 ? void 0 : userDefined.sparklineOptions, styledColumn.SparkLineStyle.options);
|
|
3551
3566
|
return Object.assign(Object.assign({}, userDefined), { sparklineOptions });
|
|
3552
3567
|
}
|
|
3553
3568
|
}
|
|
@@ -3572,7 +3587,7 @@ class Adaptable {
|
|
|
3572
3587
|
returnValue = params.value;
|
|
3573
3588
|
}
|
|
3574
3589
|
if (textOptions.includes('PercentageValue')) {
|
|
3575
|
-
const clampedValue =
|
|
3590
|
+
const clampedValue = Helper.clamp(params.value, min, max);
|
|
3576
3591
|
const percentageValue = ((clampedValue - min) / (max - min)) * 100;
|
|
3577
3592
|
returnValue += ' ' + `(${percentageValue.toFixed(0)}%)`;
|
|
3578
3593
|
}
|
|
@@ -3660,7 +3675,7 @@ class Adaptable {
|
|
|
3660
3675
|
var _a;
|
|
3661
3676
|
// set the default to the AG Grid provided values
|
|
3662
3677
|
// from https://github.com/ag-grid/ag-grid/blob/v26.1.0/community-modules/core/src/ts/columns/columnModel.ts#L2515
|
|
3663
|
-
let resultHeaderName = userHeaderName !== null && userHeaderName !== void 0 ? userHeaderName :
|
|
3678
|
+
let resultHeaderName = userHeaderName !== null && userHeaderName !== void 0 ? userHeaderName : StringExtensions.CamelCaseToHumanText(col.getColDef().field);
|
|
3664
3679
|
const layoutCustomHeader = (_a = this.api.layoutApi.getCurrentLayout().ColumnHeadersMap) === null || _a === void 0 ? void 0 : _a[col.getColId()];
|
|
3665
3680
|
if (layoutCustomHeader) {
|
|
3666
3681
|
resultHeaderName = layoutCustomHeader;
|
|
@@ -3682,7 +3697,7 @@ class Adaptable {
|
|
|
3682
3697
|
return;
|
|
3683
3698
|
}
|
|
3684
3699
|
this.gridOptions.api.destroyFilter(col);
|
|
3685
|
-
return
|
|
3700
|
+
return FilterWrapperFactory(this);
|
|
3686
3701
|
});
|
|
3687
3702
|
}
|
|
3688
3703
|
setupColumnFloatingFilter({ col, colDef }) {
|
|
@@ -3692,7 +3707,7 @@ class Adaptable {
|
|
|
3692
3707
|
if (isFloatingFilterDisabled) {
|
|
3693
3708
|
return;
|
|
3694
3709
|
}
|
|
3695
|
-
return
|
|
3710
|
+
return FloatingFilterWrapperFactory(this);
|
|
3696
3711
|
});
|
|
3697
3712
|
this.setColDefProperty(col, 'floatingFilterComponentParams', () => {
|
|
3698
3713
|
if (isFloatingFilterDisabled) {
|
|
@@ -3849,7 +3864,7 @@ class Adaptable {
|
|
|
3849
3864
|
this.api.themeApi.applyCurrentTheme();
|
|
3850
3865
|
}
|
|
3851
3866
|
applyFinalRendering() {
|
|
3852
|
-
this.embedColumnMenu = this.isAgGridModulePresent(
|
|
3867
|
+
this.embedColumnMenu = this.isAgGridModulePresent(ModuleNames.MenuModule);
|
|
3853
3868
|
if (this.gridOptions.treeData && this.gridOptions.treeData == true) {
|
|
3854
3869
|
this.api.internalApi.setTreeModeOn();
|
|
3855
3870
|
}
|
|
@@ -3859,7 +3874,7 @@ class Adaptable {
|
|
|
3859
3874
|
this.agGridHelper.checkShouldClearExistingFiltersOrSearches();
|
|
3860
3875
|
}
|
|
3861
3876
|
isAgGridModulePresent(moduleName) {
|
|
3862
|
-
const standardAgGridRegistrationCheck =
|
|
3877
|
+
const standardAgGridRegistrationCheck = ModuleRegistry.__isRegistered(moduleName, this.gridOptions.gridId);
|
|
3863
3878
|
if (standardAgGridRegistrationCheck) {
|
|
3864
3879
|
return true;
|
|
3865
3880
|
}
|
|
@@ -3871,7 +3886,7 @@ class Adaptable {
|
|
|
3871
3886
|
// because of that we have to check ALL grid IDs to see if the module is registered
|
|
3872
3887
|
// TODO AFL: we should recheck this later, it seems AG Grid is already refactoring this faulty registration process
|
|
3873
3888
|
// @ts-ignore
|
|
3874
|
-
const gridModulesMap =
|
|
3889
|
+
const gridModulesMap = ModuleRegistry.gridModulesMap;
|
|
3875
3890
|
let allModulesMap = {};
|
|
3876
3891
|
Object.keys(gridModulesMap).forEach((gridId) => {
|
|
3877
3892
|
allModulesMap = Object.assign(Object.assign({}, allModulesMap), gridModulesMap[gridId]);
|
|
@@ -4018,7 +4033,7 @@ class Adaptable {
|
|
|
4018
4033
|
getFormatColumnExpressionStylesChanges(dataChangedScope, cellDataChangedInfos) {
|
|
4019
4034
|
const formatColumnsWithExpression = [];
|
|
4020
4035
|
formatColumnsWithExpression.push(...this.api.formatColumnApi.internalApi.getFormatColumnsWithExpression());
|
|
4021
|
-
if (
|
|
4036
|
+
if (ArrayExtensions.IsNullOrEmpty(formatColumnsWithExpression)) {
|
|
4022
4037
|
return;
|
|
4023
4038
|
}
|
|
4024
4039
|
cellDataChangedInfos.forEach((cellDataChangedInfo) => {
|
|
@@ -4058,7 +4073,7 @@ class Adaptable {
|
|
|
4058
4073
|
let columnComparison = this.api.styledColumnApi.internalApi.getColumnComparisonForStyledColumn(sc);
|
|
4059
4074
|
if (columnComparison) {
|
|
4060
4075
|
let affectedColumnIds = this.api.styledColumnApi.internalApi.getColumnIdsFromColumnComparison(columnComparison);
|
|
4061
|
-
if (
|
|
4076
|
+
if (ArrayExtensions.IsNotNullOrEmpty(affectedColumnIds)) {
|
|
4062
4077
|
cellDataChangedInfos.forEach((cellDataChangedInfo) => {
|
|
4063
4078
|
if (affectedColumnIds.includes(cellDataChangedInfo.column.columnId)) {
|
|
4064
4079
|
dataChangedScope.columnIds.add(sc.ColumnId);
|
|
@@ -4070,7 +4085,7 @@ class Adaptable {
|
|
|
4070
4085
|
}
|
|
4071
4086
|
checkChangedCellCurrentlySelected(cellDataChangedInfo) {
|
|
4072
4087
|
let selectedCellInfo = this.api.gridApi.getSelectedCellInfo();
|
|
4073
|
-
if (selectedCellInfo &&
|
|
4088
|
+
if (selectedCellInfo && ArrayExtensions.IsNotNullOrEmpty(selectedCellInfo.gridCells)) {
|
|
4074
4089
|
let matchingCell = selectedCellInfo.gridCells.find((gc) => gc.primaryKeyValue == cellDataChangedInfo.primaryKeyValue &&
|
|
4075
4090
|
gc.column == cellDataChangedInfo.column);
|
|
4076
4091
|
if (matchingCell) {
|
|
@@ -4078,7 +4093,7 @@ class Adaptable {
|
|
|
4078
4093
|
}
|
|
4079
4094
|
}
|
|
4080
4095
|
let selectedRowInfo = this.api.gridApi.getSelectedRowInfo();
|
|
4081
|
-
if (selectedRowInfo &&
|
|
4096
|
+
if (selectedRowInfo && ArrayExtensions.IsNotNullOrEmpty(selectedRowInfo.gridRows)) {
|
|
4082
4097
|
let matchingRow = selectedRowInfo.gridRows.find((gr) => gr.primaryKeyValue == cellDataChangedInfo.primaryKeyValue);
|
|
4083
4098
|
if (matchingRow) {
|
|
4084
4099
|
this.setSelectedRows();
|
|
@@ -4142,7 +4157,7 @@ class Adaptable {
|
|
|
4142
4157
|
this.gridOptions.api.onGroupExpandedOrCollapsed();
|
|
4143
4158
|
}
|
|
4144
4159
|
expandRowGroupsForValues(columnValues) {
|
|
4145
|
-
if (
|
|
4160
|
+
if (ArrayExtensions.IsNotNullOrEmpty(columnValues)) {
|
|
4146
4161
|
const expandedKeys = columnValues.reduce((acc, key) => {
|
|
4147
4162
|
acc[key] = true;
|
|
4148
4163
|
return acc;
|
|
@@ -4450,7 +4465,7 @@ class Adaptable {
|
|
|
4450
4465
|
}
|
|
4451
4466
|
getFirstGroupedColumn() {
|
|
4452
4467
|
let groupedColumns = this.gridOptions.columnApi.getRowGroupColumns();
|
|
4453
|
-
if (
|
|
4468
|
+
if (ArrayExtensions.IsNotNullOrEmpty(groupedColumns)) {
|
|
4454
4469
|
let groupedColumn = groupedColumns[0];
|
|
4455
4470
|
return this.api.columnApi.getColumnWithColumnId(groupedColumn.getColId());
|
|
4456
4471
|
}
|
|
@@ -4510,7 +4525,7 @@ class Adaptable {
|
|
|
4510
4525
|
return (this.gridOptions.rowSelection === 'single' || this.gridOptions.rowSelection === 'multiple');
|
|
4511
4526
|
}
|
|
4512
4527
|
isGridRangeSelectable() {
|
|
4513
|
-
let isRangeSelectionModuleRegistered = this.isAgGridModulePresent(
|
|
4528
|
+
let isRangeSelectionModuleRegistered = this.isAgGridModulePresent(ModuleNames.RangeSelectionModule);
|
|
4514
4529
|
return isRangeSelectionModuleRegistered && this.gridOptions.enableRangeSelection === true;
|
|
4515
4530
|
}
|
|
4516
4531
|
isGridGroupable() {
|
|
@@ -4609,6 +4624,7 @@ class Adaptable {
|
|
|
4609
4624
|
return this.getAgGridLightThemeName();
|
|
4610
4625
|
}
|
|
4611
4626
|
applyAdaptableTheme(theme) {
|
|
4627
|
+
theme = this.ThemeService.mapOsTheme(theme);
|
|
4612
4628
|
const themeName = typeof theme === 'string' ? theme : theme.Name;
|
|
4613
4629
|
const isSystemTheme = this.api.themeApi.internalApi.isSystemTheme(themeName);
|
|
4614
4630
|
const themeClassNamesToRemove = [];
|
|
@@ -4666,10 +4682,10 @@ class Adaptable {
|
|
|
4666
4682
|
const getAgGridLightThemeName = () => this.getAgGridLightThemeName();
|
|
4667
4683
|
const getAgGridDarkThemeName = () => getAgGridLightThemeName() + '-dark';
|
|
4668
4684
|
if (newTheme && (isSystemTheme || variantTheme)) {
|
|
4669
|
-
if ((variantTheme || themeName) ===
|
|
4685
|
+
if ((variantTheme || themeName) === LIGHT_THEME) {
|
|
4670
4686
|
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridLightThemeName();
|
|
4671
4687
|
}
|
|
4672
|
-
if ((variantTheme || themeName) ===
|
|
4688
|
+
if ((variantTheme || themeName) === DARK_THEME) {
|
|
4673
4689
|
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridDarkThemeName();
|
|
4674
4690
|
}
|
|
4675
4691
|
}
|
|
@@ -4704,7 +4720,7 @@ class Adaptable {
|
|
|
4704
4720
|
// MAC LIKE SCROLLBARS
|
|
4705
4721
|
if (this.adaptableOptions.userInterfaceOptions &&
|
|
4706
4722
|
this.adaptableOptions.userInterfaceOptions.useCustomMacLikeScrollbars &&
|
|
4707
|
-
(
|
|
4723
|
+
getScrollbarSize() > 0) {
|
|
4708
4724
|
el.classList.add('ab--custom-mac-like-scrollbars');
|
|
4709
4725
|
}
|
|
4710
4726
|
else {
|
|
@@ -4754,13 +4770,13 @@ class Adaptable {
|
|
|
4754
4770
|
return this.gridOptions.api;
|
|
4755
4771
|
}
|
|
4756
4772
|
canGenerateCharts() {
|
|
4757
|
-
return (this.isAgGridModulePresent(
|
|
4773
|
+
return (this.isAgGridModulePresent(ModuleNames.GridChartsModule) && this.gridOptions.enableCharts);
|
|
4758
4774
|
}
|
|
4759
4775
|
canDisplaySparklines() {
|
|
4760
|
-
return this.isAgGridModulePresent(
|
|
4776
|
+
return this.isAgGridModulePresent(ModuleNames.SparklinesModule);
|
|
4761
4777
|
}
|
|
4762
4778
|
canExportToExcel() {
|
|
4763
|
-
return this.isAgGridModulePresent(
|
|
4779
|
+
return this.isAgGridModulePresent(ModuleNames.ExcelExportModule);
|
|
4764
4780
|
}
|
|
4765
4781
|
exportToExcel(reportData, fileName) {
|
|
4766
4782
|
const columnDefs = reportData.columns.map((column) => ({
|
|
@@ -4800,7 +4816,7 @@ class Adaptable {
|
|
|
4800
4816
|
rowData: reportData.rows,
|
|
4801
4817
|
};
|
|
4802
4818
|
let gridParams = { modules: this.getAgGridRegisteredModules() };
|
|
4803
|
-
const grid = new
|
|
4819
|
+
const grid = new Grid(document.createElement('div'), gridOptions, gridParams);
|
|
4804
4820
|
gridOptions.api.exportDataAsExcel({
|
|
4805
4821
|
sheetName: 'Sheet 1',
|
|
4806
4822
|
fileName: fileName,
|
|
@@ -4894,7 +4910,7 @@ class Adaptable {
|
|
|
4894
4910
|
}
|
|
4895
4911
|
return result;
|
|
4896
4912
|
}, {}));
|
|
4897
|
-
const sanitizedAdaptableStyle =
|
|
4913
|
+
const sanitizedAdaptableStyle = sanitizeStyle(adaptableStyle);
|
|
4898
4914
|
if (Object.values(sanitizedAdaptableStyle).some((style) => style != null)) {
|
|
4899
4915
|
excelStyles.push(this.convertCSSToExcelStyle(sanitizedAdaptableStyle));
|
|
4900
4916
|
}
|
|
@@ -4923,7 +4939,7 @@ class Adaptable {
|
|
|
4923
4939
|
// we have to pass the date in the ISO format to Excel
|
|
4924
4940
|
// see https://www.ag-grid.com/javascript-data-grid/excel-export-data-types/#dates
|
|
4925
4941
|
// we can NOT use Date.toISOString() because we don't want the timezone corrections to kick in
|
|
4926
|
-
const isoFormattedValue =
|
|
4942
|
+
const isoFormattedValue = DateFormatter(normalisedValue, {
|
|
4927
4943
|
Pattern: `yyyy-MM-dd'T'HH:mm:ss.SSS`,
|
|
4928
4944
|
});
|
|
4929
4945
|
if (isoFormattedValue) {
|
|
@@ -4993,11 +5009,11 @@ class Adaptable {
|
|
|
4993
5009
|
});
|
|
4994
5010
|
}
|
|
4995
5011
|
convertAdaptableStyleToCSS(style) {
|
|
4996
|
-
return
|
|
5012
|
+
return convertAdaptableStyleToCSS(style);
|
|
4997
5013
|
}
|
|
4998
5014
|
convertCSSToExcelStyle(style) {
|
|
4999
5015
|
const getHexColor = (color) => {
|
|
5000
|
-
const preparedColor =
|
|
5016
|
+
const preparedColor = getVariableColor(color);
|
|
5001
5017
|
const t = tinycolor(preparedColor);
|
|
5002
5018
|
const a = t.getAlpha();
|
|
5003
5019
|
return tinycolor.mix(tinycolor('white'), t, a * 100).toHexString();
|
|
@@ -5024,7 +5040,7 @@ class Adaptable {
|
|
|
5024
5040
|
}
|
|
5025
5041
|
if (style.textAlign) {
|
|
5026
5042
|
result.alignment = {
|
|
5027
|
-
horizontal:
|
|
5043
|
+
horizontal: StringExtensions.CapitaliseFirstLetter(style.textAlign),
|
|
5028
5044
|
};
|
|
5029
5045
|
}
|
|
5030
5046
|
if (style.color != null) {
|
|
@@ -5052,7 +5068,7 @@ class Adaptable {
|
|
|
5052
5068
|
if (!result.font) {
|
|
5053
5069
|
result.font = {};
|
|
5054
5070
|
}
|
|
5055
|
-
result.font.size =
|
|
5071
|
+
result.font.size = convertCSSAbsoluteFontSizeToPt(style.fontSize);
|
|
5056
5072
|
}
|
|
5057
5073
|
return result;
|
|
5058
5074
|
}
|
|
@@ -5092,23 +5108,23 @@ class Adaptable {
|
|
|
5092
5108
|
}
|
|
5093
5109
|
addSyntheticPrimaryKey(rowData = []) {
|
|
5094
5110
|
for (let i = 0; i < rowData.length; i++) {
|
|
5095
|
-
rowData[i][
|
|
5111
|
+
rowData[i][AUTOGENERATED_PK_COLUMN] = createUuid();
|
|
5096
5112
|
}
|
|
5097
5113
|
}
|
|
5098
5114
|
// add a synthetic PK only if missing (useful in case of updating row data)
|
|
5099
5115
|
addSyntheticPrimaryKeyIfMissing(rowData = []) {
|
|
5100
|
-
this.adaptableOptions.primaryKey =
|
|
5116
|
+
this.adaptableOptions.primaryKey = AUTOGENERATED_PK_COLUMN;
|
|
5101
5117
|
for (let i = 0; i < rowData.length; i++) {
|
|
5102
|
-
if (!rowData[i][
|
|
5103
|
-
rowData[i][
|
|
5118
|
+
if (!rowData[i][AUTOGENERATED_PK_COLUMN]) {
|
|
5119
|
+
rowData[i][AUTOGENERATED_PK_COLUMN] = createUuid();
|
|
5104
5120
|
}
|
|
5105
5121
|
}
|
|
5106
5122
|
}
|
|
5107
5123
|
initLicenseService() {
|
|
5108
5124
|
const globalObject = typeof globalThis !== 'undefined' ? globalThis : window;
|
|
5109
5125
|
const licenseKey = globalObject.ADAPTABLE_LICENSE_KEY || this.api.optionsApi.getLicenseKey();
|
|
5110
|
-
return new
|
|
5111
|
-
publishedAt:
|
|
5126
|
+
return new LicenseService(this, licenseKey, {
|
|
5127
|
+
publishedAt: publishTimestamp,
|
|
5112
5128
|
});
|
|
5113
5129
|
}
|
|
5114
5130
|
showCharts(chartsDefinitions, chartContainer) {
|
|
@@ -5175,14 +5191,14 @@ class Adaptable {
|
|
|
5175
5191
|
registerAdaptableAggFuncs() {
|
|
5176
5192
|
this.setGridOptionsProperty('aggFuncs', (originalAggFuncs) => {
|
|
5177
5193
|
const aggregationFunctions = originalAggFuncs || {};
|
|
5178
|
-
aggregationFunctions[
|
|
5194
|
+
aggregationFunctions[WEIGHTED_AVERAGE_AGG_FN_NAME] = (params) => {
|
|
5179
5195
|
const columnId = params.column.getColId();
|
|
5180
5196
|
const adaptableAggFunc = this.getActiveAdaptableAggFuncForCol(columnId);
|
|
5181
5197
|
if (!adaptableAggFunc) {
|
|
5182
5198
|
return undefined;
|
|
5183
5199
|
}
|
|
5184
5200
|
if (adaptableAggFunc.type === 'weightedAverage') {
|
|
5185
|
-
return
|
|
5201
|
+
return weightedAverage(params, params.colDef.colId, adaptableAggFunc.weightedColumnId);
|
|
5186
5202
|
}
|
|
5187
5203
|
return undefined;
|
|
5188
5204
|
};
|
|
@@ -5195,7 +5211,7 @@ class Adaptable {
|
|
|
5195
5211
|
mapAggregationColumnsFromGrid(aggFuncFromGrid, currentLayout) {
|
|
5196
5212
|
return Object.entries(aggFuncFromGrid).reduce((acc, [colId, agg]) => {
|
|
5197
5213
|
const adaptableAggFunc = this.getActiveAdaptableAggFuncForCol(colId);
|
|
5198
|
-
if ((adaptableAggFunc === null || adaptableAggFunc === void 0 ? void 0 : adaptableAggFunc.type) === 'weightedAverage' && agg ===
|
|
5214
|
+
if ((adaptableAggFunc === null || adaptableAggFunc === void 0 ? void 0 : adaptableAggFunc.type) === 'weightedAverage' && agg === WEIGHTED_AVERAGE_AGG_FN_NAME) {
|
|
5199
5215
|
// do not override the agg func
|
|
5200
5216
|
acc[colId] = currentLayout.AggregationColumns[colId];
|
|
5201
5217
|
}
|
|
@@ -5290,8 +5306,7 @@ class Adaptable {
|
|
|
5290
5306
|
return newColumnOrder;
|
|
5291
5307
|
}
|
|
5292
5308
|
}
|
|
5293
|
-
|
|
5294
|
-
class AdaptableNoCodeWizard {
|
|
5309
|
+
export class AdaptableNoCodeWizard {
|
|
5295
5310
|
/**
|
|
5296
5311
|
* @param adaptableOptions
|
|
5297
5312
|
*/
|
|
@@ -5302,12 +5317,12 @@ class AdaptableNoCodeWizard {
|
|
|
5302
5317
|
this.adaptableOptions = adaptableOptions;
|
|
5303
5318
|
this.init = extraOptions.onInit || defaultInit;
|
|
5304
5319
|
this.extraOptions = extraOptions;
|
|
5305
|
-
this.agGridModules =
|
|
5320
|
+
this.agGridModules = ModuleRegistry.__getRegisteredModules(agGridOptons === null || agGridOptons === void 0 ? void 0 : agGridOptons.gridOptions.gridId);
|
|
5306
5321
|
this.render();
|
|
5307
5322
|
}
|
|
5308
5323
|
render(container) {
|
|
5309
5324
|
var _a;
|
|
5310
|
-
let id =
|
|
5325
|
+
let id = DefaultAdaptableOptions.containerOptions.adaptableContainer || 'adaptable';
|
|
5311
5326
|
if (!container) {
|
|
5312
5327
|
let containerOptionsContainer = (_a = this.adaptableOptions.containerOptions) === null || _a === void 0 ? void 0 : _a.adaptableContainer;
|
|
5313
5328
|
if (containerOptionsContainer) {
|
|
@@ -5326,7 +5341,7 @@ class AdaptableNoCodeWizard {
|
|
|
5326
5341
|
// this allows people to customize the wizard dimensions & styling
|
|
5327
5342
|
// when it's visible
|
|
5328
5343
|
container.classList.add('adaptable--in-wizard');
|
|
5329
|
-
const unmount = (
|
|
5344
|
+
const unmount = defaultRenderReactRoot(React.createElement(AdaptableWizardView, Object.assign(Object.assign({ adaptableOptions: this.adaptableOptions }, this.extraOptions), { onInit: (adaptableOptions, gridOptions) => {
|
|
5330
5345
|
container.classList.remove('adaptable--in-wizard');
|
|
5331
5346
|
unmount();
|
|
5332
5347
|
this.init({
|
|
@@ -5337,4 +5352,3 @@ class AdaptableNoCodeWizard {
|
|
|
5337
5352
|
} })), container);
|
|
5338
5353
|
}
|
|
5339
5354
|
}
|
|
5340
|
-
exports.AdaptableNoCodeWizard = AdaptableNoCodeWizard;
|