@adaptabletools/adaptable 16.2.4 → 17.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 +1246 -1194
- package/base.css.map +1 -1
- package/index.css +102 -1981
- package/index.css.map +1 -1
- package/package.json +10 -5
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +2 -2
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +1 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +17 -11
- package/src/AdaptableInterfaces/IAdaptable.js +1 -2
- package/src/AdaptableOptions/ActionColumnOptions.js +1 -2
- package/src/AdaptableOptions/ActionRowOptions.d.ts +25 -3
- package/src/AdaptableOptions/ActionRowOptions.js +1 -2
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +3 -3
- package/src/AdaptableOptions/AdaptableFrameworkComponent.js +1 -2
- package/src/AdaptableOptions/AdaptableOptions.d.ts +12 -3
- package/src/AdaptableOptions/AdaptableOptions.js +1 -2
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +1 -1
- package/src/AdaptableOptions/AdaptablePlugin.js +1 -5
- package/src/AdaptableOptions/AlertOptions.d.ts +2 -2
- 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/{FilterOptions.d.ts → ColumnFilterOptions.d.ts} +114 -95
- package/src/AdaptableOptions/ColumnFilterOptions.js +1 -0
- package/src/AdaptableOptions/ColumnOptions.js +1 -2
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/src/AdaptableOptions/DateInputOptions.js +1 -2
- package/src/AdaptableOptions/EditOptions.d.ts +2 -2
- package/src/AdaptableOptions/EditOptions.js +1 -2
- package/src/AdaptableOptions/EntitlementOptions.js +1 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +21 -3
- package/src/AdaptableOptions/ExportOptions.js +1 -2
- package/src/AdaptableOptions/ExpressionOptions.d.ts +2 -2
- package/src/AdaptableOptions/ExpressionOptions.js +1 -2
- package/src/AdaptableOptions/Fdc3Options.d.ts +10 -4
- package/src/AdaptableOptions/Fdc3Options.js +2 -5
- package/src/AdaptableOptions/FinsemblePluginOptions.js +1 -2
- package/src/AdaptableOptions/FlashingCellOptions.js +1 -2
- package/src/AdaptableOptions/FormatColumnOptions.js +1 -2
- package/src/AdaptableOptions/Glue42PluginOptions.js +1 -2
- package/src/AdaptableOptions/Glue42WebPluginOptions.js +1 -2
- package/src/AdaptableOptions/GridFilterOptions.d.ts +18 -0
- package/src/AdaptableOptions/GridFilterOptions.js +1 -0
- package/src/AdaptableOptions/GroupingOptions.js +1 -2
- package/src/AdaptableOptions/IPushPullPluginOptions.js +1 -2
- package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
- package/src/AdaptableOptions/LayoutOptions.js +1 -2
- package/src/AdaptableOptions/MasterDetailPluginOptions.js +1 -2
- package/src/AdaptableOptions/MenuOptions.d.ts +12 -6
- package/src/AdaptableOptions/MenuOptions.js +41 -27
- package/src/AdaptableOptions/NotesOptions.js +1 -2
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -1
- 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.d.ts +22 -2
- package/src/AdaptableOptions/QuickSearchOptions.js +1 -2
- package/src/AdaptableOptions/SettingsPanelOptions.js +1 -2
- package/src/AdaptableOptions/StateOptions.d.ts +1 -1
- 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.d.ts +1 -16
- 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 +11 -6
- 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.d.ts +4 -0
- package/src/Api/ColumnApi.js +1 -2
- package/src/Api/{FilterApi.d.ts → ColumnFilterApi.d.ts} +3 -6
- package/src/Api/ColumnFilterApi.js +1 -0
- package/src/Api/ConfigApi.d.ts +3 -4
- package/src/Api/ConfigApi.js +1 -2
- package/src/Api/CustomSortApi.js +1 -2
- package/src/Api/DashboardApi.d.ts +16 -5
- 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 +13 -32
- package/src/Api/EventApi.js +1 -2
- package/src/Api/Events/ActionRowSubmitted.d.ts +1 -5
- package/src/Api/Events/ActionRowSubmitted.js +1 -2
- package/src/Api/Events/AdaptableReady.js +1 -2
- package/src/Api/Events/AdaptableSearchState.d.ts +4 -4
- 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/CellChanged.js +1 -2
- package/src/Api/Events/ChartChanged.js +1 -2
- package/src/Api/Events/{FilterApplied.d.ts → ColumnFilterApplied.d.ts} +2 -2
- package/src/Api/Events/ColumnFilterApplied.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.d.ts +1 -1
- 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.d.ts +15 -0
- package/src/Api/Events/GridFilterApplied.js +1 -0
- package/src/Api/Events/GridSorted.js +1 -2
- package/src/Api/Events/LayoutChanged.js +1 -2
- package/src/Api/Events/LiveDataChanged.js +1 -2
- package/src/Api/Events/ScheduleTriggered.js +1 -2
- package/src/Api/Events/SelectionChanged.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.d.ts +0 -4
- package/src/Api/ExportApi.js +1 -2
- package/src/Api/ExpressionApi.js +1 -2
- package/src/Api/Fdc3Api.js +1 -2
- package/src/Api/FinsembleApi.js +1 -2
- package/src/Api/FlashingCellApi.js +1 -2
- package/src/Api/FormatColumnApi.d.ts +4 -0
- package/src/Api/FormatColumnApi.js +1 -2
- package/src/Api/FreeTextColumnApi.js +1 -2
- package/src/Api/Glue42Api.js +1 -2
- package/src/Api/Glue42WebApi.js +1 -2
- package/src/Api/GridApi.js +1 -2
- package/src/Api/GridFilterApi.d.ts +39 -0
- package/src/Api/GridFilterApi.js +1 -0
- 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 -4
- package/src/Api/Implementation/AdaptableApiImpl.js +99 -101
- package/src/Api/Implementation/AlertApiImpl.js +18 -23
- package/src/Api/Implementation/ApiBase.d.ts +5 -16
- package/src/Api/Implementation/ApiBase.js +15 -17
- 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.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +14 -15
- package/src/Api/Implementation/{FilterApiImpl.d.ts → ColumnFilterApiImpl.d.ts} +5 -5
- package/src/Api/Implementation/{FilterApiImpl.js → ColumnFilterApiImpl.js} +12 -17
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -3
- package/src/Api/Implementation/ConfigApiImpl.js +41 -46
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -11
- package/src/Api/Implementation/DashboardApiImpl.d.ts +5 -2
- package/src/Api/Implementation/DashboardApiImpl.js +24 -28
- 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.d.ts +0 -1
- package/src/Api/Implementation/ExportApiImpl.js +12 -20
- 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.d.ts +1 -0
- package/src/Api/Implementation/FormatColumnApiImpl.js +9 -11
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +9 -14
- package/src/Api/Implementation/GridApiImpl.js +22 -27
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +16 -0
- package/src/Api/Implementation/GridFilterApiImpl.js +49 -0
- package/src/Api/Implementation/LayoutApiImpl.js +25 -30
- package/src/Api/Implementation/NamedQueryApiImpl.d.ts +18 -0
- package/src/Api/Implementation/NamedQueryApiImpl.js +52 -0
- package/src/Api/Implementation/NotesApiImpl.js +4 -9
- package/src/Api/Implementation/OptionsApiImpl.d.ts +4 -2
- package/src/Api/Implementation/OptionsApiImpl.js +7 -8
- package/src/Api/Implementation/PluginsApiImpl.js +3 -8
- 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.js +6 -11
- 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.js +10 -15
- package/src/Api/Implementation/ToolPanelApiImpl.js +6 -11
- package/src/Api/Implementation/UserInterfaceApiImpl.js +16 -21
- package/src/Api/Internal/ActionRowInternalApi.d.ts +2 -0
- package/src/Api/Internal/ActionRowInternalApi.js +35 -12
- package/src/Api/Internal/AdaptableInternalApi.js +21 -26
- package/src/Api/Internal/AlertInternalApi.d.ts +2 -7
- package/src/Api/Internal/AlertInternalApi.js +35 -25
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -6
- package/src/Api/Internal/ChartingInternalApi.js +8 -12
- package/src/Api/Internal/{FilterInternalApi.d.ts → ColumnFilterInternalApi.d.ts} +5 -5
- package/src/Api/Internal/{FilterInternalApi.js → ColumnFilterInternalApi.js} +27 -32
- package/src/Api/Internal/ColumnInternalApi.d.ts +0 -10
- package/src/Api/Internal/ColumnInternalApi.js +4 -36
- package/src/Api/Internal/CustomSortInternalApi.js +2 -6
- package/src/Api/Internal/DashboardInternalApi.d.ts +5 -1
- package/src/Api/Internal/DashboardInternalApi.js +16 -9
- package/src/Api/Internal/DataImportInternalApi.js +5 -10
- package/src/Api/Internal/DataSetInternalApi.js +2 -6
- package/src/Api/Internal/ExportInternalApi.js +2 -6
- package/src/Api/Internal/ExpressionnternalApi.js +2 -6
- package/src/Api/Internal/Fdc3InternalApi.d.ts +2 -2
- 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.d.ts +4 -0
- package/src/Api/Internal/GridFilterInternalApi.js +19 -0
- package/src/Api/Internal/GridInternalApi.js +44 -27
- package/src/Api/Internal/LayoutInternalApi.d.ts +1 -0
- package/src/Api/Internal/LayoutInternalApi.js +22 -18
- package/src/Api/Internal/{QueryInternalApi.d.ts → NamedQueryInternalApi.d.ts} +2 -5
- package/src/Api/Internal/{QueryInternalApi.js → NamedQueryInternalApi.js} +5 -24
- package/src/Api/Internal/PredicateInternalApi.js +5 -9
- package/src/Api/Internal/ScheduleInternalApi.js +2 -6
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +0 -3
- package/src/Api/Internal/StyledColumnInternalApi.js +5 -37
- 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/LayoutApi.js +1 -2
- package/src/Api/NamedQueryApi.d.ts +53 -0
- package/src/Api/NamedQueryApi.js +1 -0
- package/src/Api/NotesAPi.js +1 -2
- package/src/Api/OpenFinApi.js +1 -2
- package/src/Api/OptionsApi.d.ts +7 -3
- package/src/Api/OptionsApi.js +1 -2
- 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.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.js +1 -2
- package/src/Api/ToolPanelApi.js +1 -2
- package/src/Api/UserInterfaceApi.js +1 -2
- package/src/PredefinedConfig/AdaptableState.d.ts +6 -1
- package/src/PredefinedConfig/AdaptableState.js +1 -2
- package/src/PredefinedConfig/AlertState.d.ts +6 -6
- package/src/PredefinedConfig/AlertState.js +1 -2
- package/src/PredefinedConfig/ApplicationState.js +1 -2
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +1 -1
- package/src/PredefinedConfig/CalculatedColumnState.js +1 -2
- package/src/PredefinedConfig/ChartingState.d.ts +4 -1
- package/src/PredefinedConfig/ChartingState.js +2 -7
- package/src/PredefinedConfig/Common/AdaptableAlert.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableAlert.js +2 -7
- package/src/PredefinedConfig/Common/AdaptableButton.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +5 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.js +1 -5
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableFlashingCell.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableForm.js +1 -5
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +2 -2
- package/src/PredefinedConfig/Common/AdaptableIcon.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableMessageType.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableMessageType.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableObject.js +1 -2
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +97 -114
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +16 -1
- package/src/PredefinedConfig/Common/AdaptableQuery.js +1 -5
- package/src/PredefinedConfig/Common/AdaptableScope.d.ts +5 -5
- package/src/PredefinedConfig/Common/AdaptableScope.js +1 -2
- package/src/PredefinedConfig/Common/AdaptableStyle.js +1 -2
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -1
- 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.d.ts +0 -1
- package/src/PredefinedConfig/Common/CellHighlightInfo.js +1 -2
- package/src/PredefinedConfig/Common/CellSummary.js +1 -2
- package/src/PredefinedConfig/Common/ColumnFilter.d.ts +2 -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.d.ts +1 -1
- package/src/PredefinedConfig/Common/Entitlement.js +1 -2
- package/src/PredefinedConfig/Common/Enums.js +26 -29
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +133 -37
- package/src/PredefinedConfig/Common/Fdc3Context.js +32 -35
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +4 -4
- 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.d.ts +10 -0
- package/src/PredefinedConfig/Common/GridFilter.js +1 -0
- package/src/PredefinedConfig/Common/Menu.js +1 -2
- package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +1 -2
- package/src/PredefinedConfig/Common/RowsHighlightInfo.js +1 -2
- package/src/PredefinedConfig/Common/Schedule.d.ts +2 -2
- 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 +15 -15
- package/src/PredefinedConfig/Common/Types.js +14 -17
- 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.d.ts +4 -4
- package/src/PredefinedConfig/ExportState.js +1 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +4 -4
- package/src/PredefinedConfig/FlashingCellState.js +1 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +4 -27
- package/src/PredefinedConfig/FormatColumnState.js +1 -2
- package/src/PredefinedConfig/FreeTextColumnState.js +1 -2
- package/src/PredefinedConfig/Glue42State.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.d.ts +5 -1
- package/src/PredefinedConfig/LayoutState.js +1 -2
- package/src/PredefinedConfig/NamedQueryState.d.ts +25 -0
- package/src/PredefinedConfig/NamedQueryState.js +1 -0
- package/src/PredefinedConfig/NotesState.d.ts +2 -2
- 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 +2 -7
- package/src/PredefinedConfig/PredefinedConfig.js +1 -2
- package/src/PredefinedConfig/QueryState.d.ts +4 -15
- package/src/PredefinedConfig/QueryState.js +1 -2
- package/src/PredefinedConfig/QuickSearchState.js +1 -2
- package/src/PredefinedConfig/ScheduleState.js +1 -2
- package/src/PredefinedConfig/Selection/GridCell.d.ts +8 -0
- 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.d.ts +1 -1
- package/src/PredefinedConfig/ShortcutState.js +1 -2
- package/src/PredefinedConfig/StatusBarState.js +1 -4
- package/src/PredefinedConfig/StyledColumnState.d.ts +8 -13
- package/src/PredefinedConfig/StyledColumnState.js +1 -2
- package/src/PredefinedConfig/SystemState.d.ts +4 -4
- package/src/PredefinedConfig/SystemState.js +1 -2
- package/src/PredefinedConfig/TeamSharingState.d.ts +3 -3
- package/src/PredefinedConfig/TeamSharingState.js +2 -7
- package/src/PredefinedConfig/ThemeState.js +1 -2
- package/src/PredefinedConfig/ToolPanelState.d.ts +1 -1
- package/src/PredefinedConfig/ToolPanelState.js +1 -2
- package/src/PredefinedConfig/Uuid.d.ts +1 -1
- 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/CustomSortRedux.js +41 -54
- package/src/Redux/ActionsReducers/DashboardRedux.js +50 -66
- package/src/Redux/ActionsReducers/ExportRedux.js +33 -45
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +43 -57
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +7 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +60 -65
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +24 -34
- package/src/Redux/ActionsReducers/GridRedux.d.ts +6 -1
- package/src/Redux/ActionsReducers/GridRedux.js +139 -155
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +41 -12
- package/src/Redux/ActionsReducers/LayoutRedux.js +153 -105
- package/src/Redux/ActionsReducers/NamedQueryRedux.d.ts +43 -0
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +74 -0
- package/src/Redux/ActionsReducers/NotesRedux.js +21 -31
- package/src/Redux/ActionsReducers/PluginsRedux.js +48 -53
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +45 -59
- package/src/Redux/ActionsReducers/PopupRedux.js +64 -84
- package/src/Redux/ActionsReducers/QueryRedux.d.ts +5 -39
- package/src/Redux/ActionsReducers/QueryRedux.js +10 -72
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +16 -23
- package/src/Redux/ActionsReducers/ScheduleRedux.js +179 -222
- 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 +1 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +254 -324
- 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.d.ts +1 -1
- package/src/Redux/Store/AdaptableReduxMerger.js +21 -30
- package/src/Redux/Store/AdaptableStore.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.js +159 -136
- package/src/Redux/Store/Interface/IAdaptableStore.js +1 -2
- package/src/Redux/Store/Interface/IStorageEngine.js +1 -2
- package/src/Strategy/AdaptableModuleBase.d.ts +0 -1
- package/src/Strategy/AdaptableModuleBase.js +11 -45
- package/src/Strategy/AlertModule.js +37 -42
- package/src/Strategy/BulkUpdateModule.js +17 -22
- package/src/Strategy/CalculatedColumnModule.js +17 -22
- package/src/Strategy/CellSummaryModule.js +17 -22
- package/src/Strategy/ChartingModule.js +23 -25
- package/src/Strategy/{FilterModule.d.ts → ColumnFilterModule.d.ts} +4 -1
- package/src/Strategy/ColumnFilterModule.js +261 -0
- package/src/Strategy/ColumnInfoModule.js +3 -8
- package/src/Strategy/CustomSortModule.js +13 -18
- 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 +59 -64
- package/src/Strategy/Fdc3Module.js +3 -8
- package/src/Strategy/FlashingCellModule.js +30 -35
- package/src/Strategy/FormatColumnModule.js +28 -33
- package/src/Strategy/FreeTextColumnModule.js +8 -13
- package/src/Strategy/GridFilterModule.d.ts +8 -0
- package/src/Strategy/GridFilterModule.js +58 -0
- 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.d.ts +4 -4
- 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 +37 -33
- package/src/Strategy/{QueryModule.d.ts → NamedQueryModule.d.ts} +7 -8
- package/src/Strategy/NamedQueryModule.js +88 -0
- package/src/Strategy/NotesModule.js +3 -8
- package/src/Strategy/PlusMinusModule.js +24 -27
- package/src/Strategy/QuickSearchModule.js +5 -10
- package/src/Strategy/ScheduleModule.js +40 -45
- 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 +19 -75
- 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 +1 -5
- 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 +4 -9
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +1 -5
- package/src/Strategy/Utilities/Shortcut/getShortcutSettingsViewItems.js +1 -5
- package/src/Strategy/Utilities/getExpressionViewItems.js +1 -5
- 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.js +9 -12
- package/src/Utilities/Constants/DocumentationLinkConstants.js +14 -17
- package/src/Utilities/Constants/GeneralConstants.d.ts +3 -0
- package/src/Utilities/Constants/GeneralConstants.js +70 -71
- package/src/Utilities/Constants/ModuleConstants.d.ts +11 -6
- package/src/Utilities/Constants/ModuleConstants.js +118 -116
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +59 -51
- package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +1 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -7
- package/src/Utilities/Emitter.d.ts +2 -2
- package/src/Utilities/Emitter.js +3 -5
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +20 -24
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +51 -54
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +2 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +119 -31
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +10 -5
- package/src/Utilities/ExpressionFunctions/deepMap.d.ts +3 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +8 -12
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +39 -57
- package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +7 -7
- package/src/Utilities/ExpressionFunctions/groupingMap.js +3 -7
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +66 -70
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +7 -7
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +3 -7
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +64 -58
- package/src/Utilities/Extensions/ArrayExtensions.js +39 -73
- package/src/Utilities/Extensions/EnumExtensions.js +14 -21
- package/src/Utilities/Extensions/NumberExtensions.js +4 -9
- package/src/Utilities/Extensions/ObjectExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/ObjectExtensions.js +5 -7
- package/src/Utilities/Extensions/StringExtensions.js +23 -46
- package/src/Utilities/Extensions/TypeExtensions.d.ts +8 -8
- package/src/Utilities/Extensions/TypeExtensions.js +1 -5
- package/src/Utilities/Helpers/AdaptableHelper.js +59 -66
- 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 +10 -16
- package/src/Utilities/Helpers/StyleHelper.js +11 -20
- package/src/Utilities/Interface/AdaptableToolPanelContext.js +1 -2
- package/src/Utilities/Interface/{ColumnFilterContext.d.ts → ColumnFilterProps.d.ts} +1 -1
- package/src/Utilities/Interface/ColumnFilterProps.js +1 -0
- 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 +1 -2
- package/src/Utilities/ObjectFactory.js +125 -168
- 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/ChartingService.js +10 -15
- package/src/Utilities/Services/DataService.js +8 -13
- package/src/Utilities/Services/EntitlementService.d.ts +0 -1
- package/src/Utilities/Services/EntitlementService.js +1 -13
- package/src/Utilities/Services/Fdc3Service.js +7 -11
- package/src/Utilities/Services/Interface/IAdaptableService.js +1 -2
- package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -3
- 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.d.ts +0 -6
- package/src/Utilities/Services/Interface/IEntitlementService.js +1 -2
- package/src/Utilities/Services/Interface/ILicenseService.js +1 -2
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +1 -1
- 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 +2 -2
- 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.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 +13 -18
- package/src/Utilities/Services/ModuleService.d.ts +1 -0
- package/src/Utilities/Services/ModuleService.js +17 -16
- package/src/Utilities/Services/QueryLanguageService.js +24 -29
- package/src/Utilities/Services/ReportService.d.ts +2 -2
- package/src/Utilities/Services/ReportService.js +60 -55
- package/src/Utilities/Services/RowEditService.js +1 -5
- package/src/Utilities/Services/TeamSharingService.js +6 -11
- package/src/Utilities/Services/ThemeService.js +1 -5
- 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.d.ts +1 -1
- 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.d.ts +5 -3
- 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 +5 -9
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +18 -23
- package/src/View/AdaptableView.js +30 -35
- package/src/View/AdaptableViewFactory.js +67 -69
- 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 +42 -44
- 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 +26 -29
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -2
- 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 +5 -10
- package/src/View/Alert/AlertEntityRow.js +13 -18
- package/src/View/Alert/AlertStatusSubPanel.js +13 -18
- package/src/View/Alert/AlertViewPanel.js +17 -21
- package/src/View/Alert/AlertsPanel.js +24 -29
- 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 +2 -6
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +8 -13
- package/src/View/Alert/Utilities/mapAlertDefinition.js +1 -5
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +60 -51
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +49 -57
- package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +31 -37
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +40 -46
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +23 -30
- package/src/View/Alert/Wizard/AlertScopeWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +9 -14
- package/src/View/Alert/Wizard/AlertSelectQueryWizard.js +14 -19
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +19 -25
- package/src/View/Alert/Wizard/AlertWizard.js +61 -66
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +14 -19
- package/src/View/Alert/Wizard/isValidAlertRules.js +4 -8
- package/src/View/BulkUpdate/BulkUpdatePopup.js +33 -43
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +28 -32
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +17 -22
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags.js +1 -5
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +36 -43
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +21 -28
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +40 -56
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +13 -18
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +51 -56
- 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 +24 -28
- 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 +41 -47
- package/src/View/ColumnInfo/ColumnInfoPopup.js +8 -13
- package/src/View/Components/AdaptableButton/index.js +8 -13
- package/src/View/Components/AdaptableDateInput/index.d.ts +2 -2
- 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.d.ts +1 -1
- 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 +40 -47
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +5 -0
- package/src/View/Components/Buttons/ButtonOpen.js +7 -0
- 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.d.ts +8 -0
- package/src/View/Components/Buttons/ButtonUnsuspend.js +17 -0
- 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.d.ts +1 -1
- package/src/View/Components/CellPopup/index.js +10 -14
- package/src/View/Components/ColumnSelector/index.d.ts +1 -1
- 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.d.ts +2 -2
- package/src/View/Components/EntityRulesEditor/index.js +45 -42
- package/src/View/Components/ExpressionWizard.js +17 -22
- package/src/View/Components/ExternalRenderer.d.ts +1 -1
- package/src/View/Components/ExternalRenderer.js +6 -10
- package/src/View/Components/FilterForm/FilterForm.d.ts +2 -2
- package/src/View/Components/FilterForm/FilterForm.js +82 -87
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +30 -35
- package/src/View/Components/FilterForm/ListBoxMenu.js +8 -13
- package/src/View/Components/FilterForm/QuickFilterForm.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +52 -57
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterValues.js +27 -32
- package/src/View/Components/FilterForm/Waiting.d.ts +1 -1
- package/src/View/Components/FilterForm/Waiting.js +10 -14
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +1 -5
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- 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.d.ts +1 -1
- package/src/View/Components/Panels/FilterFormPanel.js +23 -28
- 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 +16 -21
- 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 +24 -38
- 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/Utilities.js +10 -17
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +23 -27
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -1
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +13 -16
- package/src/View/Components/PredicateEditor/PredicateEditor.js +28 -33
- package/src/View/Components/PreviewResultsPanel.js +13 -18
- package/src/View/Components/RangesComponent.js +57 -59
- package/src/View/Components/ScopeComponent.js +23 -28
- package/src/View/Components/Selectors/ColumnSelector.d.ts +12 -17
- package/src/View/Components/Selectors/ColumnSelector.js +24 -48
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +18 -0
- package/src/View/Components/Selectors/ColumnSelectorOld.js +46 -0
- package/src/View/Components/Selectors/ColumnValueSelector.d.ts +4 -23
- package/src/View/Components/Selectors/ColumnValueSelector.js +38 -135
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +13 -0
- package/src/View/Components/Selectors/PermittedValuesSelector.js +46 -0
- 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.d.ts +2 -3
- package/src/View/Components/StyleComponent.js +85 -93
- package/src/View/Components/StyleVisualItem.js +9 -14
- package/src/View/Components/TagValueSelector/index.js +9 -15
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +39 -44
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +13 -18
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +24 -28
- package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +1 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +16 -21
- package/src/View/Components/ValueSelector/index.d.ts +2 -2
- 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.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +17 -24
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +4 -9
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.d.ts +1 -1
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +29 -36
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +32 -37
- 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 +34 -41
- package/src/View/Dashboard/DashboardToolbarFactory.js +16 -18
- package/src/View/Dashboard/DashboardViewPanel.js +10 -14
- package/src/View/Dashboard/ModuleToolbarWrapper.js +8 -13
- package/src/View/Dashboard/PinnedDashboard.js +14 -16
- package/src/View/Dashboard/PinnedToolbarsSelector.js +15 -25
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +19 -22
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +12 -15
- package/src/View/Export/ExportSelector.js +13 -18
- package/src/View/Export/ExportTablePopup.js +7 -12
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.js +50 -51
- 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.d.ts +1 -1
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +28 -35
- package/src/View/Export/Wizard/ReportNameWizardSection.d.ts +1 -1
- package/src/View/Export/Wizard/ReportNameWizardSection.js +21 -28
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +14 -19
- package/src/View/Export/Wizard/ReportRowsWizardSection.d.ts +1 -1
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +31 -38
- 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 +9 -14
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +4 -9
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterSummary.js +20 -25
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.js +29 -33
- package/src/View/FlashingCell/FlashingCellStyle.js +10 -14
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +14 -20
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +10 -15
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +36 -42
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +28 -34
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +49 -54
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +4 -8
- package/src/View/FormatColumn/FormatColumnSummary.js +27 -32
- package/src/View/FormatColumn/MoveFormatColumn.js +10 -15
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +153 -160
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +6 -11
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +10 -16
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +30 -36
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +17 -25
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +51 -54
- package/src/View/FormatColumn/Wizard/constants.js +1 -4
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +27 -32
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +53 -70
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +26 -31
- package/src/View/GridFilter/GridFilterExpressionEditor.d.ts +5 -0
- package/src/View/GridFilter/GridFilterExpressionEditor.js +109 -0
- package/src/View/GridFilter/GridFilterPopup.d.ts +2 -0
- package/src/View/GridFilter/GridFilterPopup.js +42 -0
- package/src/View/GridFilter/GridFilterStatusbar.d.ts +2 -0
- package/src/View/GridFilter/GridFilterStatusbar.js +16 -0
- package/src/View/GridFilter/GridFilterViewPanel.d.ts +5 -0
- package/src/View/GridFilter/GridFilterViewPanel.js +64 -0
- package/src/View/{Query/ExpandedQueryPopup.d.ts → GridFilter/GridFilterWindowPopup.d.ts} +1 -1
- package/src/View/GridFilter/GridFilterWindowPopup.js +5 -0
- package/src/View/GridFilter/NamedQuerySelector.d.ts +16 -0
- package/src/View/GridFilter/NamedQuerySelector.js +50 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +24 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +123 -0
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.d.ts +4 -0
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +27 -0
- 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 +35 -38
- 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 +6 -11
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/LayoutViewPanel.js +28 -31
- package/src/View/Layout/PivotDetailsPopoup.js +7 -12
- package/src/View/Layout/SaveLayoutButton.js +14 -18
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +11 -15
- package/src/View/Layout/Wizard/LayoutWizard.js +57 -52
- 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 +44 -53
- package/src/View/Layout/Wizard/sections/GridFilterSection.d.ts +9 -0
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +37 -0
- 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.d.ts +2 -0
- package/src/View/NamedQuery/EditCurrentQueryButton.js +11 -0
- package/src/View/{Query → NamedQuery}/Wizard/NamedQueryExpressionWizardSection.d.ts +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +30 -0
- package/src/View/{Query → NamedQuery}/Wizard/NamedQuerySettingsWizardSection.d.ts +1 -1
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +38 -0
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +65 -0
- package/src/View/Notes/NotesListing.js +14 -19
- package/src/View/Notes/NotesPopup.js +19 -24
- 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.d.ts +1 -1
- 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/ScheduleSettingsGlue42.js +13 -18
- 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 +26 -28
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.d.ts +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +17 -21
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +14 -20
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +20 -25
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/index.js +3 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +17 -22
- package/src/View/Schedule/Wizard/ScheduleWizard.js +47 -52
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +6 -11
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +44 -52
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +36 -40
- 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 +35 -37
- package/src/View/SpecialColumnSettingsWizardStep.js +36 -38
- 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 +61 -59
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +144 -152
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +46 -52
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +24 -29
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.d.ts +1 -1
- 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 +15 -20
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +49 -64
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +1 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +23 -36
- 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.d.ts +1 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.js +8 -12
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +5 -10
- 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.d.ts +1 -1
- 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 +22 -26
- package/src/View/Theme/ThemeStatusPanelPopover.js +6 -11
- package/src/View/Theme/ThemeViewPanel.js +11 -14
- package/src/View/Theme/VariantSelector.js +8 -13
- package/src/View/UIHelper.d.ts +1 -1
- 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.d.ts +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +14 -20
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +32 -42
- package/src/View/Wizard/OnePageWizards.d.ts +2 -2
- 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 +24 -17
- package/src/agGrid/Adaptable.js +512 -502
- package/src/agGrid/AdaptableLogger.js +15 -19
- package/src/agGrid/BadgeRenderer.js +6 -11
- package/src/agGrid/CheckboxRenderer.d.ts +5 -0
- package/src/agGrid/CheckboxRenderer.js +7 -8
- package/src/agGrid/ColumnSetupInfo.d.ts +1 -1
- package/src/agGrid/ColumnSetupInfo.js +1 -2
- package/src/agGrid/FilterWrapper.js +17 -22
- package/src/agGrid/FloatingFilterWrapper.js +12 -17
- package/src/agGrid/PercentBarRenderer.js +5 -10
- package/src/agGrid/agGridHelper.d.ts +1 -1
- package/src/agGrid/agGridHelper.js +120 -114
- package/src/agGrid/agGridMenuHelper.js +81 -69
- package/src/agGrid/attachAddaptableColumnTypes.js +4 -8
- package/src/agGrid/createAgStatusPanelComponent.js +5 -10
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +2 -2
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +12 -16
- package/src/agGrid/editors/AdaptableDateEditor/index.js +19 -24
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.d.ts +2 -2
- 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 +58 -38
- package/src/components/AdaptableFormComponent/index.js +1 -4
- package/src/components/CheckBox/index.d.ts +1 -1
- package/src/components/CheckBox/index.js +13 -17
- package/src/components/CodeBlock/index.js +6 -11
- package/src/components/ColorPicker/ColorPicker.d.ts +2 -2
- package/src/components/ColorPicker/ColorPicker.js +15 -18
- package/src/components/ColorPicker/index.js +1 -4
- package/src/components/ContainerProps.d.ts +2 -2
- package/src/components/ContainerProps.js +1 -2
- package/src/components/Dashboard/Dashboard.d.ts +2 -2
- package/src/components/Dashboard/Dashboard.js +17 -22
- package/src/components/Dashboard/DashboardManager.js +4 -7
- package/src/components/Dashboard/DashboardTab.d.ts +1 -1
- package/src/components/Dashboard/DashboardTab.js +1 -5
- package/src/components/Dashboard/DashboardToolbar.d.ts +1 -1
- 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.d.ts +2 -2
- package/src/components/Datepicker/index.js +36 -39
- package/src/components/Dialog/index.d.ts +2 -2
- 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.d.ts +2 -2
- package/src/components/Dropdown/index.js +18 -20
- package/src/components/DropdownButton/DropdownButtonItem.d.ts +1 -1
- package/src/components/DropdownButton/DropdownButtonItem.js +1 -2
- package/src/components/DropdownButton/index.d.ts +1 -1
- package/src/components/DropdownButton/index.js +23 -26
- package/src/components/DropdownButton/renderItem.d.ts +1 -1
- package/src/components/DropdownButton/renderItem.js +4 -7
- package/src/components/DropdownButton/useExpanded.d.ts +1 -1
- package/src/components/DropdownButton/useExpanded.js +9 -12
- package/src/components/EllipsisContainer/index.d.ts +1 -1
- package/src/components/EllipsisContainer/index.js +17 -21
- package/src/components/EmptyContent/index.d.ts +1 -1
- package/src/components/EmptyContent/index.js +8 -10
- package/src/components/ErrorBox/index.js +6 -10
- package/src/components/ExpressionEditor/BaseEditorInput.js +56 -61
- 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/NamedQueryContext.d.ts +2 -2
- package/src/components/ExpressionEditor/NamedQueryContext.js +4 -8
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.d.ts +22 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +112 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +28 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +118 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.d.ts +22 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +172 -0
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.d.ts +2 -0
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +14 -0
- package/src/components/ExpressionEditor/QueryBuilder/index.d.ts +1 -0
- package/src/components/ExpressionEditor/QueryBuilder/index.js +1 -0
- package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +9 -0
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +113 -0
- 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.d.ts +4 -3
- package/src/components/ExpressionEditor/index.js +166 -117
- 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.d.ts +4 -4
- 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.d.ts +1 -1
- package/src/components/Input/NumberInput.js +4 -9
- package/src/components/Input/index.d.ts +2 -2
- package/src/components/Input/index.js +8 -11
- package/src/components/List/GridList/index.js +7 -10
- package/src/components/List/ListGroup/index.js +7 -9
- package/src/components/List/ListGroupItem/index.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +1 -1
- package/src/components/OverlayTrigger/index.js +41 -46
- package/src/components/OverlayTrigger/useAgGridClassName.js +5 -7
- package/src/components/OverlayTrigger/utils.js +3 -9
- package/src/components/Panel/index.d.ts +1 -1
- 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.d.ts +1 -1
- package/src/components/Radio/index.js +15 -20
- package/src/components/ResizeObserver/getResizeObserverObject.js +1 -5
- package/src/components/ResizeObserver/index.d.ts +1 -1
- package/src/components/ResizeObserver/index.js +17 -24
- package/src/components/Select/Select.d.ts +30 -0
- package/src/components/Select/Select.js +128 -0
- package/src/components/Select/index.d.ts +1 -0
- package/src/components/Select/index.js +1 -0
- package/src/components/SelectList.js +4 -9
- package/src/components/SelectableList/index.d.ts +1 -1
- 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.d.ts +3 -3
- 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 +2 -2
- package/src/components/Textarea/index.js +8 -11
- package/src/components/Toastify/index.js +1 -10
- package/src/components/Toggle/Toggle.d.ts +1 -1
- 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.d.ts +4 -0
- package/src/components/WarningBox/index.js +7 -0
- package/src/components/WindowModal/WindowModal.d.ts +2 -2
- 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.d.ts +1 -1
- 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/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.d.ts +3 -0
- package/src/components/icons/grid-filter.js +4 -0
- 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 +321 -322
- 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.d.ts +3 -0
- package/src/components/icons/resume.js +4 -0
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- package/src/components/utils/uuid.js +2 -6
- package/src/env.js +1 -3
- package/src/metamodel/adaptable-metamodel-model.d.ts +2 -2
- package/src/metamodel/adaptable-metamodel-model.js +1 -2
- package/src/metamodel/adaptable.metamodel.d.ts +442 -63
- package/src/metamodel/adaptable.metamodel.js +9435 -1
- package/src/parser/src/ExpressionEvaluationError.js +1 -5
- package/src/parser/src/evaluator.js +3 -7
- package/src/parser/src/index.d.ts +1 -0
- package/src/parser/src/index.js +12 -16
- package/src/parser/src/parser.js +528 -1691
- package/src/parser/src/predicate/index.d.ts +2 -0
- package/src/parser/src/predicate/index.js +2 -0
- package/src/parser/src/predicate/mapExpressionToQlPredicate.d.ts +2 -0
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +88 -0
- package/src/parser/src/predicate/mapQlPredicateToExpression.d.ts +3 -0
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +112 -0
- package/src/parser/src/predicate/types.d.ts +10 -0
- package/src/parser/src/predicate/types.js +1 -0
- package/src/parser/src/tokenizer.js +3 -8
- package/src/parser/src/types.d.ts +26 -9
- package/src/parser/src/types.js +4 -2
- package/src/parser/src/utils.js +3 -9
- package/src/renderReactRoot.d.ts +2 -4
- package/src/renderReactRoot.js +5 -53
- package/src/theme.js +1 -3
- package/src/themes/index.js +4 -7
- package/src/types.d.ts +15 -13
- package/src/types.js +1 -5
- package/themes/dark.css +1 -1
- package/themes/dark.css.map +1 -1
- package/themes/light.css +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 -706
- package/publishTimestamp.d.ts +0 -2
- package/publishTimestamp.js +0 -3
- package/src/AdaptableOptions/FilterOptions.js +0 -2
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +0 -6
- package/src/AdaptableOptions/FinancePluginOptions.js +0 -2
- package/src/Api/Events/ChexboxColumnClicked.d.ts +0 -24
- package/src/Api/Events/ChexboxColumnClicked.js +0 -2
- package/src/Api/Events/FilterApplied.js +0 -2
- package/src/Api/Events/QueryRun.d.ts +0 -14
- package/src/Api/Events/QueryRun.js +0 -2
- package/src/Api/FilterApi.js +0 -2
- package/src/Api/Implementation/QueryApiImpl.d.ts +0 -21
- package/src/Api/Implementation/QueryApiImpl.js +0 -64
- package/src/Api/QueryApi.d.ts +0 -51
- package/src/Api/QueryApi.js +0 -2
- package/src/PredefinedConfig/ConditionalStyleState.d.ts +0 -41
- package/src/PredefinedConfig/ConditionalStyleState.js +0 -2
- package/src/Strategy/FilterModule.js +0 -151
- package/src/Strategy/QueryModule.js +0 -74
- package/src/Utilities/Interface/ColumnFilterContext.js +0 -2
- package/src/View/Query/EditCurrentQueryButton.d.ts +0 -2
- package/src/View/Query/EditCurrentQueryButton.js +0 -16
- package/src/View/Query/ExpandedQueryPopup.js +0 -56
- package/src/View/Query/QueryViewPanel.d.ts +0 -30
- package/src/View/Query/QueryViewPanel.js +0 -170
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +0 -37
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +0 -44
- package/src/View/Query/Wizard/NamedQueryWizard.js +0 -70
- package/version.d.ts +0 -2
- package/version.js +0 -3
- /package/src/View/{Query → NamedQuery}/Wizard/NamedQueryWizard.d.ts +0 -0
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -1,74 +1,69 @@
|
|
|
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
|
-
const Fdc3Service_1 = require("../Utilities/Services/Fdc3Service");
|
|
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 { publishTimestamp } from '../../package.json';
|
|
51
|
+
import { MetamodelService } from '../Utilities/Services/MetamodelService';
|
|
52
|
+
import { AgGridModulesDocsLink, PrimaryKeyDocsLink, } from '../Utilities/Constants/DocumentationLinkConstants';
|
|
53
|
+
import { parseDateValue } from '../Utilities/Helpers/DateHelper';
|
|
54
|
+
import { ADAPTABLE_STATUS_PANEL } from '../PredefinedConfig/StatusBarState';
|
|
55
|
+
import { createAgStatusPanelComponent } from './createAgStatusPanelComponent';
|
|
56
|
+
import { AdaptableStatusBar } from '../View/StatusBar/AdaptableStatusBar';
|
|
57
|
+
import { RowEditService } from '../Utilities/Services/RowEditService';
|
|
58
|
+
import { weightedAverage } from './weightedAverage';
|
|
59
|
+
import { WEIGHTED_AVERAGE_AGG_FN_NAME, } from '../PredefinedConfig/Common/AggregationColumns';
|
|
60
|
+
import { renderReactRoot as defaultRenderReactRoot } from '../renderReactRoot';
|
|
61
|
+
import { ChartingService } from '../Utilities/Services/ChartingService';
|
|
62
|
+
import { ThemeService } from '../Utilities/Services/ThemeService';
|
|
63
|
+
import { AdaptableLogger } from './AdaptableLogger';
|
|
64
|
+
import { attachColumnTypes } from './attachAddaptableColumnTypes';
|
|
65
|
+
import { DateFormatter } from '../Utilities/Helpers/FormatHelper';
|
|
66
|
+
import { Fdc3Service } from '../Utilities/Services/Fdc3Service';
|
|
72
67
|
const tinycolor = require('tinycolor2');
|
|
73
68
|
const GROUP_PATH_SEPARATOR = '/';
|
|
74
69
|
// IMPORTANT - we need colId to be set in order for safeSetColDefs to work correctly
|
|
@@ -88,14 +83,14 @@ const assignColId = (colDef, logger) => {
|
|
|
88
83
|
}
|
|
89
84
|
}
|
|
90
85
|
};
|
|
91
|
-
const RowNodeProto =
|
|
86
|
+
const RowNodeProto = RowNode.prototype;
|
|
92
87
|
const RowNode_dispatchLocalEvent = RowNodeProto.dispatchLocalEvent;
|
|
93
|
-
const GridApi_setColumnDefs =
|
|
88
|
+
const GridApi_setColumnDefs = GridApi.prototype.setColumnDefs;
|
|
94
89
|
['addCssClass', 'removeCssClass', 'containsCssClass', 'addOrRemoveCssClass'].forEach((methodName) => {
|
|
95
90
|
// @ts-ignore
|
|
96
|
-
const CssClassManager_originalMethod =
|
|
91
|
+
const CssClassManager_originalMethod = CssClassManager.prototype[methodName];
|
|
97
92
|
// @ts-ignore
|
|
98
|
-
|
|
93
|
+
CssClassManager.prototype[methodName] = function () {
|
|
99
94
|
return this.getGui() ? CssClassManager_originalMethod.apply(this, arguments) : undefined;
|
|
100
95
|
};
|
|
101
96
|
});
|
|
@@ -112,7 +107,7 @@ RowNodeProto.dispatchLocalEvent = function (event) {
|
|
|
112
107
|
// starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
|
|
113
108
|
const rowNodeApi = (_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _a === void 0 ? void 0 : _a.gridApi;
|
|
114
109
|
if (!rowNodeApi) {
|
|
115
|
-
|
|
110
|
+
AdaptableLogger.consoleErrorBase(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
|
|
116
111
|
}
|
|
117
112
|
return rowNodeApi;
|
|
118
113
|
};
|
|
@@ -151,7 +146,92 @@ const forEachColumn = (cols, fn, parentColGroup) => {
|
|
|
151
146
|
});
|
|
152
147
|
};
|
|
153
148
|
const adaptableInstances = {};
|
|
154
|
-
class Adaptable {
|
|
149
|
+
export class Adaptable {
|
|
150
|
+
get isLive() {
|
|
151
|
+
return this.isInitialised && !this.isDestroyed;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Initializer for Adaptable
|
|
155
|
+
*
|
|
156
|
+
* @param adaptableOptions the AdaptableOptions
|
|
157
|
+
* @param agGridConfig AG Grid
|
|
158
|
+
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
159
|
+
*/
|
|
160
|
+
static init(adaptableOptions, agGridConfig) {
|
|
161
|
+
var _a;
|
|
162
|
+
if (!((_a = agGridConfig === null || agGridConfig === void 0 ? void 0 : agGridConfig.modules) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
163
|
+
AdaptableLogger.consoleErrorBase(`No AG Grid modules were provided, thus limiting AdapTables features significantly!\n\nRead further info here:${AgGridModulesDocsLink}`);
|
|
164
|
+
}
|
|
165
|
+
return Adaptable.initInternal(adaptableOptions, Object.assign({}, agGridConfig));
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Lazy static constructor for Adaptable
|
|
169
|
+
* Receives an AdaptableOptions object
|
|
170
|
+
* Returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
171
|
+
* @param adaptableOptions an instance of AdaptableOptions
|
|
172
|
+
*/
|
|
173
|
+
static async initInternal(adaptableOptions, runtimeConfig) {
|
|
174
|
+
let promise = null;
|
|
175
|
+
if (Array.isArray(adaptableOptions.plugins)) {
|
|
176
|
+
const agGridOptions = {
|
|
177
|
+
gridOptions: runtimeConfig.gridOptions,
|
|
178
|
+
modules: runtimeConfig.modules,
|
|
179
|
+
};
|
|
180
|
+
// do this
|
|
181
|
+
for (let plugin of adaptableOptions.plugins) {
|
|
182
|
+
promise =
|
|
183
|
+
promise && promise.then
|
|
184
|
+
? promise.then(() => {
|
|
185
|
+
return plugin.beforeInit(adaptableOptions, agGridOptions);
|
|
186
|
+
})
|
|
187
|
+
: plugin.beforeInit(adaptableOptions, agGridOptions);
|
|
188
|
+
}
|
|
189
|
+
// if gridOptions changed, we need to update the runtimeConfig
|
|
190
|
+
if (agGridOptions.gridOptions !== runtimeConfig.gridOptions) {
|
|
191
|
+
// This allows plugins to modify
|
|
192
|
+
runtimeConfig.gridOptions = agGridOptions.gridOptions;
|
|
193
|
+
}
|
|
194
|
+
// instead of
|
|
195
|
+
// if (Array.isArray(adaptableOptions.plugins)) {
|
|
196
|
+
// for await (let plugin of adaptableOptions.plugins) {
|
|
197
|
+
// await plugin.beforeInit(adaptableOptions);
|
|
198
|
+
// }
|
|
199
|
+
// }
|
|
200
|
+
// because this await for of introduces too much delay
|
|
201
|
+
}
|
|
202
|
+
const doInit = (ab) => {
|
|
203
|
+
return ab.init(adaptableOptions, runtimeConfig, true).then((api) => {
|
|
204
|
+
if (Array.isArray(adaptableOptions.plugins)) {
|
|
205
|
+
adaptableOptions.plugins.forEach((plugin) => {
|
|
206
|
+
plugin.afterInit(ab);
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
return api;
|
|
210
|
+
});
|
|
211
|
+
};
|
|
212
|
+
if (promise && promise.then) {
|
|
213
|
+
return promise.then(() => {
|
|
214
|
+
const ab = new Adaptable();
|
|
215
|
+
return doInit(ab);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
const ab = new Adaptable();
|
|
220
|
+
return doInit(ab);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
static collectInstance(adaptable) {
|
|
224
|
+
adaptable._id = adaptable.adaptableOptions.adaptableId || createUuid();
|
|
225
|
+
adaptableInstances[adaptable._id] = adaptable;
|
|
226
|
+
}
|
|
227
|
+
static forEachAdaptable(fn) {
|
|
228
|
+
Object.keys(adaptableInstances).forEach((key) => {
|
|
229
|
+
fn(adaptableInstances[key]);
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
static dismissInstance(adaptable) {
|
|
233
|
+
delete adaptableInstances[adaptable._id];
|
|
234
|
+
}
|
|
155
235
|
constructor() {
|
|
156
236
|
this.variant = 'vanilla';
|
|
157
237
|
this.colDefPropertyCache = new Map();
|
|
@@ -184,8 +264,7 @@ class Adaptable {
|
|
|
184
264
|
};
|
|
185
265
|
this._adaptableReady = false;
|
|
186
266
|
this.isDestroyed = false;
|
|
187
|
-
this.
|
|
188
|
-
this.renderReactRoot = (node, container) => (0, renderReactRoot_1.renderReactRoot)(node, container, this.supressReact18RenderWarning);
|
|
267
|
+
this.renderReactRoot = (node, container) => defaultRenderReactRoot(node, container);
|
|
189
268
|
this.isPluginLoaded = (pluginId) => {
|
|
190
269
|
const plugins = this.adaptableOptions.plugins || [];
|
|
191
270
|
for (let i = 0, len = plugins.length; i < len; i++) {
|
|
@@ -199,42 +278,42 @@ class Adaptable {
|
|
|
199
278
|
this.isAgGridReady = () => {
|
|
200
279
|
var _a, _b;
|
|
201
280
|
const waitTimeout = (_b = (_a = this.adaptableOptions.containerOptions) === null || _a === void 0 ? void 0 : _a.agGridContainerWaitTimeout) !== null && _b !== void 0 ? _b : 60000;
|
|
202
|
-
return
|
|
281
|
+
return waitForCondition(() => !!this.gridOptions.api, waitTimeout);
|
|
203
282
|
};
|
|
204
283
|
// debounced methods
|
|
205
|
-
this.debouncedSetColumnIntoStore = (
|
|
284
|
+
this.debouncedSetColumnIntoStore = debounce(() => {
|
|
206
285
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
207
286
|
return;
|
|
208
287
|
}
|
|
209
288
|
this.updateColumnsIntoStore();
|
|
210
|
-
},
|
|
211
|
-
this.debouncedSaveGridLayout = (
|
|
289
|
+
}, HALF_SECOND);
|
|
290
|
+
this.debouncedSaveGridLayout = debounce(() => {
|
|
212
291
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
213
292
|
return;
|
|
214
293
|
}
|
|
215
294
|
this.updateLayoutFromGrid();
|
|
216
|
-
},
|
|
217
|
-
this.debouncedSetSelectedCells = (
|
|
295
|
+
}, HALF_SECOND);
|
|
296
|
+
this.debouncedSetSelectedCells = debounce(() => {
|
|
218
297
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
219
298
|
return;
|
|
220
299
|
}
|
|
221
300
|
this.setSelectedCells();
|
|
222
301
|
}, 250);
|
|
223
|
-
this.debouncedSetSelectedRows = (
|
|
302
|
+
this.debouncedSetSelectedRows = debounce(() => {
|
|
224
303
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
225
304
|
return;
|
|
226
305
|
}
|
|
227
306
|
this.setSelectedRows();
|
|
228
|
-
},
|
|
229
|
-
this.debouncedFilterGrid = (
|
|
307
|
+
}, HALF_SECOND);
|
|
308
|
+
this.debouncedFilterGrid = debounce((callback = () => { }) => {
|
|
230
309
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
231
310
|
return;
|
|
232
311
|
}
|
|
233
|
-
this.
|
|
312
|
+
this.applyColumnFiltering();
|
|
234
313
|
if (callback) {
|
|
235
314
|
callback();
|
|
236
315
|
}
|
|
237
|
-
},
|
|
316
|
+
}, HALF_SECOND);
|
|
238
317
|
/**
|
|
239
318
|
* This creates a clone of the current column definitions. If config.removeEmpty is true, will also remove empty column groups
|
|
240
319
|
*
|
|
@@ -273,97 +352,11 @@ class Adaptable {
|
|
|
273
352
|
};
|
|
274
353
|
// (global as any).adaptable = this;
|
|
275
354
|
}
|
|
276
|
-
get isLive() {
|
|
277
|
-
return this.isInitialised && !this.isDestroyed;
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Initializer for Adaptable
|
|
281
|
-
*
|
|
282
|
-
* @param adaptableOptions the AdaptableOptions
|
|
283
|
-
* @param agGridConfig AG Grid
|
|
284
|
-
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
285
|
-
*/
|
|
286
|
-
static init(adaptableOptions, agGridConfig) {
|
|
287
|
-
var _a;
|
|
288
|
-
if (!((_a = agGridConfig === null || agGridConfig === void 0 ? void 0 : agGridConfig.modules) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
289
|
-
AdaptableLogger_1.AdaptableLogger.consoleErrorBase(`No AG Grid modules were provided, thus limiting AdapTables features significantly!\n\nRead further info here:${DocumentationLinkConstants_1.AgGridModulesDocsLink}`);
|
|
290
|
-
}
|
|
291
|
-
return Adaptable.initInternal(adaptableOptions, Object.assign(Object.assign({}, agGridConfig), { supressReact18RenderWarning: true }));
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Lazy static constructor for Adaptable
|
|
295
|
-
* Receives an AdaptableOptions object
|
|
296
|
-
* Returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
297
|
-
* @param adaptableOptions an instance of AdaptableOptions
|
|
298
|
-
*/
|
|
299
|
-
static async initInternal(adaptableOptions, runtimeConfig) {
|
|
300
|
-
let promise = null;
|
|
301
|
-
if (Array.isArray(adaptableOptions.plugins)) {
|
|
302
|
-
const agGridOptions = {
|
|
303
|
-
gridOptions: runtimeConfig.gridOptions,
|
|
304
|
-
modules: runtimeConfig.modules,
|
|
305
|
-
};
|
|
306
|
-
// do this
|
|
307
|
-
for (let plugin of adaptableOptions.plugins) {
|
|
308
|
-
promise =
|
|
309
|
-
promise && promise.then
|
|
310
|
-
? promise.then(() => {
|
|
311
|
-
return plugin.beforeInit(adaptableOptions, agGridOptions);
|
|
312
|
-
})
|
|
313
|
-
: plugin.beforeInit(adaptableOptions, agGridOptions);
|
|
314
|
-
}
|
|
315
|
-
// if gridOptions changed, we need to update the runtimeConfig
|
|
316
|
-
if (agGridOptions.gridOptions !== runtimeConfig.gridOptions) {
|
|
317
|
-
// This allows plugins to modify
|
|
318
|
-
runtimeConfig.gridOptions = agGridOptions.gridOptions;
|
|
319
|
-
}
|
|
320
|
-
// instead of
|
|
321
|
-
// if (Array.isArray(adaptableOptions.plugins)) {
|
|
322
|
-
// for await (let plugin of adaptableOptions.plugins) {
|
|
323
|
-
// await plugin.beforeInit(adaptableOptions);
|
|
324
|
-
// }
|
|
325
|
-
// }
|
|
326
|
-
// because this await for of introduces too much delay
|
|
327
|
-
}
|
|
328
|
-
const doInit = (ab) => {
|
|
329
|
-
return ab.init(adaptableOptions, runtimeConfig, true).then((api) => {
|
|
330
|
-
if (Array.isArray(adaptableOptions.plugins)) {
|
|
331
|
-
adaptableOptions.plugins.forEach((plugin) => {
|
|
332
|
-
plugin.afterInit(ab);
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
return api;
|
|
336
|
-
});
|
|
337
|
-
};
|
|
338
|
-
if (promise && promise.then) {
|
|
339
|
-
return promise.then(() => {
|
|
340
|
-
const ab = new Adaptable();
|
|
341
|
-
return doInit(ab);
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
const ab = new Adaptable();
|
|
346
|
-
return doInit(ab);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
static collectInstance(adaptable) {
|
|
350
|
-
adaptable._id = adaptable.adaptableOptions.adaptableId || (0, Uuid_1.createUuid)();
|
|
351
|
-
adaptableInstances[adaptable._id] = adaptable;
|
|
352
|
-
}
|
|
353
|
-
static forEachAdaptable(fn) {
|
|
354
|
-
Object.keys(adaptableInstances).forEach((key) => {
|
|
355
|
-
fn(adaptableInstances[key]);
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
static dismissInstance(adaptable) {
|
|
359
|
-
delete adaptableInstances[adaptable._id];
|
|
360
|
-
}
|
|
361
355
|
// the 'old' constructor which takes an Adaptable adaptable object
|
|
362
356
|
// this is still used internally but should not be used externally as a preference
|
|
363
357
|
async init(adaptableOptions, runtimeConfig, _staticInit) {
|
|
364
|
-
this.logger = new
|
|
358
|
+
this.logger = new AdaptableLogger(adaptableOptions.adaptableId || String(Date.now()));
|
|
365
359
|
const perfAdaptableInit = this.logger.beginPerf(`Adaptable init()`);
|
|
366
|
-
this.supressReact18RenderWarning = !!runtimeConfig.supressReact18RenderWarning;
|
|
367
360
|
if (runtimeConfig.renderReactRoot) {
|
|
368
361
|
this.renderReactRoot = (el, container) => {
|
|
369
362
|
const unmount = runtimeConfig.renderReactRoot(el, container);
|
|
@@ -393,18 +386,19 @@ class Adaptable {
|
|
|
393
386
|
!!!!!!! Use const api = await Adaptable.init(adaptableOptions) instead.
|
|
394
387
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!`);
|
|
395
388
|
}
|
|
396
|
-
this.emitter = new
|
|
389
|
+
this.emitter = new Emitter();
|
|
397
390
|
this.runtimeConfig = runtimeConfig;
|
|
398
391
|
this.gridOptions = this.runtimeConfig.gridOptions;
|
|
392
|
+
this._rawAdaptableOptions = adaptableOptions;
|
|
399
393
|
// we create AdaptableOptions by merging the values provided by the user with the defaults (where no value has been set)
|
|
400
|
-
this.adaptableOptions =
|
|
394
|
+
this.adaptableOptions = AdaptableHelper.assignAdaptableOptions(adaptableOptions);
|
|
401
395
|
if (this.hasAutogeneratedPrimaryKey()) {
|
|
402
396
|
this.logger
|
|
403
397
|
.warn(`Autogenerated primary key (adaptableOptions.autogeneratedPrimaryKey = TRUE) should be used only as a last resort,
|
|
404
398
|
when no unique column is available, as it limits some Adaptable functionalities!
|
|
405
399
|
|
|
406
|
-
For more details see: ${
|
|
407
|
-
this.adaptableOptions.primaryKey =
|
|
400
|
+
For more details see: ${PrimaryKeyDocsLink}`);
|
|
401
|
+
this.adaptableOptions.primaryKey = AUTOGENERATED_PK_COLUMN;
|
|
408
402
|
}
|
|
409
403
|
Adaptable.collectInstance(this);
|
|
410
404
|
if (this.gridOptions.allowContextMenuWithControlKey === undefined) {
|
|
@@ -415,13 +409,13 @@ class Adaptable {
|
|
|
415
409
|
this.forPlugins((plugin) => plugin.afterInitOptions(this, this.adaptableOptions));
|
|
416
410
|
this.registerAdaptableAggFuncs();
|
|
417
411
|
// get the api ready
|
|
418
|
-
this.api = new
|
|
412
|
+
this.api = new AdaptableApiImpl(this);
|
|
419
413
|
this.forPlugins((plugin) => plugin.afterInitApi(this, this.api));
|
|
420
414
|
// data source needs to be created early
|
|
421
|
-
this.DataService = new
|
|
415
|
+
this.DataService = new DataService(this);
|
|
422
416
|
// set up the ag Grid helper and menu helper
|
|
423
|
-
this.agGridHelper = new
|
|
424
|
-
this.agGridMenuHelper = new
|
|
417
|
+
this.agGridHelper = new agGridHelper(this, this.gridOptions);
|
|
418
|
+
this.agGridMenuHelper = new agGridMenuHelper(this, this.gridOptions);
|
|
425
419
|
// Build the default group sort comparator - will get custom sort values (but not functions) in real time
|
|
426
420
|
// TODO: if a custom 'aggFunc' property is defined (see setupColumnAggFunc()), it won't be evaluated
|
|
427
421
|
if (this.adaptableOptions.groupingOptions.autoOrderGroupedColumns) {
|
|
@@ -438,20 +432,20 @@ class Adaptable {
|
|
|
438
432
|
this.initStore();
|
|
439
433
|
// create the services
|
|
440
434
|
this.LicenseService = this.initLicenseService();
|
|
441
|
-
this.ChartingService = new
|
|
442
|
-
this.ThemeService = new
|
|
443
|
-
this.ValidationService = new
|
|
444
|
-
this.ReportService = new
|
|
445
|
-
this.ModuleService = new
|
|
446
|
-
this.CalculatedColumnExpressionService = new
|
|
447
|
-
this.EntitlementService = new
|
|
448
|
-
this.QueryLanguageService = new
|
|
449
|
-
this.AlertService = new
|
|
450
|
-
this.TeamSharingService = new
|
|
451
|
-
this.Fdc3Service = new
|
|
435
|
+
this.ChartingService = new ChartingService(this.api);
|
|
436
|
+
this.ThemeService = new ThemeService(this.api);
|
|
437
|
+
this.ValidationService = new ValidationService(this.api);
|
|
438
|
+
this.ReportService = new ReportService(this.api);
|
|
439
|
+
this.ModuleService = new ModuleService(this.api);
|
|
440
|
+
this.CalculatedColumnExpressionService = new CalculatedColumnExpressionService(this.api);
|
|
441
|
+
this.EntitlementService = new EntitlementService(this.api);
|
|
442
|
+
this.QueryLanguageService = new QueryLanguageService(this.api);
|
|
443
|
+
this.AlertService = new AlertService(this.api);
|
|
444
|
+
this.TeamSharingService = new TeamSharingService(this.api);
|
|
445
|
+
this.Fdc3Service = new Fdc3Service(this.api);
|
|
452
446
|
// @ts-ignore
|
|
453
|
-
this.RowEditService = new
|
|
454
|
-
this.MetamodelService = new
|
|
447
|
+
this.RowEditService = new RowEditService(this.api);
|
|
448
|
+
this.MetamodelService = new MetamodelService(() => this.api.optionsApi.getAdaptableOptions());
|
|
455
449
|
// validate the provided AdaptableOptions
|
|
456
450
|
this.MetamodelService.validateAdaptableOptionsValues();
|
|
457
451
|
this.forPlugins((plugin) => plugin.afterInitServices(this));
|
|
@@ -464,14 +458,14 @@ class Adaptable {
|
|
|
464
458
|
this.gridOptions.api.__adaptable = this;
|
|
465
459
|
}
|
|
466
460
|
this.gridOptions.columnTypes = this.gridOptions.columnTypes || {};
|
|
467
|
-
|
|
461
|
+
attachColumnTypes(this.gridOptions);
|
|
468
462
|
if (this.gridOptions.columnTypes.abColDefNumber.cellEditor === undefined) {
|
|
469
463
|
this.gridOptions.columnTypes.abColDefNumber.cellEditor =
|
|
470
|
-
this.variant === 'react' ?
|
|
464
|
+
this.variant === 'react' ? ReactAdaptableNumberEditor : AdaptableNumberEditor;
|
|
471
465
|
}
|
|
472
466
|
if (this.gridOptions.columnTypes.abColDefDate.cellEditor === undefined) {
|
|
473
467
|
this.gridOptions.columnTypes.abColDefDate.cellEditor =
|
|
474
|
-
this.variant === 'react' ?
|
|
468
|
+
this.variant === 'react' ? ReactAdaptableDateEditor : AdaptableDateEditor;
|
|
475
469
|
}
|
|
476
470
|
return this.initializeAgGrid().then((initialized) => {
|
|
477
471
|
if (!initialized) {
|
|
@@ -504,7 +498,7 @@ class Adaptable {
|
|
|
504
498
|
const perfInitInternalGridLogic = this.logger.beginPerf('InitInternalGridLogic');
|
|
505
499
|
this.initInternalGridLogic();
|
|
506
500
|
perfInitInternalGridLogic.end();
|
|
507
|
-
|
|
501
|
+
AdaptableHelper.checkValidPrimaryKey(this);
|
|
508
502
|
}, (e) => {
|
|
509
503
|
this.logger.error('Failed to Init Modules : ', e);
|
|
510
504
|
// for now we initialize the grid even if initialising Modules has failed (perhaps revisit this?)
|
|
@@ -520,16 +514,16 @@ class Adaptable {
|
|
|
520
514
|
}
|
|
521
515
|
if (this.abContainerElement != null) {
|
|
522
516
|
this.abContainerElement.innerHTML = '';
|
|
523
|
-
this.unmountReactRoot = this.renderReactRoot(
|
|
517
|
+
this.unmountReactRoot = this.renderReactRoot(AdaptableApp({ Adaptable: this }), this.abContainerElement);
|
|
524
518
|
}
|
|
525
519
|
// create debounce methods that take a time based on user settings
|
|
526
|
-
this.throttleFilterOnEditDataChange = (
|
|
520
|
+
this.throttleFilterOnEditDataChange = throttle(
|
|
527
521
|
// the extra function is to make sure we have a reference to ag-grid-api
|
|
528
|
-
() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.
|
|
522
|
+
() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.columnFilterOptions.filterActionOnUserDataChange.throttleDelay, {
|
|
529
523
|
trailing: true,
|
|
530
524
|
leading: false,
|
|
531
525
|
});
|
|
532
|
-
this.throttleFilterOnTickingDataChange = (
|
|
526
|
+
this.throttleFilterOnTickingDataChange = throttle(() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.columnFilterOptions.filterActionOnExternalDataChange.throttleDelay, {
|
|
533
527
|
trailing: true,
|
|
534
528
|
leading: false,
|
|
535
529
|
});
|
|
@@ -574,12 +568,12 @@ class Adaptable {
|
|
|
574
568
|
}
|
|
575
569
|
initStore() {
|
|
576
570
|
const perfNewAdaptableStore = this.logger.beginPerf(`new AdaptableStore()`);
|
|
577
|
-
this.adaptableStore = new
|
|
571
|
+
this.adaptableStore = new AdaptableStore(this, this.isAgGridReady());
|
|
578
572
|
perfNewAdaptableStore.end();
|
|
579
573
|
this.adaptableStore.onAny((eventName, data) => {
|
|
580
574
|
this.performAudit(data.action, data.state, data.newState);
|
|
581
575
|
this.forPlugins((plugin) => plugin.onStoreEvent(eventName, data, this.adaptableStore));
|
|
582
|
-
if (eventName ==
|
|
576
|
+
if (eventName == INIT_STATE) {
|
|
583
577
|
const perfInitState = this.logger.beginPerf('InitState');
|
|
584
578
|
const perfUpdateOldConfig = this.logger.beginPerf('updateOldConfig()');
|
|
585
579
|
this.adaptableModules.forEach((m) => m.updateOldConfig());
|
|
@@ -647,7 +641,7 @@ class Adaptable {
|
|
|
647
641
|
const adaptableSideBarDef = this.createAdaptableSideBarDef();
|
|
648
642
|
if (!!adaptableSideBarDef) {
|
|
649
643
|
this.gridOptions.components = this.gridOptions.components || {};
|
|
650
|
-
this.gridOptions.components.AdaptableToolPanel =
|
|
644
|
+
this.gridOptions.components.AdaptableToolPanel = getAdaptableToolPanelAgGridComponent(this);
|
|
651
645
|
}
|
|
652
646
|
if (this.agGridHelper.isSideBarDefObject(adaptableSideBarDef)) {
|
|
653
647
|
this.setGridOptionsProperty('sideBar', () => {
|
|
@@ -703,7 +697,7 @@ class Adaptable {
|
|
|
703
697
|
if ((_a = this.runtimeConfig.modules) === null || _a === void 0 ? void 0 : _a.length) {
|
|
704
698
|
gridParams = { modules: this.runtimeConfig.modules };
|
|
705
699
|
}
|
|
706
|
-
grid = new
|
|
700
|
+
grid = new Grid(agGridContainer, this.gridOptions, gridParams);
|
|
707
701
|
perfAgGridInstance.end();
|
|
708
702
|
// add our adaptable object to the grid options api object
|
|
709
703
|
// this is VERY useful for when we need to access Adaptable inside of agGrid only functions
|
|
@@ -801,12 +795,12 @@ class Adaptable {
|
|
|
801
795
|
this.setGridOptionsProperty('statusBar', (originalStatusBar) => {
|
|
802
796
|
var _a, _b;
|
|
803
797
|
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) => {
|
|
804
|
-
if (statusPanel.statusPanel ===
|
|
798
|
+
if (statusPanel.statusPanel === ADAPTABLE_STATUS_PANEL) {
|
|
805
799
|
adaptableStatusPanelKeys.push(statusPanel.key);
|
|
806
800
|
const context = {
|
|
807
801
|
Key: statusPanel.key,
|
|
808
802
|
};
|
|
809
|
-
return Object.assign(Object.assign({}, statusPanel), { statusPanel:
|
|
803
|
+
return Object.assign(Object.assign({}, statusPanel), { statusPanel: createAgStatusPanelComponent(AdaptableStatusBar, this, context) });
|
|
810
804
|
}
|
|
811
805
|
return statusPanel;
|
|
812
806
|
});
|
|
@@ -825,39 +819,42 @@ class Adaptable {
|
|
|
825
819
|
return (_c = (_b = (_a = this.gridOptions) === null || _a === void 0 ? void 0 : _a.statusBar) === null || _b === void 0 ? void 0 : _b.statusPanels) !== null && _c !== void 0 ? _c : [];
|
|
826
820
|
}
|
|
827
821
|
filterOnEditDataChange() {
|
|
828
|
-
if (this.adaptableOptions.
|
|
829
|
-
|
|
822
|
+
if (this.adaptableOptions.columnFilterOptions.filterActionOnUserDataChange.applyFilter ==
|
|
823
|
+
FilterOnDataChangeOptions.Always) {
|
|
830
824
|
this.gridOptions.api.onFilterChanged();
|
|
831
825
|
}
|
|
832
|
-
else if (this.adaptableOptions.
|
|
833
|
-
|
|
826
|
+
else if (this.adaptableOptions.columnFilterOptions.filterActionOnUserDataChange.applyFilter ==
|
|
827
|
+
FilterOnDataChangeOptions.Throttle) {
|
|
834
828
|
this.throttleFilterOnEditDataChange();
|
|
835
829
|
}
|
|
836
830
|
}
|
|
837
831
|
filterOnTickingDataChange() {
|
|
838
|
-
if (this.adaptableOptions.
|
|
839
|
-
|
|
832
|
+
if (this.adaptableOptions.columnFilterOptions.filterActionOnExternalDataChange.applyFilter ==
|
|
833
|
+
FilterOnDataChangeOptions.Always) {
|
|
840
834
|
this.gridOptions.api.onFilterChanged();
|
|
841
835
|
}
|
|
842
|
-
else if (this.adaptableOptions.
|
|
843
|
-
|
|
836
|
+
else if (this.adaptableOptions.columnFilterOptions.filterActionOnExternalDataChange.applyFilter ==
|
|
837
|
+
FilterOnDataChangeOptions.Throttle) {
|
|
844
838
|
this.throttleFilterOnTickingDataChange();
|
|
845
839
|
}
|
|
846
840
|
}
|
|
847
|
-
|
|
848
|
-
if (this.api.
|
|
849
|
-
if (this.api.
|
|
841
|
+
applyColumnFiltering() {
|
|
842
|
+
if (this.api.columnFilterApi.isQuickFilterAvailable()) {
|
|
843
|
+
if (this.api.columnFilterApi.isQuickFilterVisible()) {
|
|
850
844
|
this.showQuickFilter();
|
|
851
845
|
}
|
|
852
846
|
else {
|
|
853
847
|
this.hideQuickFilter();
|
|
854
848
|
}
|
|
855
849
|
}
|
|
850
|
+
this.applyGridFiltering();
|
|
851
|
+
this.updateColumnFilterActiveState();
|
|
852
|
+
}
|
|
853
|
+
applyGridFiltering() {
|
|
856
854
|
this.gridOptions.api.onFilterChanged();
|
|
857
|
-
this._emit('
|
|
855
|
+
this._emit('AdapTableFiltersApplied');
|
|
858
856
|
this.setSelectedCells();
|
|
859
857
|
this.setSelectedRows();
|
|
860
|
-
this.updateColumnFilterActiveState();
|
|
861
858
|
}
|
|
862
859
|
isGroupRowNode(rowNode) {
|
|
863
860
|
if (!rowNode) {
|
|
@@ -889,12 +886,12 @@ class Adaptable {
|
|
|
889
886
|
}
|
|
890
887
|
return false;
|
|
891
888
|
}
|
|
892
|
-
|
|
889
|
+
clearColumnFiltering() {
|
|
893
890
|
this.gridOptions.columnApi.getColumns().forEach((c) => {
|
|
894
891
|
this.gridOptions.api.destroyFilter(c);
|
|
895
892
|
});
|
|
896
893
|
}
|
|
897
|
-
|
|
894
|
+
clearColumnFilteringForColumns(columnIds) {
|
|
898
895
|
columnIds.forEach((c) => {
|
|
899
896
|
const column = this.gridOptions.columnApi
|
|
900
897
|
.getColumns()
|
|
@@ -904,7 +901,7 @@ class Adaptable {
|
|
|
904
901
|
}
|
|
905
902
|
});
|
|
906
903
|
}
|
|
907
|
-
|
|
904
|
+
hideColumnFilterForm() {
|
|
908
905
|
if (this.hideFilterFormPopup) {
|
|
909
906
|
this.hideFilterFormPopup();
|
|
910
907
|
}
|
|
@@ -978,11 +975,11 @@ class Adaptable {
|
|
|
978
975
|
* The combination of styled column and format cells
|
|
979
976
|
* This functiond decides when the two can be merged.
|
|
980
977
|
*/
|
|
981
|
-
getFormatColumnAndStyledColumnCellStyle(
|
|
982
|
-
let styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(
|
|
978
|
+
getFormatColumnAndStyledColumnCellStyle(gridCell, params) {
|
|
979
|
+
let styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(gridCell.column.columnId);
|
|
983
980
|
let styledColumnStyle = {};
|
|
984
981
|
if (styledColumn && !(styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.IsSuspended)) {
|
|
985
|
-
const styledCellStyle = this.getStyledColumnStyle(styledColumn,
|
|
982
|
+
const styledCellStyle = this.getStyledColumnStyle(styledColumn, gridCell.column, params);
|
|
986
983
|
// for percentbar we want to merge
|
|
987
984
|
if (styledColumn.PercentBarStyle || styledColumn.BadgeStyle) {
|
|
988
985
|
styledColumnStyle = styledCellStyle;
|
|
@@ -992,8 +989,8 @@ class Adaptable {
|
|
|
992
989
|
return styledCellStyle;
|
|
993
990
|
}
|
|
994
991
|
}
|
|
995
|
-
const activeFormatColumnsWithStyle = this.api.formatColumnApi.internalApi.getFormatColumnsWithStyleForColumn(
|
|
996
|
-
return Object.assign(Object.assign({}, this.getFormatColumnCellStyle(
|
|
992
|
+
const activeFormatColumnsWithStyle = this.api.formatColumnApi.internalApi.getFormatColumnsWithStyleForColumn(gridCell.column);
|
|
993
|
+
return Object.assign(Object.assign({}, this.getFormatColumnCellStyle(gridCell.column, activeFormatColumnsWithStyle, params)), styledColumnStyle);
|
|
997
994
|
}
|
|
998
995
|
getStyledColumnStyle(styledColumn, abColumn, params) {
|
|
999
996
|
let style = {};
|
|
@@ -1010,7 +1007,7 @@ class Adaptable {
|
|
|
1010
1007
|
* Color should always be in bounds, it should not overflow.
|
|
1011
1008
|
* If the value is out of range, it shoul set the maximum/minimum color.
|
|
1012
1009
|
*/
|
|
1013
|
-
colValue = (
|
|
1010
|
+
colValue = clamp(params.value, minColumnValue, maxColumnValue);
|
|
1014
1011
|
}
|
|
1015
1012
|
else {
|
|
1016
1013
|
return style;
|
|
@@ -1037,7 +1034,7 @@ class Adaptable {
|
|
|
1037
1034
|
if (reverseGradient) {
|
|
1038
1035
|
alpha = 1 - alpha;
|
|
1039
1036
|
}
|
|
1040
|
-
const preparedColor =
|
|
1037
|
+
const preparedColor = getVariableColor(cellBackColor);
|
|
1041
1038
|
// if no range match, do not apply color (black in this case)
|
|
1042
1039
|
if (cellBackColor) {
|
|
1043
1040
|
style.backgroundColor = tinycolor(preparedColor).setAlpha(alpha).toRgbString();
|
|
@@ -1098,21 +1095,21 @@ class Adaptable {
|
|
|
1098
1095
|
getActiveAlertWithHighlightRow(params) {
|
|
1099
1096
|
return this.api.alertApi.internalApi.getAdaptableAlertWithHighlightRow(params.node);
|
|
1100
1097
|
}
|
|
1101
|
-
getAlertCellStyle(
|
|
1102
|
-
const alert = this.getActiveAlertWithHighlightCell(
|
|
1098
|
+
getAlertCellStyle(gridCell, params) {
|
|
1099
|
+
const alert = this.getActiveAlertWithHighlightCell(gridCell.column, params);
|
|
1103
1100
|
if (alert) {
|
|
1104
1101
|
const highlightCell = alert.alertDefinition.AlertProperties.HighlightCell;
|
|
1105
1102
|
if (typeof highlightCell === 'object') {
|
|
1106
1103
|
return this.convertAdaptableStyleToCSS(highlightCell);
|
|
1107
1104
|
}
|
|
1108
1105
|
return {
|
|
1109
|
-
backgroundColor:
|
|
1106
|
+
backgroundColor: UIHelper.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
1110
1107
|
};
|
|
1111
1108
|
}
|
|
1112
1109
|
}
|
|
1113
|
-
getAlertCellClass(
|
|
1110
|
+
getAlertCellClass(gridCell, params) {
|
|
1114
1111
|
var _a, _b;
|
|
1115
|
-
const alert = this.getActiveAlertWithHighlightCell(
|
|
1112
|
+
const alert = this.getActiveAlertWithHighlightCell(gridCell.column, params);
|
|
1116
1113
|
const highlightCell = (_b = (_a = alert === null || alert === void 0 ? void 0 : alert.alertDefinition) === null || _a === void 0 ? void 0 : _a.AlertProperties) === null || _b === void 0 ? void 0 : _b.HighlightCell;
|
|
1117
1114
|
return typeof highlightCell === 'object' && (highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName)
|
|
1118
1115
|
? highlightCell === null || highlightCell === void 0 ? void 0 : highlightCell.ClassName
|
|
@@ -1134,17 +1131,15 @@ class Adaptable {
|
|
|
1134
1131
|
return typeof highlightRow === 'object'
|
|
1135
1132
|
? this.convertAdaptableStyleToCSS(highlightRow)
|
|
1136
1133
|
: {
|
|
1137
|
-
backgroundColor:
|
|
1134
|
+
backgroundColor: UIHelper.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
1138
1135
|
};
|
|
1139
1136
|
}
|
|
1140
1137
|
return null;
|
|
1141
1138
|
}
|
|
1142
|
-
getFlashingCellStyle(
|
|
1139
|
+
getFlashingCellStyle(gridCell, params) {
|
|
1143
1140
|
var _a;
|
|
1144
|
-
const primaryKey = params.node.aggData
|
|
1145
|
-
|
|
1146
|
-
: this.getPrimaryKeyValueFromRowNode(params.node);
|
|
1147
|
-
const flashingCell = this.api.flashingCellApi.internalApi.getAdaptableFlashingCellFor(primaryKey, col.columnId);
|
|
1141
|
+
const primaryKey = params.node.aggData ? params.node.id : gridCell.primaryKeyValue;
|
|
1142
|
+
const flashingCell = this.api.flashingCellApi.internalApi.getAdaptableFlashingCellFor(primaryKey, gridCell.column.columnId);
|
|
1148
1143
|
if (!flashingCell) {
|
|
1149
1144
|
return {};
|
|
1150
1145
|
}
|
|
@@ -1154,13 +1149,13 @@ class Adaptable {
|
|
|
1154
1149
|
? flashingCell.flashingCellDefinition.DownChangeStyle
|
|
1155
1150
|
: flashingCell.flashingCellDefinition.NeutralChangeStyle)) !== null && _a !== void 0 ? _a : {});
|
|
1156
1151
|
}
|
|
1157
|
-
getNoteCellClassName(
|
|
1152
|
+
getNoteCellClassName(gridCell, params) {
|
|
1158
1153
|
if (!this.api.internalApi.getModuleService().isModuleAvailable('Notes')) {
|
|
1159
1154
|
return;
|
|
1160
1155
|
}
|
|
1161
1156
|
const cellPosition = {
|
|
1162
|
-
PrimaryKeyValue:
|
|
1163
|
-
ColumnId:
|
|
1157
|
+
PrimaryKeyValue: gridCell.primaryKeyValue,
|
|
1158
|
+
ColumnId: gridCell.column.columnId,
|
|
1164
1159
|
};
|
|
1165
1160
|
const cellNotes = this.api.notesApi.getCellNotes(cellPosition);
|
|
1166
1161
|
if (!(cellNotes === null || cellNotes === void 0 ? void 0 : cellNotes.length)) {
|
|
@@ -1168,12 +1163,10 @@ class Adaptable {
|
|
|
1168
1163
|
}
|
|
1169
1164
|
return 'ab-Cell-Note';
|
|
1170
1165
|
}
|
|
1171
|
-
getFlashingCellClass(
|
|
1166
|
+
getFlashingCellClass(gridcell, params) {
|
|
1172
1167
|
var _a, _b, _c;
|
|
1173
|
-
const primaryKey = params.node.aggData
|
|
1174
|
-
|
|
1175
|
-
: this.getPrimaryKeyValueFromRowNode(params.node);
|
|
1176
|
-
const flashingCell = this.api.flashingCellApi.internalApi.getAdaptableFlashingCellFor(primaryKey, col.columnId);
|
|
1168
|
+
const primaryKey = params.node.aggData ? params.node.id : gridcell.primaryKeyValue;
|
|
1169
|
+
const flashingCell = this.api.flashingCellApi.internalApi.getAdaptableFlashingCellFor(primaryKey, gridcell.column.columnId);
|
|
1177
1170
|
if (!flashingCell) {
|
|
1178
1171
|
return;
|
|
1179
1172
|
}
|
|
@@ -1185,13 +1178,12 @@ class Adaptable {
|
|
|
1185
1178
|
? (_c = flashingCell.flashingCellDefinition.NeutralChangeStyle) === null || _c === void 0 ? void 0 : _c.ClassName
|
|
1186
1179
|
: undefined;
|
|
1187
1180
|
}
|
|
1188
|
-
getCellHighlightStyle(
|
|
1189
|
-
const primaryKeyValue = this.getPrimaryKeyValueFromRowNode(params.node);
|
|
1181
|
+
getCellHighlightStyle(gridCell, params) {
|
|
1190
1182
|
const cellHightlight = this.api.internalApi
|
|
1191
1183
|
.getSystemState()
|
|
1192
1184
|
.HighlightedCells.find((cellHighlightInfo) => {
|
|
1193
|
-
return (
|
|
1194
|
-
cellHighlightInfo.primaryKeyValue === primaryKeyValue);
|
|
1185
|
+
return (gridCell.column.columnId === cellHighlightInfo.columnId &&
|
|
1186
|
+
cellHighlightInfo.primaryKeyValue === gridCell.primaryKeyValue);
|
|
1195
1187
|
});
|
|
1196
1188
|
if (cellHightlight) {
|
|
1197
1189
|
return this.convertAdaptableStyleToCSS(cellHightlight.highlightStyle);
|
|
@@ -1223,17 +1215,16 @@ class Adaptable {
|
|
|
1223
1215
|
}
|
|
1224
1216
|
getQuickSearchCellStyle() {
|
|
1225
1217
|
const quickSearchStyle = this.api.quickSearchApi.getQuickSearchStyle();
|
|
1226
|
-
if (!quickSearchStyle ||
|
|
1218
|
+
if (!quickSearchStyle || StringExtensions.IsNotNullOrEmpty(quickSearchStyle.ClassName)) {
|
|
1227
1219
|
return undefined;
|
|
1228
1220
|
}
|
|
1229
1221
|
return this.convertAdaptableStyleToCSS(quickSearchStyle);
|
|
1230
1222
|
}
|
|
1231
|
-
getEditableCellStyle(
|
|
1223
|
+
getEditableCellStyle(gridCell, params) {
|
|
1232
1224
|
const editableCellStyle = this.api.userInterfaceApi.getEditableCellStyle();
|
|
1233
1225
|
if (!editableCellStyle) {
|
|
1234
1226
|
return undefined;
|
|
1235
1227
|
}
|
|
1236
|
-
const gridCell = this.getGridCellFromRowNode(params.node, abColumn.columnId);
|
|
1237
1228
|
if (gridCell) {
|
|
1238
1229
|
if (this.api.gridApi.isCellEditable(gridCell)) {
|
|
1239
1230
|
return this.convertAdaptableStyleToCSS(editableCellStyle);
|
|
@@ -1241,12 +1232,11 @@ class Adaptable {
|
|
|
1241
1232
|
}
|
|
1242
1233
|
return undefined;
|
|
1243
1234
|
}
|
|
1244
|
-
getReadOnlyCellStyle(
|
|
1235
|
+
getReadOnlyCellStyle(gridCell, params) {
|
|
1245
1236
|
const editableCellStyle = this.api.userInterfaceApi.getReadOnlyCellStyle();
|
|
1246
1237
|
if (!editableCellStyle) {
|
|
1247
1238
|
return undefined;
|
|
1248
1239
|
}
|
|
1249
|
-
const gridCell = this.getGridCellFromRowNode(params.node, abColumn.columnId);
|
|
1250
1240
|
if (gridCell) {
|
|
1251
1241
|
if (!this.api.gridApi.isCellEditable(gridCell)) {
|
|
1252
1242
|
return this.convertAdaptableStyleToCSS(editableCellStyle);
|
|
@@ -1254,53 +1244,57 @@ class Adaptable {
|
|
|
1254
1244
|
}
|
|
1255
1245
|
return undefined;
|
|
1256
1246
|
}
|
|
1257
|
-
getEditableCellClass(
|
|
1247
|
+
getEditableCellClass(gridCell, params) {
|
|
1258
1248
|
const editableCellStyle = this.api.userInterfaceApi.getEditableCellStyle();
|
|
1259
1249
|
if (!(editableCellStyle === null || editableCellStyle === void 0 ? void 0 : editableCellStyle.ClassName)) {
|
|
1260
1250
|
return null;
|
|
1261
1251
|
}
|
|
1262
|
-
const isCellEditable = this.api.gridApi.isCellEditable(
|
|
1252
|
+
const isCellEditable = this.api.gridApi.isCellEditable(gridCell);
|
|
1263
1253
|
return isCellEditable ? editableCellStyle.ClassName : null;
|
|
1264
1254
|
}
|
|
1265
|
-
getReadonlyCellClass(
|
|
1255
|
+
getReadonlyCellClass(gridCell, params) {
|
|
1266
1256
|
const readonlyCellStyle = this.api.userInterfaceApi.getReadOnlyCellStyle();
|
|
1267
1257
|
if (!(readonlyCellStyle === null || readonlyCellStyle === void 0 ? void 0 : readonlyCellStyle.ClassName)) {
|
|
1268
1258
|
return null;
|
|
1269
1259
|
}
|
|
1270
|
-
const isCellReadonly = !this.api.gridApi.isCellEditable(
|
|
1260
|
+
const isCellReadonly = !this.api.gridApi.isCellEditable(gridCell);
|
|
1271
1261
|
return isCellReadonly ? readonlyCellStyle.ClassName : null;
|
|
1272
1262
|
}
|
|
1273
|
-
isQuickSearchActive(
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1263
|
+
isQuickSearchActive(gridCell, params) {
|
|
1264
|
+
let quickSearchValue = this.api.quickSearchApi.getQuickSearchValue();
|
|
1265
|
+
if (StringExtensions.IsNullOrEmpty(quickSearchValue)) {
|
|
1266
|
+
return false;
|
|
1267
|
+
}
|
|
1268
|
+
if (gridCell.column.isExcludedFromQuickSearch) {
|
|
1278
1269
|
return false;
|
|
1279
1270
|
}
|
|
1280
1271
|
if (!params.node) {
|
|
1281
1272
|
return false;
|
|
1282
1273
|
}
|
|
1283
|
-
if (!
|
|
1274
|
+
if (!gridCell.isPivotCell &&
|
|
1284
1275
|
!this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnRowGroups &&
|
|
1285
1276
|
params.node.group) {
|
|
1286
1277
|
return false;
|
|
1287
1278
|
}
|
|
1288
1279
|
if (!this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnPivotColumns &&
|
|
1289
|
-
|
|
1280
|
+
gridCell.isPivotCell) {
|
|
1290
1281
|
return false;
|
|
1291
1282
|
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
}
|
|
1296
|
-
let displayValue = this.api.gridApi.getDisplayValueFromRowNode(params.node, abColumn.columnId);
|
|
1297
|
-
if (this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnPivotColumns && isPivotColumn) {
|
|
1298
|
-
displayValue = params.value;
|
|
1283
|
+
if (this.api.optionsApi.getQuickSearchOptions().runQuickSearchOnPivotColumns &&
|
|
1284
|
+
gridCell.isPivotCell) {
|
|
1285
|
+
gridCell.displayValue = params.value;
|
|
1299
1286
|
}
|
|
1300
1287
|
const ignoreCase = !this.adaptableOptions.quickSearchOptions.runQuickSearchWithCaseSensitivity;
|
|
1301
|
-
const
|
|
1288
|
+
const displayValue = ignoreCase
|
|
1289
|
+
? String(gridCell.displayValue).toLocaleLowerCase()
|
|
1290
|
+
: String(gridCell.displayValue);
|
|
1302
1291
|
const i = ignoreCase ? String(quickSearchValue).toLocaleLowerCase() : String(quickSearchValue);
|
|
1303
|
-
|
|
1292
|
+
const applyQuickSearchFunction = this.adaptableOptions.quickSearchOptions.runBespokeQuickSearch;
|
|
1293
|
+
if (applyQuickSearchFunction) {
|
|
1294
|
+
const quickSearchContext = Object.assign(Object.assign({}, createBaseContext(this.api)), { gridCell, quickSearchValue: quickSearchValue });
|
|
1295
|
+
return applyQuickSearchFunction(quickSearchContext);
|
|
1296
|
+
}
|
|
1297
|
+
return displayValue.indexOf(i) !== -1;
|
|
1304
1298
|
}
|
|
1305
1299
|
getPrimaryKeyValueFromRowNode(rowNode) {
|
|
1306
1300
|
var _a;
|
|
@@ -1483,7 +1477,7 @@ class Adaptable {
|
|
|
1483
1477
|
colDef === null || colDef === void 0 ? void 0 : colDef.defaultAggFunc) !== null && _e !== void 0 ? _e : 'sum';
|
|
1484
1478
|
}
|
|
1485
1479
|
else if (adaptableAggFunc && adaptableAggFunc.type === 'weightedAverage') {
|
|
1486
|
-
aggFunc =
|
|
1480
|
+
aggFunc = WEIGHTED_AVERAGE_AGG_FN_NAME;
|
|
1487
1481
|
}
|
|
1488
1482
|
else if (typeof aggFuncFromLayout === 'string') {
|
|
1489
1483
|
aggFunc = aggFuncFromLayout;
|
|
@@ -1498,7 +1492,7 @@ class Adaptable {
|
|
|
1498
1492
|
newColState.sort = null;
|
|
1499
1493
|
newColState.sortIndex = null;
|
|
1500
1494
|
}
|
|
1501
|
-
isChanged = isChanged || !(
|
|
1495
|
+
isChanged = isChanged || !lodashIsEqual(newColState, oldColState);
|
|
1502
1496
|
return newColState;
|
|
1503
1497
|
})
|
|
1504
1498
|
.filter((x) => !!x);
|
|
@@ -1547,12 +1541,6 @@ class Adaptable {
|
|
|
1547
1541
|
shouldUpdateHeaders = this.setupColumnHeader(colSetupInfo) || shouldUpdateHeaders;
|
|
1548
1542
|
});
|
|
1549
1543
|
isChanged = isChanged || shouldUpdateHeaders;
|
|
1550
|
-
// this is NOT really needed?!
|
|
1551
|
-
// without it everything seem to still work as expected
|
|
1552
|
-
// and the setLayout() execution time is shorter, so a double win
|
|
1553
|
-
// if (ArrayExtensions.IsNotNullOrEmpty(layout.ColumnFilters)) {
|
|
1554
|
-
// this.gridOptions.api!.onFilterChanged();
|
|
1555
|
-
// }
|
|
1556
1544
|
if (isChanged) {
|
|
1557
1545
|
// it's important we set pivot mode
|
|
1558
1546
|
// before we set column state
|
|
@@ -1646,7 +1634,7 @@ class Adaptable {
|
|
|
1646
1634
|
layout = this.api.layoutApi.getCurrentLayout();
|
|
1647
1635
|
}
|
|
1648
1636
|
if (this.api.layoutApi.internalApi.areExpandedRowGroupsSavedInLayouts() &&
|
|
1649
|
-
|
|
1637
|
+
ArrayExtensions.IsNotNullOrEmpty(layout.ExpandedRowGroupValues)) {
|
|
1650
1638
|
this.expandRowGroupsForValues(layout.ExpandedRowGroupValues);
|
|
1651
1639
|
}
|
|
1652
1640
|
if (this.adaptableOptions.layoutOptions.displayRowGroups === 'expanded') {
|
|
@@ -1823,7 +1811,7 @@ class Adaptable {
|
|
|
1823
1811
|
// dont perform row selection in pivot mode
|
|
1824
1812
|
return undefined;
|
|
1825
1813
|
}
|
|
1826
|
-
if (
|
|
1814
|
+
if (ArrayExtensions.IsNotNullOrEmpty(nodes)) {
|
|
1827
1815
|
nodes.forEach((node) => {
|
|
1828
1816
|
const rowInfo = {
|
|
1829
1817
|
isMaster: !!(node.master != null && node.master == true),
|
|
@@ -1897,49 +1885,36 @@ class Adaptable {
|
|
|
1897
1885
|
});
|
|
1898
1886
|
return returnValues;
|
|
1899
1887
|
}
|
|
1900
|
-
|
|
1901
|
-
let
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
displayValue: pv,
|
|
1911
|
-
normalisedValue: pv,
|
|
1912
|
-
columnId: column.columnId,
|
|
1913
|
-
column: column,
|
|
1914
|
-
rowNode: undefined,
|
|
1915
|
-
};
|
|
1888
|
+
getDistinctGridCellsForColumn(column, distinctValuesParams) {
|
|
1889
|
+
let gridCells = [];
|
|
1890
|
+
if (distinctValuesParams.visibleRowsOnly) {
|
|
1891
|
+
this.gridOptions.api.forEachNodeAfterFilter((rowNode) => {
|
|
1892
|
+
const gridCell = this.addDistinctColumnValue(rowNode, column.columnId);
|
|
1893
|
+
if (gridCell &&
|
|
1894
|
+
gridCell.rawValue != undefined &&
|
|
1895
|
+
gridCell.rowNode !== distinctValuesParams.skipRowNode) {
|
|
1896
|
+
gridCells.push(gridCell);
|
|
1897
|
+
}
|
|
1916
1898
|
});
|
|
1917
1899
|
}
|
|
1918
1900
|
else {
|
|
1919
|
-
|
|
1920
|
-
this.
|
|
1921
|
-
|
|
1922
|
-
if (gridCell
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
else {
|
|
1928
|
-
this.gridOptions.api.forEachNode((rowNode) => {
|
|
1929
|
-
const gridCell = this.addDistinctColumnValue(rowNode, column.columnId);
|
|
1930
|
-
if (gridCell && gridCell.rowNode !== skipRowNode) {
|
|
1931
|
-
if (gridCell.rawValue == undefined &&
|
|
1932
|
-
this.adaptableOptions.filterOptions.includeBlankFilterValues) {
|
|
1933
|
-
gridCell.rawValue = GeneralConstants_1.BLANK_DISTINCT_COLUMN_VALUE;
|
|
1934
|
-
gridCell.displayValue = GeneralConstants_1.BLANK_DISTINCT_COLUMN_VALUE;
|
|
1935
|
-
gridCell.normalisedValue = GeneralConstants_1.BLANK_DISTINCT_COLUMN_VALUE;
|
|
1936
|
-
}
|
|
1937
|
-
returnValues.push(gridCell);
|
|
1901
|
+
this.gridOptions.api.forEachNode((rowNode) => {
|
|
1902
|
+
const gridCell = this.addDistinctColumnValue(rowNode, column.columnId);
|
|
1903
|
+
if (gridCell && gridCell.rowNode !== distinctValuesParams.skipRowNode) {
|
|
1904
|
+
if (gridCell.rawValue == undefined &&
|
|
1905
|
+
this.adaptableOptions.columnFilterOptions.valuesFilterOptions.includeBlankFilterValues) {
|
|
1906
|
+
gridCell.rawValue = BLANK_DISTINCT_COLUMN_VALUE;
|
|
1907
|
+
gridCell.displayValue = BLANK_DISTINCT_COLUMN_VALUE;
|
|
1908
|
+
gridCell.normalisedValue = BLANK_DISTINCT_COLUMN_VALUE;
|
|
1938
1909
|
}
|
|
1939
|
-
|
|
1940
|
-
|
|
1910
|
+
gridCells.push(gridCell);
|
|
1911
|
+
}
|
|
1912
|
+
});
|
|
1941
1913
|
}
|
|
1942
|
-
|
|
1914
|
+
return gridCells;
|
|
1915
|
+
}
|
|
1916
|
+
getUniqueGridCells(column, gridCells) {
|
|
1917
|
+
let uniqueVals = uniqBy(gridCells, (dataItem) => {
|
|
1943
1918
|
const value = dataItem.rawValue;
|
|
1944
1919
|
if (value instanceof Date) {
|
|
1945
1920
|
return value.toISOString();
|
|
@@ -1947,13 +1922,40 @@ class Adaptable {
|
|
|
1947
1922
|
return value;
|
|
1948
1923
|
});
|
|
1949
1924
|
if (column.dataType == 'String' && this.api.predicateApi.useCaseSensitivity()) {
|
|
1950
|
-
uniqueVals = (
|
|
1925
|
+
uniqueVals = uniqBy(uniqueVals, (d) => d.displayValue.toLowerCase());
|
|
1951
1926
|
}
|
|
1952
|
-
return uniqueVals.slice(0, this.adaptableOptions.
|
|
1927
|
+
return uniqueVals.slice(0, this.adaptableOptions.columnFilterOptions.valuesFilterOptions.maxFilterValuesToDisplay);
|
|
1953
1928
|
}
|
|
1954
|
-
|
|
1929
|
+
getGridCellsForPermittedValues(column, distinctValuesParams) {
|
|
1955
1930
|
var _a;
|
|
1956
|
-
|
|
1931
|
+
let gridCells = [];
|
|
1932
|
+
const permittedValues = (_a = distinctValuesParams.permittedValues) !== null && _a !== void 0 ? _a : this.api.userInterfaceApi.getPermittedValuesForColumn(column);
|
|
1933
|
+
if (ArrayExtensions.IsNotNullOrEmpty(permittedValues)) {
|
|
1934
|
+
gridCells = permittedValues.map((pv) => {
|
|
1935
|
+
return {
|
|
1936
|
+
rawValue: pv,
|
|
1937
|
+
displayValue: pv,
|
|
1938
|
+
normalisedValue: pv,
|
|
1939
|
+
columnId: column.columnId,
|
|
1940
|
+
column: column,
|
|
1941
|
+
rowNode: undefined,
|
|
1942
|
+
isPivotCell: false,
|
|
1943
|
+
isRowGroupCell: false,
|
|
1944
|
+
};
|
|
1945
|
+
});
|
|
1946
|
+
return gridCells;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
getDistinctValuesForColumn(column, distinctValuesParams) {
|
|
1950
|
+
let gridCells = this.getGridCellsForPermittedValues(column, distinctValuesParams);
|
|
1951
|
+
if (ArrayExtensions.IsNullOrEmpty(gridCells)) {
|
|
1952
|
+
gridCells = this.getDistinctGridCellsForColumn(column, distinctValuesParams);
|
|
1953
|
+
}
|
|
1954
|
+
return this.getUniqueGridCells(column, gridCells);
|
|
1955
|
+
}
|
|
1956
|
+
async getDistinctFilterListValuesForColumn(column, filter, distinctValuesParams) {
|
|
1957
|
+
var _a;
|
|
1958
|
+
const filterPermittedValues = (_a = this.api.userInterfaceApi.getFilterPermittedValuesForColumn(column)) !== null && _a !== void 0 ? _a : {
|
|
1957
1959
|
suppressFilterSearchBar: false,
|
|
1958
1960
|
values: () => undefined,
|
|
1959
1961
|
};
|
|
@@ -1966,18 +1968,19 @@ class Adaptable {
|
|
|
1966
1968
|
column: column,
|
|
1967
1969
|
searchFilter: filter,
|
|
1968
1970
|
};
|
|
1969
|
-
preparedPermittedValues = await (
|
|
1971
|
+
preparedPermittedValues = await (filterPermittedValues === null || filterPermittedValues === void 0 ? void 0 : filterPermittedValues.values(filterPermittedValuesParams));
|
|
1970
1972
|
}
|
|
1971
1973
|
catch (error) {
|
|
1972
1974
|
this.logger.consoleError(`Failed to load filter permitted values`, column, filter, error);
|
|
1973
1975
|
}
|
|
1976
|
+
distinctValuesParams.permittedValues = preparedPermittedValues;
|
|
1974
1977
|
return {
|
|
1975
|
-
suppressClientSideFilter:
|
|
1976
|
-
gridCells: this.getDistinctValuesForColumn(column,
|
|
1978
|
+
suppressClientSideFilter: filterPermittedValues.suppressFilterSearchBar,
|
|
1979
|
+
gridCells: this.getDistinctValuesForColumn(column, distinctValuesParams),
|
|
1977
1980
|
};
|
|
1978
1981
|
}
|
|
1979
|
-
async getDistinctCustomSortValuesForColumn(column,
|
|
1980
|
-
const
|
|
1982
|
+
async getDistinctCustomSortValuesForColumn(column, distinctValuesParams) {
|
|
1983
|
+
const customSortPermittedValues = await this.api.userInterfaceApi.getCustomSortPermittedValuesForColumn(column);
|
|
1981
1984
|
let preparedPermittedValues = undefined;
|
|
1982
1985
|
try {
|
|
1983
1986
|
const permittedValuesParams = {
|
|
@@ -1986,15 +1989,16 @@ class Adaptable {
|
|
|
1986
1989
|
adaptableId: this.adaptableOptions.adaptableId,
|
|
1987
1990
|
column: column,
|
|
1988
1991
|
};
|
|
1989
|
-
preparedPermittedValues = await (
|
|
1992
|
+
preparedPermittedValues = await (customSortPermittedValues === null || customSortPermittedValues === void 0 ? void 0 : customSortPermittedValues.values(permittedValuesParams));
|
|
1990
1993
|
}
|
|
1991
1994
|
catch (error) {
|
|
1992
1995
|
this.logger.consoleError(`Failed to load custom sort permitted values`, column, error);
|
|
1993
1996
|
}
|
|
1994
|
-
|
|
1997
|
+
distinctValuesParams.permittedValues = preparedPermittedValues;
|
|
1998
|
+
return this.getDistinctValuesForColumn(column, distinctValuesParams);
|
|
1995
1999
|
}
|
|
1996
|
-
async getDistinctBulkUpdateValuesForColumn(column,
|
|
1997
|
-
const
|
|
2000
|
+
async getDistinctBulkUpdateValuesForColumn(column, selectedGridCells, distinctValuesParams) {
|
|
2001
|
+
const bulkUpdatePermittedValues = await this.api.userInterfaceApi.getBulkUpdatePermittedValuesForColumn(column);
|
|
1998
2002
|
let preparedPermittedValues = undefined;
|
|
1999
2003
|
try {
|
|
2000
2004
|
const bulkUpdatePermittedValuesParams = {
|
|
@@ -2004,12 +2008,13 @@ class Adaptable {
|
|
|
2004
2008
|
userName: this.adaptableOptions.userName,
|
|
2005
2009
|
adaptableId: this.adaptableOptions.adaptableId,
|
|
2006
2010
|
};
|
|
2007
|
-
preparedPermittedValues = await (
|
|
2011
|
+
preparedPermittedValues = await (bulkUpdatePermittedValues === null || bulkUpdatePermittedValues === void 0 ? void 0 : bulkUpdatePermittedValues.values(bulkUpdatePermittedValuesParams));
|
|
2008
2012
|
}
|
|
2009
2013
|
catch (error) {
|
|
2010
2014
|
this.logger.consoleError(`Failed to load bulk permitted values`, error, column, selectedGridCells);
|
|
2011
2015
|
}
|
|
2012
|
-
|
|
2016
|
+
distinctValuesParams.permittedValues = preparedPermittedValues;
|
|
2017
|
+
return this.getDistinctValuesForColumn(column, distinctValuesParams);
|
|
2013
2018
|
}
|
|
2014
2019
|
getColumnValueDisplayValuePairList(columnId, visibleRowsOnly, onlyIncludeIds) {
|
|
2015
2020
|
const returnArray = [];
|
|
@@ -2018,7 +2023,7 @@ class Adaptable {
|
|
|
2018
2023
|
// NB. this currently contains a small bug as we dont check for visibility so if using permitted values then ALL are returned :(
|
|
2019
2024
|
const abColumn = this.api.columnApi.getColumnWithColumnId(columnId);
|
|
2020
2025
|
const permittedValuesForColumn = this.api.userInterfaceApi.getPermittedValuesForColumn(abColumn);
|
|
2021
|
-
if (
|
|
2026
|
+
if (ArrayExtensions.IsNotNullOrEmpty(permittedValuesForColumn)) {
|
|
2022
2027
|
permittedValuesForColumn.forEach((pv) => {
|
|
2023
2028
|
permittedMap.set(pv, {
|
|
2024
2029
|
rawValue: pv,
|
|
@@ -2026,6 +2031,8 @@ class Adaptable {
|
|
|
2026
2031
|
normalisedValue: pv,
|
|
2027
2032
|
column: abColumn,
|
|
2028
2033
|
rowNode: undefined,
|
|
2034
|
+
isPivotCell: false,
|
|
2035
|
+
isRowGroupCell: false,
|
|
2029
2036
|
});
|
|
2030
2037
|
});
|
|
2031
2038
|
}
|
|
@@ -2055,14 +2062,14 @@ class Adaptable {
|
|
|
2055
2062
|
eachFn(rowNode, columnId);
|
|
2056
2063
|
});
|
|
2057
2064
|
}
|
|
2058
|
-
return returnArray.slice(0, this.adaptableOptions.
|
|
2065
|
+
return returnArray.slice(0, this.adaptableOptions.columnFilterOptions.valuesFilterOptions.maxFilterValuesToDisplay);
|
|
2059
2066
|
}
|
|
2060
2067
|
addDistinctColumnValue(rowNode, columnId) {
|
|
2061
2068
|
// we do not return the values of the aggregates when in grouping mode
|
|
2062
2069
|
// otherwise they would appear in the filter dropdown etc....
|
|
2063
2070
|
if (rowNode && !this.isGroupRowNode(rowNode)) {
|
|
2064
2071
|
const returnValue = this.getGridCellFromRowNode(rowNode, columnId);
|
|
2065
|
-
if (
|
|
2072
|
+
if (Helper.objectExists(returnValue)) {
|
|
2066
2073
|
return returnValue;
|
|
2067
2074
|
}
|
|
2068
2075
|
}
|
|
@@ -2070,6 +2077,9 @@ class Adaptable {
|
|
|
2070
2077
|
return undefined;
|
|
2071
2078
|
}
|
|
2072
2079
|
}
|
|
2080
|
+
/**
|
|
2081
|
+
* Don't think that this is used - a good thing as its quite verbose
|
|
2082
|
+
*/
|
|
2073
2083
|
getDisplayValue(primaryKey, columnId) {
|
|
2074
2084
|
let returnValue;
|
|
2075
2085
|
if (this.useRowNodeLookUp) {
|
|
@@ -2099,6 +2109,8 @@ class Adaptable {
|
|
|
2099
2109
|
const rawValue = this.getRawValueFromRowNode(rowNode, columnId);
|
|
2100
2110
|
const displayValue = this.getDisplayValueFromRawValue(rowNode, columnId, rawValue);
|
|
2101
2111
|
const normalisedValue = this.getNormalisedValueFromRawValue(rawValue, abColumn);
|
|
2112
|
+
const isPivotCell = this.api.columnApi.isAutoPivotColumn(columnId);
|
|
2113
|
+
const isRowGroupCell = rowNode.group;
|
|
2102
2114
|
return {
|
|
2103
2115
|
rawValue: rawValue,
|
|
2104
2116
|
displayValue: displayValue,
|
|
@@ -2106,6 +2118,8 @@ class Adaptable {
|
|
|
2106
2118
|
column: abColumn,
|
|
2107
2119
|
primaryKeyValue: pkValue,
|
|
2108
2120
|
rowNode: rowNode,
|
|
2121
|
+
isPivotCell,
|
|
2122
|
+
isRowGroupCell,
|
|
2109
2123
|
};
|
|
2110
2124
|
}
|
|
2111
2125
|
getDisplayValueFromRowNode(rowNode, columnId) {
|
|
@@ -2178,7 +2192,7 @@ class Adaptable {
|
|
|
2178
2192
|
}
|
|
2179
2193
|
if (dataType === 'Number') {
|
|
2180
2194
|
// empty string or space should not be converted to 0
|
|
2181
|
-
return typeof rawValue !== 'number' &&
|
|
2195
|
+
return typeof rawValue !== 'number' && StringExtensions.IsNumeric(rawValue)
|
|
2182
2196
|
? Number(rawValue)
|
|
2183
2197
|
: rawValue;
|
|
2184
2198
|
}
|
|
@@ -2186,7 +2200,7 @@ class Adaptable {
|
|
|
2186
2200
|
return typeof rawValue !== 'boolean' ? Boolean(rawValue) : rawValue;
|
|
2187
2201
|
}
|
|
2188
2202
|
if (dataType === 'Date') {
|
|
2189
|
-
return rawValue instanceof Date ? rawValue :
|
|
2203
|
+
return rawValue instanceof Date ? rawValue : parseDateValue(rawValue);
|
|
2190
2204
|
}
|
|
2191
2205
|
return rawValue;
|
|
2192
2206
|
}
|
|
@@ -2281,12 +2295,12 @@ class Adaptable {
|
|
|
2281
2295
|
return this.gridOptions.api.getRenderedNodes();
|
|
2282
2296
|
}
|
|
2283
2297
|
selectNodes(rowNodes, clearSelection) {
|
|
2284
|
-
if (
|
|
2298
|
+
if (ArrayExtensions.IsNotNullOrEmpty(rowNodes)) {
|
|
2285
2299
|
rowNodes.forEach((node) => this.selectNode(node, clearSelection));
|
|
2286
2300
|
}
|
|
2287
2301
|
}
|
|
2288
2302
|
deSelectNodes(rowNodes, clearSelection) {
|
|
2289
|
-
if (
|
|
2303
|
+
if (ArrayExtensions.IsNotNullOrEmpty(rowNodes)) {
|
|
2290
2304
|
rowNodes.forEach((node) => this.deSelectNode(node, clearSelection));
|
|
2291
2305
|
}
|
|
2292
2306
|
}
|
|
@@ -2386,20 +2400,20 @@ class Adaptable {
|
|
|
2386
2400
|
];
|
|
2387
2401
|
}
|
|
2388
2402
|
getColDefsForFreeTextColumns() {
|
|
2389
|
-
const defaultFreeTextColumnSettings =
|
|
2403
|
+
const defaultFreeTextColumnSettings = CreateEmptyFreeTextColumn().FreeTextColumnSettings;
|
|
2390
2404
|
return this.api.freeTextColumnApi.getFreeTextColumns().map((freeTextColumn) => {
|
|
2391
2405
|
var _a;
|
|
2392
2406
|
const freeTextColumnSettings = Object.assign(Object.assign({}, defaultFreeTextColumnSettings), freeTextColumn.FreeTextColumnSettings);
|
|
2393
2407
|
const dataTypeEditor = freeTextColumnSettings.DataType === 'Number'
|
|
2394
|
-
?
|
|
2408
|
+
? AdaptableNumberEditor
|
|
2395
2409
|
: freeTextColumnSettings.DataType === 'Date'
|
|
2396
|
-
?
|
|
2410
|
+
? AdaptableDateEditor
|
|
2397
2411
|
: null;
|
|
2398
2412
|
const columnTypes = [
|
|
2399
|
-
|
|
2413
|
+
AB_SPECIAL_COLUMN,
|
|
2400
2414
|
this.agGridHelper.getAgGridDataType(freeTextColumnSettings.DataType),
|
|
2401
2415
|
];
|
|
2402
|
-
if (
|
|
2416
|
+
if (ArrayExtensions.IsNotNullOrEmpty((_a = freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.FreeTextColumnSettings) === null || _a === void 0 ? void 0 : _a.ColumnTypes)) {
|
|
2403
2417
|
columnTypes.push(...freeTextColumn.FreeTextColumnSettings.ColumnTypes);
|
|
2404
2418
|
}
|
|
2405
2419
|
const newColDef = {
|
|
@@ -2424,8 +2438,9 @@ class Adaptable {
|
|
|
2424
2438
|
valueSetter: (params) => {
|
|
2425
2439
|
return (params.data[freeTextColumn.ColumnId] = params.newValue);
|
|
2426
2440
|
},
|
|
2427
|
-
|
|
2428
|
-
|
|
2441
|
+
// use a Boolean Cell Data Type if the Free Text Column is boolean
|
|
2442
|
+
cellDataType: freeTextColumnSettings.DataType && freeTextColumnSettings.DataType == 'Boolean'
|
|
2443
|
+
? 'boolean'
|
|
2429
2444
|
: undefined,
|
|
2430
2445
|
valueGetter: (params) => this.api.freeTextColumnApi.getFreeTextColumnValueForRowNode(freeTextColumn, params.node),
|
|
2431
2446
|
};
|
|
@@ -2528,11 +2543,14 @@ class Adaptable {
|
|
|
2528
2543
|
return [
|
|
2529
2544
|
{
|
|
2530
2545
|
headerName: '',
|
|
2531
|
-
colId:
|
|
2546
|
+
colId: ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2532
2547
|
hide: false,
|
|
2533
2548
|
editable: false,
|
|
2534
2549
|
// 15px is the icon width + left&right padding + left&right border
|
|
2535
|
-
width: actionButtons.length * (
|
|
2550
|
+
width: Math.max(actionButtons.length * (UIHelper.getSimpleButtonPaddingWidth() * 2 + 15) + 2,
|
|
2551
|
+
// If the width of the column is to small, the width will not be applied
|
|
2552
|
+
// this triggers the setLayout an infinite loop because the width read from the grid is always different
|
|
2553
|
+
40),
|
|
2536
2554
|
resizable: false,
|
|
2537
2555
|
lockVisible: true,
|
|
2538
2556
|
suppressColumnsToolPanel: true,
|
|
@@ -2545,9 +2563,9 @@ class Adaptable {
|
|
|
2545
2563
|
pinned: this.adaptableOptions.actionRowOptions.actionRowButtonOptions.position === 'pinnedRight'
|
|
2546
2564
|
? 'right'
|
|
2547
2565
|
: 'left',
|
|
2548
|
-
cellRenderer: this.variant === 'react' ?
|
|
2549
|
-
cellClass:
|
|
2550
|
-
type: [
|
|
2566
|
+
cellRenderer: this.variant === 'react' ? ReactActionColumnRenderer : ActionColumnRenderer,
|
|
2567
|
+
cellClass: ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2568
|
+
type: [AB_SPECIAL_COLUMN, 'abColDefObject'],
|
|
2551
2569
|
},
|
|
2552
2570
|
];
|
|
2553
2571
|
}
|
|
@@ -2571,8 +2589,8 @@ class Adaptable {
|
|
|
2571
2589
|
filter: false,
|
|
2572
2590
|
sortable: false,
|
|
2573
2591
|
enableRowGroup: false,
|
|
2574
|
-
cellRenderer: this.variant === 'react' ?
|
|
2575
|
-
type: [
|
|
2592
|
+
cellRenderer: this.variant === 'react' ? ReactActionColumnRenderer : ActionColumnRenderer,
|
|
2593
|
+
type: [AB_SPECIAL_COLUMN, 'abColDefObject'],
|
|
2576
2594
|
};
|
|
2577
2595
|
this.logger.info('Setting up Action Column: ' + actionColumn.columnId);
|
|
2578
2596
|
return newColDef;
|
|
@@ -2583,7 +2601,7 @@ class Adaptable {
|
|
|
2583
2601
|
const specialColDefs = this.getColDefsForSpecialColumns();
|
|
2584
2602
|
const isSpecialColDef = (colDef) => {
|
|
2585
2603
|
const { type } = colDef;
|
|
2586
|
-
if (type ===
|
|
2604
|
+
if (type === AB_SPECIAL_COLUMN || (Array.isArray(type) && type.includes(AB_SPECIAL_COLUMN))) {
|
|
2587
2605
|
return true;
|
|
2588
2606
|
}
|
|
2589
2607
|
return false;
|
|
@@ -2641,7 +2659,7 @@ class Adaptable {
|
|
|
2641
2659
|
this.setLayout();
|
|
2642
2660
|
}
|
|
2643
2661
|
getColDefsForCalculatedColumns() {
|
|
2644
|
-
const defaultCalculatedColumnSettings =
|
|
2662
|
+
const defaultCalculatedColumnSettings = CreateEmptyCalculatedColumn().CalculatedColumnSettings;
|
|
2645
2663
|
return this.api.calculatedColumnApi.getCalculatedColumns().map((calculatedColumn) => {
|
|
2646
2664
|
const calculatedColumnSettings = Object.assign(Object.assign({}, defaultCalculatedColumnSettings), calculatedColumn.CalculatedColumnSettings);
|
|
2647
2665
|
if (!calculatedColumnSettings.DataType) {
|
|
@@ -2649,10 +2667,10 @@ class Adaptable {
|
|
|
2649
2667
|
this.CalculatedColumnExpressionService.getCalculatedColumnDataType(calculatedColumn.Query);
|
|
2650
2668
|
}
|
|
2651
2669
|
const columnTypes = [
|
|
2652
|
-
|
|
2670
|
+
AB_SPECIAL_COLUMN,
|
|
2653
2671
|
this.agGridHelper.getAgGridDataType(calculatedColumnSettings.DataType),
|
|
2654
2672
|
];
|
|
2655
|
-
if (
|
|
2673
|
+
if (ArrayExtensions.IsNotNullOrEmpty(calculatedColumnSettings.ColumnTypes)) {
|
|
2656
2674
|
columnTypes.push(...calculatedColumnSettings.ColumnTypes);
|
|
2657
2675
|
}
|
|
2658
2676
|
const isExternalEvaluation = !this.api.expressionApi.internalApi.evaluateExpressionInAdaptableQL('CalculatedColumn', calculatedColumn, this.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query));
|
|
@@ -2741,15 +2759,15 @@ class Adaptable {
|
|
|
2741
2759
|
destroy(config) {
|
|
2742
2760
|
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;
|
|
2743
2761
|
if (this.gridOptions && this.gridOptions.api) {
|
|
2744
|
-
this.gridOptions.api.removeEventListener(
|
|
2745
|
-
this.gridOptions.api.removeEventListener(
|
|
2746
|
-
this.gridOptions.api.removeEventListener(
|
|
2747
|
-
this.gridOptions.api.removeEventListener(
|
|
2748
|
-
this.gridOptions.api.removeEventListener(
|
|
2749
|
-
this.gridOptions.api.removeEventListener(
|
|
2750
|
-
this.gridOptions.api.removeEventListener(
|
|
2751
|
-
this.gridOptions.api.removeEventListener(
|
|
2752
|
-
this.gridOptions.api.removeEventListener(
|
|
2762
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_FIRST_DATA_RENDERED, this.listenerFirstDataRendered);
|
|
2763
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.listenerPivotModeChanged);
|
|
2764
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_COLUMN_PIVOT_CHANGED, this.listenerPivotChanged);
|
|
2765
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_CELL_EDITING_STARTED, this.listenerCellEditingStarted);
|
|
2766
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.listenerColumnRowGroupChanged);
|
|
2767
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_RANGE_SELECTION_CHANGED, this.listenerRangeSelectionChanged);
|
|
2768
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_COLUMN_RESIZED, this.listenerColumnResized);
|
|
2769
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_SORT_CHANGED, this.listenerSortChanged);
|
|
2770
|
+
this.gridOptions.api.removeEventListener(Events.EVENT_MODEL_UPDATED, this.listenerModelUpdated);
|
|
2753
2771
|
this.gridOptions.api.removeGlobalListener(this.listenerGlobalSetRowSelection);
|
|
2754
2772
|
this.gridOptions.api.removeGlobalListener(this.listenerGlobalColumnEventsThatTriggerStateChange);
|
|
2755
2773
|
this.gridOptions.api.removeGlobalListener(this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave);
|
|
@@ -2966,12 +2984,12 @@ class Adaptable {
|
|
|
2966
2984
|
* Action: Set Columns in store and filter grid
|
|
2967
2985
|
*/
|
|
2968
2986
|
const columnEventsThatTriggersStateChange = [
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2987
|
+
Events.EVENT_COLUMN_MOVED,
|
|
2988
|
+
Events.EVENT_GRID_COLUMNS_CHANGED,
|
|
2989
|
+
Events.EVENT_COLUMN_EVERYTHING_CHANGED,
|
|
2990
|
+
Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
|
|
2991
|
+
Events.EVENT_COLUMN_VISIBLE,
|
|
2992
|
+
Events.EVENT_NEW_COLUMNS_LOADED,
|
|
2975
2993
|
];
|
|
2976
2994
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalColumnEventsThatTriggerStateChange = (type) => {
|
|
2977
2995
|
if (columnEventsThatTriggersStateChange.indexOf(type) > -1) {
|
|
@@ -2982,7 +3000,7 @@ class Adaptable {
|
|
|
2982
3000
|
* Use Case: User has started inline editing but its distabled in Action Row Options
|
|
2983
3001
|
* Action: Stop editing
|
|
2984
3002
|
*/
|
|
2985
|
-
this.gridOptions.api.addEventListener(
|
|
3003
|
+
this.gridOptions.api.addEventListener(Events.EVENT_CELL_EDITING_STARTED, (this.listenerCellEditingStarted = () => {
|
|
2986
3004
|
var _a;
|
|
2987
3005
|
if ((_a = this.adaptableOptions.actionRowOptions) === null || _a === void 0 ? void 0 : _a.disableInlineEditing)
|
|
2988
3006
|
this.gridOptions.api.stopEditing();
|
|
@@ -2993,7 +3011,7 @@ class Adaptable {
|
|
|
2993
3011
|
* Action2: Ensure that we have set column data types
|
|
2994
3012
|
* Note: Deals with scenario where the data is provided to AdapTable after grid has been setup
|
|
2995
3013
|
*/
|
|
2996
|
-
this.gridOptions.api.addEventListener(
|
|
3014
|
+
this.gridOptions.api.addEventListener(Events.EVENT_FIRST_DATA_RENDERED, (this.listenerFirstDataRendered = () => {
|
|
2997
3015
|
this.checkColumnsDataTypeSet();
|
|
2998
3016
|
this.api.calculatedColumnApi.refreshAggregatedCalculatedColumns();
|
|
2999
3017
|
this.setLayout();
|
|
@@ -3003,7 +3021,7 @@ class Adaptable {
|
|
|
3003
3021
|
* Action 1: Autosize pivot columns when entering pivot mode (if autosize pivot in Layout is true)
|
|
3004
3022
|
* Action 2: Set pivot mode on / off in api as necessary
|
|
3005
3023
|
*/
|
|
3006
|
-
this.gridOptions.api.addEventListener(
|
|
3024
|
+
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, (this.listenerPivotModeChanged = (params) => {
|
|
3007
3025
|
if (params.type == 'columnPivotModeChanged' &&
|
|
3008
3026
|
params.columnApi != null &&
|
|
3009
3027
|
params.columnApi.columnController != null &&
|
|
@@ -3021,7 +3039,7 @@ class Adaptable {
|
|
|
3021
3039
|
* Use Case: A pivot column has changed
|
|
3022
3040
|
* Action: Autosize pivot columns (if autosize pivot in Layout is true)
|
|
3023
3041
|
*/
|
|
3024
|
-
this.gridOptions.api.addEventListener(
|
|
3042
|
+
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_PIVOT_CHANGED, (this.listenerPivotChanged = (params) => {
|
|
3025
3043
|
if (params.type == 'columnPivotChanged' &&
|
|
3026
3044
|
params.columnApi != null &&
|
|
3027
3045
|
params.columnApi.columnController != null &&
|
|
@@ -3036,13 +3054,13 @@ class Adaptable {
|
|
|
3036
3054
|
* Action: Save the Layout (on a debounce)
|
|
3037
3055
|
*/
|
|
3038
3056
|
const columnEventsThatTriggersAutoLayoutSave = [
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3057
|
+
Events.EVENT_COLUMN_PINNED,
|
|
3058
|
+
Events.EVENT_COLUMN_PIVOT_CHANGED,
|
|
3059
|
+
Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,
|
|
3060
|
+
Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
|
|
3061
|
+
Events.EVENT_SORT_CHANGED,
|
|
3062
|
+
Events.EVENT_COLUMN_ROW_GROUP_CHANGED,
|
|
3063
|
+
Events.EVENT_COLUMN_VALUE_CHANGED,
|
|
3046
3064
|
];
|
|
3047
3065
|
// ADD filter event
|
|
3048
3066
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave = (type) => {
|
|
@@ -3052,8 +3070,8 @@ class Adaptable {
|
|
|
3052
3070
|
}));
|
|
3053
3071
|
// Save Layout if Display Row Groups is "dynamic"
|
|
3054
3072
|
const rowGroupEventsThatTriggersAutoLayoutSave = [
|
|
3055
|
-
|
|
3056
|
-
|
|
3073
|
+
Events.EVENT_ROW_GROUP_OPENED,
|
|
3074
|
+
Events.EVENT_EXPAND_COLLAPSE_ALL,
|
|
3057
3075
|
];
|
|
3058
3076
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalRowGroupEventsThatTriggerAutoLayoutSave = (type) => {
|
|
3059
3077
|
if (rowGroupEventsThatTriggersAutoLayoutSave.indexOf(type) > -1) {
|
|
@@ -3066,7 +3084,7 @@ class Adaptable {
|
|
|
3066
3084
|
* Use Case: Column Row Grouping changes and 'restoreUngroupedColumns' is true
|
|
3067
3085
|
* Action: Make the column invisiblel
|
|
3068
3086
|
*/
|
|
3069
|
-
this.gridOptions.api.addEventListener(
|
|
3087
|
+
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_ROW_GROUP_CHANGED, (this.listenerColumnRowGroupChanged = (params) => {
|
|
3070
3088
|
var _a, _b;
|
|
3071
3089
|
if (this.api.internalApi.isGridInPivotMode()) {
|
|
3072
3090
|
return;
|
|
@@ -3080,7 +3098,7 @@ class Adaptable {
|
|
|
3080
3098
|
* Action 1: Save the Layout (on a debounce)
|
|
3081
3099
|
* Action 2: Emit the internal ColumnResized event - used by Sparkline Column (in Charts)
|
|
3082
3100
|
*/
|
|
3083
|
-
this.gridOptions.api.addEventListener(
|
|
3101
|
+
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_RESIZED, (this.listenerColumnResized = (params) => {
|
|
3084
3102
|
if (params.finished == true && params.type == 'columnResized' && params.column) {
|
|
3085
3103
|
this.debouncedSaveGridLayout();
|
|
3086
3104
|
}
|
|
@@ -3090,12 +3108,12 @@ class Adaptable {
|
|
|
3090
3108
|
* Action: Set Selected Rows (on a debeounce)
|
|
3091
3109
|
*/
|
|
3092
3110
|
const columnEventsThatTriggerSetRowSelection = [
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3111
|
+
Events.EVENT_ROW_GROUP_OPENED,
|
|
3112
|
+
Events.EVENT_SELECTION_CHANGED,
|
|
3113
|
+
Events.EVENT_ROW_SELECTED,
|
|
3096
3114
|
];
|
|
3097
3115
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalSetRowSelection = (type) => {
|
|
3098
|
-
if (
|
|
3116
|
+
if (ArrayExtensions.ContainsItem(columnEventsThatTriggerSetRowSelection, type)) {
|
|
3099
3117
|
this.debouncedSetSelectedRows();
|
|
3100
3118
|
}
|
|
3101
3119
|
}));
|
|
@@ -3103,7 +3121,7 @@ class Adaptable {
|
|
|
3103
3121
|
* Use Case: User has selected a range of cells
|
|
3104
3122
|
* Action: Set Selected Cells (on a debounce)
|
|
3105
3123
|
*/
|
|
3106
|
-
this.gridOptions.api.addEventListener(
|
|
3124
|
+
this.gridOptions.api.addEventListener(Events.EVENT_RANGE_SELECTION_CHANGED, (this.listenerRangeSelectionChanged = (params) => {
|
|
3107
3125
|
if (params.finished == true) {
|
|
3108
3126
|
this.debouncedSetSelectedCells();
|
|
3109
3127
|
}
|
|
@@ -3113,7 +3131,7 @@ class Adaptable {
|
|
|
3113
3131
|
* Action1: Update AdapTable Sort Info
|
|
3114
3132
|
* Action2: Set Selected Cells (on a debounce)
|
|
3115
3133
|
*/
|
|
3116
|
-
this.gridOptions.api.addEventListener(
|
|
3134
|
+
this.gridOptions.api.addEventListener(Events.EVENT_SORT_CHANGED, (this.listenerSortChanged = () => {
|
|
3117
3135
|
this.onSortChanged();
|
|
3118
3136
|
this.debouncedSetSelectedCells();
|
|
3119
3137
|
this._emit('SortChanged');
|
|
@@ -3123,7 +3141,7 @@ class Adaptable {
|
|
|
3123
3141
|
* Use Case: Model has updated
|
|
3124
3142
|
* Action: If user has set to see grouping totals as header create a pinned row (bit of a hack)
|
|
3125
3143
|
*/
|
|
3126
|
-
this.gridOptions.api.addEventListener(
|
|
3144
|
+
this.gridOptions.api.addEventListener(Events.EVENT_MODEL_UPDATED, (this.listenerModelUpdated = (params) => {
|
|
3127
3145
|
if (showGroupingTotalsAsHeader) {
|
|
3128
3146
|
if (params && params.api) {
|
|
3129
3147
|
const pinnedData = params.api.getPinnedTopRow(0);
|
|
@@ -3139,18 +3157,18 @@ class Adaptable {
|
|
|
3139
3157
|
}
|
|
3140
3158
|
}));
|
|
3141
3159
|
const eventsThatTriggerChartingChanges = [
|
|
3142
|
-
|
|
3160
|
+
Events.EVENT_CHART_CREATED,
|
|
3143
3161
|
/** Chart Range selection has changed */
|
|
3144
|
-
|
|
3162
|
+
Events.EVENT_CHART_RANGE_SELECTION_CHANGED,
|
|
3145
3163
|
/** Chart Options have changed */
|
|
3146
|
-
|
|
3164
|
+
Events.EVENT_CHART_OPTIONS_CHANGED,
|
|
3147
3165
|
/** Chart was destroyed */
|
|
3148
|
-
|
|
3166
|
+
Events.EVENT_CHART_DESTROYED,
|
|
3149
3167
|
];
|
|
3150
3168
|
const chartingModule = this.ModuleService.getModuleById('Charting');
|
|
3151
3169
|
if (chartingModule.isModuleAvailable()) {
|
|
3152
3170
|
this.gridOptions.api.addGlobalListener((type, params) => {
|
|
3153
|
-
if (
|
|
3171
|
+
if (ArrayExtensions.ContainsItem(eventsThatTriggerChartingChanges, type)) {
|
|
3154
3172
|
this.ChartingService.onChartModelChange(this.getChartModels(), type, params);
|
|
3155
3173
|
}
|
|
3156
3174
|
});
|
|
@@ -3184,11 +3202,11 @@ class Adaptable {
|
|
|
3184
3202
|
if (this.isDestroyed) {
|
|
3185
3203
|
return true;
|
|
3186
3204
|
}
|
|
3187
|
-
const columnFilters = this.api.
|
|
3188
|
-
const
|
|
3189
|
-
const
|
|
3190
|
-
return (
|
|
3191
|
-
|
|
3205
|
+
const columnFilters = this.api.columnFilterApi.getActiveColumnFilters();
|
|
3206
|
+
const isColumnFiltersActive = ArrayExtensions.IsNotNullOrEmpty(columnFilters);
|
|
3207
|
+
const isGridFilterActive = StringExtensions.IsNotNullOrEmpty(this.api.gridFilterApi.getCurrentGridFilterExpression());
|
|
3208
|
+
return (isColumnFiltersActive ||
|
|
3209
|
+
isGridFilterActive ||
|
|
3192
3210
|
// it means that originalIsExternalFilterPresent will be called so we reinit that collection
|
|
3193
3211
|
(originalIsExternalFilterPresent ? originalIsExternalFilterPresent(params) : false));
|
|
3194
3212
|
};
|
|
@@ -3198,30 +3216,30 @@ class Adaptable {
|
|
|
3198
3216
|
if (this.isDestroyed) {
|
|
3199
3217
|
return true;
|
|
3200
3218
|
}
|
|
3201
|
-
// first we assess
|
|
3219
|
+
// first we assess a Grid Filter (if its running locally)
|
|
3202
3220
|
if (!this.isGroupRowNode(node)) {
|
|
3203
|
-
const
|
|
3204
|
-
if (
|
|
3205
|
-
const
|
|
3206
|
-
if (
|
|
3207
|
-
const
|
|
3208
|
-
if (!
|
|
3221
|
+
const currentGridFilter = this.api.gridFilterApi.getCurrentGridFilterExpression();
|
|
3222
|
+
if (currentGridFilter) {
|
|
3223
|
+
const evaluateGridFilterOnClient = this.api.expressionApi.internalApi.evaluateExpressionInAdaptableQL('GridFilter', undefined, currentGridFilter);
|
|
3224
|
+
if (evaluateGridFilterOnClient) {
|
|
3225
|
+
const isCurrentGridFilterValid = this.api.expressionApi.isValidBooleanExpression(currentGridFilter, GridFilterModuleId, `Invalid Grid Filter '${currentGridFilter}'`);
|
|
3226
|
+
if (!isCurrentGridFilterValid ||
|
|
3209
3227
|
!this.api.internalApi
|
|
3210
3228
|
.getQueryLanguageService()
|
|
3211
|
-
.evaluateBooleanExpression(
|
|
3229
|
+
.evaluateBooleanExpression(currentGridFilter, GridFilterModuleId, node)) {
|
|
3212
3230
|
return false;
|
|
3213
3231
|
}
|
|
3214
3232
|
}
|
|
3215
3233
|
}
|
|
3216
3234
|
}
|
|
3217
|
-
const columnFilters = this.api.
|
|
3235
|
+
const columnFilters = this.api.columnFilterApi.getActiveColumnFilters();
|
|
3218
3236
|
try {
|
|
3219
3237
|
if (columnFilters.length > 0) {
|
|
3220
3238
|
for (const columnFilter of columnFilters) {
|
|
3221
|
-
const evaluateFilterOnClient = this.api.expressionApi.internalApi.evaluatePredicatesInAdaptableQL('
|
|
3239
|
+
const evaluateFilterOnClient = this.api.expressionApi.internalApi.evaluatePredicatesInAdaptableQL('ColumnFilter', columnFilter, [columnFilter.Predicate]);
|
|
3222
3240
|
if (evaluateFilterOnClient) {
|
|
3223
3241
|
// we then assess filters (if running locally)
|
|
3224
|
-
if (!this.api.
|
|
3242
|
+
if (!this.api.columnFilterApi.internalApi.evaluateColumnFilter(columnFilter, node)) {
|
|
3225
3243
|
return false;
|
|
3226
3244
|
}
|
|
3227
3245
|
}
|
|
@@ -3250,9 +3268,9 @@ class Adaptable {
|
|
|
3250
3268
|
}
|
|
3251
3269
|
updateColumnFilterActiveState() {
|
|
3252
3270
|
var _a;
|
|
3253
|
-
const columnFilters = this.api.
|
|
3254
|
-
const activeFilters = (_a = columnFilters === null || columnFilters === void 0 ? void 0 : columnFilters.filter) === null || _a === void 0 ? void 0 : _a.call(columnFilters, (columnFilter) => this.api.
|
|
3255
|
-
const isFilterActive =
|
|
3271
|
+
const columnFilters = this.api.columnFilterApi.getActiveColumnFilters();
|
|
3272
|
+
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));
|
|
3273
|
+
const isFilterActive = ArrayExtensions.IsNotNullOrEmpty(activeFilters);
|
|
3256
3274
|
const columnsWithActiveFilters = {};
|
|
3257
3275
|
if (isFilterActive) {
|
|
3258
3276
|
// used in particular at init time to show the filter icon correctly
|
|
@@ -3291,7 +3309,7 @@ class Adaptable {
|
|
|
3291
3309
|
this.updateColDefsForSpecialColumns();
|
|
3292
3310
|
this.applyCurrentTheme();
|
|
3293
3311
|
this.applyFinalRendering();
|
|
3294
|
-
this.
|
|
3312
|
+
this.applyColumnFiltering();
|
|
3295
3313
|
}
|
|
3296
3314
|
catch (ex) {
|
|
3297
3315
|
this.logger.consoleError('AgGrid setup failed');
|
|
@@ -3427,10 +3445,11 @@ class Adaptable {
|
|
|
3427
3445
|
const quickSearchStyle = this.getQuickSearchCellStyle();
|
|
3428
3446
|
const hasQuickSearchStyle = quickSearchStyle != undefined;
|
|
3429
3447
|
const cellStyle = (params) => {
|
|
3430
|
-
const
|
|
3448
|
+
const gridCell = this.getGridCellFromRowNode(params.node, abColumn.columnId);
|
|
3449
|
+
const isQuickSearchActive = hasQuickSearchStyle && this.isQuickSearchActive(gridCell, params);
|
|
3431
3450
|
const userDefined = typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle;
|
|
3432
|
-
const result = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, userDefined), this.getReadOnlyCellStyle(
|
|
3433
|
-
return
|
|
3451
|
+
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));
|
|
3452
|
+
return normalizeStyleForAgGrid(result);
|
|
3434
3453
|
};
|
|
3435
3454
|
return cellStyle;
|
|
3436
3455
|
});
|
|
@@ -3439,25 +3458,25 @@ class Adaptable {
|
|
|
3439
3458
|
this.setColDefProperty(col, 'cellClass', (userCellClass) => {
|
|
3440
3459
|
const formatColumns = this.api.formatColumnApi.internalApi.getFormatColumnWithStyleClassNameForColumn(abColumn);
|
|
3441
3460
|
const quickSearchStyleClassName = this.api.quickSearchApi.getQuickSearchStyle().ClassName;
|
|
3442
|
-
const hasQuickSearchStyleClassName =
|
|
3461
|
+
const hasQuickSearchStyleClassName = StringExtensions.IsNotNullOrEmpty(quickSearchStyleClassName);
|
|
3443
3462
|
const cellClass = (params) => {
|
|
3444
|
-
const
|
|
3463
|
+
const gridCell = this.getGridCellFromRowNode(params.node, abColumn.columnId);
|
|
3445
3464
|
// if a Visual Data export is in progress, we are interested only in the Excel Style Class
|
|
3446
3465
|
if (this.api.exportApi.internalApi.isVisualDataExportInProgress()) {
|
|
3447
3466
|
const userDefinedCellClass = typeof userCellClass === 'function' ? userCellClass(params) : userCellClass;
|
|
3448
|
-
const cellClassKey = this.getExcelClassNameForCell(colId, primaryKeyValue, userDefinedCellClass);
|
|
3467
|
+
const cellClassKey = this.getExcelClassNameForCell(colId, gridCell.primaryKeyValue, userDefinedCellClass);
|
|
3449
3468
|
return this.api.internalApi
|
|
3450
3469
|
.getReportService()
|
|
3451
3470
|
.getExcelStyleIdForCellClassKey(cellClassKey);
|
|
3452
3471
|
}
|
|
3453
|
-
const isQuickSearchActive = hasQuickSearchStyleClassName && this.isQuickSearchActive(
|
|
3454
|
-
const editableClassName = this.getEditableCellClass(
|
|
3455
|
-
const readonlyClassName = this.getReadonlyCellClass(
|
|
3456
|
-
const highlightAlertClassName = this.getAlertCellClass(
|
|
3457
|
-
const flashingClassName = this.getFlashingCellClass(
|
|
3472
|
+
const isQuickSearchActive = hasQuickSearchStyleClassName && this.isQuickSearchActive(gridCell, params);
|
|
3473
|
+
const editableClassName = this.getEditableCellClass(gridCell, params);
|
|
3474
|
+
const readonlyClassName = this.getReadonlyCellClass(gridCell, params);
|
|
3475
|
+
const highlightAlertClassName = this.getAlertCellClass(gridCell, params);
|
|
3476
|
+
const flashingClassName = this.getFlashingCellClass(gridCell, params);
|
|
3458
3477
|
const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(colId);
|
|
3459
3478
|
const hasStyledColumn = !!styledColumn && !styledColumn.IsSuspended;
|
|
3460
|
-
const noteClassName = this.getNoteCellClassName(
|
|
3479
|
+
const noteClassName = this.getNoteCellClassName(gridCell, params);
|
|
3461
3480
|
const returnValue = [
|
|
3462
3481
|
typeof userCellClass === 'function' ? userCellClass(params) : userCellClass,
|
|
3463
3482
|
!hasStyledColumn && formatColumns.length
|
|
@@ -3493,12 +3512,8 @@ class Adaptable {
|
|
|
3493
3512
|
setupColumnCellEditor({ colId, col }) {
|
|
3494
3513
|
const adaptableColumn = this.api.columnApi.getColumnWithColumnId(colId);
|
|
3495
3514
|
const editLookUpItem = this.api.userInterfaceApi.getEditLookUpItemForColumn(adaptableColumn);
|
|
3496
|
-
const hasRichSelectCellEditor = this.isAgGridModulePresent(
|
|
3515
|
+
const hasRichSelectCellEditor = this.isAgGridModulePresent(ModuleNames.RichSelectModule);
|
|
3497
3516
|
this.setColDefProperty(col, 'cellEditor', () => {
|
|
3498
|
-
const styledColumn = this.api.styledColumnApi.getActiveStyledColumnForColumn(adaptableColumn);
|
|
3499
|
-
if (styledColumn && !(styledColumn === null || styledColumn === void 0 ? void 0 : styledColumn.IsSuspended) && styledColumn.CheckBoxStyle) {
|
|
3500
|
-
return CheckboxRenderer_1.CheckboxEditor;
|
|
3501
|
-
}
|
|
3502
3517
|
if (editLookUpItem) {
|
|
3503
3518
|
return hasRichSelectCellEditor ? 'agRichSelectCellEditor' : 'agSelectCellEditor';
|
|
3504
3519
|
}
|
|
@@ -3528,9 +3543,6 @@ class Adaptable {
|
|
|
3528
3543
|
if (styledColumn.PercentBarStyle) {
|
|
3529
3544
|
return this.agGridHelper.createPercentBarRendererComp(styledColumn, abColumn);
|
|
3530
3545
|
}
|
|
3531
|
-
if (styledColumn.CheckBoxStyle) {
|
|
3532
|
-
return this.agGridHelper.createCheckboxRendererComp(abColumn.columnId, abColumn.readOnly);
|
|
3533
|
-
}
|
|
3534
3546
|
if (styledColumn.BadgeStyle) {
|
|
3535
3547
|
return this.agGridHelper.createBadgeRendererComp(styledColumn, abColumn);
|
|
3536
3548
|
}
|
|
@@ -3543,7 +3555,7 @@ class Adaptable {
|
|
|
3543
3555
|
const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(abColumn.columnId);
|
|
3544
3556
|
if (styledColumn && !styledColumn.IsSuspended) {
|
|
3545
3557
|
if (styledColumn.SparkLineStyle) {
|
|
3546
|
-
const sparklineOptions = (
|
|
3558
|
+
const sparklineOptions = merge({}, userDefined === null || userDefined === void 0 ? void 0 : userDefined.sparklineOptions, styledColumn.SparkLineStyle.options);
|
|
3547
3559
|
return Object.assign(Object.assign({}, userDefined), { sparklineOptions });
|
|
3548
3560
|
}
|
|
3549
3561
|
}
|
|
@@ -3568,7 +3580,7 @@ class Adaptable {
|
|
|
3568
3580
|
returnValue = params.value;
|
|
3569
3581
|
}
|
|
3570
3582
|
if (textOptions.includes('PercentageValue')) {
|
|
3571
|
-
const clampedValue =
|
|
3583
|
+
const clampedValue = Helper.clamp(params.value, min, max);
|
|
3572
3584
|
const percentageValue = ((clampedValue - min) / (max - min)) * 100;
|
|
3573
3585
|
returnValue += ' ' + `(${percentageValue.toFixed(0)}%)`;
|
|
3574
3586
|
}
|
|
@@ -3653,7 +3665,7 @@ class Adaptable {
|
|
|
3653
3665
|
var _a;
|
|
3654
3666
|
// set the default to the AG Grid provided values
|
|
3655
3667
|
// from https://github.com/ag-grid/ag-grid/blob/v26.1.0/community-modules/core/src/ts/columns/columnModel.ts#L2515
|
|
3656
|
-
let resultHeaderName = userHeaderName !== null && userHeaderName !== void 0 ? userHeaderName :
|
|
3668
|
+
let resultHeaderName = userHeaderName !== null && userHeaderName !== void 0 ? userHeaderName : StringExtensions.CamelCaseToHumanText(col.getColDef().field);
|
|
3657
3669
|
const layoutCustomHeader = (_a = this.api.layoutApi.getCurrentLayout().ColumnHeadersMap) === null || _a === void 0 ? void 0 : _a[col.getColId()];
|
|
3658
3670
|
if (layoutCustomHeader) {
|
|
3659
3671
|
resultHeaderName = layoutCustomHeader;
|
|
@@ -3671,21 +3683,21 @@ class Adaptable {
|
|
|
3671
3683
|
if (!colDef.filter) {
|
|
3672
3684
|
return;
|
|
3673
3685
|
}
|
|
3674
|
-
if (!this.
|
|
3686
|
+
if (!this.adaptableOptions.columnFilterOptions.useAdaptableColumnFiltering) {
|
|
3675
3687
|
return;
|
|
3676
3688
|
}
|
|
3677
3689
|
this.gridOptions.api.destroyFilter(col);
|
|
3678
|
-
return
|
|
3690
|
+
return FilterWrapperFactory(this);
|
|
3679
3691
|
});
|
|
3680
3692
|
}
|
|
3681
3693
|
setupColumnFloatingFilter({ col, colDef }) {
|
|
3682
3694
|
const isFloatingFilterDisabled = !colDef.floatingFilter ||
|
|
3683
|
-
!this.
|
|
3695
|
+
!this.adaptableOptions.columnFilterOptions.useAdaptableColumnFiltering;
|
|
3684
3696
|
this.setColDefProperty(col, 'floatingFilterComponent', () => {
|
|
3685
3697
|
if (isFloatingFilterDisabled) {
|
|
3686
3698
|
return;
|
|
3687
3699
|
}
|
|
3688
|
-
return
|
|
3700
|
+
return FloatingFilterWrapperFactory(this);
|
|
3689
3701
|
});
|
|
3690
3702
|
this.setColDefProperty(col, 'floatingFilterComponentParams', () => {
|
|
3691
3703
|
if (isFloatingFilterDisabled) {
|
|
@@ -3842,7 +3854,7 @@ class Adaptable {
|
|
|
3842
3854
|
this.api.themeApi.applyCurrentTheme();
|
|
3843
3855
|
}
|
|
3844
3856
|
applyFinalRendering() {
|
|
3845
|
-
this.embedColumnMenu = this.isAgGridModulePresent(
|
|
3857
|
+
this.embedColumnMenu = this.isAgGridModulePresent(ModuleNames.MenuModule);
|
|
3846
3858
|
if (this.gridOptions.treeData && this.gridOptions.treeData == true) {
|
|
3847
3859
|
this.api.internalApi.setTreeModeOn();
|
|
3848
3860
|
}
|
|
@@ -3852,7 +3864,7 @@ class Adaptable {
|
|
|
3852
3864
|
this.agGridHelper.checkShouldClearExistingFiltersOrSearches();
|
|
3853
3865
|
}
|
|
3854
3866
|
isAgGridModulePresent(moduleName) {
|
|
3855
|
-
const standardAgGridRegistrationCheck =
|
|
3867
|
+
const standardAgGridRegistrationCheck = ModuleRegistry.__isRegistered(moduleName, this.gridOptions.gridId);
|
|
3856
3868
|
if (standardAgGridRegistrationCheck) {
|
|
3857
3869
|
return true;
|
|
3858
3870
|
}
|
|
@@ -3864,7 +3876,7 @@ class Adaptable {
|
|
|
3864
3876
|
// because of that we have to check ALL grid IDs to see if the module is registered
|
|
3865
3877
|
// TODO AFL: we should recheck this later, it seems AG Grid is already refactoring this faulty registration process
|
|
3866
3878
|
// @ts-ignore
|
|
3867
|
-
const gridModulesMap =
|
|
3879
|
+
const gridModulesMap = ModuleRegistry.gridModulesMap;
|
|
3868
3880
|
let allModulesMap = {};
|
|
3869
3881
|
Object.keys(gridModulesMap).forEach((gridId) => {
|
|
3870
3882
|
allModulesMap = Object.assign(Object.assign({}, allModulesMap), gridModulesMap[gridId]);
|
|
@@ -4011,7 +4023,7 @@ class Adaptable {
|
|
|
4011
4023
|
getFormatColumnExpressionStylesChanges(dataChangedScope, cellDataChangedInfos) {
|
|
4012
4024
|
const formatColumnsWithExpression = [];
|
|
4013
4025
|
formatColumnsWithExpression.push(...this.api.formatColumnApi.internalApi.getFormatColumnsWithExpression());
|
|
4014
|
-
if (
|
|
4026
|
+
if (ArrayExtensions.IsNullOrEmpty(formatColumnsWithExpression)) {
|
|
4015
4027
|
return;
|
|
4016
4028
|
}
|
|
4017
4029
|
cellDataChangedInfos.forEach((cellDataChangedInfo) => {
|
|
@@ -4051,7 +4063,7 @@ class Adaptable {
|
|
|
4051
4063
|
let columnComparison = this.api.styledColumnApi.internalApi.getColumnComparisonForStyledColumn(sc);
|
|
4052
4064
|
if (columnComparison) {
|
|
4053
4065
|
let affectedColumnIds = this.api.styledColumnApi.internalApi.getColumnIdsFromColumnComparison(columnComparison);
|
|
4054
|
-
if (
|
|
4066
|
+
if (ArrayExtensions.IsNotNullOrEmpty(affectedColumnIds)) {
|
|
4055
4067
|
cellDataChangedInfos.forEach((cellDataChangedInfo) => {
|
|
4056
4068
|
if (affectedColumnIds.includes(cellDataChangedInfo.column.columnId)) {
|
|
4057
4069
|
dataChangedScope.columnIds.add(sc.ColumnId);
|
|
@@ -4063,7 +4075,7 @@ class Adaptable {
|
|
|
4063
4075
|
}
|
|
4064
4076
|
checkChangedCellCurrentlySelected(cellDataChangedInfo) {
|
|
4065
4077
|
let selectedCellInfo = this.api.gridApi.getSelectedCellInfo();
|
|
4066
|
-
if (selectedCellInfo &&
|
|
4078
|
+
if (selectedCellInfo && ArrayExtensions.IsNotNullOrEmpty(selectedCellInfo.gridCells)) {
|
|
4067
4079
|
let matchingCell = selectedCellInfo.gridCells.find((gc) => gc.primaryKeyValue == cellDataChangedInfo.primaryKeyValue &&
|
|
4068
4080
|
gc.column == cellDataChangedInfo.column);
|
|
4069
4081
|
if (matchingCell) {
|
|
@@ -4071,7 +4083,7 @@ class Adaptable {
|
|
|
4071
4083
|
}
|
|
4072
4084
|
}
|
|
4073
4085
|
let selectedRowInfo = this.api.gridApi.getSelectedRowInfo();
|
|
4074
|
-
if (selectedRowInfo &&
|
|
4086
|
+
if (selectedRowInfo && ArrayExtensions.IsNotNullOrEmpty(selectedRowInfo.gridRows)) {
|
|
4075
4087
|
let matchingRow = selectedRowInfo.gridRows.find((gr) => gr.primaryKeyValue == cellDataChangedInfo.primaryKeyValue);
|
|
4076
4088
|
if (matchingRow) {
|
|
4077
4089
|
this.setSelectedRows();
|
|
@@ -4135,7 +4147,7 @@ class Adaptable {
|
|
|
4135
4147
|
this.gridOptions.api.onGroupExpandedOrCollapsed();
|
|
4136
4148
|
}
|
|
4137
4149
|
expandRowGroupsForValues(columnValues) {
|
|
4138
|
-
if (
|
|
4150
|
+
if (ArrayExtensions.IsNotNullOrEmpty(columnValues)) {
|
|
4139
4151
|
const expandedKeys = columnValues.reduce((acc, key) => {
|
|
4140
4152
|
acc[key] = true;
|
|
4141
4153
|
return acc;
|
|
@@ -4440,7 +4452,7 @@ class Adaptable {
|
|
|
4440
4452
|
}
|
|
4441
4453
|
getFirstGroupedColumn() {
|
|
4442
4454
|
let groupedColumns = this.gridOptions.columnApi.getRowGroupColumns();
|
|
4443
|
-
if (
|
|
4455
|
+
if (ArrayExtensions.IsNotNullOrEmpty(groupedColumns)) {
|
|
4444
4456
|
let groupedColumn = groupedColumns[0];
|
|
4445
4457
|
return this.api.columnApi.getColumnWithColumnId(groupedColumn.getColId());
|
|
4446
4458
|
}
|
|
@@ -4500,7 +4512,7 @@ class Adaptable {
|
|
|
4500
4512
|
return (this.gridOptions.rowSelection === 'single' || this.gridOptions.rowSelection === 'multiple');
|
|
4501
4513
|
}
|
|
4502
4514
|
isGridRangeSelectable() {
|
|
4503
|
-
let isRangeSelectionModuleRegistered = this.isAgGridModulePresent(
|
|
4515
|
+
let isRangeSelectionModuleRegistered = this.isAgGridModulePresent(ModuleNames.RangeSelectionModule);
|
|
4504
4516
|
return isRangeSelectionModuleRegistered && this.gridOptions.enableRangeSelection === true;
|
|
4505
4517
|
}
|
|
4506
4518
|
isGridGroupable() {
|
|
@@ -4525,8 +4537,8 @@ class Adaptable {
|
|
|
4525
4537
|
isQuickFilterAvailable() {
|
|
4526
4538
|
return this.hasFloatingFilterOnAtLeastOneColumn() === true;
|
|
4527
4539
|
}
|
|
4528
|
-
|
|
4529
|
-
this.gridOptions.api.setQuickFilter(
|
|
4540
|
+
setAgGridQuickSearch(searchText) {
|
|
4541
|
+
this.gridOptions.api.setQuickFilter(searchText);
|
|
4530
4542
|
}
|
|
4531
4543
|
hasFloatingFilterOnAtLeastOneColumn(defs = this.gridOptions.columnDefs) {
|
|
4532
4544
|
if (this.gridOptions.defaultColDef && this.gridOptions.defaultColDef.floatingFilter) {
|
|
@@ -4546,7 +4558,7 @@ class Adaptable {
|
|
|
4546
4558
|
return false;
|
|
4547
4559
|
}
|
|
4548
4560
|
showQuickFilter() {
|
|
4549
|
-
const height = this.api.optionsApi.
|
|
4561
|
+
const height = this.api.optionsApi.getColumnFilterOptions().quickFilterOptions.quickFilterHeight;
|
|
4550
4562
|
this.gridOptions.api.setFloatingFiltersHeight(height);
|
|
4551
4563
|
}
|
|
4552
4564
|
hideQuickFilter() {
|
|
@@ -4656,10 +4668,10 @@ class Adaptable {
|
|
|
4656
4668
|
const getAgGridLightThemeName = () => this.getAgGridLightThemeName();
|
|
4657
4669
|
const getAgGridDarkThemeName = () => getAgGridLightThemeName() + '-dark';
|
|
4658
4670
|
if (newTheme && (isSystemTheme || variantTheme)) {
|
|
4659
|
-
if ((variantTheme || themeName) ===
|
|
4671
|
+
if ((variantTheme || themeName) === LIGHT_THEME) {
|
|
4660
4672
|
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridLightThemeName();
|
|
4661
4673
|
}
|
|
4662
|
-
if ((variantTheme || themeName) ===
|
|
4674
|
+
if ((variantTheme || themeName) === DARK_THEME) {
|
|
4663
4675
|
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridDarkThemeName();
|
|
4664
4676
|
}
|
|
4665
4677
|
}
|
|
@@ -4687,14 +4699,14 @@ class Adaptable {
|
|
|
4687
4699
|
container.classList.add(newTheme.AgGridClassName);
|
|
4688
4700
|
}
|
|
4689
4701
|
container.classList.add('ab-Grid');
|
|
4690
|
-
if (this.adaptableOptions.
|
|
4702
|
+
if (this.adaptableOptions.columnFilterOptions.indicateFilteredColumns) {
|
|
4691
4703
|
container.classList.add('ab-Grid--indicate-filtered-columns');
|
|
4692
4704
|
}
|
|
4693
4705
|
}
|
|
4694
4706
|
// MAC LIKE SCROLLBARS
|
|
4695
4707
|
if (this.adaptableOptions.userInterfaceOptions &&
|
|
4696
4708
|
this.adaptableOptions.userInterfaceOptions.useCustomMacLikeScrollbars &&
|
|
4697
|
-
(
|
|
4709
|
+
getScrollbarSize() > 0) {
|
|
4698
4710
|
el.classList.add('ab--custom-mac-like-scrollbars');
|
|
4699
4711
|
}
|
|
4700
4712
|
else {
|
|
@@ -4744,13 +4756,13 @@ class Adaptable {
|
|
|
4744
4756
|
return this.gridOptions.api;
|
|
4745
4757
|
}
|
|
4746
4758
|
canGenerateCharts() {
|
|
4747
|
-
return (this.isAgGridModulePresent(
|
|
4759
|
+
return (this.isAgGridModulePresent(ModuleNames.GridChartsModule) && this.gridOptions.enableCharts);
|
|
4748
4760
|
}
|
|
4749
4761
|
canDisplaySparklines() {
|
|
4750
|
-
return this.isAgGridModulePresent(
|
|
4762
|
+
return this.isAgGridModulePresent(ModuleNames.SparklinesModule);
|
|
4751
4763
|
}
|
|
4752
4764
|
canExportToExcel() {
|
|
4753
|
-
return this.isAgGridModulePresent(
|
|
4765
|
+
return this.isAgGridModulePresent(ModuleNames.ExcelExportModule);
|
|
4754
4766
|
}
|
|
4755
4767
|
exportToExcel(reportData, fileName) {
|
|
4756
4768
|
const columnDefs = reportData.columns.map((column) => ({
|
|
@@ -4790,7 +4802,7 @@ class Adaptable {
|
|
|
4790
4802
|
rowData: reportData.rows,
|
|
4791
4803
|
};
|
|
4792
4804
|
let gridParams = { modules: this.getAgGridRegisteredModules() };
|
|
4793
|
-
const grid = new
|
|
4805
|
+
const grid = new Grid(document.createElement('div'), gridOptions, gridParams);
|
|
4794
4806
|
gridOptions.api.exportDataAsExcel({
|
|
4795
4807
|
sheetName: 'Sheet 1',
|
|
4796
4808
|
fileName: fileName,
|
|
@@ -4884,7 +4896,7 @@ class Adaptable {
|
|
|
4884
4896
|
}
|
|
4885
4897
|
return result;
|
|
4886
4898
|
}, {}));
|
|
4887
|
-
const sanitizedAdaptableStyle =
|
|
4899
|
+
const sanitizedAdaptableStyle = sanitizeStyle(adaptableStyle);
|
|
4888
4900
|
if (Object.values(sanitizedAdaptableStyle).some((style) => style != null)) {
|
|
4889
4901
|
excelStyles.push(this.convertCSSToExcelStyle(sanitizedAdaptableStyle));
|
|
4890
4902
|
}
|
|
@@ -4913,7 +4925,7 @@ class Adaptable {
|
|
|
4913
4925
|
// we have to pass the date in the ISO format to Excel
|
|
4914
4926
|
// see https://www.ag-grid.com/javascript-data-grid/excel-export-data-types/#dates
|
|
4915
4927
|
// we can NOT use Date.toISOString() because we don't want the timezone corrections to kick in
|
|
4916
|
-
const isoFormattedValue =
|
|
4928
|
+
const isoFormattedValue = DateFormatter(normalisedValue, {
|
|
4917
4929
|
Pattern: `yyyy-MM-dd'T'HH:mm:ss.SSS`,
|
|
4918
4930
|
});
|
|
4919
4931
|
if (isoFormattedValue) {
|
|
@@ -4942,7 +4954,7 @@ class Adaptable {
|
|
|
4942
4954
|
this.setExcelStylesForExport();
|
|
4943
4955
|
this.gridOptions.api.exportDataAsExcel({
|
|
4944
4956
|
sheetName: 'Sheet 1',
|
|
4945
|
-
fileName: this.ReportService.getReportFileName(this.adaptableOptions.adaptableId),
|
|
4957
|
+
fileName: this.ReportService.getReportFileName(this.adaptableOptions.adaptableId, 'Excel'),
|
|
4946
4958
|
// delegate the cell value processing to Adaptable
|
|
4947
4959
|
processCellCallback: ({ node, column, value }) => {
|
|
4948
4960
|
var _a;
|
|
@@ -4983,11 +4995,11 @@ class Adaptable {
|
|
|
4983
4995
|
});
|
|
4984
4996
|
}
|
|
4985
4997
|
convertAdaptableStyleToCSS(style) {
|
|
4986
|
-
return
|
|
4998
|
+
return convertAdaptableStyleToCSS(style);
|
|
4987
4999
|
}
|
|
4988
5000
|
convertCSSToExcelStyle(style) {
|
|
4989
5001
|
const getHexColor = (color) => {
|
|
4990
|
-
const preparedColor =
|
|
5002
|
+
const preparedColor = getVariableColor(color);
|
|
4991
5003
|
const t = tinycolor(preparedColor);
|
|
4992
5004
|
const a = t.getAlpha();
|
|
4993
5005
|
return tinycolor.mix(tinycolor('white'), t, a * 100).toHexString();
|
|
@@ -5014,7 +5026,7 @@ class Adaptable {
|
|
|
5014
5026
|
}
|
|
5015
5027
|
if (style.textAlign) {
|
|
5016
5028
|
result.alignment = {
|
|
5017
|
-
horizontal:
|
|
5029
|
+
horizontal: StringExtensions.CapitaliseFirstLetter(style.textAlign),
|
|
5018
5030
|
};
|
|
5019
5031
|
}
|
|
5020
5032
|
if (style.color != null) {
|
|
@@ -5042,7 +5054,7 @@ class Adaptable {
|
|
|
5042
5054
|
if (!result.font) {
|
|
5043
5055
|
result.font = {};
|
|
5044
5056
|
}
|
|
5045
|
-
result.font.size =
|
|
5057
|
+
result.font.size = convertCSSAbsoluteFontSizeToPt(style.fontSize);
|
|
5046
5058
|
}
|
|
5047
5059
|
return result;
|
|
5048
5060
|
}
|
|
@@ -5082,23 +5094,23 @@ class Adaptable {
|
|
|
5082
5094
|
}
|
|
5083
5095
|
addSyntheticPrimaryKey(rowData = []) {
|
|
5084
5096
|
for (let i = 0; i < rowData.length; i++) {
|
|
5085
|
-
rowData[i][
|
|
5097
|
+
rowData[i][AUTOGENERATED_PK_COLUMN] = createUuid();
|
|
5086
5098
|
}
|
|
5087
5099
|
}
|
|
5088
5100
|
// add a synthetic PK only if missing (useful in case of updating row data)
|
|
5089
5101
|
addSyntheticPrimaryKeyIfMissing(rowData = []) {
|
|
5090
|
-
this.adaptableOptions.primaryKey =
|
|
5102
|
+
this.adaptableOptions.primaryKey = AUTOGENERATED_PK_COLUMN;
|
|
5091
5103
|
for (let i = 0; i < rowData.length; i++) {
|
|
5092
|
-
if (!rowData[i][
|
|
5093
|
-
rowData[i][
|
|
5104
|
+
if (!rowData[i][AUTOGENERATED_PK_COLUMN]) {
|
|
5105
|
+
rowData[i][AUTOGENERATED_PK_COLUMN] = createUuid();
|
|
5094
5106
|
}
|
|
5095
5107
|
}
|
|
5096
5108
|
}
|
|
5097
5109
|
initLicenseService() {
|
|
5098
5110
|
const globalObject = typeof globalThis !== 'undefined' ? globalThis : window;
|
|
5099
5111
|
const licenseKey = globalObject.ADAPTABLE_LICENSE_KEY || this.api.optionsApi.getLicenseKey();
|
|
5100
|
-
return new
|
|
5101
|
-
publishedAt:
|
|
5112
|
+
return new LicenseService(this, licenseKey, {
|
|
5113
|
+
publishedAt: publishTimestamp,
|
|
5102
5114
|
});
|
|
5103
5115
|
}
|
|
5104
5116
|
showCharts(chartsDefinitions, chartContainer) {
|
|
@@ -5165,14 +5177,14 @@ class Adaptable {
|
|
|
5165
5177
|
registerAdaptableAggFuncs() {
|
|
5166
5178
|
this.setGridOptionsProperty('aggFuncs', (originalAggFuncs) => {
|
|
5167
5179
|
const aggregationFunctions = originalAggFuncs || {};
|
|
5168
|
-
aggregationFunctions[
|
|
5180
|
+
aggregationFunctions[WEIGHTED_AVERAGE_AGG_FN_NAME] = (params) => {
|
|
5169
5181
|
const columnId = params.column.getColId();
|
|
5170
5182
|
const adaptableAggFunc = this.getActiveAdaptableAggFuncForCol(columnId);
|
|
5171
5183
|
if (!adaptableAggFunc) {
|
|
5172
5184
|
return undefined;
|
|
5173
5185
|
}
|
|
5174
5186
|
if (adaptableAggFunc.type === 'weightedAverage') {
|
|
5175
|
-
return
|
|
5187
|
+
return weightedAverage(params, params.colDef.colId, adaptableAggFunc.weightedColumnId);
|
|
5176
5188
|
}
|
|
5177
5189
|
return undefined;
|
|
5178
5190
|
};
|
|
@@ -5185,7 +5197,7 @@ class Adaptable {
|
|
|
5185
5197
|
mapAggregationColumnsFromGrid(aggFuncFromGrid, currentLayout) {
|
|
5186
5198
|
return Object.entries(aggFuncFromGrid).reduce((acc, [colId, agg]) => {
|
|
5187
5199
|
const adaptableAggFunc = this.getActiveAdaptableAggFuncForCol(colId);
|
|
5188
|
-
if ((adaptableAggFunc === null || adaptableAggFunc === void 0 ? void 0 : adaptableAggFunc.type) === 'weightedAverage' && agg ===
|
|
5200
|
+
if ((adaptableAggFunc === null || adaptableAggFunc === void 0 ? void 0 : adaptableAggFunc.type) === 'weightedAverage' && agg === WEIGHTED_AVERAGE_AGG_FN_NAME) {
|
|
5189
5201
|
// do not override the agg func
|
|
5190
5202
|
acc[colId] = currentLayout.AggregationColumns[colId];
|
|
5191
5203
|
}
|
|
@@ -5280,8 +5292,7 @@ class Adaptable {
|
|
|
5280
5292
|
return newColumnOrder;
|
|
5281
5293
|
}
|
|
5282
5294
|
}
|
|
5283
|
-
|
|
5284
|
-
class AdaptableNoCodeWizard {
|
|
5295
|
+
export class AdaptableNoCodeWizard {
|
|
5285
5296
|
/**
|
|
5286
5297
|
* @param adaptableOptions
|
|
5287
5298
|
*/
|
|
@@ -5292,12 +5303,12 @@ class AdaptableNoCodeWizard {
|
|
|
5292
5303
|
this.adaptableOptions = adaptableOptions;
|
|
5293
5304
|
this.init = extraOptions.onInit || defaultInit;
|
|
5294
5305
|
this.extraOptions = extraOptions;
|
|
5295
|
-
this.agGridModules =
|
|
5306
|
+
this.agGridModules = ModuleRegistry.__getRegisteredModules(agGridOptons === null || agGridOptons === void 0 ? void 0 : agGridOptons.gridOptions.gridId);
|
|
5296
5307
|
this.render();
|
|
5297
5308
|
}
|
|
5298
5309
|
render(container) {
|
|
5299
5310
|
var _a;
|
|
5300
|
-
let id =
|
|
5311
|
+
let id = DefaultAdaptableOptions.containerOptions.adaptableContainer || 'adaptable';
|
|
5301
5312
|
if (!container) {
|
|
5302
5313
|
let containerOptionsContainer = (_a = this.adaptableOptions.containerOptions) === null || _a === void 0 ? void 0 : _a.adaptableContainer;
|
|
5303
5314
|
if (containerOptionsContainer) {
|
|
@@ -5316,7 +5327,7 @@ class AdaptableNoCodeWizard {
|
|
|
5316
5327
|
// this allows people to customize the wizard dimensions & styling
|
|
5317
5328
|
// when it's visible
|
|
5318
5329
|
container.classList.add('adaptable--in-wizard');
|
|
5319
|
-
const unmount = (
|
|
5330
|
+
const unmount = defaultRenderReactRoot(React.createElement(AdaptableWizardView, Object.assign(Object.assign({ adaptableOptions: this.adaptableOptions }, this.extraOptions), { onInit: (adaptableOptions, gridOptions) => {
|
|
5320
5331
|
container.classList.remove('adaptable--in-wizard');
|
|
5321
5332
|
unmount();
|
|
5322
5333
|
this.init({
|
|
@@ -5324,7 +5335,6 @@ class AdaptableNoCodeWizard {
|
|
|
5324
5335
|
gridOptions: gridOptions,
|
|
5325
5336
|
agGridModules: [...this.agGridModules],
|
|
5326
5337
|
});
|
|
5327
|
-
} })), container
|
|
5338
|
+
} })), container);
|
|
5328
5339
|
}
|
|
5329
5340
|
}
|
|
5330
|
-
exports.AdaptableNoCodeWizard = AdaptableNoCodeWizard;
|