@adaptabletools/adaptable 17.0.0-canary.1 → 17.0.0-canary.11
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 +32 -26
- package/base.css +1242 -1192
- package/base.css.map +1 -1
- package/bundle.cjs.js +689 -0
- package/index.css +2027 -6
- package/index.css.map +1 -1
- package/package.json +3 -8
- package/publishTimestamp.d.ts +2 -0
- package/publishTimestamp.js +3 -0
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.js +2 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
- package/src/AdaptableInterfaces/IAdaptable.js +2 -1
- package/src/AdaptableOptions/ActionColumnOptions.js +2 -1
- package/src/AdaptableOptions/ActionRowOptions.js +2 -1
- package/src/AdaptableOptions/AdaptableFrameworkComponent.js +2 -1
- package/src/AdaptableOptions/AdaptableOptions.js +2 -1
- package/src/AdaptableOptions/AdaptablePlugin.js +5 -1
- package/src/AdaptableOptions/AlertOptions.js +2 -1
- package/src/AdaptableOptions/CalendarOptions.js +2 -1
- package/src/AdaptableOptions/CellSummaryOptions.js +2 -1
- package/src/AdaptableOptions/ChartingOptions.js +2 -1
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +8 -8
- package/src/AdaptableOptions/ColumnFilterOptions.js +2 -1
- package/src/AdaptableOptions/ColumnOptions.js +2 -1
- package/src/AdaptableOptions/ContainerOptions.js +2 -1
- package/src/AdaptableOptions/CustomSortOptions.js +2 -1
- package/src/AdaptableOptions/DashboardOptions.js +2 -1
- package/src/AdaptableOptions/DataChangeHistoryOptions.js +2 -1
- package/src/AdaptableOptions/DataImportOptions.js +2 -1
- package/src/AdaptableOptions/DataSetOptions.js +2 -1
- package/src/AdaptableOptions/DateInputOptions.js +2 -1
- package/src/AdaptableOptions/EditOptions.d.ts +6 -6
- package/src/AdaptableOptions/EditOptions.js +2 -1
- package/src/AdaptableOptions/EntitlementOptions.js +2 -1
- package/src/AdaptableOptions/ExportOptions.js +2 -1
- package/src/AdaptableOptions/ExpressionOptions.js +2 -1
- package/src/AdaptableOptions/Fdc3Options.js +5 -2
- package/src/AdaptableOptions/FinsemblePluginOptions.js +2 -1
- package/src/AdaptableOptions/FlashingCellOptions.js +2 -1
- package/src/AdaptableOptions/FormatColumnOptions.js +2 -1
- package/src/AdaptableOptions/Glue42PluginOptions.js +2 -1
- package/src/AdaptableOptions/Glue42WebPluginOptions.js +2 -1
- package/src/AdaptableOptions/GridFilterOptions.d.ts +8 -3
- package/src/AdaptableOptions/GridFilterOptions.js +2 -1
- package/src/AdaptableOptions/GroupingOptions.js +2 -1
- package/src/AdaptableOptions/IPushPullPluginOptions.js +2 -1
- package/src/AdaptableOptions/LayoutOptions.js +2 -1
- package/src/AdaptableOptions/MasterDetailPluginOptions.js +2 -1
- package/src/AdaptableOptions/MenuOptions.js +7 -3
- package/src/AdaptableOptions/NotesOptions.js +2 -1
- package/src/AdaptableOptions/NotificationsOptions.js +2 -1
- package/src/AdaptableOptions/OpenFinPluginOptions.js +2 -1
- package/src/AdaptableOptions/PredicateOptions.js +2 -1
- package/src/AdaptableOptions/QuickSearchOptions.js +2 -1
- package/src/AdaptableOptions/SettingsPanelOptions.js +2 -1
- package/src/AdaptableOptions/StateOptions.js +2 -1
- package/src/AdaptableOptions/TeamSharingOptions.js +2 -1
- package/src/AdaptableOptions/ToolPanelOptions.js +2 -1
- package/src/AdaptableOptions/UserInterfaceOptions.js +2 -1
- package/src/Api/ActionColumnApi.js +2 -1
- package/src/Api/ActionRowApi.js +2 -1
- package/src/Api/AdaptableApi.js +2 -1
- package/src/Api/AlertApi.js +2 -1
- package/src/Api/ApplicationApi.js +2 -1
- package/src/Api/BulkUpdateApi.js +2 -1
- package/src/Api/CalculatedColumnApi.js +2 -1
- package/src/Api/CalendarApi.js +2 -1
- package/src/Api/CellSummaryApi.js +2 -1
- package/src/Api/ChartingApi.js +2 -1
- package/src/Api/ColumnApi.js +2 -1
- package/src/Api/ColumnFilterApi.js +2 -1
- package/src/Api/ConfigApi.js +2 -1
- package/src/Api/CustomSortApi.js +2 -1
- package/src/Api/DashboardApi.js +2 -1
- package/src/Api/DataChangeHistoryApi.js +2 -1
- package/src/Api/DataImportApi.js +2 -1
- package/src/Api/DataSetApi.js +2 -1
- package/src/Api/EntitlementApi.js +2 -1
- package/src/Api/EventApi.d.ts +19 -8
- package/src/Api/EventApi.js +2 -1
- package/src/Api/Events/ActionRowSubmitted.js +2 -1
- package/src/Api/Events/AdaptableReady.js +2 -1
- package/src/Api/Events/AdaptableSearchState.js +2 -1
- package/src/Api/Events/AdaptableStateChanged.js +2 -1
- package/src/Api/Events/AdaptableStateReloaded.js +2 -1
- package/src/Api/Events/AlertFired.js +2 -1
- package/src/Api/Events/BaseEventInfo.js +2 -1
- package/src/Api/Events/CellChanged.js +2 -1
- package/src/Api/Events/CellSelectionChanged.d.ts +11 -0
- package/src/Api/Events/CellSelectionChanged.js +2 -0
- package/src/Api/Events/ChartChanged.js +2 -1
- package/src/Api/Events/ColumnFilterApplied.js +2 -1
- package/src/Api/Events/CustomToolbarConfigured.js +2 -1
- package/src/Api/Events/DashboardChanged.js +2 -1
- package/src/Api/Events/DataImported.js +2 -1
- package/src/Api/Events/DataSetSelected.js +2 -1
- package/src/Api/Events/Fdc3MessageInfo.js +2 -1
- package/src/Api/Events/FlashingCellDisplayed.js +2 -1
- package/src/Api/Events/GridDataChanged.js +2 -1
- package/src/Api/Events/GridFilterApplied.js +2 -1
- package/src/Api/Events/GridSorted.js +2 -1
- package/src/Api/Events/LayoutChanged.js +2 -1
- package/src/Api/Events/LiveDataChanged.js +2 -1
- package/src/Api/Events/RowSelectionChanged.d.ts +11 -0
- package/src/Api/Events/RowSelectionChanged.js +2 -0
- package/src/Api/Events/ScheduleTriggered.js +2 -1
- package/src/Api/Events/SystemStatusMessageDisplayed.js +2 -1
- package/src/Api/Events/TeamSharingEntityChanged.js +2 -1
- package/src/Api/Events/ThemeChanged.js +2 -1
- package/src/Api/Events/ThemeEdited.js +2 -1
- package/src/Api/ExportApi.js +2 -1
- package/src/Api/ExpressionApi.js +2 -1
- package/src/Api/Fdc3Api.js +2 -1
- package/src/Api/FinsembleApi.js +2 -1
- package/src/Api/FlashingCellApi.js +2 -1
- package/src/Api/FormatColumnApi.js +2 -1
- package/src/Api/FreeTextColumnApi.js +2 -1
- package/src/Api/Glue42Api.js +2 -1
- package/src/Api/Glue42WebApi.js +2 -1
- package/src/Api/GridApi.js +2 -1
- package/src/Api/GridFilterApi.d.ts +2 -2
- package/src/Api/GridFilterApi.js +2 -1
- package/src/Api/IPushPullApi.js +2 -1
- package/src/Api/Implementation/ActionColumnApiImpl.js +6 -2
- package/src/Api/Implementation/ActionRowApiImpl.js +12 -8
- package/src/Api/Implementation/AdaptableApiImpl.js +101 -97
- package/src/Api/Implementation/AlertApiImpl.js +23 -18
- package/src/Api/Implementation/ApiBase.js +10 -5
- package/src/Api/Implementation/ApplicationApiImpl.js +8 -3
- package/src/Api/Implementation/BulkUpdateApiImpl.js +10 -5
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +11 -6
- package/src/Api/Implementation/CalendarApiImpl.js +6 -2
- package/src/Api/Implementation/CellSummaryApiImpl.js +22 -17
- package/src/Api/Implementation/ChartingApiImpl.js +18 -13
- package/src/Api/Implementation/ColumnApiImpl.js +16 -11
- package/src/Api/Implementation/ColumnFilterApiImpl.js +14 -9
- package/src/Api/Implementation/ConfigApiImpl.js +34 -29
- package/src/Api/Implementation/CustomSortApiImpl.js +11 -6
- package/src/Api/Implementation/DashboardApiImpl.js +14 -9
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +15 -10
- package/src/Api/Implementation/DataImportApiImpl.js +8 -4
- package/src/Api/Implementation/DataSetApiImpl.js +11 -6
- package/src/Api/Implementation/EntitlementApiImpl.js +6 -2
- package/src/Api/Implementation/EventApiImpl.js +9 -4
- package/src/Api/Implementation/ExportApiImpl.js +17 -12
- package/src/Api/Implementation/ExpressionApiImpl.js +10 -5
- package/src/Api/Implementation/Fdc3ApiImpl.js +12 -8
- package/src/Api/Implementation/FlashingCellApiImpl.js +11 -6
- package/src/Api/Implementation/FormatColumnApiImpl.js +11 -6
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +14 -9
- package/src/Api/Implementation/GridApiImpl.js +23 -18
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +15 -10
- package/src/Api/Implementation/LayoutApiImpl.js +30 -25
- package/src/Api/Implementation/NamedQueryApiImpl.js +13 -8
- package/src/Api/Implementation/NotesApiImpl.js +9 -4
- package/src/Api/Implementation/OptionsApiImpl.js +6 -2
- package/src/Api/Implementation/PluginsApiImpl.js +8 -3
- package/src/Api/Implementation/PlusMinusApiImpl.js +9 -4
- package/src/Api/Implementation/PredicateApiImpl.js +17 -12
- package/src/Api/Implementation/QuickSearchApiImpl.js +10 -5
- package/src/Api/Implementation/ScheduleApiImpl.js +11 -6
- package/src/Api/Implementation/ScopeApiImpl.js +13 -8
- package/src/Api/Implementation/SettingsPanelApiImpl.js +8 -3
- package/src/Api/Implementation/ShortcutApiImpl.js +9 -4
- package/src/Api/Implementation/SmartEditApiImpl.js +10 -5
- package/src/Api/Implementation/StatusBarApiImpl.js +9 -5
- package/src/Api/Implementation/StyledColumnApiImpl.js +11 -6
- package/src/Api/Implementation/SystemStatusApiImpl.js +21 -16
- package/src/Api/Implementation/TeamSharingApiImpl.js +17 -12
- package/src/Api/Implementation/ThemeApiImpl.js +15 -10
- package/src/Api/Implementation/ToolPanelApiImpl.js +11 -6
- package/src/Api/Implementation/UserInterfaceApiImpl.js +20 -15
- package/src/Api/Internal/ActionRowInternalApi.js +6 -2
- package/src/Api/Internal/AdaptableInternalApi.js +26 -21
- package/src/Api/Internal/AlertInternalApi.js +25 -20
- package/src/Api/Internal/CalculatedColumnInternalApi.js +6 -2
- package/src/Api/Internal/ChartingInternalApi.js +12 -8
- package/src/Api/Internal/ColumnFilterInternalApi.js +13 -8
- package/src/Api/Internal/ColumnInternalApi.js +8 -4
- package/src/Api/Internal/CustomSortInternalApi.js +6 -2
- package/src/Api/Internal/DashboardInternalApi.js +11 -6
- package/src/Api/Internal/DataImportInternalApi.js +10 -5
- package/src/Api/Internal/DataSetInternalApi.js +6 -2
- package/src/Api/Internal/ExportInternalApi.js +6 -2
- package/src/Api/Internal/ExpressionnternalApi.js +6 -2
- package/src/Api/Internal/Fdc3InternalApi.js +28 -24
- package/src/Api/Internal/FlashingCellInternalApi.js +12 -7
- package/src/Api/Internal/FormatColumnInternalApi.js +22 -17
- package/src/Api/Internal/FreeTextColumnInternalApi.js +6 -2
- package/src/Api/Internal/GridFilterInternalApi.js +6 -2
- package/src/Api/Internal/GridInternalApi.js +18 -13
- package/src/Api/Internal/LayoutInternalApi.d.ts +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +28 -23
- package/src/Api/Internal/NamedQueryInternalApi.js +8 -3
- package/src/Api/Internal/PredicateInternalApi.js +6 -2
- package/src/Api/Internal/ScheduleInternalApi.js +6 -2
- package/src/Api/Internal/StyledColumnInternalApi.js +10 -5
- package/src/Api/Internal/SystemStatusInternalApi.js +8 -3
- package/src/Api/Internal/TeamSharingInternalApi.js +6 -2
- package/src/Api/Internal/ThemeInternalApi.js +9 -5
- package/src/Api/Internal/UserInterfaceInternalApi.js +6 -2
- package/src/Api/LayoutApi.js +2 -1
- package/src/Api/NamedQueryApi.js +2 -1
- package/src/Api/NotesAPi.js +2 -1
- package/src/Api/OpenFinApi.js +2 -1
- package/src/Api/OptionsApi.js +2 -1
- package/src/Api/PluginsApi.js +2 -1
- package/src/Api/PlusMinusApi.js +2 -1
- package/src/Api/PredicateApi.js +2 -1
- package/src/Api/QuickSearchApi.js +2 -1
- package/src/Api/ScheduleApi.js +2 -1
- package/src/Api/ScopeApi.js +2 -1
- package/src/Api/SettingsPanelApi.js +2 -1
- package/src/Api/ShortcutApi.js +2 -1
- package/src/Api/SmartEditApi.js +2 -1
- package/src/Api/StatusBarApi.js +2 -1
- package/src/Api/StyledColumnApi.js +2 -1
- package/src/Api/SystemStatusApi.js +2 -1
- package/src/Api/TeamSharingApi.js +2 -1
- package/src/Api/ThemeApi.js +2 -1
- package/src/Api/ToolPanelApi.js +2 -1
- package/src/Api/UserInterfaceApi.js +2 -1
- package/src/PredefinedConfig/AdaptableState.js +2 -1
- package/src/PredefinedConfig/AlertState.js +2 -1
- package/src/PredefinedConfig/ApplicationState.js +2 -1
- package/src/PredefinedConfig/CalculatedColumnState.js +2 -1
- package/src/PredefinedConfig/ChartingState.js +7 -2
- package/src/PredefinedConfig/Common/AdaptableAlert.js +7 -2
- package/src/PredefinedConfig/Common/AdaptableButton.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -1
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableFlashingCell.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableForm.js +5 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableMessageType.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableObject.js +2 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +56 -52
- package/src/PredefinedConfig/Common/AdaptableQuery.js +5 -1
- package/src/PredefinedConfig/Common/AdaptableScope.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableStyle.js +2 -1
- package/src/PredefinedConfig/Common/AggregationColumns.js +4 -1
- package/src/PredefinedConfig/Common/AlternativeModuleName.js +2 -1
- package/src/PredefinedConfig/Common/BaseContext.js +2 -1
- package/src/PredefinedConfig/Common/ButtonStyle.js +2 -1
- package/src/PredefinedConfig/Common/CellDataChangedInfo.js +2 -1
- package/src/PredefinedConfig/Common/CellHighlightInfo.js +2 -1
- package/src/PredefinedConfig/Common/CellSummary.js +2 -1
- package/src/PredefinedConfig/Common/ColumnFilter.js +2 -1
- package/src/PredefinedConfig/Common/ColumnSort.js +2 -1
- package/src/PredefinedConfig/Common/DataChangedScope.js +2 -1
- package/src/PredefinedConfig/Common/DataUpdateConfig.js +2 -1
- package/src/PredefinedConfig/Common/Entitlement.js +2 -1
- package/src/PredefinedConfig/Common/Enums.js +29 -26
- package/src/PredefinedConfig/Common/Fdc3Context.js +35 -32
- package/src/PredefinedConfig/Common/Fdc3Intent.js +67 -64
- package/src/PredefinedConfig/Common/FilterActionOnDataChange.js +2 -1
- package/src/PredefinedConfig/Common/FormContext.js +2 -1
- package/src/PredefinedConfig/Common/GridFilter.js +2 -1
- package/src/PredefinedConfig/Common/Menu.js +2 -1
- package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -1
- package/src/PredefinedConfig/Common/RowsHighlightInfo.js +2 -1
- package/src/PredefinedConfig/Common/Schedule.js +2 -1
- package/src/PredefinedConfig/Common/SpecialColumnSettings.js +2 -1
- package/src/PredefinedConfig/Common/SuspendableObject.js +2 -1
- package/src/PredefinedConfig/Common/SystemStatusMessageInfo.js +2 -1
- package/src/PredefinedConfig/Common/Types.js +9 -5
- package/src/PredefinedConfig/ConfigState.js +2 -1
- package/src/PredefinedConfig/CustomSortState.js +2 -1
- package/src/PredefinedConfig/DashboardState.js +2 -1
- package/src/PredefinedConfig/ExportState.js +2 -1
- package/src/PredefinedConfig/FlashingCellState.js +2 -1
- package/src/PredefinedConfig/FormatColumnState.js +2 -1
- package/src/PredefinedConfig/FreeTextColumnState.js +2 -1
- package/src/PredefinedConfig/Glue42State.js +2 -1
- package/src/PredefinedConfig/GridState.js +2 -1
- package/src/PredefinedConfig/IPushPullState.js +2 -1
- package/src/PredefinedConfig/InternalState.js +2 -1
- package/src/PredefinedConfig/LayoutState.js +2 -1
- package/src/PredefinedConfig/NamedQueryState.js +2 -1
- package/src/PredefinedConfig/NotesState.js +2 -1
- package/src/PredefinedConfig/OpenFinState.js +2 -1
- package/src/PredefinedConfig/PlusMinusState.js +2 -1
- package/src/PredefinedConfig/PopupState.js +2 -1
- package/src/PredefinedConfig/PredefinedConfig.js +2 -1
- package/src/PredefinedConfig/QueryState.js +2 -1
- package/src/PredefinedConfig/QuickSearchState.js +2 -1
- package/src/PredefinedConfig/ScheduleState.js +2 -1
- package/src/PredefinedConfig/Selection/GridCell.js +2 -1
- package/src/PredefinedConfig/Selection/GridCellRange.js +2 -1
- package/src/PredefinedConfig/Selection/GridRow.js +2 -1
- package/src/PredefinedConfig/Selection/SelectedCellInfo.js +2 -1
- package/src/PredefinedConfig/Selection/SelectedRowInfo.js +2 -1
- package/src/PredefinedConfig/ShortcutState.js +2 -1
- package/src/PredefinedConfig/StatusBarState.js +4 -1
- package/src/PredefinedConfig/StyledColumnState.js +2 -1
- package/src/PredefinedConfig/SystemState.js +2 -1
- package/src/PredefinedConfig/TeamSharingState.js +7 -2
- package/src/PredefinedConfig/ThemeState.js +2 -1
- package/src/PredefinedConfig/ToolPanelState.js +2 -1
- package/src/PredefinedConfig/Uuid.js +6 -2
- package/src/Redux/ActionsReducers/AlertRedux.js +59 -45
- package/src/Redux/ActionsReducers/ApplicationRedux.js +22 -15
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +15 -9
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +29 -20
- package/src/Redux/ActionsReducers/CellSummaryRedux.js +7 -3
- package/src/Redux/ActionsReducers/ChartingRedux.js +55 -41
- package/src/Redux/ActionsReducers/CustomSortRedux.js +54 -41
- package/src/Redux/ActionsReducers/DashboardRedux.js +66 -50
- package/src/Redux/ActionsReducers/ExportRedux.js +43 -33
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +57 -43
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +70 -54
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +34 -24
- package/src/Redux/ActionsReducers/GridRedux.js +160 -125
- package/src/Redux/ActionsReducers/LayoutRedux.js +115 -89
- package/src/Redux/ActionsReducers/NamedQueryRedux.js +35 -25
- package/src/Redux/ActionsReducers/NotesRedux.js +31 -21
- package/src/Redux/ActionsReducers/PluginsRedux.js +53 -48
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +59 -45
- package/src/Redux/ActionsReducers/PopupRedux.js +84 -64
- package/src/Redux/ActionsReducers/QueryRedux.js +13 -8
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +23 -16
- package/src/Redux/ActionsReducers/ScheduleRedux.js +222 -179
- package/src/Redux/ActionsReducers/ShortcutRedux.js +54 -41
- package/src/Redux/ActionsReducers/SmartEditRedux.js +15 -9
- package/src/Redux/ActionsReducers/StatusBarRedux.js +19 -12
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +54 -41
- package/src/Redux/ActionsReducers/SystemRedux.js +324 -254
- package/src/Redux/ActionsReducers/SystemStatusRedux.js +11 -6
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +55 -40
- package/src/Redux/ActionsReducers/ThemeRedux.js +43 -32
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +39 -28
- package/src/Redux/ActionsReducers/utils.js +9 -3
- package/src/Redux/DeadRedux.js +38 -25
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +20 -15
- package/src/Redux/Store/AdaptableReduxMerger.js +30 -21
- package/src/Redux/Store/AdaptableStore.js +108 -101
- package/src/Redux/Store/Interface/IAdaptableStore.js +2 -1
- package/src/Redux/Store/Interface/IStorageEngine.js +2 -1
- package/src/Strategy/AdaptableModuleBase.js +13 -8
- package/src/Strategy/AlertModule.js +40 -35
- package/src/Strategy/BulkUpdateModule.js +22 -17
- package/src/Strategy/CalculatedColumnModule.js +21 -16
- package/src/Strategy/CellSummaryModule.js +22 -17
- package/src/Strategy/ChartingModule.js +20 -15
- package/src/Strategy/ColumnFilterModule.js +16 -11
- package/src/Strategy/ColumnInfoModule.js +8 -3
- package/src/Strategy/CustomSortModule.js +17 -12
- package/src/Strategy/DashboardModule.js +9 -4
- package/src/Strategy/DataChangeHistoryModule.js +15 -10
- package/src/Strategy/DataImportModule.js +8 -3
- package/src/Strategy/DataSetModule.js +16 -11
- package/src/Strategy/ExportModule.js +60 -55
- package/src/Strategy/Fdc3Module.js +8 -3
- package/src/Strategy/FlashingCellModule.js +33 -28
- package/src/Strategy/FormatColumnModule.js +32 -27
- package/src/Strategy/FreeTextColumnModule.js +13 -8
- package/src/Strategy/GridFilterModule.js +14 -9
- package/src/Strategy/GridInfoModule.js +8 -3
- package/src/Strategy/Interface/IBulkUpdateModule.js +2 -1
- package/src/Strategy/Interface/ICellSummaryModule.js +2 -1
- package/src/Strategy/Interface/IExportModule.js +2 -1
- package/src/Strategy/Interface/IModule.js +2 -1
- package/src/Strategy/Interface/IModuleActionReturn.js +2 -1
- package/src/Strategy/Interface/IPlusMinusModule.js +2 -1
- package/src/Strategy/Interface/IScheduleModule.js +2 -1
- package/src/Strategy/Interface/IShortcutModule.js +2 -1
- package/src/Strategy/Interface/ISmartEditModule.js +2 -1
- package/src/Strategy/LayoutModule.js +36 -35
- package/src/Strategy/NamedQueryModule.js +17 -12
- package/src/Strategy/NotesModule.js +9 -4
- package/src/Strategy/PlusMinusModule.js +26 -21
- package/src/Strategy/QuickSearchModule.js +10 -5
- package/src/Strategy/ScheduleModule.js +45 -40
- package/src/Strategy/SettingsPanelModule.js +9 -4
- package/src/Strategy/ShortcutModule.js +26 -21
- package/src/Strategy/SmartEditModule.js +27 -22
- package/src/Strategy/StateManagementModule.js +8 -3
- package/src/Strategy/StatusBarModule.js +8 -3
- package/src/Strategy/StyledColumnModule.js +22 -17
- package/src/Strategy/SystemStatusModule.js +10 -5
- package/src/Strategy/TeamSharingModule.js +37 -32
- package/src/Strategy/ThemeModule.js +10 -13
- package/src/Strategy/ToolPanelModule.js +13 -8
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.js +9 -5
- package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.js +11 -6
- package/src/Strategy/Utilities/Alert/getAlertTypeViewItems.js +8 -4
- package/src/Strategy/Utilities/CustomSort/getCustomSortColumnViewItems.js +5 -1
- package/src/Strategy/Utilities/CustomSort/getCustomSortSortOrderViewItems.js +5 -1
- package/src/Strategy/Utilities/Export/getExportColumnsViewItems.js +5 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +5 -1
- package/src/Strategy/Utilities/FlashingCell/getFlashingCellDurationViewItems.js +5 -1
- package/src/Strategy/Utilities/FlashingCell/getFlashingCellStyleViewItems.js +7 -3
- package/src/Strategy/Utilities/FlashingCell/getFlashingTargetViewItems.js +5 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +5 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +10 -5
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +8 -3
- package/src/Strategy/Utilities/Layout/getLayoutSortViewItems.js +5 -1
- package/src/Strategy/Utilities/Shortcut/getShortcutSettingsViewItems.js +5 -1
- package/src/Strategy/Utilities/getExpressionViewItems.js +5 -1
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +12 -7
- package/src/Strategy/Utilities/getRuleViewItems.js +5 -1
- package/src/Strategy/Utilities/getScopeViewItems.js +5 -1
- package/src/Strategy/Utilities/updateSingleToMultiplePredicates.js +5 -1
- package/src/Utilities/Cancelable.js +2 -1
- package/src/Utilities/Constants/ConfigConstants.js +12 -9
- package/src/Utilities/Constants/DocumentationLinkConstants.js +17 -14
- package/src/Utilities/Constants/GeneralConstants.js +74 -70
- package/src/Utilities/Constants/ModuleConstants.js +119 -115
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +30 -26
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +5 -2
- package/src/Utilities/Emitter.js +5 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +24 -20
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +54 -51
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +42 -31
- package/src/Utilities/ExpressionFunctions/dateUtils.js +7 -2
- package/src/Utilities/ExpressionFunctions/deepMap.js +5 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +57 -39
- package/src/Utilities/ExpressionFunctions/groupingMap.js +7 -3
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +70 -66
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +7 -3
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +56 -52
- package/src/Utilities/Extensions/ArrayExtensions.js +73 -39
- package/src/Utilities/Extensions/EnumExtensions.js +21 -14
- package/src/Utilities/Extensions/NumberExtensions.js +9 -4
- package/src/Utilities/Extensions/ObjectExtensions.js +9 -3
- package/src/Utilities/Extensions/StringExtensions.js +46 -23
- package/src/Utilities/Extensions/TypeExtensions.js +5 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +70 -59
- package/src/Utilities/Helpers/DateHelper.js +28 -18
- package/src/Utilities/Helpers/FormatHelper.js +18 -10
- package/src/Utilities/Helpers/Helper.js +50 -28
- package/src/Utilities/Helpers/PreviewHelper.js +15 -8
- package/src/Utilities/Helpers/StyleHelper.js +20 -11
- package/src/Utilities/Interface/AdaptableToolPanelContext.js +2 -1
- package/src/Utilities/Interface/ColumnFilterProps.js +2 -1
- package/src/Utilities/Interface/IPPStyle.js +2 -1
- package/src/Utilities/Interface/KeyValuePair.js +2 -1
- package/src/Utilities/Interface/MessagePopups.js +2 -1
- package/src/Utilities/Interface/Preview.js +2 -1
- package/src/Utilities/MenuItem.js +11 -4
- package/src/Utilities/ObjectFactory.js +167 -124
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +7 -3
- package/src/Utilities/Services/AlertService.js +16 -11
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +13 -9
- package/src/Utilities/Services/ChartingService.js +15 -10
- package/src/Utilities/Services/DataService.js +13 -8
- package/src/Utilities/Services/EntitlementService.js +5 -1
- package/src/Utilities/Services/Fdc3Service.js +11 -7
- package/src/Utilities/Services/Interface/IAdaptableService.js +2 -1
- package/src/Utilities/Services/Interface/IAlertService.js +8 -3
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.js +2 -1
- package/src/Utilities/Services/Interface/IChartingService.js +2 -1
- package/src/Utilities/Services/Interface/IDataService.js +2 -1
- package/src/Utilities/Services/Interface/IEntitlementService.js +2 -1
- package/src/Utilities/Services/Interface/ILicenseService.js +2 -1
- package/src/Utilities/Services/Interface/IMetamodelService.js +2 -1
- package/src/Utilities/Services/Interface/IModuleService.js +2 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.js +2 -1
- package/src/Utilities/Services/Interface/IReportService.js +2 -1
- package/src/Utilities/Services/Interface/IRowEditService.js +2 -1
- package/src/Utilities/Services/Interface/ITeamSharingService.js +2 -1
- package/src/Utilities/Services/Interface/IThemeService.js +2 -1
- package/src/Utilities/Services/Interface/IValidationService.js +2 -1
- package/src/Utilities/Services/LicenseService/index.js +1 -181
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +5 -1
- package/src/Utilities/Services/MetamodelService.js +17 -12
- package/src/Utilities/Services/ModuleService.js +14 -9
- package/src/Utilities/Services/QueryLanguageService.js +29 -24
- package/src/Utilities/Services/ReportService.js +53 -48
- package/src/Utilities/Services/RowEditService.js +5 -1
- package/src/Utilities/Services/TeamSharingService.js +11 -6
- package/src/Utilities/Services/ThemeService.js +5 -1
- package/src/Utilities/Services/ValidationService.js +25 -20
- package/src/Utilities/getScrollbarSize.js +3 -1
- package/src/Utilities/isAdaptableObject.js +5 -1
- package/src/Utilities/isMacLike.js +5 -1
- package/src/Utilities/license/LicenseDetails.js +2 -1
- package/src/Utilities/license/decode.js +1 -65
- package/src/Utilities/license/hashing.js +1 -43
- package/src/Utilities/logDeprecation.js +9 -3
- package/src/Utilities/reorder.js +5 -1
- package/src/Utilities/runIfNotResolvedIn.js +5 -1
- package/src/Utilities/sortWithOrder.js +5 -1
- package/src/Utilities/waitForCondition.js +5 -1
- package/src/Utilities/waitForTimeout.js +5 -1
- package/src/View/AdaptableContext.js +8 -3
- package/src/View/AdaptablePopover/index.js +22 -17
- package/src/View/AdaptableView.js +35 -30
- package/src/View/AdaptableViewFactory.js +71 -67
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +30 -25
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +44 -42
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +9 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +26 -21
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +9 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +29 -26
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +20 -17
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +13 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +21 -16
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +29 -24
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +23 -18
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +5 -3
- package/src/View/AdaptableWizardView/Utils.js +5 -1
- package/src/View/AdaptableWizardView/Wizard.js +26 -20
- package/src/View/AdaptableWizardView/helper.js +10 -4
- package/src/View/AdaptableWizardView/index.js +10 -7
- package/src/View/Alert/ActiveAlertsPanel.js +14 -9
- package/src/View/Alert/ActiveAlertsPanelItemLabel.js +15 -10
- package/src/View/Alert/AlertEmptyView.js +9 -4
- package/src/View/Alert/AlertEntityRow.js +18 -13
- package/src/View/Alert/AlertStatusSubPanel.js +18 -13
- package/src/View/Alert/AlertViewPanel.js +20 -16
- package/src/View/Alert/AlertsPanel.js +27 -22
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +11 -6
- package/src/View/Alert/Utilities/getAlertType.d.ts +1 -0
- package/src/View/Alert/Utilities/getAlertType.js +18 -5
- package/src/View/Alert/Utilities/getAvailablePredicates.js +6 -2
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +18 -8
- package/src/View/Alert/Utilities/mapAlertDefinition.js +5 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +51 -48
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +40 -35
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +37 -31
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +33 -27
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +38 -28
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +14 -9
- package/src/View/Alert/Wizard/AlertSelectQueryWizard.js +19 -14
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +26 -19
- package/src/View/Alert/Wizard/AlertWizard.js +65 -60
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +19 -14
- package/src/View/Alert/Wizard/isValidAlertRules.js +7 -3
- package/src/View/BulkUpdate/BulkUpdatePopup.js +37 -33
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +31 -27
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +22 -17
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags.js +5 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +43 -36
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +28 -21
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +40 -33
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +18 -13
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +54 -49
- package/src/View/CalculatedColumn/utils.js +5 -1
- package/src/View/CellSummary/CellSummaryDetails.js +11 -6
- package/src/View/CellSummary/CellSummaryPopover.js +9 -4
- package/src/View/CellSummary/CellSummaryPopup.js +12 -8
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +12 -11
- package/src/View/CellSummary/CellSummaryStatusPanel.js +16 -11
- package/src/View/CellSummary/CellSummaryViewPanel.js +26 -22
- package/src/View/Charting/ChartingStatusBarPopover.js +17 -12
- package/src/View/Charting/ChartingViewPanel.js +18 -13
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +23 -18
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +14 -9
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +22 -16
- package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +4 -1
- package/src/View/Charting/ChartingWizard/ChartingWizard.js +14 -10
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +18 -13
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +14 -8
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +4 -1
- package/src/View/Charting/ChartingWizard/index.js +4 -1
- package/src/View/Charting/DeleteChartButton.js +11 -6
- package/src/View/Charting/EditChartButton.js +13 -8
- package/src/View/Charting/ShowChartButton.js +26 -21
- package/src/View/Charting/useAgChartState.js +12 -7
- package/src/View/Charting/useChartingElements.js +36 -33
- package/src/View/Charting/useExternalChartState.js +12 -7
- package/src/View/ColumnInfo/ColumnInfo.js +38 -33
- package/src/View/ColumnInfo/ColumnInfoPopup.js +13 -8
- package/src/View/Components/AdaptableButton/index.js +13 -8
- package/src/View/Components/AdaptableDateInput/index.js +15 -13
- package/src/View/Components/AdaptableIconComponent/index.js +11 -6
- package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +7 -3
- package/src/View/Components/AdaptableIconSelector/index.js +11 -6
- package/src/View/Components/AdaptableInput/index.js +11 -8
- package/src/View/Components/AdaptableObjectCollection/index.js +11 -6
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +33 -27
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +47 -40
- package/src/View/Components/AdaptableObjectList/index.js +5 -1
- package/src/View/Components/AdaptableObjectRow/index.js +12 -7
- package/src/View/Components/Badge/index.js +11 -6
- package/src/View/Components/Buttons/ButtonApply.js +9 -4
- package/src/View/Components/Buttons/ButtonBase/index.js +10 -5
- package/src/View/Components/Buttons/ButtonClear.js +9 -4
- package/src/View/Components/Buttons/ButtonClone.js +9 -4
- package/src/View/Components/Buttons/ButtonClose.js +9 -4
- package/src/View/Components/Buttons/ButtonConfigure.js +9 -4
- package/src/View/Components/Buttons/ButtonDelete.js +11 -8
- package/src/View/Components/Buttons/ButtonEdit.js +9 -4
- package/src/View/Components/Buttons/ButtonExpand.js +9 -4
- package/src/View/Components/Buttons/ButtonExport.js +9 -4
- package/src/View/Components/Buttons/ButtonFunction.js +9 -4
- package/src/View/Components/Buttons/ButtonGeneral.js +9 -4
- package/src/View/Components/Buttons/ButtonInfo.js +9 -4
- package/src/View/Components/Buttons/ButtonInvalid.js +9 -4
- package/src/View/Components/Buttons/ButtonLogin.js +9 -4
- package/src/View/Components/Buttons/ButtonLogout.js +9 -4
- package/src/View/Components/Buttons/ButtonMaximise.js +9 -4
- package/src/View/Components/Buttons/ButtonMinimise.js +9 -4
- package/src/View/Components/Buttons/ButtonNew.js +9 -4
- package/src/View/Components/Buttons/ButtonNewPage.js +9 -4
- package/src/View/Components/Buttons/ButtonOpen.js +9 -4
- package/src/View/Components/Buttons/ButtonPause.js +9 -4
- package/src/View/Components/Buttons/ButtonPlay.js +10 -5
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +7 -4
- package/src/View/Components/Buttons/ButtonSave.js +9 -4
- package/src/View/Components/Buttons/ButtonSchedule.js +9 -4
- package/src/View/Components/Buttons/ButtonShare.js +12 -8
- package/src/View/Components/Buttons/ButtonShow.js +9 -4
- package/src/View/Components/Buttons/ButtonShowChart.js +9 -4
- package/src/View/Components/Buttons/ButtonStop.js +9 -4
- package/src/View/Components/Buttons/ButtonUndo.js +9 -4
- package/src/View/Components/Buttons/ButtonUnsuspend.js +9 -4
- package/src/View/Components/Buttons/EntityListActionButtons.js +19 -14
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +8 -4
- package/src/View/Components/Buttons/SuspendToggleButton/index.js +4 -1
- package/src/View/Components/CellPopup/index.js +14 -10
- package/src/View/Components/ColumnSelector/index.js +12 -7
- package/src/View/Components/EntityRowItem.js +7 -2
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +23 -18
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +32 -27
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/index.js +5 -1
- package/src/View/Components/EntityRulesEditor/Utilities.js +5 -1
- package/src/View/Components/EntityRulesEditor/index.js +42 -45
- package/src/View/Components/ExpressionWizard.js +22 -17
- package/src/View/Components/ExternalRenderer.js +10 -6
- package/src/View/Components/FilterForm/FilterForm.js +63 -51
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +36 -33
- package/src/View/Components/FilterForm/ListBoxMenu.js +13 -8
- package/src/View/Components/FilterForm/QuickFilterForm.js +49 -43
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterValues.js +32 -26
- package/src/View/Components/FilterForm/Waiting.js +14 -10
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +5 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +14 -10
- package/src/View/Components/ListBox/DualListBoxEditor.js +58 -53
- package/src/View/Components/ListBox/ListBoxFilterSortComponent.js +15 -10
- package/src/View/Components/ModuleProfile.js +9 -4
- package/src/View/Components/ModuleSummary/ModuleDetail.js +11 -6
- package/src/View/Components/ModuleSummary/ModuleHeader.js +13 -8
- package/src/View/Components/ModuleSummary/SummaryRowItem.js +9 -4
- package/src/View/Components/ModuleValueSelector/index.js +19 -15
- package/src/View/Components/NewScopeComponent.js +52 -45
- package/src/View/Components/Panels/FilterFormPanel.js +27 -22
- package/src/View/Components/Panels/PanelDashboard/index.js +9 -4
- package/src/View/Components/Panels/PanelFooter.js +13 -8
- package/src/View/Components/Panels/PanelToolPanel/index.js +20 -16
- package/src/View/Components/Panels/PanelWithButton.js +21 -16
- package/src/View/Components/Panels/PanelWithImage.js +20 -16
- package/src/View/Components/Panels/PanelWithRow.js +12 -7
- package/src/View/Components/Panels/PanelWithTwoButtons.js +12 -7
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +11 -6
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +20 -15
- package/src/View/Components/PermittedValuesSelector/index.js +5 -1
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +11 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +31 -26
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +12 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +25 -21
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +29 -24
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +9 -4
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +16 -11
- package/src/View/Components/Popups/AdaptablePopup/PopupContext.js +8 -3
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +17 -12
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +17 -12
- package/src/View/Components/Popups/AdaptablePopup/index.js +5 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +15 -10
- package/src/View/Components/Popups/AdaptablePopupAlert.js +27 -22
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +30 -25
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +23 -18
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +31 -26
- package/src/View/Components/Popups/AdaptableToaster.js +18 -13
- package/src/View/Components/Popups/FormPopups/FormPopups.js +25 -19
- package/src/View/Components/Popups/Utilities.js +17 -10
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +27 -23
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +16 -13
- package/src/View/Components/PredicateEditor/PredicateEditor.js +26 -21
- package/src/View/Components/PreviewResultsPanel.js +18 -13
- package/src/View/Components/RangesComponent.js +56 -51
- package/src/View/Components/ScopeComponent.js +28 -23
- package/src/View/Components/Selectors/ColumnSelector.js +11 -6
- package/src/View/Components/Selectors/ColumnSelectorOld.js +18 -13
- package/src/View/Components/Selectors/ColumnValueSelector.js +20 -15
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +5 -4
- package/src/View/Components/Selectors/PermittedValuesSelector.js +37 -10
- package/src/View/Components/SharedProps/BaseProps.js +2 -1
- package/src/View/Components/SharedProps/ConfigEntityRowProps.js +2 -1
- package/src/View/Components/SharedProps/EditableConfigEntityState.js +5 -2
- package/src/View/Components/SharedProps/ModuleSummaryProps.js +2 -1
- package/src/View/Components/SharedProps/ModuleViewPopupProps.js +2 -1
- package/src/View/Components/SharedProps/ToolPanelModuleViewPopupProps.js +2 -1
- package/src/View/Components/SharedProps/ToolbarModuleViewPopupProps.js +2 -1
- package/src/View/Components/SharedProps/ViewPanelProps.js +2 -1
- package/src/View/Components/SharedProps/WizardScopeState.js +2 -1
- package/src/View/Components/StyleComponent.js +69 -64
- package/src/View/Components/StyleVisualItem.js +14 -9
- package/src/View/Components/TagValueSelector/index.js +15 -9
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +44 -39
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +18 -13
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +28 -24
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +21 -16
- package/src/View/Components/ValueSelector/index.js +53 -47
- package/src/View/Components/WizardSummaryPage.js +12 -7
- package/src/View/Components/WizardSummaryRow.js +11 -6
- package/src/View/CustomSort/CustomSortSummary.js +37 -32
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +24 -17
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +9 -4
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +36 -29
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +36 -31
- package/src/View/Dashboard/CustomDashboardButton.js +12 -7
- package/src/View/Dashboard/CustomToolbar.js +25 -19
- package/src/View/Dashboard/Dashboard.js +42 -38
- package/src/View/Dashboard/DashboardPopup.js +33 -29
- package/src/View/Dashboard/DashboardToolbarFactory.js +18 -13
- package/src/View/Dashboard/DashboardViewPanel.js +14 -10
- package/src/View/Dashboard/ModuleToolbarWrapper.js +13 -8
- package/src/View/Dashboard/PinnedDashboard.js +17 -12
- package/src/View/Dashboard/PinnedToolbarsSelector.js +16 -11
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +20 -15
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +38 -34
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +9 -4
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +41 -36
- package/src/View/DataChangeHistory/buildActionColumnButton.js +5 -1
- package/src/View/DataImport/DataImportPopup.js +17 -12
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +30 -25
- package/src/View/DataImport/DataImportWizard/index.js +4 -1
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +34 -29
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +26 -21
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +23 -18
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +10 -5
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +22 -17
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +11 -6
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +4 -1
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +23 -18
- package/src/View/DataImport/systemFileHandlers.js +9 -5
- package/src/View/DataSet/DataSetSelector.js +11 -6
- package/src/View/DataSet/DataSetStatusPanelPopover.js +11 -6
- package/src/View/DataSet/DataSetViewPanel.js +16 -12
- package/src/View/Export/ExportSelector.js +27 -24
- package/src/View/Export/ExportTablePopup.js +12 -7
- package/src/View/Export/ExportViewPanel.d.ts +4 -4
- package/src/View/Export/ExportViewPanel.js +45 -46
- package/src/View/Export/ReportExportDropdown.js +21 -16
- package/src/View/Export/Wizard/NewReportWizard.js +37 -32
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +19 -14
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +35 -28
- package/src/View/Export/Wizard/ReportNameWizardSection.js +28 -21
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +19 -14
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +37 -30
- package/src/View/Export/Wizard/ReportScopeWizard.js +14 -9
- package/src/View/Export/Wizard/ReportSettingsWizard.js +23 -18
- package/src/View/Export/Wizard/ReportSummaryWizard.js +9 -4
- package/src/View/Export/constants.js +5 -2
- package/src/View/Filter/ActiveFiltersPanel.js +12 -7
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +9 -4
- package/src/View/Filter/FilterSummary.js +23 -18
- package/src/View/Filter/FilterViewPanel.js +24 -20
- package/src/View/FlashingCell/FlashingCellStyle.js +14 -10
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +20 -14
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +13 -8
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +42 -36
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +34 -28
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +49 -44
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +7 -3
- package/src/View/FormatColumn/FormatColumnSummary.js +32 -27
- package/src/View/FormatColumn/MoveFormatColumn.js +15 -10
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +161 -153
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +11 -6
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +16 -10
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +36 -30
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +25 -17
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +53 -48
- package/src/View/FormatColumn/Wizard/constants.js +4 -1
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +32 -27
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +59 -52
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +31 -26
- package/src/View/GridFilter/GridFilterExpressionEditor.js +35 -30
- package/src/View/GridFilter/GridFilterPopup.js +41 -34
- package/src/View/GridFilter/GridFilterStatusbar.js +10 -5
- package/src/View/GridFilter/GridFilterViewPanel.js +40 -34
- package/src/View/GridFilter/GridFilterWindowPopup.js +9 -4
- package/src/View/GridFilter/NamedQuerySelector.js +37 -31
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +2 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +37 -24
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +12 -26
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +16 -11
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +25 -20
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +37 -32
- package/src/View/GridInfo/GridInfoPopup/index.js +4 -1
- package/src/View/KeyHint.js +9 -4
- package/src/View/Layout/EditCurrentLayoutButton.js +11 -6
- package/src/View/Layout/LayoutCloneButton.js +11 -6
- package/src/View/Layout/LayoutRadioSelector.js +11 -6
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.d.ts +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +20 -10
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/LayoutViewPanel.js +30 -26
- package/src/View/Layout/PivotDetailsPopoup.js +12 -7
- package/src/View/Layout/SaveLayoutButton.js +17 -12
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +15 -11
- package/src/View/Layout/Wizard/LayoutWizard.js +56 -51
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +44 -37
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +68 -62
- package/src/View/Layout/Wizard/sections/FilterSection.js +37 -30
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +33 -26
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +27 -21
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +33 -27
- package/src/View/Layout/Wizard/sections/SettingsSection.js +35 -29
- package/src/View/Layout/Wizard/sections/SortSection.js +32 -26
- package/src/View/Layout/Wizard/sections/Utilities.js +5 -1
- package/src/View/License/LicenseWatermark.js +1 -61
- package/src/View/License/index.js +5 -1
- package/src/View/NamedQuery/EditCurrentQueryButton.js +12 -7
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +24 -17
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +28 -21
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +33 -28
- package/src/View/Notes/NotesListing.js +19 -14
- package/src/View/Notes/NotesPopup.js +24 -19
- package/src/View/PlusMinus/PlusMinusSummary.js +31 -26
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +18 -12
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +11 -6
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +39 -32
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +31 -26
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +18 -13
- package/src/View/QuickSearch/QuickSearchInput.js +18 -13
- package/src/View/QuickSearch/QuickSearchPopup.js +30 -26
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +15 -10
- package/src/View/QuickSearch/QuickSearchViewPanel.js +9 -4
- package/src/View/QuickSearch/useQuickSearchDebounced.js +12 -7
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +13 -8
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +32 -26
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +18 -13
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +29 -24
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +18 -13
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +29 -24
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +22 -17
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +20 -14
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +25 -20
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/index.js +9 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +22 -17
- package/src/View/Schedule/Wizard/ScheduleWizard.js +52 -47
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +11 -6
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +50 -43
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +37 -32
- package/src/View/Shortcut/shortcutKeys.js +4 -1
- package/src/View/Shortcut/shortcutOperations.js +9 -6
- package/src/View/SmartEdit/SmartEditPopup.js +30 -26
- package/src/View/SmartEdit/SmartEditViewPanel.js +34 -30
- package/src/View/SpecialColumnSettingsWizardStep.js +40 -35
- package/src/View/StateManagement/StateManagementPopup.js +27 -22
- package/src/View/StateManagement/StateManagementViewPanel.js +19 -14
- package/src/View/StateManagement/components/ClearButton.js +9 -4
- package/src/View/StateManagement/components/ExportDropdown.js +12 -7
- package/src/View/StateManagement/components/LoadButton.js +11 -6
- package/src/View/StateManagement/handleExportState.js +9 -4
- package/src/View/StatusBar/AdaptableStatusBar.js +19 -14
- package/src/View/StatusBar/StatusBarPanel.js +16 -12
- package/src/View/StatusBar/StatusBarPopup.js +19 -14
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +60 -61
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +142 -137
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +49 -44
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +24 -17
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +27 -21
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +14 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +12 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +12 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +19 -14
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +56 -49
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/index.js +4 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +29 -23
- package/src/View/SystemStatus/SystemStatusEntityRow.js +17 -12
- package/src/View/SystemStatus/SystemStatusPopup.js +22 -18
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +13 -8
- package/src/View/SystemStatus/SystemStatusViewPanel.js +12 -8
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +9 -4
- package/src/View/TeamSharing/SharedEntityDependencies.js +18 -12
- package/src/View/TeamSharing/SharedEntityObjectView.js +30 -23
- package/src/View/TeamSharing/TeamSharingApplyButton.js +11 -6
- package/src/View/Theme/ThemeEditor.js +32 -27
- package/src/View/Theme/ThemeEditorWindow.js +13 -8
- package/src/View/Theme/ThemeField.js +23 -18
- package/src/View/Theme/ThemePopup.js +28 -39
- package/src/View/Theme/ThemeSelector.d.ts +5 -0
- package/src/View/Theme/ThemeSelector.js +34 -0
- package/src/View/Theme/ThemeStatusbar.d.ts +2 -0
- package/src/View/Theme/ThemeStatusbar.js +14 -0
- package/src/View/Theme/ThemeViewPanel.d.ts +2 -13
- package/src/View/Theme/ThemeViewPanel.js +14 -56
- package/src/View/Theme/VariantSelector.js +13 -8
- package/src/View/UIHelper.js +152 -120
- package/src/View/UIInterfaces.js +2 -1
- package/src/View/Wizard/AdaptableWizard.js +30 -24
- package/src/View/Wizard/Interface/IAdaptableWizard.js +2 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +20 -14
- package/src/View/Wizard/OnePageAdaptableWizard.js +42 -32
- package/src/View/Wizard/OnePageWizards.js +59 -50
- package/src/View/Wizard/TypeRadio.js +12 -7
- package/src/View/Wizard/WizardLegend.js +11 -6
- package/src/View/Wizard/useKeyboardNavigation.js +9 -4
- package/src/View/renderWithAdaptableContext.js +14 -9
- package/src/agGrid/ActionColumnRenderer.js +15 -9
- package/src/agGrid/Adaptable.d.ts +9 -6
- package/src/agGrid/Adaptable.js +264 -273
- package/src/agGrid/AdaptableLogger.js +5 -1
- package/src/agGrid/BadgeRenderer.js +11 -6
- package/src/agGrid/CheckboxRenderer.js +7 -2
- package/src/agGrid/ColumnSetupInfo.js +2 -1
- package/src/agGrid/FilterWrapper.js +14 -9
- package/src/agGrid/FloatingFilterWrapper.js +13 -8
- package/src/agGrid/PercentBarRenderer.js +10 -5
- package/src/agGrid/agGridHelper.d.ts +2 -1
- package/src/agGrid/agGridHelper.js +117 -102
- package/src/agGrid/agGridMenuHelper.js +35 -30
- package/src/agGrid/attachAddaptableColumnTypes.js +8 -4
- package/src/agGrid/createAgStatusPanelComponent.js +10 -5
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +16 -12
- package/src/agGrid/editors/AdaptableDateEditor/index.js +24 -19
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +10 -6
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +21 -16
- package/src/agGrid/index.js +11 -6
- package/src/agGrid/weightedAverage.js +17 -10
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +31 -25
- package/src/components/AdaptableFormComponent/index.js +4 -1
- package/src/components/CheckBox/index.js +17 -13
- package/src/components/CodeBlock/index.js +11 -6
- package/src/components/ColorPicker/ColorPicker.js +18 -15
- package/src/components/ColorPicker/index.js +4 -1
- package/src/components/ContainerProps.js +2 -1
- package/src/components/Dashboard/Dashboard.js +22 -17
- package/src/components/Dashboard/DashboardManager.js +7 -4
- package/src/components/Dashboard/DashboardTab.js +5 -1
- package/src/components/Dashboard/DashboardToolbar.js +14 -9
- package/src/components/Dashboard/index.js +6 -3
- package/src/components/Datepicker/Caption.js +20 -15
- package/src/components/Datepicker/CaptionLabel.js +21 -16
- package/src/components/Datepicker/DatepickerContext.js +9 -4
- package/src/components/Datepicker/index.js +42 -39
- package/src/components/Dialog/index.js +32 -29
- package/src/components/Dialog/useIsOpen.js +6 -3
- package/src/components/DragAndDropContext/DragAndDropContext.js +6 -2
- package/src/components/DragAndDropContext/ModuleManager.js +18 -13
- package/src/components/DragAndDropContext/TabList.js +27 -19
- package/src/components/DragAndDropContext/UnusedPanel.js +15 -10
- package/src/components/DragAndDropContext/types.js +2 -1
- package/src/components/Drawer/index.js +7 -2
- package/src/components/Dropdown/Arrows.js +8 -5
- package/src/components/Dropdown/index.js +20 -18
- package/src/components/DropdownButton/DropdownButtonItem.js +2 -1
- package/src/components/DropdownButton/index.js +26 -23
- package/src/components/DropdownButton/renderItem.js +7 -4
- package/src/components/DropdownButton/useExpanded.js +12 -9
- package/src/components/EllipsisContainer/index.js +21 -17
- package/src/components/EmptyContent/index.js +10 -8
- package/src/components/ErrorBox/index.js +10 -6
- package/src/components/ExpressionEditor/BaseEditorInput.js +60 -55
- package/src/components/ExpressionEditor/EditorButton.js +10 -8
- package/src/components/ExpressionEditor/EditorContext.js +8 -4
- package/src/components/ExpressionEditor/EditorInput.js +25 -22
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +27 -24
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +15 -10
- package/src/components/ExpressionEditor/NamedQueryContext.js +8 -4
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +42 -36
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +6 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +60 -41
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +71 -54
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +5 -1
- package/src/components/ExpressionEditor/QueryBuilder/index.js +4 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +27 -18
- package/src/components/ExpressionEditor/editorButtonsAggregatedBoolean.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsObservable.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +4 -1
- package/src/components/ExpressionEditor/editorButtonsSearch.js +4 -1
- package/src/components/ExpressionEditor/index.js +99 -97
- package/src/components/FieldWrap/index.js +8 -5
- package/src/components/FileDroppable/FileDroppableState.js +2 -1
- package/src/components/FileDroppable/index.js +33 -29
- package/src/components/FileDroppable/reducer.js +6 -3
- package/src/components/FlexWithFooter.js +11 -9
- package/src/components/FormLayout/index.js +17 -13
- package/src/components/HelpBlock/index.js +10 -6
- package/src/components/Icon/index.js +29 -20
- package/src/components/IconSelector/IconSelector.js +32 -27
- package/src/components/IconSelector/index.js +4 -1
- package/src/components/InfiniteTable/index.js +10 -6
- package/src/components/Input/NumberInput.js +9 -4
- package/src/components/Input/index.js +11 -8
- package/src/components/InputGroup/InputGroup.d.ts +7 -0
- package/src/components/InputGroup/InputGroup.js +12 -0
- package/src/components/InputGroup/index.d.ts +1 -0
- package/src/components/InputGroup/index.js +4 -0
- package/src/components/List/GridList/index.js +10 -7
- package/src/components/List/ListGroup/index.js +9 -7
- package/src/components/List/ListGroupItem/index.js +10 -8
- package/src/components/Loader/Loader.js +10 -4
- package/src/components/Loader/index.js +7 -2
- package/src/components/Logo/index.js +7 -2
- package/src/components/Modal/Backdrop.js +17 -12
- package/src/components/Modal/index.js +23 -19
- package/src/components/NotifyResize/index.js +7 -4
- package/src/components/OverlayTrigger/Overlay.js +23 -19
- package/src/components/OverlayTrigger/index.js +53 -43
- package/src/components/OverlayTrigger/useAgGridClassName.js +7 -5
- package/src/components/OverlayTrigger/utils.js +9 -3
- package/src/components/Panel/index.js +15 -12
- package/src/components/PopupWithFooter.js +11 -8
- package/src/components/ProgressIndicator/ProgressIndicator.js +17 -12
- package/src/components/Radio/index.js +20 -15
- package/src/components/ResizeObserver/getResizeObserverObject.js +5 -1
- package/src/components/ResizeObserver/index.js +24 -17
- package/src/components/Select/Select.d.ts +1 -1
- package/src/components/Select/Select.js +65 -32
- package/src/components/Select/index.js +4 -1
- package/src/components/SelectList.js +9 -4
- package/src/components/SelectableList/index.js +13 -8
- package/src/components/SimpleButton/index.js +22 -19
- package/src/components/SizedContainer/index.js +11 -9
- package/src/components/StylePreview.js +11 -6
- package/src/components/Table/index.js +7 -4
- package/src/components/Tabs/index.js +34 -28
- package/src/components/Tag/Tag.js +9 -5
- package/src/components/Tag/index.js +5 -1
- package/src/components/Textarea/index.js +11 -8
- package/src/components/Toastify/index.js +10 -1
- package/src/components/Toggle/Toggle.js +12 -8
- package/src/components/Toggle/ToggleGroup.js +9 -4
- package/src/components/Toggle/index.js +5 -2
- package/src/components/ToggleButton/index.js +11 -6
- package/src/components/Tooltip/index.js +7 -4
- package/src/components/WarningBox/index.js +11 -6
- package/src/components/WindowModal/WindowModal.js +17 -12
- package/src/components/WindowModal/index.js +4 -1
- package/src/components/WindowModal/useStacking.js +9 -4
- package/src/components/WizardPanel/index.js +8 -5
- package/src/components/icons/DefaultIcon.js +12 -8
- package/src/components/icons/add-row.js +6 -3
- package/src/components/icons/alert.js +6 -3
- package/src/components/icons/align-center.js +6 -3
- package/src/components/icons/align-justify.js +6 -3
- package/src/components/icons/align-left.js +6 -3
- package/src/components/icons/align-right.js +6 -3
- package/src/components/icons/analysis.js +6 -3
- package/src/components/icons/application.js +6 -3
- package/src/components/icons/arrow-down-long.js +6 -3
- package/src/components/icons/arrow-down.js +6 -3
- package/src/components/icons/arrow-expand.js +6 -3
- package/src/components/icons/arrow-left.js +6 -3
- package/src/components/icons/arrow-right.js +6 -3
- package/src/components/icons/arrow-up-long.js +6 -3
- package/src/components/icons/arrow-up.js +6 -3
- package/src/components/icons/attach-file.js +6 -3
- package/src/components/icons/badge.js +6 -3
- package/src/components/icons/blanks.js +6 -3
- package/src/components/icons/bold.js +6 -3
- package/src/components/icons/boolean-list.js +6 -3
- package/src/components/icons/brush.js +6 -3
- package/src/components/icons/build.js +6 -3
- package/src/components/icons/bulk-update.js +6 -3
- package/src/components/icons/calculated-column.js +6 -3
- package/src/components/icons/calendar.js +6 -3
- package/src/components/icons/call.js +6 -3
- package/src/components/icons/campaign.js +6 -3
- package/src/components/icons/case-lower.js +6 -3
- package/src/components/icons/case-sentence.js +6 -3
- package/src/components/icons/case-upper.js +6 -3
- package/src/components/icons/cell-summary.js +6 -3
- package/src/components/icons/cell-validation.js +6 -3
- package/src/components/icons/chart.js +6 -3
- package/src/components/icons/chat.js +6 -3
- package/src/components/icons/check-box-outline.js +6 -3
- package/src/components/icons/check-box.js +6 -3
- package/src/components/icons/check-circle.js +6 -3
- package/src/components/icons/check.js +6 -3
- package/src/components/icons/clone.js +6 -3
- package/src/components/icons/close.js +6 -3
- package/src/components/icons/cloud-upload.js +6 -3
- package/src/components/icons/collapse.js +6 -3
- package/src/components/icons/column-add.js +6 -3
- package/src/components/icons/column-chooser.js +6 -3
- package/src/components/icons/column-filter.js +6 -3
- package/src/components/icons/column-info.js +6 -3
- package/src/components/icons/comment.js +6 -3
- package/src/components/icons/contact.js +6 -3
- package/src/components/icons/contains.js +6 -3
- package/src/components/icons/custom-sort.js +6 -3
- package/src/components/icons/dashboard.js +6 -3
- package/src/components/icons/data-set.js +6 -3
- package/src/components/icons/date-range.js +6 -3
- package/src/components/icons/delete.js +6 -3
- package/src/components/icons/division.js +6 -3
- package/src/components/icons/dock.js +6 -3
- package/src/components/icons/dollar.js +6 -3
- package/src/components/icons/drag.js +6 -3
- package/src/components/icons/edit.js +6 -3
- package/src/components/icons/ends-with.js +6 -3
- package/src/components/icons/equal.js +6 -3
- package/src/components/icons/equation.js +6 -3
- package/src/components/icons/error.js +6 -3
- package/src/components/icons/expand.js +6 -3
- package/src/components/icons/exponent.js +6 -3
- package/src/components/icons/export.js +6 -3
- package/src/components/icons/fast-backward.js +6 -3
- package/src/components/icons/fast-forward.js +6 -3
- package/src/components/icons/fdc3.js +6 -3
- package/src/components/icons/filter.js +6 -3
- package/src/components/icons/flashing-cell.js +6 -3
- package/src/components/icons/folder-open.js +6 -3
- package/src/components/icons/folder-shared.js +6 -3
- package/src/components/icons/folder.js +6 -3
- package/src/components/icons/format-column.js +6 -3
- package/src/components/icons/freetext-column.js +6 -3
- package/src/components/icons/function.js +6 -3
- package/src/components/icons/gradient-column.js +6 -3
- package/src/components/icons/gradient.js +6 -3
- package/src/components/icons/greater-than-or-equal.js +6 -3
- package/src/components/icons/greater-than.js +6 -3
- package/src/components/icons/grid-filter.js +6 -3
- package/src/components/icons/hide-column.js +6 -3
- package/src/components/icons/history.js +6 -3
- package/src/components/icons/home.js +6 -3
- package/src/components/icons/import-export.js +6 -3
- package/src/components/icons/import.js +6 -3
- package/src/components/icons/index.js +326 -321
- package/src/components/icons/info.js +6 -3
- package/src/components/icons/instrument.js +6 -3
- package/src/components/icons/interactions.js +6 -3
- package/src/components/icons/invalid.js +6 -3
- package/src/components/icons/ipushpull.js +6 -3
- package/src/components/icons/italic.js +6 -3
- package/src/components/icons/justify.js +6 -3
- package/src/components/icons/layout.js +6 -3
- package/src/components/icons/less-than-or-equal.js +6 -3
- package/src/components/icons/less-than.js +6 -3
- package/src/components/icons/list.js +6 -3
- package/src/components/icons/login.js +6 -3
- package/src/components/icons/logout copy.js +6 -3
- package/src/components/icons/logout.js +6 -3
- package/src/components/icons/mail.js +6 -3
- package/src/components/icons/menu.js +6 -3
- package/src/components/icons/minus.js +6 -3
- package/src/components/icons/money.js +6 -3
- package/src/components/icons/multiplication.js +6 -3
- package/src/components/icons/newpage.js +6 -3
- package/src/components/icons/news.js +6 -3
- package/src/components/icons/non-blanks.js +6 -3
- package/src/components/icons/not-contains.js +6 -3
- package/src/components/icons/not-equal.js +6 -3
- package/src/components/icons/note.js +6 -3
- package/src/components/icons/open-in-new.js +6 -3
- package/src/components/icons/order.js +6 -3
- package/src/components/icons/organisation.js +6 -3
- package/src/components/icons/overline.js +6 -3
- package/src/components/icons/pause.js +6 -3
- package/src/components/icons/percent-bar.js +6 -3
- package/src/components/icons/percent.js +6 -3
- package/src/components/icons/person.js +6 -3
- package/src/components/icons/pie-chart.js +6 -3
- package/src/components/icons/play.js +6 -3
- package/src/components/icons/plus-minus.js +6 -3
- package/src/components/icons/plus.js +6 -3
- package/src/components/icons/query.js +6 -3
- package/src/components/icons/quick-search.js +6 -3
- package/src/components/icons/quote.js +6 -3
- package/src/components/icons/refresh.js +6 -3
- package/src/components/icons/regex.js +6 -3
- package/src/components/icons/reminder.js +6 -3
- package/src/components/icons/resume.js +6 -3
- package/src/components/icons/save.js +6 -3
- package/src/components/icons/schedule.js +6 -3
- package/src/components/icons/science.js +6 -3
- package/src/components/icons/settings.js +6 -3
- package/src/components/icons/shortcut.js +6 -3
- package/src/components/icons/show-column.js +6 -3
- package/src/components/icons/smart-edit.js +6 -3
- package/src/components/icons/sort-asc.js +6 -3
- package/src/components/icons/sort-desc.js +6 -3
- package/src/components/icons/spark-line.js +6 -3
- package/src/components/icons/starts-with.js +6 -3
- package/src/components/icons/state-management.js +6 -3
- package/src/components/icons/statusbar.js +6 -3
- package/src/components/icons/stop.js +6 -3
- package/src/components/icons/strikethrough.js +6 -3
- package/src/components/icons/system-status.js +6 -3
- package/src/components/icons/tab-unselected.js +6 -3
- package/src/components/icons/table-arrow-right.js +6 -3
- package/src/components/icons/team-share.js +6 -3
- package/src/components/icons/theme.js +6 -3
- package/src/components/icons/tool-panel.js +6 -3
- package/src/components/icons/track-changes.js +6 -3
- package/src/components/icons/triangle-down.js +6 -3
- package/src/components/icons/triangle-up.js +6 -3
- package/src/components/icons/unchecked.js +6 -3
- package/src/components/icons/underline.js +6 -3
- package/src/components/icons/undo.js +6 -3
- package/src/components/icons/updated-row.js +6 -3
- package/src/components/icons/upload.js +6 -3
- package/src/components/icons/user-filter.js +6 -3
- package/src/components/icons/visibility-off.js +6 -3
- package/src/components/icons/visibility.js +6 -3
- package/src/components/icons/warning.js +6 -3
- package/src/components/utils/batchUpdate.js +5 -3
- package/src/components/utils/captureTabNavigation/getFocusableChildren.js +3 -1
- package/src/components/utils/captureTabNavigation/index.js +6 -3
- package/src/components/utils/contains.js +4 -1
- package/src/components/utils/getAvailableSizeInfo.js +3 -1
- package/src/components/utils/join.js +3 -1
- package/src/components/utils/selectParent/index.js +6 -3
- package/src/components/utils/selectParent/matches.js +2 -1
- package/src/components/utils/useAutoFocus.js +8 -5
- package/src/components/utils/useContainerScrollObserver/index.js +13 -9
- package/src/components/utils/useDraggable.js +10 -7
- package/src/components/utils/useGlobalEvent.js +7 -2
- package/src/components/utils/useLatest.js +8 -4
- package/src/components/utils/usePrevious.js +6 -4
- package/src/components/utils/usePropState.js +6 -3
- package/src/components/utils/useProperty.js +6 -4
- package/src/components/utils/useRerender.js +8 -4
- package/src/components/utils/useSelectionRange.js +9 -5
- package/src/components/utils/useTheme.js +5 -2
- package/src/components/utils/uuid.js +6 -2
- package/src/env.js +3 -1
- package/src/metamodel/adaptable-metamodel-model.js +2 -1
- package/src/metamodel/adaptable.metamodel.d.ts +35 -28
- package/src/metamodel/adaptable.metamodel.js +1 -9435
- package/src/parser/src/ExpressionEvaluationError.js +5 -1
- package/src/parser/src/evaluator.js +7 -3
- package/src/parser/src/index.js +18 -9
- package/src/parser/src/predicate/index.js +5 -2
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +19 -13
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +23 -6
- package/src/parser/src/predicate/types.d.ts +1 -1
- package/src/parser/src/predicate/types.js +5 -1
- package/src/parser/src/tokenizer.js +8 -3
- package/src/parser/src/types.d.ts +1 -1
- package/src/parser/src/types.js +5 -1
- package/src/parser/src/utils.js +9 -3
- package/src/renderReactRoot.js +22 -2
- package/src/theme.js +3 -1
- package/src/themes/index.js +7 -4
- package/src/types.d.ts +4 -3
- package/src/types.js +5 -1
- 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/types.js +4 -1
- package/version.d.ts +2 -0
- package/version.js +3 -0
- package/src/Api/Events/SelectionChanged.d.ts +0 -16
- package/src/Api/Events/SelectionChanged.js +0 -1
- package/src/View/Theme/ThemeStatusPanelPopover.d.ts +0 -2
- package/src/View/Theme/ThemeStatusPanelPopover.js +0 -20
- package/tsconfig.esm.tsbuildinfo +0 -1
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -1,69 +1,73 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdaptableNoCodeWizard = exports.Adaptable = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@ag-grid-community/core");
|
|
6
|
+
const merge_1 = tslib_1.__importDefault(require("lodash/merge"));
|
|
7
|
+
const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
|
|
8
|
+
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
9
|
+
const throttle_1 = tslib_1.__importDefault(require("lodash/throttle"));
|
|
10
|
+
const uniqBy_1 = tslib_1.__importDefault(require("lodash/uniqBy"));
|
|
11
|
+
const React = tslib_1.__importStar(require("react"));
|
|
12
|
+
const clamp_1 = tslib_1.__importDefault(require("lodash/clamp"));
|
|
13
|
+
const AdaptableApiImpl_1 = require("../Api/Implementation/AdaptableApiImpl");
|
|
14
|
+
const Enums_1 = require("../PredefinedConfig/Common/Enums");
|
|
15
|
+
const Uuid_1 = require("../PredefinedConfig/Uuid");
|
|
16
|
+
const AdaptableStore_1 = require("../Redux/Store/AdaptableStore");
|
|
17
|
+
const GeneralConstants = tslib_1.__importStar(require("../Utilities/Constants/GeneralConstants"));
|
|
18
|
+
const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
|
|
19
|
+
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
20
|
+
const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
|
|
21
|
+
const DefaultAdaptableOptions_1 = require("../Utilities/Defaults/DefaultAdaptableOptions");
|
|
22
|
+
const Emitter_1 = tslib_1.__importDefault(require("../Utilities/Emitter"));
|
|
23
|
+
const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
|
|
24
|
+
const StringExtensions_1 = require("../Utilities/Extensions/StringExtensions");
|
|
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");
|
|
25
29
|
// services
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
30
|
+
const CalculatedColumnExpressionService_1 = require("../Utilities/Services/CalculatedColumnExpressionService");
|
|
31
|
+
const DataService_1 = require("../Utilities/Services/DataService");
|
|
32
|
+
const LicenseService_1 = require("../Utilities/Services/LicenseService");
|
|
33
|
+
const TeamSharingService_1 = require("../Utilities/Services/TeamSharingService");
|
|
34
|
+
const ReportService_1 = require("../Utilities/Services/ReportService");
|
|
35
|
+
const ModuleService_1 = require("../Utilities/Services/ModuleService");
|
|
36
|
+
const ValidationService_1 = require("../Utilities/Services/ValidationService");
|
|
37
|
+
const EntitlementService_1 = require("../Utilities/Services/EntitlementService");
|
|
38
|
+
const QueryLanguageService_1 = require("../Utilities/Services/QueryLanguageService");
|
|
39
|
+
const AlertService_1 = require("../Utilities/Services/AlertService");
|
|
40
|
+
const AdaptableView_1 = require("../View/AdaptableView");
|
|
41
|
+
const AdaptableWizardView_1 = tslib_1.__importDefault(require("../View/AdaptableWizardView"));
|
|
42
|
+
const AdaptableToolPanel_1 = require("../View/Components/ToolPanel/AdaptableToolPanel");
|
|
43
|
+
const UIHelper_1 = tslib_1.__importDefault(require("../View/UIHelper"));
|
|
44
|
+
const ActionColumnRenderer_1 = require("./ActionColumnRenderer");
|
|
45
|
+
const agGridHelper_1 = require("./agGridHelper");
|
|
46
|
+
const agGridMenuHelper_1 = require("./agGridMenuHelper");
|
|
43
47
|
// components
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
48
|
+
const FilterWrapper_1 = require("./FilterWrapper");
|
|
49
|
+
const FloatingFilterWrapper_1 = require("./FloatingFilterWrapper");
|
|
50
|
+
const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
|
|
51
|
+
const AdaptableNumberEditor_1 = require("./editors/AdaptableNumberEditor");
|
|
52
|
+
const AdaptableDateEditor_1 = require("./editors/AdaptableDateEditor");
|
|
53
|
+
const waitForCondition_1 = require("../Utilities/waitForCondition");
|
|
54
|
+
const publishTimestamp_1 = tslib_1.__importDefault(require("../../publishTimestamp"));
|
|
55
|
+
const MetamodelService_1 = require("../Utilities/Services/MetamodelService");
|
|
56
|
+
const DocumentationLinkConstants_1 = require("../Utilities/Constants/DocumentationLinkConstants");
|
|
57
|
+
const DateHelper_1 = require("../Utilities/Helpers/DateHelper");
|
|
58
|
+
const StatusBarState_1 = require("../PredefinedConfig/StatusBarState");
|
|
59
|
+
const createAgStatusPanelComponent_1 = require("./createAgStatusPanelComponent");
|
|
60
|
+
const AdaptableStatusBar_1 = require("../View/StatusBar/AdaptableStatusBar");
|
|
61
|
+
const RowEditService_1 = require("../Utilities/Services/RowEditService");
|
|
62
|
+
const weightedAverage_1 = require("./weightedAverage");
|
|
63
|
+
const AggregationColumns_1 = require("../PredefinedConfig/Common/AggregationColumns");
|
|
64
|
+
const renderReactRoot_1 = require("../renderReactRoot");
|
|
65
|
+
const ChartingService_1 = require("../Utilities/Services/ChartingService");
|
|
66
|
+
const ThemeService_1 = require("../Utilities/Services/ThemeService");
|
|
67
|
+
const AdaptableLogger_1 = require("./AdaptableLogger");
|
|
68
|
+
const attachAddaptableColumnTypes_1 = require("./attachAddaptableColumnTypes");
|
|
69
|
+
const FormatHelper_1 = require("../Utilities/Helpers/FormatHelper");
|
|
70
|
+
const Fdc3Service_1 = require("../Utilities/Services/Fdc3Service");
|
|
67
71
|
const tinycolor = require('tinycolor2');
|
|
68
72
|
const GROUP_PATH_SEPARATOR = '/';
|
|
69
73
|
// IMPORTANT - we need colId to be set in order for safeSetColDefs to work correctly
|
|
@@ -83,14 +87,14 @@ const assignColId = (colDef, logger) => {
|
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
89
|
};
|
|
86
|
-
const RowNodeProto = RowNode.prototype;
|
|
90
|
+
const RowNodeProto = core_1.RowNode.prototype;
|
|
87
91
|
const RowNode_dispatchLocalEvent = RowNodeProto.dispatchLocalEvent;
|
|
88
|
-
const GridApi_setColumnDefs = GridApi.prototype.setColumnDefs;
|
|
92
|
+
const GridApi_setColumnDefs = core_1.GridApi.prototype.setColumnDefs;
|
|
89
93
|
['addCssClass', 'removeCssClass', 'containsCssClass', 'addOrRemoveCssClass'].forEach((methodName) => {
|
|
90
94
|
// @ts-ignore
|
|
91
|
-
const CssClassManager_originalMethod = CssClassManager.prototype[methodName];
|
|
95
|
+
const CssClassManager_originalMethod = core_1.CssClassManager.prototype[methodName];
|
|
92
96
|
// @ts-ignore
|
|
93
|
-
CssClassManager.prototype[methodName] = function () {
|
|
97
|
+
core_1.CssClassManager.prototype[methodName] = function () {
|
|
94
98
|
return this.getGui() ? CssClassManager_originalMethod.apply(this, arguments) : undefined;
|
|
95
99
|
};
|
|
96
100
|
});
|
|
@@ -107,7 +111,7 @@ RowNodeProto.dispatchLocalEvent = function (event) {
|
|
|
107
111
|
// starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
|
|
108
112
|
const rowNodeApi = (_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _a === void 0 ? void 0 : _a.gridApi;
|
|
109
113
|
if (!rowNodeApi) {
|
|
110
|
-
AdaptableLogger.consoleErrorBase(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
|
|
114
|
+
AdaptableLogger_1.AdaptableLogger.consoleErrorBase(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
|
|
111
115
|
}
|
|
112
116
|
return rowNodeApi;
|
|
113
117
|
};
|
|
@@ -146,7 +150,7 @@ const forEachColumn = (cols, fn, parentColGroup) => {
|
|
|
146
150
|
});
|
|
147
151
|
};
|
|
148
152
|
const adaptableInstances = {};
|
|
149
|
-
|
|
153
|
+
class Adaptable {
|
|
150
154
|
get isLive() {
|
|
151
155
|
return this.isInitialised && !this.isDestroyed;
|
|
152
156
|
}
|
|
@@ -160,7 +164,7 @@ export class Adaptable {
|
|
|
160
164
|
static init(adaptableOptions, agGridConfig) {
|
|
161
165
|
var _a;
|
|
162
166
|
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}`);
|
|
167
|
+
AdaptableLogger_1.AdaptableLogger.consoleErrorBase(`No AG Grid modules were provided, thus limiting AdapTables features significantly!\n\nRead further info here:${DocumentationLinkConstants_1.AgGridModulesDocsLink}`);
|
|
164
168
|
}
|
|
165
169
|
return Adaptable.initInternal(adaptableOptions, Object.assign({}, agGridConfig));
|
|
166
170
|
}
|
|
@@ -221,7 +225,7 @@ export class Adaptable {
|
|
|
221
225
|
}
|
|
222
226
|
}
|
|
223
227
|
static collectInstance(adaptable) {
|
|
224
|
-
adaptable._id = adaptable.adaptableOptions.adaptableId || createUuid();
|
|
228
|
+
adaptable._id = adaptable.adaptableOptions.adaptableId || (0, Uuid_1.createUuid)();
|
|
225
229
|
adaptableInstances[adaptable._id] = adaptable;
|
|
226
230
|
}
|
|
227
231
|
static forEachAdaptable(fn) {
|
|
@@ -264,7 +268,7 @@ export class Adaptable {
|
|
|
264
268
|
};
|
|
265
269
|
this._adaptableReady = false;
|
|
266
270
|
this.isDestroyed = false;
|
|
267
|
-
this.renderReactRoot = (node, container) =>
|
|
271
|
+
this.renderReactRoot = (node, container) => (0, renderReactRoot_1.renderReactRoot)(node, container);
|
|
268
272
|
this.isPluginLoaded = (pluginId) => {
|
|
269
273
|
const plugins = this.adaptableOptions.plugins || [];
|
|
270
274
|
for (let i = 0, len = plugins.length; i < len; i++) {
|
|
@@ -278,34 +282,34 @@ export class Adaptable {
|
|
|
278
282
|
this.isAgGridReady = () => {
|
|
279
283
|
var _a, _b;
|
|
280
284
|
const waitTimeout = (_b = (_a = this.adaptableOptions.containerOptions) === null || _a === void 0 ? void 0 : _a.agGridContainerWaitTimeout) !== null && _b !== void 0 ? _b : 60000;
|
|
281
|
-
return waitForCondition(() => !!this.gridOptions.api, waitTimeout);
|
|
285
|
+
return (0, waitForCondition_1.waitForCondition)(() => !!this.gridOptions.api, waitTimeout);
|
|
282
286
|
};
|
|
283
287
|
// debounced methods
|
|
284
|
-
this.debouncedSetColumnIntoStore =
|
|
288
|
+
this.debouncedSetColumnIntoStore = (0, debounce_1.default)(() => {
|
|
285
289
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
286
290
|
return;
|
|
287
291
|
}
|
|
288
292
|
this.updateColumnsIntoStore();
|
|
289
|
-
}, HALF_SECOND);
|
|
290
|
-
this.debouncedSaveGridLayout =
|
|
293
|
+
}, GeneralConstants_1.HALF_SECOND);
|
|
294
|
+
this.debouncedSaveGridLayout = (0, debounce_1.default)(() => {
|
|
291
295
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
292
296
|
return;
|
|
293
297
|
}
|
|
294
298
|
this.updateLayoutFromGrid();
|
|
295
|
-
}, HALF_SECOND);
|
|
296
|
-
this.debouncedSetSelectedCells =
|
|
299
|
+
}, GeneralConstants_1.HALF_SECOND);
|
|
300
|
+
this.debouncedSetSelectedCells = (0, debounce_1.default)(() => {
|
|
297
301
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
298
302
|
return;
|
|
299
303
|
}
|
|
300
304
|
this.setSelectedCells();
|
|
301
305
|
}, 250);
|
|
302
|
-
this.debouncedSetSelectedRows =
|
|
306
|
+
this.debouncedSetSelectedRows = (0, debounce_1.default)(() => {
|
|
303
307
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
304
308
|
return;
|
|
305
309
|
}
|
|
306
310
|
this.setSelectedRows();
|
|
307
|
-
}, HALF_SECOND);
|
|
308
|
-
this.debouncedFilterGrid =
|
|
311
|
+
}, GeneralConstants_1.HALF_SECOND);
|
|
312
|
+
this.debouncedFilterGrid = (0, debounce_1.default)((callback = () => { }) => {
|
|
309
313
|
if (this.isDestroyed || !this.gridOptions.api) {
|
|
310
314
|
return;
|
|
311
315
|
}
|
|
@@ -313,7 +317,7 @@ export class Adaptable {
|
|
|
313
317
|
if (callback) {
|
|
314
318
|
callback();
|
|
315
319
|
}
|
|
316
|
-
}, HALF_SECOND);
|
|
320
|
+
}, GeneralConstants_1.HALF_SECOND);
|
|
317
321
|
/**
|
|
318
322
|
* This creates a clone of the current column definitions. If config.removeEmpty is true, will also remove empty column groups
|
|
319
323
|
*
|
|
@@ -355,26 +359,8 @@ export class Adaptable {
|
|
|
355
359
|
// the 'old' constructor which takes an Adaptable adaptable object
|
|
356
360
|
// this is still used internally but should not be used externally as a preference
|
|
357
361
|
async init(adaptableOptions, runtimeConfig, _staticInit) {
|
|
358
|
-
this.logger = new AdaptableLogger(adaptableOptions.adaptableId || String(Date.now()));
|
|
362
|
+
this.logger = new AdaptableLogger_1.AdaptableLogger(adaptableOptions.adaptableId || String(Date.now()));
|
|
359
363
|
const perfAdaptableInit = this.logger.beginPerf(`Adaptable init()`);
|
|
360
|
-
if (runtimeConfig.renderReactRoot) {
|
|
361
|
-
this.renderReactRoot = (el, container) => {
|
|
362
|
-
const unmount = runtimeConfig.renderReactRoot(el, container);
|
|
363
|
-
return () => {
|
|
364
|
-
// we used to capture here because of FloatingFilters/Filters - see FloatingFilterWrapper and FilterWrapper
|
|
365
|
-
// as we didn't have a native React implementation for our React wrapper
|
|
366
|
-
// but we might need to do this again in the future for some other components that are not native React
|
|
367
|
-
// captureReactWarnings();
|
|
368
|
-
if (typeof unmount === 'function') {
|
|
369
|
-
// rAF is required, otherwise the unmount would be performed during the rendering phase and React doesn't like that
|
|
370
|
-
requestAnimationFrame(() => {
|
|
371
|
-
unmount();
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
// releaseReactWarnings();
|
|
375
|
-
};
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
364
|
if (runtimeConfig.variant) {
|
|
379
365
|
this.variant = runtimeConfig.variant;
|
|
380
366
|
}
|
|
@@ -386,19 +372,19 @@ export class Adaptable {
|
|
|
386
372
|
!!!!!!! Use const api = await Adaptable.init(adaptableOptions) instead.
|
|
387
373
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!`);
|
|
388
374
|
}
|
|
389
|
-
this.emitter = new
|
|
375
|
+
this.emitter = new Emitter_1.default();
|
|
390
376
|
this.runtimeConfig = runtimeConfig;
|
|
391
377
|
this.gridOptions = this.runtimeConfig.gridOptions;
|
|
392
378
|
this._rawAdaptableOptions = adaptableOptions;
|
|
393
379
|
// we create AdaptableOptions by merging the values provided by the user with the defaults (where no value has been set)
|
|
394
|
-
this.adaptableOptions =
|
|
380
|
+
this.adaptableOptions = AdaptableHelper_1.default.assignAdaptableOptions(adaptableOptions);
|
|
395
381
|
if (this.hasAutogeneratedPrimaryKey()) {
|
|
396
382
|
this.logger
|
|
397
383
|
.warn(`Autogenerated primary key (adaptableOptions.autogeneratedPrimaryKey = TRUE) should be used only as a last resort,
|
|
398
384
|
when no unique column is available, as it limits some Adaptable functionalities!
|
|
399
385
|
|
|
400
|
-
For more details see: ${PrimaryKeyDocsLink}`);
|
|
401
|
-
this.adaptableOptions.primaryKey = AUTOGENERATED_PK_COLUMN;
|
|
386
|
+
For more details see: ${DocumentationLinkConstants_1.PrimaryKeyDocsLink}`);
|
|
387
|
+
this.adaptableOptions.primaryKey = GeneralConstants_1.AUTOGENERATED_PK_COLUMN;
|
|
402
388
|
}
|
|
403
389
|
Adaptable.collectInstance(this);
|
|
404
390
|
if (this.gridOptions.allowContextMenuWithControlKey === undefined) {
|
|
@@ -409,13 +395,13 @@ export class Adaptable {
|
|
|
409
395
|
this.forPlugins((plugin) => plugin.afterInitOptions(this, this.adaptableOptions));
|
|
410
396
|
this.registerAdaptableAggFuncs();
|
|
411
397
|
// get the api ready
|
|
412
|
-
this.api = new AdaptableApiImpl(this);
|
|
398
|
+
this.api = new AdaptableApiImpl_1.AdaptableApiImpl(this);
|
|
413
399
|
this.forPlugins((plugin) => plugin.afterInitApi(this, this.api));
|
|
414
400
|
// data source needs to be created early
|
|
415
|
-
this.DataService = new DataService(this);
|
|
401
|
+
this.DataService = new DataService_1.DataService(this);
|
|
416
402
|
// set up the ag Grid helper and menu helper
|
|
417
|
-
this.agGridHelper = new agGridHelper(this, this.gridOptions);
|
|
418
|
-
this.agGridMenuHelper = new agGridMenuHelper(this, this.gridOptions);
|
|
403
|
+
this.agGridHelper = new agGridHelper_1.agGridHelper(this, this.gridOptions);
|
|
404
|
+
this.agGridMenuHelper = new agGridMenuHelper_1.agGridMenuHelper(this, this.gridOptions);
|
|
419
405
|
// Build the default group sort comparator - will get custom sort values (but not functions) in real time
|
|
420
406
|
// TODO: if a custom 'aggFunc' property is defined (see setupColumnAggFunc()), it won't be evaluated
|
|
421
407
|
if (this.adaptableOptions.groupingOptions.autoOrderGroupedColumns) {
|
|
@@ -432,20 +418,20 @@ export class Adaptable {
|
|
|
432
418
|
this.initStore();
|
|
433
419
|
// create the services
|
|
434
420
|
this.LicenseService = this.initLicenseService();
|
|
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);
|
|
421
|
+
this.ChartingService = new ChartingService_1.ChartingService(this.api);
|
|
422
|
+
this.ThemeService = new ThemeService_1.ThemeService(this.api);
|
|
423
|
+
this.ValidationService = new ValidationService_1.ValidationService(this.api);
|
|
424
|
+
this.ReportService = new ReportService_1.ReportService(this.api);
|
|
425
|
+
this.ModuleService = new ModuleService_1.ModuleService(this.api);
|
|
426
|
+
this.CalculatedColumnExpressionService = new CalculatedColumnExpressionService_1.CalculatedColumnExpressionService(this.api);
|
|
427
|
+
this.EntitlementService = new EntitlementService_1.EntitlementService(this.api);
|
|
428
|
+
this.QueryLanguageService = new QueryLanguageService_1.QueryLanguageService(this.api);
|
|
429
|
+
this.AlertService = new AlertService_1.AlertService(this.api);
|
|
430
|
+
this.TeamSharingService = new TeamSharingService_1.TeamSharingService(this.api);
|
|
431
|
+
this.Fdc3Service = new Fdc3Service_1.Fdc3Service(this.api);
|
|
446
432
|
// @ts-ignore
|
|
447
|
-
this.RowEditService = new RowEditService(this.api);
|
|
448
|
-
this.MetamodelService = new MetamodelService(() => this.api.optionsApi.getAdaptableOptions());
|
|
433
|
+
this.RowEditService = new RowEditService_1.RowEditService(this.api);
|
|
434
|
+
this.MetamodelService = new MetamodelService_1.MetamodelService(() => this.api.optionsApi.getAdaptableOptions());
|
|
449
435
|
// validate the provided AdaptableOptions
|
|
450
436
|
this.MetamodelService.validateAdaptableOptionsValues();
|
|
451
437
|
this.forPlugins((plugin) => plugin.afterInitServices(this));
|
|
@@ -458,14 +444,14 @@ export class Adaptable {
|
|
|
458
444
|
this.gridOptions.api.__adaptable = this;
|
|
459
445
|
}
|
|
460
446
|
this.gridOptions.columnTypes = this.gridOptions.columnTypes || {};
|
|
461
|
-
attachColumnTypes(this.gridOptions);
|
|
447
|
+
(0, attachAddaptableColumnTypes_1.attachColumnTypes)(this.gridOptions);
|
|
462
448
|
if (this.gridOptions.columnTypes.abColDefNumber.cellEditor === undefined) {
|
|
463
449
|
this.gridOptions.columnTypes.abColDefNumber.cellEditor =
|
|
464
|
-
this.variant === 'react' ? ReactAdaptableNumberEditor : AdaptableNumberEditor;
|
|
450
|
+
this.variant === 'react' ? AdaptableNumberEditor_1.ReactAdaptableNumberEditor : AdaptableNumberEditor_1.AdaptableNumberEditor;
|
|
465
451
|
}
|
|
466
452
|
if (this.gridOptions.columnTypes.abColDefDate.cellEditor === undefined) {
|
|
467
453
|
this.gridOptions.columnTypes.abColDefDate.cellEditor =
|
|
468
|
-
this.variant === 'react' ? ReactAdaptableDateEditor : AdaptableDateEditor;
|
|
454
|
+
this.variant === 'react' ? AdaptableDateEditor_1.ReactAdaptableDateEditor : AdaptableDateEditor_1.AdaptableDateEditor;
|
|
469
455
|
}
|
|
470
456
|
return this.initializeAgGrid().then((initialized) => {
|
|
471
457
|
if (!initialized) {
|
|
@@ -498,7 +484,7 @@ export class Adaptable {
|
|
|
498
484
|
const perfInitInternalGridLogic = this.logger.beginPerf('InitInternalGridLogic');
|
|
499
485
|
this.initInternalGridLogic();
|
|
500
486
|
perfInitInternalGridLogic.end();
|
|
501
|
-
|
|
487
|
+
AdaptableHelper_1.default.checkValidPrimaryKey(this);
|
|
502
488
|
}, (e) => {
|
|
503
489
|
this.logger.error('Failed to Init Modules : ', e);
|
|
504
490
|
// for now we initialize the grid even if initialising Modules has failed (perhaps revisit this?)
|
|
@@ -514,16 +500,16 @@ export class Adaptable {
|
|
|
514
500
|
}
|
|
515
501
|
if (this.abContainerElement != null) {
|
|
516
502
|
this.abContainerElement.innerHTML = '';
|
|
517
|
-
this.unmountReactRoot = this.renderReactRoot(AdaptableApp({ Adaptable: this }), this.abContainerElement);
|
|
503
|
+
this.unmountReactRoot = this.renderReactRoot((0, AdaptableView_1.AdaptableApp)({ Adaptable: this }), this.abContainerElement);
|
|
518
504
|
}
|
|
519
505
|
// create debounce methods that take a time based on user settings
|
|
520
|
-
this.throttleFilterOnEditDataChange =
|
|
506
|
+
this.throttleFilterOnEditDataChange = (0, throttle_1.default)(
|
|
521
507
|
// the extra function is to make sure we have a reference to ag-grid-api
|
|
522
508
|
() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.columnFilterOptions.filterActionOnUserDataChange.throttleDelay, {
|
|
523
509
|
trailing: true,
|
|
524
510
|
leading: false,
|
|
525
511
|
});
|
|
526
|
-
this.throttleFilterOnTickingDataChange =
|
|
512
|
+
this.throttleFilterOnTickingDataChange = (0, throttle_1.default)(() => this.gridOptions.api.onFilterChanged(), this.adaptableOptions.columnFilterOptions.filterActionOnExternalDataChange.throttleDelay, {
|
|
527
513
|
trailing: true,
|
|
528
514
|
leading: false,
|
|
529
515
|
});
|
|
@@ -568,12 +554,12 @@ export class Adaptable {
|
|
|
568
554
|
}
|
|
569
555
|
initStore() {
|
|
570
556
|
const perfNewAdaptableStore = this.logger.beginPerf(`new AdaptableStore()`);
|
|
571
|
-
this.adaptableStore = new AdaptableStore(this, this.isAgGridReady());
|
|
557
|
+
this.adaptableStore = new AdaptableStore_1.AdaptableStore(this, this.isAgGridReady());
|
|
572
558
|
perfNewAdaptableStore.end();
|
|
573
559
|
this.adaptableStore.onAny((eventName, data) => {
|
|
574
560
|
this.performAudit(data.action, data.state, data.newState);
|
|
575
561
|
this.forPlugins((plugin) => plugin.onStoreEvent(eventName, data, this.adaptableStore));
|
|
576
|
-
if (eventName == INIT_STATE) {
|
|
562
|
+
if (eventName == AdaptableStore_1.INIT_STATE) {
|
|
577
563
|
const perfInitState = this.logger.beginPerf('InitState');
|
|
578
564
|
const perfUpdateOldConfig = this.logger.beginPerf('updateOldConfig()');
|
|
579
565
|
this.adaptableModules.forEach((m) => m.updateOldConfig());
|
|
@@ -641,7 +627,7 @@ export class Adaptable {
|
|
|
641
627
|
const adaptableSideBarDef = this.createAdaptableSideBarDef();
|
|
642
628
|
if (!!adaptableSideBarDef) {
|
|
643
629
|
this.gridOptions.components = this.gridOptions.components || {};
|
|
644
|
-
this.gridOptions.components.AdaptableToolPanel = getAdaptableToolPanelAgGridComponent(this);
|
|
630
|
+
this.gridOptions.components.AdaptableToolPanel = (0, AdaptableToolPanel_1.getAdaptableToolPanelAgGridComponent)(this);
|
|
645
631
|
}
|
|
646
632
|
if (this.agGridHelper.isSideBarDefObject(adaptableSideBarDef)) {
|
|
647
633
|
this.setGridOptionsProperty('sideBar', () => {
|
|
@@ -697,7 +683,7 @@ export class Adaptable {
|
|
|
697
683
|
if ((_a = this.runtimeConfig.modules) === null || _a === void 0 ? void 0 : _a.length) {
|
|
698
684
|
gridParams = { modules: this.runtimeConfig.modules };
|
|
699
685
|
}
|
|
700
|
-
grid = new Grid(agGridContainer, this.gridOptions, gridParams);
|
|
686
|
+
grid = new core_1.Grid(agGridContainer, this.gridOptions, gridParams);
|
|
701
687
|
perfAgGridInstance.end();
|
|
702
688
|
// add our adaptable object to the grid options api object
|
|
703
689
|
// this is VERY useful for when we need to access Adaptable inside of agGrid only functions
|
|
@@ -795,12 +781,12 @@ export class Adaptable {
|
|
|
795
781
|
this.setGridOptionsProperty('statusBar', (originalStatusBar) => {
|
|
796
782
|
var _a, _b;
|
|
797
783
|
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) => {
|
|
798
|
-
if (statusPanel.statusPanel === ADAPTABLE_STATUS_PANEL) {
|
|
784
|
+
if (statusPanel.statusPanel === StatusBarState_1.ADAPTABLE_STATUS_PANEL) {
|
|
799
785
|
adaptableStatusPanelKeys.push(statusPanel.key);
|
|
800
786
|
const context = {
|
|
801
787
|
Key: statusPanel.key,
|
|
802
788
|
};
|
|
803
|
-
return Object.assign(Object.assign({}, statusPanel), { statusPanel: createAgStatusPanelComponent(AdaptableStatusBar, this, context) });
|
|
789
|
+
return Object.assign(Object.assign({}, statusPanel), { statusPanel: (0, createAgStatusPanelComponent_1.createAgStatusPanelComponent)(AdaptableStatusBar_1.AdaptableStatusBar, this, context) });
|
|
804
790
|
}
|
|
805
791
|
return statusPanel;
|
|
806
792
|
});
|
|
@@ -820,21 +806,21 @@ export class Adaptable {
|
|
|
820
806
|
}
|
|
821
807
|
filterOnEditDataChange() {
|
|
822
808
|
if (this.adaptableOptions.columnFilterOptions.filterActionOnUserDataChange.applyFilter ==
|
|
823
|
-
FilterOnDataChangeOptions.Always) {
|
|
809
|
+
Enums_1.FilterOnDataChangeOptions.Always) {
|
|
824
810
|
this.gridOptions.api.onFilterChanged();
|
|
825
811
|
}
|
|
826
812
|
else if (this.adaptableOptions.columnFilterOptions.filterActionOnUserDataChange.applyFilter ==
|
|
827
|
-
FilterOnDataChangeOptions.Throttle) {
|
|
813
|
+
Enums_1.FilterOnDataChangeOptions.Throttle) {
|
|
828
814
|
this.throttleFilterOnEditDataChange();
|
|
829
815
|
}
|
|
830
816
|
}
|
|
831
817
|
filterOnTickingDataChange() {
|
|
832
818
|
if (this.adaptableOptions.columnFilterOptions.filterActionOnExternalDataChange.applyFilter ==
|
|
833
|
-
FilterOnDataChangeOptions.Always) {
|
|
819
|
+
Enums_1.FilterOnDataChangeOptions.Always) {
|
|
834
820
|
this.gridOptions.api.onFilterChanged();
|
|
835
821
|
}
|
|
836
822
|
else if (this.adaptableOptions.columnFilterOptions.filterActionOnExternalDataChange.applyFilter ==
|
|
837
|
-
FilterOnDataChangeOptions.Throttle) {
|
|
823
|
+
Enums_1.FilterOnDataChangeOptions.Throttle) {
|
|
838
824
|
this.throttleFilterOnTickingDataChange();
|
|
839
825
|
}
|
|
840
826
|
}
|
|
@@ -1007,7 +993,7 @@ export class Adaptable {
|
|
|
1007
993
|
* Color should always be in bounds, it should not overflow.
|
|
1008
994
|
* If the value is out of range, it shoul set the maximum/minimum color.
|
|
1009
995
|
*/
|
|
1010
|
-
colValue =
|
|
996
|
+
colValue = (0, clamp_1.default)(params.value, minColumnValue, maxColumnValue);
|
|
1011
997
|
}
|
|
1012
998
|
else {
|
|
1013
999
|
return style;
|
|
@@ -1034,7 +1020,7 @@ export class Adaptable {
|
|
|
1034
1020
|
if (reverseGradient) {
|
|
1035
1021
|
alpha = 1 - alpha;
|
|
1036
1022
|
}
|
|
1037
|
-
const preparedColor = getVariableColor(cellBackColor);
|
|
1023
|
+
const preparedColor = (0, StyleHelper_1.getVariableColor)(cellBackColor);
|
|
1038
1024
|
// if no range match, do not apply color (black in this case)
|
|
1039
1025
|
if (cellBackColor) {
|
|
1040
1026
|
style.backgroundColor = tinycolor(preparedColor).setAlpha(alpha).toRgbString();
|
|
@@ -1103,7 +1089,7 @@ export class Adaptable {
|
|
|
1103
1089
|
return this.convertAdaptableStyleToCSS(highlightCell);
|
|
1104
1090
|
}
|
|
1105
1091
|
return {
|
|
1106
|
-
backgroundColor:
|
|
1092
|
+
backgroundColor: UIHelper_1.default.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
1107
1093
|
};
|
|
1108
1094
|
}
|
|
1109
1095
|
}
|
|
@@ -1131,7 +1117,7 @@ export class Adaptable {
|
|
|
1131
1117
|
return typeof highlightRow === 'object'
|
|
1132
1118
|
? this.convertAdaptableStyleToCSS(highlightRow)
|
|
1133
1119
|
: {
|
|
1134
|
-
backgroundColor:
|
|
1120
|
+
backgroundColor: UIHelper_1.default.getColorByMessageType(alert.alertDefinition.MessageType),
|
|
1135
1121
|
};
|
|
1136
1122
|
}
|
|
1137
1123
|
return null;
|
|
@@ -1215,7 +1201,7 @@ export class Adaptable {
|
|
|
1215
1201
|
}
|
|
1216
1202
|
getQuickSearchCellStyle() {
|
|
1217
1203
|
const quickSearchStyle = this.api.quickSearchApi.getQuickSearchStyle();
|
|
1218
|
-
if (!quickSearchStyle || StringExtensions.IsNotNullOrEmpty(quickSearchStyle.ClassName)) {
|
|
1204
|
+
if (!quickSearchStyle || StringExtensions_1.StringExtensions.IsNotNullOrEmpty(quickSearchStyle.ClassName)) {
|
|
1219
1205
|
return undefined;
|
|
1220
1206
|
}
|
|
1221
1207
|
return this.convertAdaptableStyleToCSS(quickSearchStyle);
|
|
@@ -1262,7 +1248,7 @@ export class Adaptable {
|
|
|
1262
1248
|
}
|
|
1263
1249
|
isQuickSearchActive(gridCell, params) {
|
|
1264
1250
|
let quickSearchValue = this.api.quickSearchApi.getQuickSearchValue();
|
|
1265
|
-
if (StringExtensions.IsNullOrEmpty(quickSearchValue)) {
|
|
1251
|
+
if (StringExtensions_1.StringExtensions.IsNullOrEmpty(quickSearchValue)) {
|
|
1266
1252
|
return false;
|
|
1267
1253
|
}
|
|
1268
1254
|
if (gridCell.column.isExcludedFromQuickSearch) {
|
|
@@ -1291,7 +1277,7 @@ export class Adaptable {
|
|
|
1291
1277
|
const i = ignoreCase ? String(quickSearchValue).toLocaleLowerCase() : String(quickSearchValue);
|
|
1292
1278
|
const applyQuickSearchFunction = this.adaptableOptions.quickSearchOptions.runBespokeQuickSearch;
|
|
1293
1279
|
if (applyQuickSearchFunction) {
|
|
1294
|
-
const quickSearchContext = Object.assign(Object.assign({}, createBaseContext(this.api)), { gridCell, quickSearchValue: quickSearchValue });
|
|
1280
|
+
const quickSearchContext = Object.assign(Object.assign({}, (0, ObjectFactory_1.createBaseContext)(this.api)), { gridCell, quickSearchValue: quickSearchValue });
|
|
1295
1281
|
return applyQuickSearchFunction(quickSearchContext);
|
|
1296
1282
|
}
|
|
1297
1283
|
return displayValue.indexOf(i) !== -1;
|
|
@@ -1477,7 +1463,7 @@ export class Adaptable {
|
|
|
1477
1463
|
colDef === null || colDef === void 0 ? void 0 : colDef.defaultAggFunc) !== null && _e !== void 0 ? _e : 'sum';
|
|
1478
1464
|
}
|
|
1479
1465
|
else if (adaptableAggFunc && adaptableAggFunc.type === 'weightedAverage') {
|
|
1480
|
-
aggFunc = WEIGHTED_AVERAGE_AGG_FN_NAME;
|
|
1466
|
+
aggFunc = AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME;
|
|
1481
1467
|
}
|
|
1482
1468
|
else if (typeof aggFuncFromLayout === 'string') {
|
|
1483
1469
|
aggFunc = aggFuncFromLayout;
|
|
@@ -1492,7 +1478,7 @@ export class Adaptable {
|
|
|
1492
1478
|
newColState.sort = null;
|
|
1493
1479
|
newColState.sortIndex = null;
|
|
1494
1480
|
}
|
|
1495
|
-
isChanged = isChanged || !
|
|
1481
|
+
isChanged = isChanged || !(0, isEqual_1.default)(newColState, oldColState);
|
|
1496
1482
|
return newColState;
|
|
1497
1483
|
})
|
|
1498
1484
|
.filter((x) => !!x);
|
|
@@ -1634,7 +1620,7 @@ export class Adaptable {
|
|
|
1634
1620
|
layout = this.api.layoutApi.getCurrentLayout();
|
|
1635
1621
|
}
|
|
1636
1622
|
if (this.api.layoutApi.internalApi.areExpandedRowGroupsSavedInLayouts() &&
|
|
1637
|
-
ArrayExtensions.IsNotNullOrEmpty(layout.ExpandedRowGroupValues)) {
|
|
1623
|
+
ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(layout.ExpandedRowGroupValues)) {
|
|
1638
1624
|
this.expandRowGroupsForValues(layout.ExpandedRowGroupValues);
|
|
1639
1625
|
}
|
|
1640
1626
|
if (this.adaptableOptions.layoutOptions.displayRowGroups === 'expanded') {
|
|
@@ -1798,7 +1784,7 @@ export class Adaptable {
|
|
|
1798
1784
|
};
|
|
1799
1785
|
this.api.gridApi.internalApi.setSelectedCells(selectedCellInfo);
|
|
1800
1786
|
this._emit('CellsSelected');
|
|
1801
|
-
this.agGridHelper.
|
|
1787
|
+
this.agGridHelper.fireCellSelectionChangedEvent();
|
|
1802
1788
|
return selectedCellInfo;
|
|
1803
1789
|
}
|
|
1804
1790
|
setSelectedRows() {
|
|
@@ -1811,7 +1797,7 @@ export class Adaptable {
|
|
|
1811
1797
|
// dont perform row selection in pivot mode
|
|
1812
1798
|
return undefined;
|
|
1813
1799
|
}
|
|
1814
|
-
if (ArrayExtensions.IsNotNullOrEmpty(nodes)) {
|
|
1800
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(nodes)) {
|
|
1815
1801
|
nodes.forEach((node) => {
|
|
1816
1802
|
const rowInfo = {
|
|
1817
1803
|
isMaster: !!(node.master != null && node.master == true),
|
|
@@ -1832,7 +1818,7 @@ export class Adaptable {
|
|
|
1832
1818
|
}
|
|
1833
1819
|
const selectedRowInfo = { gridRows: selectedRows };
|
|
1834
1820
|
this.api.gridApi.internalApi.setSelectedRows(selectedRowInfo);
|
|
1835
|
-
this.agGridHelper.
|
|
1821
|
+
this.agGridHelper.fireRowSelectionChangedEvent();
|
|
1836
1822
|
return selectedRowInfo;
|
|
1837
1823
|
}
|
|
1838
1824
|
setDataValue(value, column, primaryKeyValue, rowNode) {
|
|
@@ -1903,9 +1889,9 @@ export class Adaptable {
|
|
|
1903
1889
|
if (gridCell && gridCell.rowNode !== distinctValuesParams.skipRowNode) {
|
|
1904
1890
|
if (gridCell.rawValue == undefined &&
|
|
1905
1891
|
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;
|
|
1892
|
+
gridCell.rawValue = GeneralConstants_1.BLANK_DISTINCT_COLUMN_VALUE;
|
|
1893
|
+
gridCell.displayValue = GeneralConstants_1.BLANK_DISTINCT_COLUMN_VALUE;
|
|
1894
|
+
gridCell.normalisedValue = GeneralConstants_1.BLANK_DISTINCT_COLUMN_VALUE;
|
|
1909
1895
|
}
|
|
1910
1896
|
gridCells.push(gridCell);
|
|
1911
1897
|
}
|
|
@@ -1914,7 +1900,7 @@ export class Adaptable {
|
|
|
1914
1900
|
return gridCells;
|
|
1915
1901
|
}
|
|
1916
1902
|
getUniqueGridCells(column, gridCells) {
|
|
1917
|
-
let uniqueVals =
|
|
1903
|
+
let uniqueVals = (0, uniqBy_1.default)(gridCells, (dataItem) => {
|
|
1918
1904
|
const value = dataItem.rawValue;
|
|
1919
1905
|
if (value instanceof Date) {
|
|
1920
1906
|
return value.toISOString();
|
|
@@ -1922,7 +1908,7 @@ export class Adaptable {
|
|
|
1922
1908
|
return value;
|
|
1923
1909
|
});
|
|
1924
1910
|
if (column.dataType == 'String' && this.api.predicateApi.useCaseSensitivity()) {
|
|
1925
|
-
uniqueVals =
|
|
1911
|
+
uniqueVals = (0, uniqBy_1.default)(uniqueVals, (d) => d.displayValue.toLowerCase());
|
|
1926
1912
|
}
|
|
1927
1913
|
return uniqueVals.slice(0, this.adaptableOptions.columnFilterOptions.valuesFilterOptions.maxFilterValuesToDisplay);
|
|
1928
1914
|
}
|
|
@@ -1930,7 +1916,7 @@ export class Adaptable {
|
|
|
1930
1916
|
var _a;
|
|
1931
1917
|
let gridCells = [];
|
|
1932
1918
|
const permittedValues = (_a = distinctValuesParams.permittedValues) !== null && _a !== void 0 ? _a : this.api.userInterfaceApi.getPermittedValuesForColumn(column);
|
|
1933
|
-
if (ArrayExtensions.IsNotNullOrEmpty(permittedValues)) {
|
|
1919
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(permittedValues)) {
|
|
1934
1920
|
gridCells = permittedValues.map((pv) => {
|
|
1935
1921
|
return {
|
|
1936
1922
|
rawValue: pv,
|
|
@@ -1948,7 +1934,7 @@ export class Adaptable {
|
|
|
1948
1934
|
}
|
|
1949
1935
|
getDistinctValuesForColumn(column, distinctValuesParams) {
|
|
1950
1936
|
let gridCells = this.getGridCellsForPermittedValues(column, distinctValuesParams);
|
|
1951
|
-
if (ArrayExtensions.IsNullOrEmpty(gridCells)) {
|
|
1937
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(gridCells)) {
|
|
1952
1938
|
gridCells = this.getDistinctGridCellsForColumn(column, distinctValuesParams);
|
|
1953
1939
|
}
|
|
1954
1940
|
return this.getUniqueGridCells(column, gridCells);
|
|
@@ -2023,7 +2009,7 @@ export class Adaptable {
|
|
|
2023
2009
|
// NB. this currently contains a small bug as we dont check for visibility so if using permitted values then ALL are returned :(
|
|
2024
2010
|
const abColumn = this.api.columnApi.getColumnWithColumnId(columnId);
|
|
2025
2011
|
const permittedValuesForColumn = this.api.userInterfaceApi.getPermittedValuesForColumn(abColumn);
|
|
2026
|
-
if (ArrayExtensions.IsNotNullOrEmpty(permittedValuesForColumn)) {
|
|
2012
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(permittedValuesForColumn)) {
|
|
2027
2013
|
permittedValuesForColumn.forEach((pv) => {
|
|
2028
2014
|
permittedMap.set(pv, {
|
|
2029
2015
|
rawValue: pv,
|
|
@@ -2069,7 +2055,7 @@ export class Adaptable {
|
|
|
2069
2055
|
// otherwise they would appear in the filter dropdown etc....
|
|
2070
2056
|
if (rowNode && !this.isGroupRowNode(rowNode)) {
|
|
2071
2057
|
const returnValue = this.getGridCellFromRowNode(rowNode, columnId);
|
|
2072
|
-
if (Helper.objectExists(returnValue)) {
|
|
2058
|
+
if (Helper_1.Helper.objectExists(returnValue)) {
|
|
2073
2059
|
return returnValue;
|
|
2074
2060
|
}
|
|
2075
2061
|
}
|
|
@@ -2192,7 +2178,7 @@ export class Adaptable {
|
|
|
2192
2178
|
}
|
|
2193
2179
|
if (dataType === 'Number') {
|
|
2194
2180
|
// empty string or space should not be converted to 0
|
|
2195
|
-
return typeof rawValue !== 'number' && StringExtensions.IsNumeric(rawValue)
|
|
2181
|
+
return typeof rawValue !== 'number' && StringExtensions_1.StringExtensions.IsNumeric(rawValue)
|
|
2196
2182
|
? Number(rawValue)
|
|
2197
2183
|
: rawValue;
|
|
2198
2184
|
}
|
|
@@ -2200,7 +2186,7 @@ export class Adaptable {
|
|
|
2200
2186
|
return typeof rawValue !== 'boolean' ? Boolean(rawValue) : rawValue;
|
|
2201
2187
|
}
|
|
2202
2188
|
if (dataType === 'Date') {
|
|
2203
|
-
return rawValue instanceof Date ? rawValue : parseDateValue(rawValue);
|
|
2189
|
+
return rawValue instanceof Date ? rawValue : (0, DateHelper_1.parseDateValue)(rawValue);
|
|
2204
2190
|
}
|
|
2205
2191
|
return rawValue;
|
|
2206
2192
|
}
|
|
@@ -2295,12 +2281,12 @@ export class Adaptable {
|
|
|
2295
2281
|
return this.gridOptions.api.getRenderedNodes();
|
|
2296
2282
|
}
|
|
2297
2283
|
selectNodes(rowNodes, clearSelection) {
|
|
2298
|
-
if (ArrayExtensions.IsNotNullOrEmpty(rowNodes)) {
|
|
2284
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(rowNodes)) {
|
|
2299
2285
|
rowNodes.forEach((node) => this.selectNode(node, clearSelection));
|
|
2300
2286
|
}
|
|
2301
2287
|
}
|
|
2302
2288
|
deSelectNodes(rowNodes, clearSelection) {
|
|
2303
|
-
if (ArrayExtensions.IsNotNullOrEmpty(rowNodes)) {
|
|
2289
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(rowNodes)) {
|
|
2304
2290
|
rowNodes.forEach((node) => this.deSelectNode(node, clearSelection));
|
|
2305
2291
|
}
|
|
2306
2292
|
}
|
|
@@ -2400,20 +2386,20 @@ export class Adaptable {
|
|
|
2400
2386
|
];
|
|
2401
2387
|
}
|
|
2402
2388
|
getColDefsForFreeTextColumns() {
|
|
2403
|
-
const defaultFreeTextColumnSettings = CreateEmptyFreeTextColumn().FreeTextColumnSettings;
|
|
2389
|
+
const defaultFreeTextColumnSettings = (0, ObjectFactory_1.CreateEmptyFreeTextColumn)().FreeTextColumnSettings;
|
|
2404
2390
|
return this.api.freeTextColumnApi.getFreeTextColumns().map((freeTextColumn) => {
|
|
2405
2391
|
var _a;
|
|
2406
2392
|
const freeTextColumnSettings = Object.assign(Object.assign({}, defaultFreeTextColumnSettings), freeTextColumn.FreeTextColumnSettings);
|
|
2407
2393
|
const dataTypeEditor = freeTextColumnSettings.DataType === 'Number'
|
|
2408
|
-
? AdaptableNumberEditor
|
|
2394
|
+
? AdaptableNumberEditor_1.AdaptableNumberEditor
|
|
2409
2395
|
: freeTextColumnSettings.DataType === 'Date'
|
|
2410
|
-
? AdaptableDateEditor
|
|
2396
|
+
? AdaptableDateEditor_1.AdaptableDateEditor
|
|
2411
2397
|
: null;
|
|
2412
2398
|
const columnTypes = [
|
|
2413
|
-
AB_SPECIAL_COLUMN,
|
|
2399
|
+
GeneralConstants_1.AB_SPECIAL_COLUMN,
|
|
2414
2400
|
this.agGridHelper.getAgGridDataType(freeTextColumnSettings.DataType),
|
|
2415
2401
|
];
|
|
2416
|
-
if (ArrayExtensions.IsNotNullOrEmpty((_a = freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.FreeTextColumnSettings) === null || _a === void 0 ? void 0 : _a.ColumnTypes)) {
|
|
2402
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty((_a = freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.FreeTextColumnSettings) === null || _a === void 0 ? void 0 : _a.ColumnTypes)) {
|
|
2417
2403
|
columnTypes.push(...freeTextColumn.FreeTextColumnSettings.ColumnTypes);
|
|
2418
2404
|
}
|
|
2419
2405
|
const newColDef = {
|
|
@@ -2543,11 +2529,11 @@ export class Adaptable {
|
|
|
2543
2529
|
return [
|
|
2544
2530
|
{
|
|
2545
2531
|
headerName: '',
|
|
2546
|
-
colId: ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2532
|
+
colId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2547
2533
|
hide: false,
|
|
2548
2534
|
editable: false,
|
|
2549
2535
|
// 15px is the icon width + left&right padding + left&right border
|
|
2550
|
-
width: Math.max(actionButtons.length * (
|
|
2536
|
+
width: Math.max(actionButtons.length * (UIHelper_1.default.getSimpleButtonPaddingWidth() * 2 + 15) + 2,
|
|
2551
2537
|
// If the width of the column is to small, the width will not be applied
|
|
2552
2538
|
// this triggers the setLayout an infinite loop because the width read from the grid is always different
|
|
2553
2539
|
40),
|
|
@@ -2563,9 +2549,9 @@ export class Adaptable {
|
|
|
2563
2549
|
pinned: this.adaptableOptions.actionRowOptions.actionRowButtonOptions.position === 'pinnedRight'
|
|
2564
2550
|
? 'right'
|
|
2565
2551
|
: 'left',
|
|
2566
|
-
cellRenderer: this.variant === 'react' ? ReactActionColumnRenderer : ActionColumnRenderer,
|
|
2567
|
-
cellClass: ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2568
|
-
type: [AB_SPECIAL_COLUMN, 'abColDefObject'],
|
|
2552
|
+
cellRenderer: this.variant === 'react' ? ActionColumnRenderer_1.ReactActionColumnRenderer : ActionColumnRenderer_1.ActionColumnRenderer,
|
|
2553
|
+
cellClass: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
2554
|
+
type: [GeneralConstants_1.AB_SPECIAL_COLUMN, 'abColDefObject'],
|
|
2569
2555
|
},
|
|
2570
2556
|
];
|
|
2571
2557
|
}
|
|
@@ -2589,8 +2575,8 @@ export class Adaptable {
|
|
|
2589
2575
|
filter: false,
|
|
2590
2576
|
sortable: false,
|
|
2591
2577
|
enableRowGroup: false,
|
|
2592
|
-
cellRenderer: this.variant === 'react' ? ReactActionColumnRenderer : ActionColumnRenderer,
|
|
2593
|
-
type: [AB_SPECIAL_COLUMN, 'abColDefObject'],
|
|
2578
|
+
cellRenderer: this.variant === 'react' ? ActionColumnRenderer_1.ReactActionColumnRenderer : ActionColumnRenderer_1.ActionColumnRenderer,
|
|
2579
|
+
type: [GeneralConstants_1.AB_SPECIAL_COLUMN, 'abColDefObject'],
|
|
2594
2580
|
};
|
|
2595
2581
|
this.logger.info('Setting up Action Column: ' + actionColumn.columnId);
|
|
2596
2582
|
return newColDef;
|
|
@@ -2601,7 +2587,7 @@ export class Adaptable {
|
|
|
2601
2587
|
const specialColDefs = this.getColDefsForSpecialColumns();
|
|
2602
2588
|
const isSpecialColDef = (colDef) => {
|
|
2603
2589
|
const { type } = colDef;
|
|
2604
|
-
if (type === AB_SPECIAL_COLUMN || (Array.isArray(type) && type.includes(AB_SPECIAL_COLUMN))) {
|
|
2590
|
+
if (type === GeneralConstants_1.AB_SPECIAL_COLUMN || (Array.isArray(type) && type.includes(GeneralConstants_1.AB_SPECIAL_COLUMN))) {
|
|
2605
2591
|
return true;
|
|
2606
2592
|
}
|
|
2607
2593
|
return false;
|
|
@@ -2659,7 +2645,7 @@ export class Adaptable {
|
|
|
2659
2645
|
this.setLayout();
|
|
2660
2646
|
}
|
|
2661
2647
|
getColDefsForCalculatedColumns() {
|
|
2662
|
-
const defaultCalculatedColumnSettings = CreateEmptyCalculatedColumn().CalculatedColumnSettings;
|
|
2648
|
+
const defaultCalculatedColumnSettings = (0, ObjectFactory_1.CreateEmptyCalculatedColumn)().CalculatedColumnSettings;
|
|
2663
2649
|
return this.api.calculatedColumnApi.getCalculatedColumns().map((calculatedColumn) => {
|
|
2664
2650
|
const calculatedColumnSettings = Object.assign(Object.assign({}, defaultCalculatedColumnSettings), calculatedColumn.CalculatedColumnSettings);
|
|
2665
2651
|
if (!calculatedColumnSettings.DataType) {
|
|
@@ -2667,10 +2653,10 @@ export class Adaptable {
|
|
|
2667
2653
|
this.CalculatedColumnExpressionService.getCalculatedColumnDataType(calculatedColumn.Query);
|
|
2668
2654
|
}
|
|
2669
2655
|
const columnTypes = [
|
|
2670
|
-
AB_SPECIAL_COLUMN,
|
|
2656
|
+
GeneralConstants_1.AB_SPECIAL_COLUMN,
|
|
2671
2657
|
this.agGridHelper.getAgGridDataType(calculatedColumnSettings.DataType),
|
|
2672
2658
|
];
|
|
2673
|
-
if (ArrayExtensions.IsNotNullOrEmpty(calculatedColumnSettings.ColumnTypes)) {
|
|
2659
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(calculatedColumnSettings.ColumnTypes)) {
|
|
2674
2660
|
columnTypes.push(...calculatedColumnSettings.ColumnTypes);
|
|
2675
2661
|
}
|
|
2676
2662
|
const isExternalEvaluation = !this.api.expressionApi.internalApi.evaluateExpressionInAdaptableQL('CalculatedColumn', calculatedColumn, this.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query));
|
|
@@ -2759,15 +2745,15 @@ export class Adaptable {
|
|
|
2759
2745
|
destroy(config) {
|
|
2760
2746
|
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;
|
|
2761
2747
|
if (this.gridOptions && this.gridOptions.api) {
|
|
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);
|
|
2748
|
+
this.gridOptions.api.removeEventListener(core_1.Events.EVENT_FIRST_DATA_RENDERED, this.listenerFirstDataRendered);
|
|
2749
|
+
this.gridOptions.api.removeEventListener(core_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.listenerPivotModeChanged);
|
|
2750
|
+
this.gridOptions.api.removeEventListener(core_1.Events.EVENT_COLUMN_PIVOT_CHANGED, this.listenerPivotChanged);
|
|
2751
|
+
this.gridOptions.api.removeEventListener(core_1.Events.EVENT_CELL_EDITING_STARTED, this.listenerCellEditingStarted);
|
|
2752
|
+
this.gridOptions.api.removeEventListener(core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.listenerColumnRowGroupChanged);
|
|
2753
|
+
this.gridOptions.api.removeEventListener(core_1.Events.EVENT_RANGE_SELECTION_CHANGED, this.listenerRangeSelectionChanged);
|
|
2754
|
+
this.gridOptions.api.removeEventListener(core_1.Events.EVENT_COLUMN_RESIZED, this.listenerColumnResized);
|
|
2755
|
+
this.gridOptions.api.removeEventListener(core_1.Events.EVENT_SORT_CHANGED, this.listenerSortChanged);
|
|
2756
|
+
this.gridOptions.api.removeEventListener(core_1.Events.EVENT_MODEL_UPDATED, this.listenerModelUpdated);
|
|
2771
2757
|
this.gridOptions.api.removeGlobalListener(this.listenerGlobalSetRowSelection);
|
|
2772
2758
|
this.gridOptions.api.removeGlobalListener(this.listenerGlobalColumnEventsThatTriggerStateChange);
|
|
2773
2759
|
this.gridOptions.api.removeGlobalListener(this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave);
|
|
@@ -2984,12 +2970,12 @@ export class Adaptable {
|
|
|
2984
2970
|
* Action: Set Columns in store and filter grid
|
|
2985
2971
|
*/
|
|
2986
2972
|
const columnEventsThatTriggersStateChange = [
|
|
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,
|
|
2973
|
+
core_1.Events.EVENT_COLUMN_MOVED,
|
|
2974
|
+
core_1.Events.EVENT_GRID_COLUMNS_CHANGED,
|
|
2975
|
+
core_1.Events.EVENT_COLUMN_EVERYTHING_CHANGED,
|
|
2976
|
+
core_1.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
|
|
2977
|
+
core_1.Events.EVENT_COLUMN_VISIBLE,
|
|
2978
|
+
core_1.Events.EVENT_NEW_COLUMNS_LOADED,
|
|
2993
2979
|
];
|
|
2994
2980
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalColumnEventsThatTriggerStateChange = (type) => {
|
|
2995
2981
|
if (columnEventsThatTriggersStateChange.indexOf(type) > -1) {
|
|
@@ -3000,7 +2986,7 @@ export class Adaptable {
|
|
|
3000
2986
|
* Use Case: User has started inline editing but its distabled in Action Row Options
|
|
3001
2987
|
* Action: Stop editing
|
|
3002
2988
|
*/
|
|
3003
|
-
this.gridOptions.api.addEventListener(Events.EVENT_CELL_EDITING_STARTED, (this.listenerCellEditingStarted = () => {
|
|
2989
|
+
this.gridOptions.api.addEventListener(core_1.Events.EVENT_CELL_EDITING_STARTED, (this.listenerCellEditingStarted = () => {
|
|
3004
2990
|
var _a;
|
|
3005
2991
|
if ((_a = this.adaptableOptions.actionRowOptions) === null || _a === void 0 ? void 0 : _a.disableInlineEditing)
|
|
3006
2992
|
this.gridOptions.api.stopEditing();
|
|
@@ -3011,7 +2997,7 @@ export class Adaptable {
|
|
|
3011
2997
|
* Action2: Ensure that we have set column data types
|
|
3012
2998
|
* Note: Deals with scenario where the data is provided to AdapTable after grid has been setup
|
|
3013
2999
|
*/
|
|
3014
|
-
this.gridOptions.api.addEventListener(Events.EVENT_FIRST_DATA_RENDERED, (this.listenerFirstDataRendered = () => {
|
|
3000
|
+
this.gridOptions.api.addEventListener(core_1.Events.EVENT_FIRST_DATA_RENDERED, (this.listenerFirstDataRendered = () => {
|
|
3015
3001
|
this.checkColumnsDataTypeSet();
|
|
3016
3002
|
this.api.calculatedColumnApi.refreshAggregatedCalculatedColumns();
|
|
3017
3003
|
this.setLayout();
|
|
@@ -3021,7 +3007,7 @@ export class Adaptable {
|
|
|
3021
3007
|
* Action 1: Autosize pivot columns when entering pivot mode (if autosize pivot in Layout is true)
|
|
3022
3008
|
* Action 2: Set pivot mode on / off in api as necessary
|
|
3023
3009
|
*/
|
|
3024
|
-
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, (this.listenerPivotModeChanged = (params) => {
|
|
3010
|
+
this.gridOptions.api.addEventListener(core_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, (this.listenerPivotModeChanged = (params) => {
|
|
3025
3011
|
if (params.type == 'columnPivotModeChanged' &&
|
|
3026
3012
|
params.columnApi != null &&
|
|
3027
3013
|
params.columnApi.columnController != null &&
|
|
@@ -3039,7 +3025,7 @@ export class Adaptable {
|
|
|
3039
3025
|
* Use Case: A pivot column has changed
|
|
3040
3026
|
* Action: Autosize pivot columns (if autosize pivot in Layout is true)
|
|
3041
3027
|
*/
|
|
3042
|
-
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_PIVOT_CHANGED, (this.listenerPivotChanged = (params) => {
|
|
3028
|
+
this.gridOptions.api.addEventListener(core_1.Events.EVENT_COLUMN_PIVOT_CHANGED, (this.listenerPivotChanged = (params) => {
|
|
3043
3029
|
if (params.type == 'columnPivotChanged' &&
|
|
3044
3030
|
params.columnApi != null &&
|
|
3045
3031
|
params.columnApi.columnController != null &&
|
|
@@ -3054,13 +3040,13 @@ export class Adaptable {
|
|
|
3054
3040
|
* Action: Save the Layout (on a debounce)
|
|
3055
3041
|
*/
|
|
3056
3042
|
const columnEventsThatTriggersAutoLayoutSave = [
|
|
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,
|
|
3043
|
+
core_1.Events.EVENT_COLUMN_PINNED,
|
|
3044
|
+
core_1.Events.EVENT_COLUMN_PIVOT_CHANGED,
|
|
3045
|
+
core_1.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,
|
|
3046
|
+
core_1.Events.EVENT_DISPLAYED_COLUMNS_CHANGED,
|
|
3047
|
+
core_1.Events.EVENT_SORT_CHANGED,
|
|
3048
|
+
core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,
|
|
3049
|
+
core_1.Events.EVENT_COLUMN_VALUE_CHANGED,
|
|
3064
3050
|
];
|
|
3065
3051
|
// ADD filter event
|
|
3066
3052
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalColumnEventsThatTriggerAutoLayoutSave = (type) => {
|
|
@@ -3070,8 +3056,8 @@ export class Adaptable {
|
|
|
3070
3056
|
}));
|
|
3071
3057
|
// Save Layout if Display Row Groups is "dynamic"
|
|
3072
3058
|
const rowGroupEventsThatTriggersAutoLayoutSave = [
|
|
3073
|
-
Events.EVENT_ROW_GROUP_OPENED,
|
|
3074
|
-
Events.EVENT_EXPAND_COLLAPSE_ALL,
|
|
3059
|
+
core_1.Events.EVENT_ROW_GROUP_OPENED,
|
|
3060
|
+
core_1.Events.EVENT_EXPAND_COLLAPSE_ALL,
|
|
3075
3061
|
];
|
|
3076
3062
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalRowGroupEventsThatTriggerAutoLayoutSave = (type) => {
|
|
3077
3063
|
if (rowGroupEventsThatTriggersAutoLayoutSave.indexOf(type) > -1) {
|
|
@@ -3084,7 +3070,7 @@ export class Adaptable {
|
|
|
3084
3070
|
* Use Case: Column Row Grouping changes and 'restoreUngroupedColumns' is true
|
|
3085
3071
|
* Action: Make the column invisiblel
|
|
3086
3072
|
*/
|
|
3087
|
-
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_ROW_GROUP_CHANGED, (this.listenerColumnRowGroupChanged = (params) => {
|
|
3073
|
+
this.gridOptions.api.addEventListener(core_1.Events.EVENT_COLUMN_ROW_GROUP_CHANGED, (this.listenerColumnRowGroupChanged = (params) => {
|
|
3088
3074
|
var _a, _b;
|
|
3089
3075
|
if (this.api.internalApi.isGridInPivotMode()) {
|
|
3090
3076
|
return;
|
|
@@ -3098,7 +3084,7 @@ export class Adaptable {
|
|
|
3098
3084
|
* Action 1: Save the Layout (on a debounce)
|
|
3099
3085
|
* Action 2: Emit the internal ColumnResized event - used by Sparkline Column (in Charts)
|
|
3100
3086
|
*/
|
|
3101
|
-
this.gridOptions.api.addEventListener(Events.EVENT_COLUMN_RESIZED, (this.listenerColumnResized = (params) => {
|
|
3087
|
+
this.gridOptions.api.addEventListener(core_1.Events.EVENT_COLUMN_RESIZED, (this.listenerColumnResized = (params) => {
|
|
3102
3088
|
if (params.finished == true && params.type == 'columnResized' && params.column) {
|
|
3103
3089
|
this.debouncedSaveGridLayout();
|
|
3104
3090
|
}
|
|
@@ -3108,12 +3094,12 @@ export class Adaptable {
|
|
|
3108
3094
|
* Action: Set Selected Rows (on a debeounce)
|
|
3109
3095
|
*/
|
|
3110
3096
|
const columnEventsThatTriggerSetRowSelection = [
|
|
3111
|
-
Events.EVENT_ROW_GROUP_OPENED,
|
|
3112
|
-
Events.EVENT_SELECTION_CHANGED,
|
|
3113
|
-
Events.EVENT_ROW_SELECTED,
|
|
3097
|
+
core_1.Events.EVENT_ROW_GROUP_OPENED,
|
|
3098
|
+
core_1.Events.EVENT_SELECTION_CHANGED,
|
|
3099
|
+
core_1.Events.EVENT_ROW_SELECTED,
|
|
3114
3100
|
];
|
|
3115
3101
|
this.gridOptions.api.addGlobalListener((this.listenerGlobalSetRowSelection = (type) => {
|
|
3116
|
-
if (ArrayExtensions.ContainsItem(columnEventsThatTriggerSetRowSelection, type)) {
|
|
3102
|
+
if (ArrayExtensions_1.ArrayExtensions.ContainsItem(columnEventsThatTriggerSetRowSelection, type)) {
|
|
3117
3103
|
this.debouncedSetSelectedRows();
|
|
3118
3104
|
}
|
|
3119
3105
|
}));
|
|
@@ -3121,7 +3107,7 @@ export class Adaptable {
|
|
|
3121
3107
|
* Use Case: User has selected a range of cells
|
|
3122
3108
|
* Action: Set Selected Cells (on a debounce)
|
|
3123
3109
|
*/
|
|
3124
|
-
this.gridOptions.api.addEventListener(Events.EVENT_RANGE_SELECTION_CHANGED, (this.listenerRangeSelectionChanged = (params) => {
|
|
3110
|
+
this.gridOptions.api.addEventListener(core_1.Events.EVENT_RANGE_SELECTION_CHANGED, (this.listenerRangeSelectionChanged = (params) => {
|
|
3125
3111
|
if (params.finished == true) {
|
|
3126
3112
|
this.debouncedSetSelectedCells();
|
|
3127
3113
|
}
|
|
@@ -3131,7 +3117,7 @@ export class Adaptable {
|
|
|
3131
3117
|
* Action1: Update AdapTable Sort Info
|
|
3132
3118
|
* Action2: Set Selected Cells (on a debounce)
|
|
3133
3119
|
*/
|
|
3134
|
-
this.gridOptions.api.addEventListener(Events.EVENT_SORT_CHANGED, (this.listenerSortChanged = () => {
|
|
3120
|
+
this.gridOptions.api.addEventListener(core_1.Events.EVENT_SORT_CHANGED, (this.listenerSortChanged = () => {
|
|
3135
3121
|
this.onSortChanged();
|
|
3136
3122
|
this.debouncedSetSelectedCells();
|
|
3137
3123
|
this._emit('SortChanged');
|
|
@@ -3141,7 +3127,7 @@ export class Adaptable {
|
|
|
3141
3127
|
* Use Case: Model has updated
|
|
3142
3128
|
* Action: If user has set to see grouping totals as header create a pinned row (bit of a hack)
|
|
3143
3129
|
*/
|
|
3144
|
-
this.gridOptions.api.addEventListener(Events.EVENT_MODEL_UPDATED, (this.listenerModelUpdated = (params) => {
|
|
3130
|
+
this.gridOptions.api.addEventListener(core_1.Events.EVENT_MODEL_UPDATED, (this.listenerModelUpdated = (params) => {
|
|
3145
3131
|
if (showGroupingTotalsAsHeader) {
|
|
3146
3132
|
if (params && params.api) {
|
|
3147
3133
|
const pinnedData = params.api.getPinnedTopRow(0);
|
|
@@ -3157,18 +3143,18 @@ export class Adaptable {
|
|
|
3157
3143
|
}
|
|
3158
3144
|
}));
|
|
3159
3145
|
const eventsThatTriggerChartingChanges = [
|
|
3160
|
-
Events.EVENT_CHART_CREATED,
|
|
3146
|
+
core_1.Events.EVENT_CHART_CREATED,
|
|
3161
3147
|
/** Chart Range selection has changed */
|
|
3162
|
-
Events.EVENT_CHART_RANGE_SELECTION_CHANGED,
|
|
3148
|
+
core_1.Events.EVENT_CHART_RANGE_SELECTION_CHANGED,
|
|
3163
3149
|
/** Chart Options have changed */
|
|
3164
|
-
Events.EVENT_CHART_OPTIONS_CHANGED,
|
|
3150
|
+
core_1.Events.EVENT_CHART_OPTIONS_CHANGED,
|
|
3165
3151
|
/** Chart was destroyed */
|
|
3166
|
-
Events.EVENT_CHART_DESTROYED,
|
|
3152
|
+
core_1.Events.EVENT_CHART_DESTROYED,
|
|
3167
3153
|
];
|
|
3168
3154
|
const chartingModule = this.ModuleService.getModuleById('Charting');
|
|
3169
3155
|
if (chartingModule.isModuleAvailable()) {
|
|
3170
3156
|
this.gridOptions.api.addGlobalListener((type, params) => {
|
|
3171
|
-
if (ArrayExtensions.ContainsItem(eventsThatTriggerChartingChanges, type)) {
|
|
3157
|
+
if (ArrayExtensions_1.ArrayExtensions.ContainsItem(eventsThatTriggerChartingChanges, type)) {
|
|
3172
3158
|
this.ChartingService.onChartModelChange(this.getChartModels(), type, params);
|
|
3173
3159
|
}
|
|
3174
3160
|
});
|
|
@@ -3203,8 +3189,8 @@ export class Adaptable {
|
|
|
3203
3189
|
return true;
|
|
3204
3190
|
}
|
|
3205
3191
|
const columnFilters = this.api.columnFilterApi.getActiveColumnFilters();
|
|
3206
|
-
const isColumnFiltersActive = ArrayExtensions.IsNotNullOrEmpty(columnFilters);
|
|
3207
|
-
const isGridFilterActive = StringExtensions.IsNotNullOrEmpty(this.api.gridFilterApi.getCurrentGridFilterExpression());
|
|
3192
|
+
const isColumnFiltersActive = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(columnFilters);
|
|
3193
|
+
const isGridFilterActive = StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.api.gridFilterApi.getCurrentGridFilterExpression());
|
|
3208
3194
|
return (isColumnFiltersActive ||
|
|
3209
3195
|
isGridFilterActive ||
|
|
3210
3196
|
// it means that originalIsExternalFilterPresent will be called so we reinit that collection
|
|
@@ -3222,11 +3208,11 @@ export class Adaptable {
|
|
|
3222
3208
|
if (currentGridFilter) {
|
|
3223
3209
|
const evaluateGridFilterOnClient = this.api.expressionApi.internalApi.evaluateExpressionInAdaptableQL('GridFilter', undefined, currentGridFilter);
|
|
3224
3210
|
if (evaluateGridFilterOnClient) {
|
|
3225
|
-
const isCurrentGridFilterValid = this.api.expressionApi.isValidBooleanExpression(currentGridFilter, GridFilterModuleId, `Invalid Grid Filter '${currentGridFilter}'`);
|
|
3211
|
+
const isCurrentGridFilterValid = this.api.expressionApi.isValidBooleanExpression(currentGridFilter, ModuleConstants_1.GridFilterModuleId, `Invalid Grid Filter '${currentGridFilter}'`);
|
|
3226
3212
|
if (!isCurrentGridFilterValid ||
|
|
3227
3213
|
!this.api.internalApi
|
|
3228
3214
|
.getQueryLanguageService()
|
|
3229
|
-
.evaluateBooleanExpression(currentGridFilter, GridFilterModuleId, node)) {
|
|
3215
|
+
.evaluateBooleanExpression(currentGridFilter, ModuleConstants_1.GridFilterModuleId, node)) {
|
|
3230
3216
|
return false;
|
|
3231
3217
|
}
|
|
3232
3218
|
}
|
|
@@ -3270,7 +3256,7 @@ export class Adaptable {
|
|
|
3270
3256
|
var _a;
|
|
3271
3257
|
const columnFilters = this.api.columnFilterApi.getActiveColumnFilters();
|
|
3272
3258
|
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);
|
|
3259
|
+
const isFilterActive = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(activeFilters);
|
|
3274
3260
|
const columnsWithActiveFilters = {};
|
|
3275
3261
|
if (isFilterActive) {
|
|
3276
3262
|
// used in particular at init time to show the filter icon correctly
|
|
@@ -3449,7 +3435,7 @@ export class Adaptable {
|
|
|
3449
3435
|
const isQuickSearchActive = hasQuickSearchStyle && this.isQuickSearchActive(gridCell, params);
|
|
3450
3436
|
const userDefined = typeof userCellStyle === 'function' ? userCellStyle(params) : userCellStyle;
|
|
3451
3437
|
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);
|
|
3438
|
+
return (0, StyleHelper_1.normalizeStyleForAgGrid)(result);
|
|
3453
3439
|
};
|
|
3454
3440
|
return cellStyle;
|
|
3455
3441
|
});
|
|
@@ -3458,7 +3444,7 @@ export class Adaptable {
|
|
|
3458
3444
|
this.setColDefProperty(col, 'cellClass', (userCellClass) => {
|
|
3459
3445
|
const formatColumns = this.api.formatColumnApi.internalApi.getFormatColumnWithStyleClassNameForColumn(abColumn);
|
|
3460
3446
|
const quickSearchStyleClassName = this.api.quickSearchApi.getQuickSearchStyle().ClassName;
|
|
3461
|
-
const hasQuickSearchStyleClassName = StringExtensions.IsNotNullOrEmpty(quickSearchStyleClassName);
|
|
3447
|
+
const hasQuickSearchStyleClassName = StringExtensions_1.StringExtensions.IsNotNullOrEmpty(quickSearchStyleClassName);
|
|
3462
3448
|
const cellClass = (params) => {
|
|
3463
3449
|
const gridCell = this.getGridCellFromRowNode(params.node, abColumn.columnId);
|
|
3464
3450
|
// if a Visual Data export is in progress, we are interested only in the Excel Style Class
|
|
@@ -3512,7 +3498,7 @@ export class Adaptable {
|
|
|
3512
3498
|
setupColumnCellEditor({ colId, col }) {
|
|
3513
3499
|
const adaptableColumn = this.api.columnApi.getColumnWithColumnId(colId);
|
|
3514
3500
|
const editLookUpItem = this.api.userInterfaceApi.getEditLookUpItemForColumn(adaptableColumn);
|
|
3515
|
-
const hasRichSelectCellEditor = this.isAgGridModulePresent(ModuleNames.RichSelectModule);
|
|
3501
|
+
const hasRichSelectCellEditor = this.isAgGridModulePresent(core_1.ModuleNames.RichSelectModule);
|
|
3516
3502
|
this.setColDefProperty(col, 'cellEditor', () => {
|
|
3517
3503
|
if (editLookUpItem) {
|
|
3518
3504
|
return hasRichSelectCellEditor ? 'agRichSelectCellEditor' : 'agSelectCellEditor';
|
|
@@ -3555,7 +3541,7 @@ export class Adaptable {
|
|
|
3555
3541
|
const styledColumn = this.api.styledColumnApi.getStyledColumnForColumnId(abColumn.columnId);
|
|
3556
3542
|
if (styledColumn && !styledColumn.IsSuspended) {
|
|
3557
3543
|
if (styledColumn.SparkLineStyle) {
|
|
3558
|
-
const sparklineOptions =
|
|
3544
|
+
const sparklineOptions = (0, merge_1.default)({}, userDefined === null || userDefined === void 0 ? void 0 : userDefined.sparklineOptions, styledColumn.SparkLineStyle.options);
|
|
3559
3545
|
return Object.assign(Object.assign({}, userDefined), { sparklineOptions });
|
|
3560
3546
|
}
|
|
3561
3547
|
}
|
|
@@ -3580,7 +3566,7 @@ export class Adaptable {
|
|
|
3580
3566
|
returnValue = params.value;
|
|
3581
3567
|
}
|
|
3582
3568
|
if (textOptions.includes('PercentageValue')) {
|
|
3583
|
-
const clampedValue = Helper.clamp(params.value, min, max);
|
|
3569
|
+
const clampedValue = Helper_1.Helper.clamp(params.value, min, max);
|
|
3584
3570
|
const percentageValue = ((clampedValue - min) / (max - min)) * 100;
|
|
3585
3571
|
returnValue += ' ' + `(${percentageValue.toFixed(0)}%)`;
|
|
3586
3572
|
}
|
|
@@ -3665,7 +3651,7 @@ export class Adaptable {
|
|
|
3665
3651
|
var _a;
|
|
3666
3652
|
// set the default to the AG Grid provided values
|
|
3667
3653
|
// from https://github.com/ag-grid/ag-grid/blob/v26.1.0/community-modules/core/src/ts/columns/columnModel.ts#L2515
|
|
3668
|
-
let resultHeaderName = userHeaderName !== null && userHeaderName !== void 0 ? userHeaderName : StringExtensions.CamelCaseToHumanText(col.getColDef().field);
|
|
3654
|
+
let resultHeaderName = userHeaderName !== null && userHeaderName !== void 0 ? userHeaderName : StringExtensions_1.StringExtensions.CamelCaseToHumanText(col.getColDef().field);
|
|
3669
3655
|
const layoutCustomHeader = (_a = this.api.layoutApi.getCurrentLayout().ColumnHeadersMap) === null || _a === void 0 ? void 0 : _a[col.getColId()];
|
|
3670
3656
|
if (layoutCustomHeader) {
|
|
3671
3657
|
resultHeaderName = layoutCustomHeader;
|
|
@@ -3687,7 +3673,7 @@ export class Adaptable {
|
|
|
3687
3673
|
return;
|
|
3688
3674
|
}
|
|
3689
3675
|
this.gridOptions.api.destroyFilter(col);
|
|
3690
|
-
return FilterWrapperFactory(this);
|
|
3676
|
+
return (0, FilterWrapper_1.FilterWrapperFactory)(this);
|
|
3691
3677
|
});
|
|
3692
3678
|
}
|
|
3693
3679
|
setupColumnFloatingFilter({ col, colDef }) {
|
|
@@ -3697,7 +3683,7 @@ export class Adaptable {
|
|
|
3697
3683
|
if (isFloatingFilterDisabled) {
|
|
3698
3684
|
return;
|
|
3699
3685
|
}
|
|
3700
|
-
return FloatingFilterWrapperFactory(this);
|
|
3686
|
+
return (0, FloatingFilterWrapper_1.FloatingFilterWrapperFactory)(this);
|
|
3701
3687
|
});
|
|
3702
3688
|
this.setColDefProperty(col, 'floatingFilterComponentParams', () => {
|
|
3703
3689
|
if (isFloatingFilterDisabled) {
|
|
@@ -3854,7 +3840,7 @@ export class Adaptable {
|
|
|
3854
3840
|
this.api.themeApi.applyCurrentTheme();
|
|
3855
3841
|
}
|
|
3856
3842
|
applyFinalRendering() {
|
|
3857
|
-
this.embedColumnMenu = this.isAgGridModulePresent(ModuleNames.MenuModule);
|
|
3843
|
+
this.embedColumnMenu = this.isAgGridModulePresent(core_1.ModuleNames.MenuModule);
|
|
3858
3844
|
if (this.gridOptions.treeData && this.gridOptions.treeData == true) {
|
|
3859
3845
|
this.api.internalApi.setTreeModeOn();
|
|
3860
3846
|
}
|
|
@@ -3864,7 +3850,7 @@ export class Adaptable {
|
|
|
3864
3850
|
this.agGridHelper.checkShouldClearExistingFiltersOrSearches();
|
|
3865
3851
|
}
|
|
3866
3852
|
isAgGridModulePresent(moduleName) {
|
|
3867
|
-
const standardAgGridRegistrationCheck = ModuleRegistry.__isRegistered(moduleName, this.gridOptions.gridId);
|
|
3853
|
+
const standardAgGridRegistrationCheck = core_1.ModuleRegistry.__isRegistered(moduleName, this.gridOptions.gridId);
|
|
3868
3854
|
if (standardAgGridRegistrationCheck) {
|
|
3869
3855
|
return true;
|
|
3870
3856
|
}
|
|
@@ -3876,7 +3862,7 @@ export class Adaptable {
|
|
|
3876
3862
|
// because of that we have to check ALL grid IDs to see if the module is registered
|
|
3877
3863
|
// TODO AFL: we should recheck this later, it seems AG Grid is already refactoring this faulty registration process
|
|
3878
3864
|
// @ts-ignore
|
|
3879
|
-
const gridModulesMap = ModuleRegistry.gridModulesMap;
|
|
3865
|
+
const gridModulesMap = core_1.ModuleRegistry.gridModulesMap;
|
|
3880
3866
|
let allModulesMap = {};
|
|
3881
3867
|
Object.keys(gridModulesMap).forEach((gridId) => {
|
|
3882
3868
|
allModulesMap = Object.assign(Object.assign({}, allModulesMap), gridModulesMap[gridId]);
|
|
@@ -4023,7 +4009,7 @@ export class Adaptable {
|
|
|
4023
4009
|
getFormatColumnExpressionStylesChanges(dataChangedScope, cellDataChangedInfos) {
|
|
4024
4010
|
const formatColumnsWithExpression = [];
|
|
4025
4011
|
formatColumnsWithExpression.push(...this.api.formatColumnApi.internalApi.getFormatColumnsWithExpression());
|
|
4026
|
-
if (ArrayExtensions.IsNullOrEmpty(formatColumnsWithExpression)) {
|
|
4012
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(formatColumnsWithExpression)) {
|
|
4027
4013
|
return;
|
|
4028
4014
|
}
|
|
4029
4015
|
cellDataChangedInfos.forEach((cellDataChangedInfo) => {
|
|
@@ -4063,7 +4049,7 @@ export class Adaptable {
|
|
|
4063
4049
|
let columnComparison = this.api.styledColumnApi.internalApi.getColumnComparisonForStyledColumn(sc);
|
|
4064
4050
|
if (columnComparison) {
|
|
4065
4051
|
let affectedColumnIds = this.api.styledColumnApi.internalApi.getColumnIdsFromColumnComparison(columnComparison);
|
|
4066
|
-
if (ArrayExtensions.IsNotNullOrEmpty(affectedColumnIds)) {
|
|
4052
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(affectedColumnIds)) {
|
|
4067
4053
|
cellDataChangedInfos.forEach((cellDataChangedInfo) => {
|
|
4068
4054
|
if (affectedColumnIds.includes(cellDataChangedInfo.column.columnId)) {
|
|
4069
4055
|
dataChangedScope.columnIds.add(sc.ColumnId);
|
|
@@ -4075,7 +4061,7 @@ export class Adaptable {
|
|
|
4075
4061
|
}
|
|
4076
4062
|
checkChangedCellCurrentlySelected(cellDataChangedInfo) {
|
|
4077
4063
|
let selectedCellInfo = this.api.gridApi.getSelectedCellInfo();
|
|
4078
|
-
if (selectedCellInfo && ArrayExtensions.IsNotNullOrEmpty(selectedCellInfo.gridCells)) {
|
|
4064
|
+
if (selectedCellInfo && ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(selectedCellInfo.gridCells)) {
|
|
4079
4065
|
let matchingCell = selectedCellInfo.gridCells.find((gc) => gc.primaryKeyValue == cellDataChangedInfo.primaryKeyValue &&
|
|
4080
4066
|
gc.column == cellDataChangedInfo.column);
|
|
4081
4067
|
if (matchingCell) {
|
|
@@ -4083,7 +4069,7 @@ export class Adaptable {
|
|
|
4083
4069
|
}
|
|
4084
4070
|
}
|
|
4085
4071
|
let selectedRowInfo = this.api.gridApi.getSelectedRowInfo();
|
|
4086
|
-
if (selectedRowInfo && ArrayExtensions.IsNotNullOrEmpty(selectedRowInfo.gridRows)) {
|
|
4072
|
+
if (selectedRowInfo && ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(selectedRowInfo.gridRows)) {
|
|
4087
4073
|
let matchingRow = selectedRowInfo.gridRows.find((gr) => gr.primaryKeyValue == cellDataChangedInfo.primaryKeyValue);
|
|
4088
4074
|
if (matchingRow) {
|
|
4089
4075
|
this.setSelectedRows();
|
|
@@ -4147,7 +4133,7 @@ export class Adaptable {
|
|
|
4147
4133
|
this.gridOptions.api.onGroupExpandedOrCollapsed();
|
|
4148
4134
|
}
|
|
4149
4135
|
expandRowGroupsForValues(columnValues) {
|
|
4150
|
-
if (ArrayExtensions.IsNotNullOrEmpty(columnValues)) {
|
|
4136
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(columnValues)) {
|
|
4151
4137
|
const expandedKeys = columnValues.reduce((acc, key) => {
|
|
4152
4138
|
acc[key] = true;
|
|
4153
4139
|
return acc;
|
|
@@ -4175,6 +4161,9 @@ export class Adaptable {
|
|
|
4175
4161
|
getAgGridColumnForColumnId(columnId) {
|
|
4176
4162
|
return this.gridOptions.columnApi.getColumn(columnId);
|
|
4177
4163
|
}
|
|
4164
|
+
getAgGridAllGridColumns() {
|
|
4165
|
+
return this.gridOptions.columnApi.getAllGridColumns();
|
|
4166
|
+
}
|
|
4178
4167
|
setRowGroupColumns(columnIds) {
|
|
4179
4168
|
this.gridOptions.columnApi.setRowGroupColumns(columnIds);
|
|
4180
4169
|
}
|
|
@@ -4452,7 +4441,7 @@ export class Adaptable {
|
|
|
4452
4441
|
}
|
|
4453
4442
|
getFirstGroupedColumn() {
|
|
4454
4443
|
let groupedColumns = this.gridOptions.columnApi.getRowGroupColumns();
|
|
4455
|
-
if (ArrayExtensions.IsNotNullOrEmpty(groupedColumns)) {
|
|
4444
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(groupedColumns)) {
|
|
4456
4445
|
let groupedColumn = groupedColumns[0];
|
|
4457
4446
|
return this.api.columnApi.getColumnWithColumnId(groupedColumn.getColId());
|
|
4458
4447
|
}
|
|
@@ -4512,7 +4501,7 @@ export class Adaptable {
|
|
|
4512
4501
|
return (this.gridOptions.rowSelection === 'single' || this.gridOptions.rowSelection === 'multiple');
|
|
4513
4502
|
}
|
|
4514
4503
|
isGridRangeSelectable() {
|
|
4515
|
-
let isRangeSelectionModuleRegistered = this.isAgGridModulePresent(ModuleNames.RangeSelectionModule);
|
|
4504
|
+
let isRangeSelectionModuleRegistered = this.isAgGridModulePresent(core_1.ModuleNames.RangeSelectionModule);
|
|
4516
4505
|
return isRangeSelectionModuleRegistered && this.gridOptions.enableRangeSelection === true;
|
|
4517
4506
|
}
|
|
4518
4507
|
isGridGroupable() {
|
|
@@ -4668,10 +4657,10 @@ export class Adaptable {
|
|
|
4668
4657
|
const getAgGridLightThemeName = () => this.getAgGridLightThemeName();
|
|
4669
4658
|
const getAgGridDarkThemeName = () => getAgGridLightThemeName() + '-dark';
|
|
4670
4659
|
if (newTheme && (isSystemTheme || variantTheme)) {
|
|
4671
|
-
if ((variantTheme || themeName) === LIGHT_THEME) {
|
|
4660
|
+
if ((variantTheme || themeName) === GeneralConstants_1.LIGHT_THEME) {
|
|
4672
4661
|
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridLightThemeName();
|
|
4673
4662
|
}
|
|
4674
|
-
if ((variantTheme || themeName) === DARK_THEME) {
|
|
4663
|
+
if ((variantTheme || themeName) === GeneralConstants_1.DARK_THEME) {
|
|
4675
4664
|
newTheme.AgGridClassName = newTheme.AgGridClassName || getAgGridDarkThemeName();
|
|
4676
4665
|
}
|
|
4677
4666
|
}
|
|
@@ -4706,7 +4695,7 @@ export class Adaptable {
|
|
|
4706
4695
|
// MAC LIKE SCROLLBARS
|
|
4707
4696
|
if (this.adaptableOptions.userInterfaceOptions &&
|
|
4708
4697
|
this.adaptableOptions.userInterfaceOptions.useCustomMacLikeScrollbars &&
|
|
4709
|
-
|
|
4698
|
+
(0, getScrollbarSize_1.default)() > 0) {
|
|
4710
4699
|
el.classList.add('ab--custom-mac-like-scrollbars');
|
|
4711
4700
|
}
|
|
4712
4701
|
else {
|
|
@@ -4756,13 +4745,13 @@ export class Adaptable {
|
|
|
4756
4745
|
return this.gridOptions.api;
|
|
4757
4746
|
}
|
|
4758
4747
|
canGenerateCharts() {
|
|
4759
|
-
return (this.isAgGridModulePresent(ModuleNames.GridChartsModule) && this.gridOptions.enableCharts);
|
|
4748
|
+
return (this.isAgGridModulePresent(core_1.ModuleNames.GridChartsModule) && this.gridOptions.enableCharts);
|
|
4760
4749
|
}
|
|
4761
4750
|
canDisplaySparklines() {
|
|
4762
|
-
return this.isAgGridModulePresent(ModuleNames.SparklinesModule);
|
|
4751
|
+
return this.isAgGridModulePresent(core_1.ModuleNames.SparklinesModule);
|
|
4763
4752
|
}
|
|
4764
4753
|
canExportToExcel() {
|
|
4765
|
-
return this.isAgGridModulePresent(ModuleNames.ExcelExportModule);
|
|
4754
|
+
return this.isAgGridModulePresent(core_1.ModuleNames.ExcelExportModule);
|
|
4766
4755
|
}
|
|
4767
4756
|
exportToExcel(reportData, fileName) {
|
|
4768
4757
|
const columnDefs = reportData.columns.map((column) => ({
|
|
@@ -4802,7 +4791,7 @@ export class Adaptable {
|
|
|
4802
4791
|
rowData: reportData.rows,
|
|
4803
4792
|
};
|
|
4804
4793
|
let gridParams = { modules: this.getAgGridRegisteredModules() };
|
|
4805
|
-
const grid = new Grid(document.createElement('div'), gridOptions, gridParams);
|
|
4794
|
+
const grid = new core_1.Grid(document.createElement('div'), gridOptions, gridParams);
|
|
4806
4795
|
gridOptions.api.exportDataAsExcel({
|
|
4807
4796
|
sheetName: 'Sheet 1',
|
|
4808
4797
|
fileName: fileName,
|
|
@@ -4896,7 +4885,7 @@ export class Adaptable {
|
|
|
4896
4885
|
}
|
|
4897
4886
|
return result;
|
|
4898
4887
|
}, {}));
|
|
4899
|
-
const sanitizedAdaptableStyle = sanitizeStyle(adaptableStyle);
|
|
4888
|
+
const sanitizedAdaptableStyle = (0, StyleHelper_1.sanitizeStyle)(adaptableStyle);
|
|
4900
4889
|
if (Object.values(sanitizedAdaptableStyle).some((style) => style != null)) {
|
|
4901
4890
|
excelStyles.push(this.convertCSSToExcelStyle(sanitizedAdaptableStyle));
|
|
4902
4891
|
}
|
|
@@ -4925,7 +4914,7 @@ export class Adaptable {
|
|
|
4925
4914
|
// we have to pass the date in the ISO format to Excel
|
|
4926
4915
|
// see https://www.ag-grid.com/javascript-data-grid/excel-export-data-types/#dates
|
|
4927
4916
|
// we can NOT use Date.toISOString() because we don't want the timezone corrections to kick in
|
|
4928
|
-
const isoFormattedValue = DateFormatter(normalisedValue, {
|
|
4917
|
+
const isoFormattedValue = (0, FormatHelper_1.DateFormatter)(normalisedValue, {
|
|
4929
4918
|
Pattern: `yyyy-MM-dd'T'HH:mm:ss.SSS`,
|
|
4930
4919
|
});
|
|
4931
4920
|
if (isoFormattedValue) {
|
|
@@ -4995,11 +4984,11 @@ export class Adaptable {
|
|
|
4995
4984
|
});
|
|
4996
4985
|
}
|
|
4997
4986
|
convertAdaptableStyleToCSS(style) {
|
|
4998
|
-
return convertAdaptableStyleToCSS(style);
|
|
4987
|
+
return (0, StyleHelper_1.convertAdaptableStyleToCSS)(style);
|
|
4999
4988
|
}
|
|
5000
4989
|
convertCSSToExcelStyle(style) {
|
|
5001
4990
|
const getHexColor = (color) => {
|
|
5002
|
-
const preparedColor = getVariableColor(color);
|
|
4991
|
+
const preparedColor = (0, StyleHelper_1.getVariableColor)(color);
|
|
5003
4992
|
const t = tinycolor(preparedColor);
|
|
5004
4993
|
const a = t.getAlpha();
|
|
5005
4994
|
return tinycolor.mix(tinycolor('white'), t, a * 100).toHexString();
|
|
@@ -5026,7 +5015,7 @@ export class Adaptable {
|
|
|
5026
5015
|
}
|
|
5027
5016
|
if (style.textAlign) {
|
|
5028
5017
|
result.alignment = {
|
|
5029
|
-
horizontal: StringExtensions.CapitaliseFirstLetter(style.textAlign),
|
|
5018
|
+
horizontal: StringExtensions_1.StringExtensions.CapitaliseFirstLetter(style.textAlign),
|
|
5030
5019
|
};
|
|
5031
5020
|
}
|
|
5032
5021
|
if (style.color != null) {
|
|
@@ -5054,7 +5043,7 @@ export class Adaptable {
|
|
|
5054
5043
|
if (!result.font) {
|
|
5055
5044
|
result.font = {};
|
|
5056
5045
|
}
|
|
5057
|
-
result.font.size = convertCSSAbsoluteFontSizeToPt(style.fontSize);
|
|
5046
|
+
result.font.size = (0, StyleHelper_1.convertCSSAbsoluteFontSizeToPt)(style.fontSize);
|
|
5058
5047
|
}
|
|
5059
5048
|
return result;
|
|
5060
5049
|
}
|
|
@@ -5094,23 +5083,23 @@ export class Adaptable {
|
|
|
5094
5083
|
}
|
|
5095
5084
|
addSyntheticPrimaryKey(rowData = []) {
|
|
5096
5085
|
for (let i = 0; i < rowData.length; i++) {
|
|
5097
|
-
rowData[i][AUTOGENERATED_PK_COLUMN] = createUuid();
|
|
5086
|
+
rowData[i][GeneralConstants_1.AUTOGENERATED_PK_COLUMN] = (0, Uuid_1.createUuid)();
|
|
5098
5087
|
}
|
|
5099
5088
|
}
|
|
5100
5089
|
// add a synthetic PK only if missing (useful in case of updating row data)
|
|
5101
5090
|
addSyntheticPrimaryKeyIfMissing(rowData = []) {
|
|
5102
|
-
this.adaptableOptions.primaryKey = AUTOGENERATED_PK_COLUMN;
|
|
5091
|
+
this.adaptableOptions.primaryKey = GeneralConstants_1.AUTOGENERATED_PK_COLUMN;
|
|
5103
5092
|
for (let i = 0; i < rowData.length; i++) {
|
|
5104
|
-
if (!rowData[i][AUTOGENERATED_PK_COLUMN]) {
|
|
5105
|
-
rowData[i][AUTOGENERATED_PK_COLUMN] = createUuid();
|
|
5093
|
+
if (!rowData[i][GeneralConstants_1.AUTOGENERATED_PK_COLUMN]) {
|
|
5094
|
+
rowData[i][GeneralConstants_1.AUTOGENERATED_PK_COLUMN] = (0, Uuid_1.createUuid)();
|
|
5106
5095
|
}
|
|
5107
5096
|
}
|
|
5108
5097
|
}
|
|
5109
5098
|
initLicenseService() {
|
|
5110
5099
|
const globalObject = typeof globalThis !== 'undefined' ? globalThis : window;
|
|
5111
5100
|
const licenseKey = globalObject.ADAPTABLE_LICENSE_KEY || this.api.optionsApi.getLicenseKey();
|
|
5112
|
-
return new LicenseService(this, licenseKey, {
|
|
5113
|
-
publishedAt:
|
|
5101
|
+
return new LicenseService_1.LicenseService(this, licenseKey, {
|
|
5102
|
+
publishedAt: publishTimestamp_1.default,
|
|
5114
5103
|
});
|
|
5115
5104
|
}
|
|
5116
5105
|
showCharts(chartsDefinitions, chartContainer) {
|
|
@@ -5177,14 +5166,14 @@ export class Adaptable {
|
|
|
5177
5166
|
registerAdaptableAggFuncs() {
|
|
5178
5167
|
this.setGridOptionsProperty('aggFuncs', (originalAggFuncs) => {
|
|
5179
5168
|
const aggregationFunctions = originalAggFuncs || {};
|
|
5180
|
-
aggregationFunctions[WEIGHTED_AVERAGE_AGG_FN_NAME] = (params) => {
|
|
5169
|
+
aggregationFunctions[AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME] = (params) => {
|
|
5181
5170
|
const columnId = params.column.getColId();
|
|
5182
5171
|
const adaptableAggFunc = this.getActiveAdaptableAggFuncForCol(columnId);
|
|
5183
5172
|
if (!adaptableAggFunc) {
|
|
5184
5173
|
return undefined;
|
|
5185
5174
|
}
|
|
5186
5175
|
if (adaptableAggFunc.type === 'weightedAverage') {
|
|
5187
|
-
return weightedAverage(params, params.colDef.colId, adaptableAggFunc.weightedColumnId);
|
|
5176
|
+
return (0, weightedAverage_1.weightedAverage)(params, params.colDef.colId, adaptableAggFunc.weightedColumnId);
|
|
5188
5177
|
}
|
|
5189
5178
|
return undefined;
|
|
5190
5179
|
};
|
|
@@ -5197,7 +5186,7 @@ export class Adaptable {
|
|
|
5197
5186
|
mapAggregationColumnsFromGrid(aggFuncFromGrid, currentLayout) {
|
|
5198
5187
|
return Object.entries(aggFuncFromGrid).reduce((acc, [colId, agg]) => {
|
|
5199
5188
|
const adaptableAggFunc = this.getActiveAdaptableAggFuncForCol(colId);
|
|
5200
|
-
if ((adaptableAggFunc === null || adaptableAggFunc === void 0 ? void 0 : adaptableAggFunc.type) === 'weightedAverage' && agg === WEIGHTED_AVERAGE_AGG_FN_NAME) {
|
|
5189
|
+
if ((adaptableAggFunc === null || adaptableAggFunc === void 0 ? void 0 : adaptableAggFunc.type) === 'weightedAverage' && agg === AggregationColumns_1.WEIGHTED_AVERAGE_AGG_FN_NAME) {
|
|
5201
5190
|
// do not override the agg func
|
|
5202
5191
|
acc[colId] = currentLayout.AggregationColumns[colId];
|
|
5203
5192
|
}
|
|
@@ -5292,7 +5281,8 @@ export class Adaptable {
|
|
|
5292
5281
|
return newColumnOrder;
|
|
5293
5282
|
}
|
|
5294
5283
|
}
|
|
5295
|
-
|
|
5284
|
+
exports.Adaptable = Adaptable;
|
|
5285
|
+
class AdaptableNoCodeWizard {
|
|
5296
5286
|
/**
|
|
5297
5287
|
* @param adaptableOptions
|
|
5298
5288
|
*/
|
|
@@ -5303,12 +5293,12 @@ export class AdaptableNoCodeWizard {
|
|
|
5303
5293
|
this.adaptableOptions = adaptableOptions;
|
|
5304
5294
|
this.init = extraOptions.onInit || defaultInit;
|
|
5305
5295
|
this.extraOptions = extraOptions;
|
|
5306
|
-
this.agGridModules = ModuleRegistry.__getRegisteredModules(agGridOptons === null || agGridOptons === void 0 ? void 0 : agGridOptons.gridOptions.gridId);
|
|
5296
|
+
this.agGridModules = core_1.ModuleRegistry.__getRegisteredModules(agGridOptons === null || agGridOptons === void 0 ? void 0 : agGridOptons.gridOptions.gridId);
|
|
5307
5297
|
this.render();
|
|
5308
5298
|
}
|
|
5309
5299
|
render(container) {
|
|
5310
5300
|
var _a;
|
|
5311
|
-
let id = DefaultAdaptableOptions.containerOptions.adaptableContainer || 'adaptable';
|
|
5301
|
+
let id = DefaultAdaptableOptions_1.DefaultAdaptableOptions.containerOptions.adaptableContainer || 'adaptable';
|
|
5312
5302
|
if (!container) {
|
|
5313
5303
|
let containerOptionsContainer = (_a = this.adaptableOptions.containerOptions) === null || _a === void 0 ? void 0 : _a.adaptableContainer;
|
|
5314
5304
|
if (containerOptionsContainer) {
|
|
@@ -5327,7 +5317,7 @@ export class AdaptableNoCodeWizard {
|
|
|
5327
5317
|
// this allows people to customize the wizard dimensions & styling
|
|
5328
5318
|
// when it's visible
|
|
5329
5319
|
container.classList.add('adaptable--in-wizard');
|
|
5330
|
-
const unmount =
|
|
5320
|
+
const unmount = (0, renderReactRoot_1.renderReactRoot)(React.createElement(AdaptableWizardView_1.default, Object.assign(Object.assign({ adaptableOptions: this.adaptableOptions }, this.extraOptions), { onInit: (adaptableOptions, gridOptions) => {
|
|
5331
5321
|
container.classList.remove('adaptable--in-wizard');
|
|
5332
5322
|
unmount();
|
|
5333
5323
|
this.init({
|
|
@@ -5338,3 +5328,4 @@ export class AdaptableNoCodeWizard {
|
|
|
5338
5328
|
} })), container);
|
|
5339
5329
|
}
|
|
5340
5330
|
}
|
|
5331
|
+
exports.AdaptableNoCodeWizard = AdaptableNoCodeWizard;
|