@adaptabletools/adaptable-cjs 18.0.0-canary.2 → 18.0.0-canary.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +4 -21
- package/agGrid.js +5 -21
- package/base.css +22 -8
- package/base.css.map +1 -1
- package/index.css +101 -75
- package/index.css.map +1 -1
- package/package.json +4 -5
- package/src/AdaptableInterfaces/IAdaptable.d.ts +58 -108
- package/src/AdaptableOptions/AdaptableOptions.d.ts +13 -7
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +11 -4
- package/src/AdaptableOptions/ColumnOptions.d.ts +9 -4
- package/src/AdaptableOptions/CommentOptions.d.ts +33 -0
- package/src/AdaptableOptions/GroupingOptions.d.ts +0 -7
- package/src/AdaptableOptions/MenuOptions.d.ts +6 -54
- package/src/AdaptableOptions/MenuOptions.js +72 -75
- package/src/AdaptableOptions/{NotesOptions.d.ts → NoteOptions.d.ts} +7 -4
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +17 -0
- package/src/Api/AdaptableApi.d.ts +9 -4
- package/src/Api/BulkUpdateApi.d.ts +0 -5
- package/src/Api/ColumnApi.d.ts +4 -0
- package/src/Api/CommentApi.d.ts +11 -12
- package/src/Api/ConfigApi.d.ts +4 -5
- package/src/Api/EventApi.d.ts +7 -9
- package/src/Api/Events/AdaptableReady.d.ts +3 -3
- package/src/Api/Events/CommentChanged.d.ts +11 -0
- package/src/Api/Events/GridDataChanged.d.ts +4 -4
- package/src/Api/GridApi.d.ts +23 -13
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +30 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +3 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +5 -2
- package/src/Api/Implementation/ApiBase.d.ts +5 -3
- package/src/Api/Implementation/ApiBase.js +8 -2
- package/src/Api/Implementation/BulkUpdateApiImpl.d.ts +0 -1
- package/src/Api/Implementation/BulkUpdateApiImpl.js +0 -4
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -5
- package/src/Api/Implementation/CellSummaryApiImpl.js +2 -23
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +10 -0
- package/src/Api/Implementation/CommentsApiImpl.d.ts +5 -2
- package/src/Api/Implementation/CommentsApiImpl.js +7 -1
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ConfigApiImpl.js +21 -13
- package/src/Api/Implementation/GridApiImpl.d.ts +6 -3
- package/src/Api/Implementation/GridApiImpl.js +49 -14
- package/src/Api/Implementation/LayoutApiImpl.d.ts +3 -0
- package/src/Api/Implementation/LayoutApiImpl.js +18 -0
- package/src/Api/Implementation/NoteApiImpl.d.ts +18 -0
- package/src/Api/Implementation/NoteApiImpl.js +45 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +4 -4
- package/src/Api/Implementation/OptionsApiImpl.js +4 -4
- package/src/Api/Implementation/ScopeApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ScopeApiImpl.js +20 -7
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +0 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +0 -3
- package/src/Api/Implementation/ToolPanelApiImpl.js +6 -6
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -3
- package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -8
- package/src/Api/Internal/ActionRowInternalApi.d.ts +5 -1
- package/src/Api/Internal/ActionRowInternalApi.js +107 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +6 -7
- package/src/Api/Internal/AdaptableInternalApi.js +21 -19
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +72 -0
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +2 -0
- package/src/Api/Internal/ColumnFilterInternalApi.js +23 -1
- package/src/Api/Internal/ColumnInternalApi.d.ts +4 -1
- package/src/Api/Internal/ColumnInternalApi.js +12 -0
- package/src/Api/Internal/CommentsInternalApi.d.ts +4 -0
- package/src/Api/Internal/CommentsInternalApi.js +18 -0
- package/src/Api/Internal/CustomSortInternalApi.d.ts +3 -2
- package/src/Api/Internal/CustomSortInternalApi.js +32 -1
- package/src/Api/Internal/DataSetInternalApi.js +1 -1
- package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
- package/src/Api/Internal/ExportInternalApi.js +4 -1
- package/src/Api/Internal/Fdc3InternalApi.js +2 -2
- package/src/Api/Internal/FormatColumnInternalApi.js +3 -2
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.js +61 -0
- package/src/Api/Internal/GridFilterInternalApi.d.ts +5 -0
- package/src/Api/Internal/GridFilterInternalApi.js +7 -1
- package/src/Api/Internal/GridInternalApi.d.ts +23 -3
- package/src/Api/Internal/GridInternalApi.js +141 -7
- package/src/Api/Internal/LayoutInternalApi.d.ts +1 -0
- package/src/Api/Internal/LayoutInternalApi.js +16 -0
- package/src/Api/Internal/NoteInternalApi.d.ts +4 -0
- package/src/Api/Internal/NoteInternalApi.js +18 -0
- package/src/Api/Internal/TeamSharingInternalApi.js +1 -1
- package/src/Api/InteropioPluginApi.d.ts +2 -2
- package/src/Api/LayoutApi.d.ts +15 -0
- package/src/Api/NoteApi.d.ts +48 -0
- package/src/Api/OptionsApi.d.ts +8 -8
- package/src/Api/ScopeApi.d.ts +10 -0
- package/src/Api/UserInterfaceApi.d.ts +0 -11
- package/src/EnvVars.d.ts +3 -0
- package/src/EnvVars.js +8 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
- package/src/PredefinedConfig/CommentState.d.ts +27 -23
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableScope.d.ts +4 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
- package/src/PredefinedConfig/Common/AggregationColumns.js +5 -1
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +4 -0
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -1
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/Common/Menu.d.ts +15 -1
- package/src/PredefinedConfig/Common/Menu.js +98 -0
- package/src/PredefinedConfig/Common/RowSummary.d.ts +21 -0
- package/src/PredefinedConfig/Common/RowSummary.js +20 -0
- package/src/PredefinedConfig/Common/TransposeConfig.d.ts +25 -0
- package/src/PredefinedConfig/Common/Types.d.ts +4 -4
- package/src/PredefinedConfig/Common/Types.js +4 -1
- package/src/PredefinedConfig/LayoutState.d.ts +5 -0
- package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +12 -22
- package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -3
- package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
- package/src/PredefinedConfig/SystemState.d.ts +9 -3
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +9 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +34 -11
- package/src/Redux/ActionsReducers/NoteRedux.d.ts +38 -0
- package/src/Redux/ActionsReducers/NoteRedux.js +89 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +19 -6
- package/src/Redux/Store/AdaptableStore.d.ts +4 -6
- package/src/Redux/Store/AdaptableStore.js +66 -76
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +8 -2
- package/src/Strategy/AdaptableModuleBase.d.ts +8 -8
- package/src/Strategy/AdaptableModuleBase.js +13 -15
- package/src/Strategy/AlertModule.d.ts +1 -2
- package/src/Strategy/AlertModule.js +3 -56
- package/src/Strategy/BulkUpdateModule.js +1 -1
- package/src/Strategy/CalculatedColumnModule.d.ts +2 -3
- package/src/Strategy/CalculatedColumnModule.js +6 -26
- package/src/Strategy/CellSummaryModule.d.ts +8 -6
- package/src/Strategy/CellSummaryModule.js +78 -23
- package/src/Strategy/ChartingModule.d.ts +0 -1
- package/src/Strategy/ChartingModule.js +2 -22
- package/src/Strategy/ColumnFilterModule.d.ts +2 -3
- package/src/Strategy/ColumnFilterModule.js +44 -103
- package/src/Strategy/ColumnInfoModule.js +2 -0
- package/src/Strategy/{CommentsModule.d.ts → CommentModule.d.ts} +2 -5
- package/src/Strategy/{CommentsModule.js → CommentModule.js} +19 -25
- package/src/Strategy/CustomSortModule.js +3 -2
- package/src/Strategy/DashboardModule.d.ts +1 -2
- package/src/Strategy/DashboardModule.js +9 -15
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +3 -1
- package/src/Strategy/DataImportModule.d.ts +1 -1
- package/src/Strategy/DataImportModule.js +5 -5
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.d.ts +1 -0
- package/src/Strategy/ExportModule.js +17 -2
- package/src/Strategy/Fdc3Module.js +3 -0
- package/src/Strategy/FlashingCellModule.d.ts +1 -2
- package/src/Strategy/FlashingCellModule.js +6 -19
- package/src/Strategy/FormatColumnModule.d.ts +0 -2
- package/src/Strategy/FormatColumnModule.js +6 -51
- package/src/Strategy/FreeTextColumnModule.d.ts +0 -1
- package/src/Strategy/FreeTextColumnModule.js +1 -31
- package/src/Strategy/GridFilterModule.d.ts +0 -1
- package/src/Strategy/GridFilterModule.js +0 -37
- package/src/Strategy/GridInfoModule.js +2 -0
- package/src/Strategy/Interface/IModule.d.ts +0 -1
- package/src/Strategy/LayoutModule.d.ts +9 -3
- package/src/Strategy/LayoutModule.js +143 -63
- package/src/Strategy/NamedQueryModule.d.ts +0 -1
- package/src/Strategy/NamedQueryModule.js +0 -19
- package/src/Strategy/{NotesModule.d.ts → NoteModule.d.ts} +2 -1
- package/src/Strategy/NoteModule.js +62 -0
- package/src/Strategy/PlusMinusModule.d.ts +1 -1
- package/src/Strategy/PlusMinusModule.js +2 -2
- package/src/Strategy/ScheduleModule.d.ts +1 -1
- package/src/Strategy/ScheduleModule.js +1 -1
- package/src/Strategy/SettingsPanelModule.js +3 -3
- package/src/Strategy/ShortcutModule.d.ts +1 -1
- package/src/Strategy/ShortcutModule.js +1 -1
- package/src/Strategy/SmartEditModule.js +1 -1
- package/src/Strategy/StyledColumnModule.d.ts +1 -1
- package/src/Strategy/StyledColumnModule.js +26 -26
- package/src/Strategy/SystemStatusModule.js +2 -2
- package/src/Strategy/TeamSharingModule.d.ts +1 -0
- package/src/Strategy/TeamSharingModule.js +5 -5
- package/src/Strategy/ToolPanelModule.d.ts +0 -1
- package/src/Strategy/ToolPanelModule.js +0 -23
- package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +3 -2
- package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
- package/src/Utilities/Constants/ModuleConstants.js +7 -7
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +7 -6
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +430 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -3
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +15 -0
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +6 -1
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +3 -4
- package/src/Utilities/Helpers/AdaptableHelper.js +20 -60
- package/src/Utilities/Helpers/Helper.d.ts +2 -0
- package/src/Utilities/Helpers/Helper.js +6 -1
- package/src/Utilities/MenuItem.d.ts +7 -4
- package/src/Utilities/MenuItem.js +6 -3
- package/src/Utilities/ObjectFactory.d.ts +3 -3
- package/src/Utilities/ObjectFactory.js +4 -24
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +4 -2
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +26 -19
- package/src/Utilities/Services/CellPopupService.js +2 -3
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -4
- package/src/Utilities/Services/LicenseService/index.d.ts +3 -0
- package/src/Utilities/Services/LicenseService/index.js +1 -186
- package/src/Utilities/Services/MetamodelService.d.ts +1 -1
- package/src/Utilities/Services/MetamodelService.js +6 -3
- package/src/Utilities/Services/ModuleService.js +4 -0
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +4 -3
- package/src/Utilities/Services/ReportService.d.ts +7 -5
- package/src/Utilities/Services/ReportService.js +238 -22
- package/src/Utilities/Services/RowEditService.d.ts +3 -2
- package/src/Utilities/Services/RowEditService.js +3 -1
- package/src/Utilities/adaptableQlUtils.d.ts +2 -0
- package/src/Utilities/adaptableQlUtils.js +18 -0
- package/src/Utilities/license/decode.js +1 -70
- package/src/Utilities/license/hashing.js +1 -47
- package/src/View/AdaptableView.js +1 -3
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +3 -3
- package/src/View/CalculatedColumn/utils.d.ts +1 -1
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/Comments/CommentsEditor.js +24 -11
- package/src/View/Comments/CommentsPopup.js +20 -11
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.d.ts +5 -0
- package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.js +46 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
- package/src/View/Components/CellPopup/index.d.ts +1 -0
- package/src/View/Components/CellPopup/index.js +5 -2
- package/src/View/Components/FilterForm/FilterForm.js +20 -12
- package/src/View/Components/FilterForm/QuickFilterForm.js +15 -8
- package/src/View/Components/NewScopeComponent.js +34 -1
- package/src/View/Components/Popups/AdaptableLoadingScreen.d.ts +6 -5
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +19 -9
- package/src/View/Components/Popups/AdaptableToaster.js +1 -1
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +7 -7
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +4 -1
- package/src/View/Components/Selectors/PermittedValuesSelector.js +2 -2
- package/src/View/Components/ValueSelector/index.d.ts +1 -0
- package/src/View/Components/ValueSelector/index.js +2 -2
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +8 -9
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +3 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +9 -5
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +1 -1
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +2 -3
- package/src/View/Layout/LayoutViewPanel.js +2 -1
- package/src/View/Layout/TransposedPopup.d.ts +3 -0
- package/src/View/Layout/TransposedPopup.js +200 -0
- package/src/View/Layout/Wizard/LayoutWizard.js +36 -3
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +9 -0
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +181 -0
- package/src/View/License/LicenseWatermark.js +1 -66
- package/src/View/Note/NotePopup.d.ts +2 -0
- package/src/View/{Notes/NotesPopup.js → Note/NotePopup.js} +19 -19
- package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
- package/src/View/Theme/ThemeSelector.js +2 -2
- package/src/agGrid/ActionColumnRenderer.js +7 -6
- package/src/agGrid/Adaptable.d.ts +3 -455
- package/src/agGrid/Adaptable.js +7 -5291
- package/src/agGrid/AdaptableAgGrid.d.ts +352 -0
- package/src/agGrid/AdaptableAgGrid.js +3968 -0
- package/src/agGrid/AdaptableLogger.js +78 -13
- package/src/agGrid/AgGridAdapter.d.ts +64 -0
- package/src/agGrid/AgGridAdapter.js +590 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +56 -0
- package/src/agGrid/AgGridColumnAdapter.js +836 -0
- package/src/agGrid/AgGridMenuAdapter.d.ts +28 -0
- package/src/agGrid/AgGridMenuAdapter.js +282 -0
- package/src/agGrid/AgGridOptionsService.d.ts +15 -0
- package/src/agGrid/AgGridOptionsService.js +80 -0
- package/src/agGrid/BadgeRenderer.js +1 -1
- package/src/agGrid/CheckboxRenderer.js +1 -1
- package/src/agGrid/FilterWrapper.d.ts +2 -2
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +12 -12
- package/src/agGrid/defaultAdaptableOptions.d.ts +3 -0
- package/src/{Utilities/Defaults/DefaultAdaptableOptions.js → agGrid/defaultAdaptableOptions.js} +74 -18
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +3 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +2 -2
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/agGrid/weightedAverage.d.ts +0 -2
- package/src/agGrid/weightedAverage.js +1 -56
- package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Datepicker/index.js +10 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +2 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +0 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +3 -17
- package/src/components/InfiniteTable/index.js +2 -2
- package/src/components/Input/index.d.ts +1 -2
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/Modal/index.d.ts +1 -0
- package/src/components/Modal/index.js +6 -4
- package/src/components/Select/Select.d.ts +3 -1
- package/src/components/Select/Select.js +4 -2
- package/src/components/Textarea/index.d.ts +2 -2
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/note.js +2 -2
- package/src/components/icons/rows.d.ts +3 -0
- package/src/components/icons/rows.js +7 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +186 -32
- package/src/metamodel/adaptable.metamodel.js +1 -9316
- package/src/migration/AdaptableUpgradeHelper.d.ts +38 -0
- package/src/migration/AdaptableUpgradeHelper.js +52 -0
- package/src/migration/VersionUpgrade.d.ts +8 -0
- package/src/migration/VersionUpgrade.js +15 -0
- package/src/migration/VersionUpgrade17.d.ts +18 -0
- package/src/migration/VersionUpgrade17.js +347 -0
- package/src/migration/VersionUpgrade18.d.ts +5 -0
- package/src/migration/VersionUpgrade18.js +10 -0
- package/src/parser/src/parser.js +117 -1257
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +2 -1
- package/src/parser/src/types.d.ts +7 -2
- package/src/types.d.ts +26 -19
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableOptions/CommentsOptions.d.ts +0 -28
- package/src/Api/Events/CommentsChangedInfo.d.ts +0 -5
- package/src/Api/Implementation/NotesApiImpl.d.ts +0 -16
- package/src/Api/Implementation/NotesApiImpl.js +0 -44
- package/src/Api/NotesApi.d.ts +0 -48
- package/src/PredefinedConfig/CellAddress.d.ts +0 -13
- package/src/PredefinedConfig/CellAddress.js +0 -5
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +0 -39
- package/src/Redux/ActionsReducers/NotesRedux.js +0 -87
- package/src/Strategy/NotesModule.js +0 -62
- package/src/Utilities/Defaults/DefaultAdaptableOptions.d.ts +0 -2
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +0 -3
- package/src/View/Components/ScopeComponent.d.ts +0 -24
- package/src/View/Components/ScopeComponent.js +0 -138
- package/src/View/Export/Wizard/ReportScopeWizard.d.ts +0 -17
- package/src/View/Export/Wizard/ReportScopeWizard.js +0 -52
- package/src/View/Notes/NotesPopup.d.ts +0 -2
- package/src/agGrid/agGridHelper.d.ts +0 -57
- package/src/agGrid/agGridHelper.js +0 -691
- package/src/agGrid/agGridMenuHelper.d.ts +0 -46
- package/src/agGrid/agGridMenuHelper.js +0 -673
- /package/src/AdaptableOptions/{CommentsOptions.js → CommentOptions.js} +0 -0
- /package/src/AdaptableOptions/{NotesOptions.js → NoteOptions.js} +0 -0
- /package/src/Api/Events/{CommentsChangedInfo.js → CommentChanged.js} +0 -0
- /package/src/Api/{NotesApi.js → NoteApi.js} +0 -0
- /package/src/PredefinedConfig/{NotesState.js → Common/TransposeConfig.js} +0 -0
- /package/src/{Utilities/Services/Interface/IRowEditService.js → PredefinedConfig/NoteState.js} +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
|
@@ -24,9 +24,9 @@ import { AdaptableFrameworkComponent } from '../../AdaptableOptions/AdaptableFra
|
|
|
24
24
|
import { IMetamodelService } from '../../Utilities/Services/Interface/IMetamodelService';
|
|
25
25
|
import { IModuleCollection } from '../../Strategy/Interface/IModule';
|
|
26
26
|
import { AdaptableObjectTag, AdaptableObjectWithScope } from '../../PredefinedConfig/Common/AdaptableObject';
|
|
27
|
-
import { IRowEditService } from '../../Utilities/Services/Interface/IRowEditService';
|
|
28
27
|
import { Fdc3Service } from '../../Utilities/Services/Fdc3Service';
|
|
29
28
|
import { CellPopupService } from '../../Utilities/Services/CellPopupService';
|
|
29
|
+
import { RowEditService } from '../../Utilities/Services/RowEditService';
|
|
30
30
|
export declare class AdaptableInternalApi extends ApiBase {
|
|
31
31
|
getSystemState(): SystemState;
|
|
32
32
|
showPopupConfirmation(confirmation: UIConfirmation): void;
|
|
@@ -46,8 +46,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
46
46
|
setPivotModeOn(): void;
|
|
47
47
|
setPivotModeOff(): void;
|
|
48
48
|
isGridInPivotMode(): boolean;
|
|
49
|
-
|
|
50
|
-
setTreeModeOff(): void;
|
|
49
|
+
setTreeMode(mode: boolean): void;
|
|
51
50
|
isGridInTreeMode(): boolean;
|
|
52
51
|
getToolbarTitle(): string;
|
|
53
52
|
buildDataChangedInfo(config: Pick<CellDataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): CellDataChangedInfo;
|
|
@@ -65,7 +64,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
65
64
|
getAlertService(): IAlertService;
|
|
66
65
|
getTeamSharingService(): ITeamSharingService;
|
|
67
66
|
getMetamodelService(): IMetamodelService;
|
|
68
|
-
getRowEditService():
|
|
67
|
+
getRowEditService(): RowEditService;
|
|
69
68
|
getFdc3Service(): Fdc3Service;
|
|
70
69
|
getModules(): IModuleCollection;
|
|
71
70
|
getModuleFriendlyName(adaptableModule: AdaptableModule): string;
|
|
@@ -73,7 +72,7 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
73
72
|
includeGroupRows?: boolean;
|
|
74
73
|
filterFn?: (rowNode: IRowNode) => boolean;
|
|
75
74
|
}): void;
|
|
76
|
-
forAllVisibleRowNodesDo(func: (rowNode: IRowNode) => void, config?: {
|
|
75
|
+
forAllVisibleRowNodesDo(func: (rowNode: IRowNode, index: number) => void, config?: {
|
|
77
76
|
includeGroupRows?: boolean;
|
|
78
77
|
filterFn?: (rowNode: IRowNode) => boolean;
|
|
79
78
|
}): void;
|
|
@@ -106,8 +105,8 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
106
105
|
getPreviousGroupedColumnsIndex(layoutId: string): {
|
|
107
106
|
[key: string]: number;
|
|
108
107
|
};
|
|
109
|
-
getValueUsingField(rowData: Record<string, any>,
|
|
110
|
-
setValueUsingField(rowData: Record<string, any>,
|
|
108
|
+
getValueUsingField(rowData: Record<string, any>, fieldName: string): any;
|
|
109
|
+
setValueUsingField(rowData: Record<string, any>, fieldName: string, newValue: any): Record<string, any>;
|
|
111
110
|
findAdaptableObjectsByLookupCriteria<T extends AdaptableObjectWithScope>({ scope, tag, ids }: AdaptableObjectLookupCriteria, specificAdaptableObjects: T[]): T[];
|
|
112
111
|
buildBaseContext(): BaseContext;
|
|
113
112
|
getActionButtonsAndActionColumn(colDef: ColDef): {
|
|
@@ -51,11 +51,13 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
51
51
|
isGridInPivotMode() {
|
|
52
52
|
return this.getAdaptableState().Grid.IsGridInPivotMode;
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
setTreeMode(mode) {
|
|
55
|
+
if (!!mode) {
|
|
56
|
+
this.dispatchAction(GridRedux.SetTreeModeOn());
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
this.dispatchAction(GridRedux.SetTreeModeOff());
|
|
60
|
+
}
|
|
59
61
|
}
|
|
60
62
|
isGridInTreeMode() {
|
|
61
63
|
return this.getAdaptableState().Grid.IsGridInTreeMode;
|
|
@@ -223,13 +225,13 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
223
225
|
frameworkComponent,
|
|
224
226
|
componentType,
|
|
225
227
|
});
|
|
226
|
-
if (this.adaptable.
|
|
228
|
+
if (this.adaptable.isReady) {
|
|
227
229
|
createComponentFn();
|
|
228
230
|
}
|
|
229
231
|
else {
|
|
230
232
|
// adaptable may not be initialized yet if the framework component is part of the initial render
|
|
231
233
|
// AFL 2021.10.14 - not really sure if this is necessary anymore?! (see the other changes in this commit)
|
|
232
|
-
(0, waitForCondition_1.waitForCondition)(() => this.adaptable.
|
|
234
|
+
(0, waitForCondition_1.waitForCondition)(() => this.adaptable.isReady).then(() => {
|
|
233
235
|
createComponentFn();
|
|
234
236
|
});
|
|
235
237
|
}
|
|
@@ -368,17 +370,17 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
368
370
|
return (_a = SystemRedux.SystemPreviousGroupedColumnsSelector(this.getAdaptableState().System)) === null || _a === void 0 ? void 0 : _a[layoutId];
|
|
369
371
|
}
|
|
370
372
|
// "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/utils/object.ts#L205
|
|
371
|
-
getValueUsingField(rowData,
|
|
372
|
-
if (!rowData || !(
|
|
373
|
+
getValueUsingField(rowData, fieldName) {
|
|
374
|
+
if (!rowData || !(fieldName === null || fieldName === void 0 ? void 0 : fieldName.length)) {
|
|
373
375
|
return;
|
|
374
376
|
}
|
|
375
|
-
const isColumnValueKeyNested =
|
|
377
|
+
const isColumnValueKeyNested = fieldName === null || fieldName === void 0 ? void 0 : fieldName.includes('.');
|
|
376
378
|
// if no '.', then it's not a deep value
|
|
377
379
|
if (!isColumnValueKeyNested) {
|
|
378
|
-
return rowData[
|
|
380
|
+
return rowData[fieldName];
|
|
379
381
|
}
|
|
380
382
|
// otherwise it is a deep value, so need to dig for it
|
|
381
|
-
const fields =
|
|
383
|
+
const fields = fieldName.split('.');
|
|
382
384
|
let currentObject = rowData;
|
|
383
385
|
for (let i = 0; i < fields.length; i++) {
|
|
384
386
|
if (currentObject == null) {
|
|
@@ -389,22 +391,22 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
389
391
|
return currentObject;
|
|
390
392
|
}
|
|
391
393
|
// "borrowed" from https://github.com/ag-grid/ag-grid/blob/v28.2.1/community-modules/core/src/ts/valueService/valueService.ts#L236
|
|
392
|
-
setValueUsingField(rowData,
|
|
393
|
-
if (!rowData || !(
|
|
394
|
+
setValueUsingField(rowData, fieldName, newValue) {
|
|
395
|
+
if (!rowData || !(fieldName === null || fieldName === void 0 ? void 0 : fieldName.length)) {
|
|
394
396
|
return;
|
|
395
397
|
}
|
|
396
|
-
const isColumnValueKeyContainsDots =
|
|
398
|
+
const isColumnValueKeyContainsDots = fieldName === null || fieldName === void 0 ? void 0 : fieldName.includes('.');
|
|
397
399
|
let valuesAreSame = false;
|
|
398
400
|
if (!isColumnValueKeyContainsDots) {
|
|
399
401
|
// soft comparison to match strings and numbers
|
|
400
|
-
valuesAreSame = rowData[
|
|
402
|
+
valuesAreSame = rowData[fieldName] == newValue;
|
|
401
403
|
if (!valuesAreSame) {
|
|
402
|
-
rowData[
|
|
404
|
+
rowData[fieldName] = newValue;
|
|
403
405
|
}
|
|
404
406
|
}
|
|
405
407
|
else {
|
|
406
408
|
// otherwise it is a deep value, so need to dig for it
|
|
407
|
-
const fieldPieces =
|
|
409
|
+
const fieldPieces = fieldName.split('.');
|
|
408
410
|
let currentObject = rowData;
|
|
409
411
|
while (fieldPieces.length > 0 && currentObject) {
|
|
410
412
|
const fieldPiece = fieldPieces.shift();
|
|
@@ -452,7 +454,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
452
454
|
var _a;
|
|
453
455
|
let actionColumn;
|
|
454
456
|
if (colDef.colId == GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS) {
|
|
455
|
-
const actionButtons = this.
|
|
457
|
+
const actionButtons = this.getActionRowApi().internalApi.getActionRowButtonDefs();
|
|
456
458
|
actionColumn = {
|
|
457
459
|
columnId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
458
460
|
actionColumnButton: actionButtons,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { CalculatedColumn } from '../../PredefinedConfig/CalculatedColumnState';
|
|
3
3
|
import { AdaptableColumn } from '../../types';
|
|
4
|
+
import { ColDef } from '@ag-grid-community/core';
|
|
4
5
|
export declare class CalculatedColumnInternalApi extends ApiBase {
|
|
5
6
|
/**
|
|
6
7
|
* Returns all the references in the AdaptableState of the given CalculatedColumn
|
|
@@ -27,4 +28,5 @@ export declare class CalculatedColumnInternalApi extends ApiBase {
|
|
|
27
28
|
isQuantileAggregatedExpression(input: string): boolean;
|
|
28
29
|
getExpressionFromCalculatedColumn(calculatedColumn: CalculatedColumn): string;
|
|
29
30
|
fireCalculatedColumnChangedEvent(trigger: string, calculatedColumn: CalculatedColumn): void;
|
|
31
|
+
getColDefsForCalculatedColumns(): ColDef[];
|
|
30
32
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CalculatedColumnInternalApi = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
6
|
+
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
7
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
8
|
+
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
|
+
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
5
10
|
class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
6
11
|
/**
|
|
7
12
|
* Returns all the references in the AdaptableState of the given CalculatedColumn
|
|
@@ -90,5 +95,72 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
90
95
|
};
|
|
91
96
|
this.adaptable.api.eventApi.emit('CalculatedColumnChanged', calculatedColumnChangedInfo);
|
|
92
97
|
}
|
|
98
|
+
getColDefsForCalculatedColumns() {
|
|
99
|
+
const defaultSpecialColumnSettings = this.getGridApi().internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef();
|
|
100
|
+
const defaultCalculatedColumnSettings = (0, ObjectFactory_1.CreateEmptyCalculatedColumn)(defaultSpecialColumnSettings).CalculatedColumnSettings;
|
|
101
|
+
return this.getCalculatedColumnApi()
|
|
102
|
+
.getCalculatedColumns()
|
|
103
|
+
.map((calculatedColumn) => {
|
|
104
|
+
const calculatedColumnSettings = Object.assign(Object.assign({}, defaultCalculatedColumnSettings), calculatedColumn.CalculatedColumnSettings);
|
|
105
|
+
if (!calculatedColumnSettings.DataType) {
|
|
106
|
+
calculatedColumnSettings.DataType = this.getAdaptableApi()
|
|
107
|
+
.internalApi.getAdaptableInstance()
|
|
108
|
+
.CalculatedColumnExpressionService.getCalculatedColumnDataType(calculatedColumn.Query);
|
|
109
|
+
}
|
|
110
|
+
const columnTypes = [
|
|
111
|
+
GeneralConstants_1.AB_SPECIAL_COLUMN,
|
|
112
|
+
this.getGridApi().internalApi.getAgGridDataType(calculatedColumnSettings.DataType),
|
|
113
|
+
];
|
|
114
|
+
if (ArrayExtensions_1.default.IsNotNullOrEmpty(calculatedColumnSettings.ColumnTypes)) {
|
|
115
|
+
columnTypes.push(...calculatedColumnSettings.ColumnTypes);
|
|
116
|
+
}
|
|
117
|
+
const isExternalEvaluation = !this.getExpressionApi().internalApi.evaluateExpressionInAdaptableQL('CalculatedColumn', calculatedColumn, this.getExpressionApi().getAdaptableQueryExpression(calculatedColumn.Query));
|
|
118
|
+
const valueGetter = (params) => {
|
|
119
|
+
var _a, _b;
|
|
120
|
+
if (isExternalEvaluation) {
|
|
121
|
+
return (_a = params.data) === null || _a === void 0 ? void 0 : _a[calculatedColumn.ColumnId];
|
|
122
|
+
}
|
|
123
|
+
// if the grid data is NOT client side, we can aggregate only simple scalar expression (which depend on row data, not on other rows)
|
|
124
|
+
if (this.getGridApi().getAgGridRowModelType() !== 'clientSide' &&
|
|
125
|
+
StringExtensions_1.default.IsNotNullOrEmpty(calculatedColumn.Query.AggregatedScalarExpression)) {
|
|
126
|
+
return (_b = params.data) === null || _b === void 0 ? void 0 : _b[calculatedColumn.ColumnId];
|
|
127
|
+
}
|
|
128
|
+
return this.getAdaptableApi()
|
|
129
|
+
.internalApi.getAdaptableInstance()
|
|
130
|
+
.CalculatedColumnExpressionService.evaluateCalculatedColumnQuery(calculatedColumn, params.node);
|
|
131
|
+
};
|
|
132
|
+
const newColDef = {
|
|
133
|
+
headerName: calculatedColumn.FriendlyName
|
|
134
|
+
? calculatedColumn.FriendlyName
|
|
135
|
+
: calculatedColumn.ColumnId,
|
|
136
|
+
colId: calculatedColumn.ColumnId,
|
|
137
|
+
hide: false,
|
|
138
|
+
editable: false,
|
|
139
|
+
width: calculatedColumnSettings.Width,
|
|
140
|
+
enableValue: calculatedColumnSettings.Aggregatable,
|
|
141
|
+
filter: calculatedColumnSettings.Filterable,
|
|
142
|
+
floatingFilter: calculatedColumnSettings.Filterable,
|
|
143
|
+
resizable: calculatedColumnSettings.Resizable,
|
|
144
|
+
enableRowGroup: calculatedColumnSettings.Groupable,
|
|
145
|
+
sortable: calculatedColumnSettings.Sortable,
|
|
146
|
+
enablePivot: calculatedColumnSettings.Pivotable,
|
|
147
|
+
suppressHeaderMenuButton: calculatedColumnSettings.SuppressMenu,
|
|
148
|
+
suppressMovable: calculatedColumnSettings.SuppressMovable,
|
|
149
|
+
type: columnTypes,
|
|
150
|
+
valueGetter,
|
|
151
|
+
};
|
|
152
|
+
if (calculatedColumnSettings.ShowToolTip != null &&
|
|
153
|
+
calculatedColumnSettings.ShowToolTip == true) {
|
|
154
|
+
newColDef.tooltipValueGetter = () => {
|
|
155
|
+
return this.getAdaptableApi().internalApi.getAdaptableQueryExpressionText(calculatedColumn.Query);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
if (calculatedColumnSettings.HeaderToolTip) {
|
|
159
|
+
newColDef.headerTooltip = calculatedColumnSettings.HeaderToolTip;
|
|
160
|
+
}
|
|
161
|
+
this.getAdaptableApi().logInfo('Setting up Calculated Column: ' + calculatedColumn.ColumnId);
|
|
162
|
+
return newColDef;
|
|
163
|
+
});
|
|
164
|
+
}
|
|
93
165
|
}
|
|
94
166
|
exports.CalculatedColumnInternalApi = CalculatedColumnInternalApi;
|
|
@@ -49,6 +49,7 @@ export declare class ColumnFilterInternalApi extends ApiBase {
|
|
|
49
49
|
* Fires Column Filter Applied Event - typically used to enable filtering on the server
|
|
50
50
|
*/
|
|
51
51
|
fireColumnFilterAppliedEvent(): void;
|
|
52
|
+
fireGridFilterAppliedEvent(): void;
|
|
52
53
|
/**
|
|
53
54
|
* Compares to sets of Column Filters to see if they are identical
|
|
54
55
|
* @param filters1
|
|
@@ -56,4 +57,5 @@ export declare class ColumnFilterInternalApi extends ApiBase {
|
|
|
56
57
|
*/
|
|
57
58
|
areColumnFiltersDifferent(oldFilters: ColumnFilter[], newFilters: ColumnFilter[]): boolean;
|
|
58
59
|
getPredicateDefShortcuts(predicateDef: AdaptablePredicateDef): string[];
|
|
60
|
+
getFilterValuesMaxNumberOfItems(column: AdaptableColumn): number | undefined;
|
|
59
61
|
}
|
|
@@ -175,7 +175,7 @@ class ColumnFilterInternalApi extends ApiBase_1.ApiBase {
|
|
|
175
175
|
* Fires Column Filter Applied Event - typically used to enable filtering on the server
|
|
176
176
|
*/
|
|
177
177
|
fireColumnFilterAppliedEvent() {
|
|
178
|
-
if (this.adaptable.
|
|
178
|
+
if (this.adaptable.isReady) {
|
|
179
179
|
const adaptableApi = this.getAdaptableApi();
|
|
180
180
|
const columnFilterAppliedInfo = {
|
|
181
181
|
columnFilters: this.getColumnFilterApi().getColumnFilters(),
|
|
@@ -186,6 +186,18 @@ class ColumnFilterInternalApi extends ApiBase_1.ApiBase {
|
|
|
186
186
|
this.adaptable.api.eventApi.emit('ColumnFilterApplied', columnFilterAppliedInfo);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
+
fireGridFilterAppliedEvent() {
|
|
190
|
+
if (this.adaptable.isReady) {
|
|
191
|
+
const adaptableApi = this.getAdaptableApi();
|
|
192
|
+
const gridFilterAppliedInfo = {
|
|
193
|
+
columnFilters: this.getColumnFilterApi().getColumnFilters(),
|
|
194
|
+
adaptableApi: adaptableApi,
|
|
195
|
+
userName: adaptableApi.optionsApi.getUserName(),
|
|
196
|
+
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
197
|
+
};
|
|
198
|
+
this.adaptable.api.eventApi.emit('GridFilterApplied', gridFilterAppliedInfo);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
189
201
|
/**
|
|
190
202
|
* Compares to sets of Column Filters to see if they are identical
|
|
191
203
|
* @param filters1
|
|
@@ -206,5 +218,15 @@ class ColumnFilterInternalApi extends ApiBase_1.ApiBase {
|
|
|
206
218
|
}
|
|
207
219
|
return predicateShortcuts;
|
|
208
220
|
}
|
|
221
|
+
getFilterValuesMaxNumberOfItems(column) {
|
|
222
|
+
const maxFilterValues = this.getColumnFilterOptions().valuesFilterOptions.maxFilterValuesToDisplay;
|
|
223
|
+
if (typeof maxFilterValues === 'function') {
|
|
224
|
+
const columnFilterContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { column: column });
|
|
225
|
+
return maxFilterValues(columnFilterContext);
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
return maxFilterValues;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
209
231
|
}
|
|
210
232
|
exports.ColumnFilterInternalApi = ColumnFilterInternalApi;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
-
import { Column } from '@ag-grid-community/core';
|
|
2
|
+
import { Column, IRowNode } from '@ag-grid-community/core';
|
|
3
|
+
import { CustomSort } from '../../PredefinedConfig/CustomSortState';
|
|
4
|
+
import { ColumnValuesComparer } from '../../AdaptableOptions/CustomSortOptions';
|
|
3
5
|
export declare class ColumnInternalApi extends ApiBase {
|
|
4
6
|
/**
|
|
5
7
|
* Retrieves 'ColumnType' property for a given Column
|
|
@@ -24,4 +26,5 @@ export declare class ColumnInternalApi extends ApiBase {
|
|
|
24
26
|
*/
|
|
25
27
|
getAgGridColumnForAdaptableColumn(columnId: string): Column;
|
|
26
28
|
isActionRowButtonColumn(columnId: string): boolean;
|
|
29
|
+
getActiveColumnComparator(columnId: string, customSort?: CustomSort, customSortComparer?: ColumnValuesComparer): (valueA: any, valueB: any, nodeA?: IRowNode, nodeB?: IRowNode, isInverted?: boolean) => number | undefined;
|
|
27
30
|
}
|
|
@@ -42,5 +42,17 @@ class ColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
42
42
|
isActionRowButtonColumn(columnId) {
|
|
43
43
|
return columnId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS;
|
|
44
44
|
}
|
|
45
|
+
getActiveColumnComparator(columnId, customSort, customSortComparer) {
|
|
46
|
+
if ((!customSort || (customSort === null || customSort === void 0 ? void 0 : customSort.IsSuspended)) && !customSortComparer) {
|
|
47
|
+
// defaults to AG-Grid column definition comparator if no CustomSort is defined&active
|
|
48
|
+
const colDefComparator = this.adaptable.agGridColumnAdapter.getUserColDefProperty(columnId, 'comparator');
|
|
49
|
+
return colDefComparator;
|
|
50
|
+
}
|
|
51
|
+
// CustomSort Comparer function takes precedence over CustomSort SortedValues
|
|
52
|
+
const comparerFunction = customSortComparer
|
|
53
|
+
? customSortComparer.comparer
|
|
54
|
+
: this.getCustomSortApi().internalApi.getDefaultCustomSortComparer(customSort.ColumnId, customSort.SortedValues);
|
|
55
|
+
return comparerFunction;
|
|
56
|
+
}
|
|
45
57
|
}
|
|
46
58
|
exports.ColumnInternalApi = ColumnInternalApi;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommentsInternalApi = void 0;
|
|
4
|
+
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
+
class CommentsInternalApi extends ApiBase_1.ApiBase {
|
|
6
|
+
areCommentsAvailable() {
|
|
7
|
+
var _a;
|
|
8
|
+
const currentLayout = this.getLayoutApi().getCurrentLayout();
|
|
9
|
+
if (currentLayout.EnablePivot) {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
if ((_a = currentLayout === null || currentLayout === void 0 ? void 0 : currentLayout.RowGroupedColumns) === null || _a === void 0 ? void 0 : _a.length) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.CommentsInternalApi = CommentsInternalApi;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
-
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
2
|
import { ColumnValuesComparer } from '../../AdaptableOptions/CustomSortOptions';
|
|
3
|
+
import { AdaptableComparerFunction } from '../../PredefinedConfig/Common/AdaptableComparerFunction';
|
|
4
4
|
export declare class CustomSortInternalApi extends ApiBase {
|
|
5
|
-
getCustomSortComparer(
|
|
5
|
+
getCustomSortComparer(columnId: string): ColumnValuesComparer | undefined;
|
|
6
|
+
getDefaultCustomSortComparer(columnId: string, columnValues: any[]): AdaptableComparerFunction;
|
|
6
7
|
}
|
|
@@ -3,9 +3,40 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CustomSortInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
5
|
class CustomSortInternalApi extends ApiBase_1.ApiBase {
|
|
6
|
-
getCustomSortComparer(
|
|
6
|
+
getCustomSortComparer(columnId) {
|
|
7
7
|
var _a;
|
|
8
|
+
const column = this.getColumnApi().getColumnWithColumnId(columnId);
|
|
8
9
|
return (_a = this.getCustomSortOptions().customSortComparers) === null || _a === void 0 ? void 0 : _a.find((csc) => this.adaptable.api.scopeApi.isColumnInScope(column, csc.scope));
|
|
9
10
|
}
|
|
11
|
+
getDefaultCustomSortComparer(columnId, columnValues) {
|
|
12
|
+
// have to return a function that may not have access to this
|
|
13
|
+
const adaptable = this.adaptable;
|
|
14
|
+
return function compareItemsOfCustomSort(valueA, valueB, nodeA, nodeB) {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
let firstElementValueString = (_a = (nodeA && adaptable.getDisplayValueFromRowNode(nodeA, columnId))) !== null && _a !== void 0 ? _a : valueA;
|
|
17
|
+
let secondElementValueString = (_b = (nodeB && adaptable.getDisplayValueFromRowNode(nodeB, columnId))) !== null && _b !== void 0 ? _b : valueB;
|
|
18
|
+
let indexFirstElement = columnValues.indexOf(firstElementValueString);
|
|
19
|
+
let containsFirstElement = indexFirstElement >= 0;
|
|
20
|
+
let indexSecondElement = columnValues.indexOf(secondElementValueString);
|
|
21
|
+
let containsSecondElement = indexSecondElement >= 0;
|
|
22
|
+
//if none of the element are in the list we jsut return normal compare
|
|
23
|
+
if (!containsFirstElement && !containsSecondElement) {
|
|
24
|
+
if (valueA == valueB) {
|
|
25
|
+
return 0;
|
|
26
|
+
}
|
|
27
|
+
return valueA < valueB ? -1 : 1;
|
|
28
|
+
}
|
|
29
|
+
//if first item not in the list make sure we put it after the second item
|
|
30
|
+
if (!containsFirstElement) {
|
|
31
|
+
return 1;
|
|
32
|
+
}
|
|
33
|
+
//if second item not in the list make sure we put it after the first item
|
|
34
|
+
if (!containsSecondElement) {
|
|
35
|
+
return -1;
|
|
36
|
+
}
|
|
37
|
+
//return the comparison from the list if the two items are in the list
|
|
38
|
+
return indexFirstElement - indexSecondElement;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
10
41
|
}
|
|
11
42
|
exports.CustomSortInternalApi = CustomSortInternalApi;
|
|
@@ -8,7 +8,7 @@ class DataSetInternalApi extends ApiBase_1.ApiBase {
|
|
|
8
8
|
* @param dataSet Data Set which has been selected
|
|
9
9
|
*/
|
|
10
10
|
fireDataSetSelectedEvent(dataSet) {
|
|
11
|
-
if (this.adaptable.
|
|
11
|
+
if (this.adaptable.isReady) {
|
|
12
12
|
const dataSetSelectedInfo = {
|
|
13
13
|
adaptableApi: this.adaptable.api,
|
|
14
14
|
dataSet,
|
|
@@ -2,7 +2,7 @@ import { ApiBase } from '../Implementation/ApiBase';
|
|
|
2
2
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
3
|
import { Report } from '../../PredefinedConfig/ExportState';
|
|
4
4
|
import { AdaptableColumnType } from '../../PredefinedConfig/Common/Types';
|
|
5
|
-
import { ExcelDataType } from '@ag-grid-community/core';
|
|
5
|
+
import { ExcelDataType, ExcelStyle } from '@ag-grid-community/core';
|
|
6
6
|
import { AdaptableColumnDataType } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
7
7
|
import { DataFormatType } from '../../AdaptableOptions/ExportOptions';
|
|
8
8
|
export declare class ExportInternalApi extends ApiBase {
|
|
@@ -17,4 +17,5 @@ export declare class ExportInternalApi extends ApiBase {
|
|
|
17
17
|
isDateCellExportedAsFormattedValue(): boolean;
|
|
18
18
|
getCellExportFormatType(columnDataType: AdaptableColumnDataType): DataFormatType;
|
|
19
19
|
isDestinationEnabled(destination: string): boolean;
|
|
20
|
+
getExcelStylesForVisualDataExport(original_excelStyles: ExcelStyle[]): ExcelStyle[];
|
|
20
21
|
}
|
|
@@ -95,7 +95,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
isVisualDataExportInProgress() {
|
|
98
|
-
return this.getAdaptableState().System.Export.
|
|
98
|
+
return this.getAdaptableState().System.Export.visualDataExportInProgress;
|
|
99
99
|
}
|
|
100
100
|
isDateCellExportedAsFormattedValue() {
|
|
101
101
|
return (!!this.getExportOptions().exportDateFormat ||
|
|
@@ -126,5 +126,8 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
|
|
|
126
126
|
}
|
|
127
127
|
return true;
|
|
128
128
|
}
|
|
129
|
+
getExcelStylesForVisualDataExport(original_excelStyles) {
|
|
130
|
+
return [];
|
|
131
|
+
}
|
|
129
132
|
}
|
|
130
133
|
exports.ExportInternalApi = ExportInternalApi;
|
|
@@ -42,7 +42,7 @@ class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
|
42
42
|
editable: false,
|
|
43
43
|
width: actionColumnConfig.width,
|
|
44
44
|
resizable: actionColumnConfig.resizable,
|
|
45
|
-
|
|
45
|
+
suppressHeaderMenuButton: true,
|
|
46
46
|
suppressMovable: !actionColumnConfig.movable,
|
|
47
47
|
filter: false,
|
|
48
48
|
sortable: false,
|
|
@@ -62,7 +62,7 @@ class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
|
62
62
|
editable: false,
|
|
63
63
|
width: actionColumnConfig.defaultWidth,
|
|
64
64
|
resizable: true,
|
|
65
|
-
|
|
65
|
+
suppressHeaderMenuButton: true,
|
|
66
66
|
suppressMovable: false,
|
|
67
67
|
filter: false,
|
|
68
68
|
sortable: false,
|
|
@@ -73,8 +73,9 @@ class FormatColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
73
73
|
// this.getFormatColumnsWithColumnScope(formatColumns)
|
|
74
74
|
(this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope) ||
|
|
75
75
|
// this.getFormatColumnsWithDataTypeScope(formatColumns)
|
|
76
|
-
this.adaptable.api.scopeApi.scopeHasDataType(fc.Scope) ||
|
|
77
|
-
|
|
76
|
+
this.adaptable.api.scopeApi.scopeHasDataType(fc.Scope) ||
|
|
77
|
+
// this.getFormatColumnsWithAllScope(formatColumns)
|
|
78
|
+
this.adaptable.api.scopeApi.scopeIsAll(fc.Scope) || this.adaptable.api.scopeApi.scopeHasColumnType(fc.Scope))
|
|
78
79
|
);
|
|
79
80
|
});
|
|
80
81
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
3
3
|
import { FreeTextColumn } from '../../PredefinedConfig/FreeTextColumnState';
|
|
4
|
+
import { ColDef } from '@ag-grid-community/core';
|
|
4
5
|
export declare class FreeTextColumnInternalApi extends ApiBase {
|
|
5
6
|
/**
|
|
6
7
|
* Checks if a User Edit was in a Free Text Column
|
|
@@ -12,4 +13,5 @@ export declare class FreeTextColumnInternalApi extends ApiBase {
|
|
|
12
13
|
* @param freeTextColumn FreeTextColumn to be checked
|
|
13
14
|
*/
|
|
14
15
|
getFreeTextColumnModuleReferences(freeTextColumn: FreeTextColumn): string[];
|
|
16
|
+
getColDefsForFreeTextColumns(): ColDef<any, any>[];
|
|
15
17
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FreeTextColumnInternalApi = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
6
|
+
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
7
|
+
const AdaptableNumberEditor_1 = require("../../agGrid/editors/AdaptableNumberEditor");
|
|
8
|
+
const AdaptableDateEditor_1 = require("../../agGrid/editors/AdaptableDateEditor");
|
|
9
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
10
|
+
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
5
11
|
class FreeTextColumnInternalApi extends ApiBase_1.ApiBase {
|
|
6
12
|
/**
|
|
7
13
|
* Checks if a User Edit was in a Free Text Column
|
|
@@ -40,5 +46,60 @@ class FreeTextColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
40
46
|
});
|
|
41
47
|
return references;
|
|
42
48
|
}
|
|
49
|
+
getColDefsForFreeTextColumns() {
|
|
50
|
+
const defaultSpecialColumnSettings = this.getGridApi().internalApi.deriveSpecialColumnSettingsFromAgGridDefaultColDef();
|
|
51
|
+
const defaultFreeTextColumnSettings = (0, ObjectFactory_1.CreateEmptyFreeTextColumn)(defaultSpecialColumnSettings).FreeTextColumnSettings;
|
|
52
|
+
return this.getFreeTextColumnApi()
|
|
53
|
+
.getFreeTextColumns()
|
|
54
|
+
.map((freeTextColumn) => {
|
|
55
|
+
var _a;
|
|
56
|
+
const freeTextColumnSettings = Object.assign(Object.assign({}, defaultFreeTextColumnSettings), freeTextColumn.FreeTextColumnSettings);
|
|
57
|
+
const dataTypeEditor = freeTextColumnSettings.DataType === 'Number'
|
|
58
|
+
? AdaptableNumberEditor_1.AdaptableNumberEditor
|
|
59
|
+
: freeTextColumnSettings.DataType === 'Date'
|
|
60
|
+
? AdaptableDateEditor_1.AdaptableDateEditor
|
|
61
|
+
: null;
|
|
62
|
+
const columnTypes = [
|
|
63
|
+
GeneralConstants_1.AB_SPECIAL_COLUMN,
|
|
64
|
+
this.getGridApi().internalApi.getAgGridDataType(freeTextColumnSettings.DataType),
|
|
65
|
+
];
|
|
66
|
+
if (ArrayExtensions_1.default.IsNotNullOrEmpty((_a = freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.FreeTextColumnSettings) === null || _a === void 0 ? void 0 : _a.ColumnTypes)) {
|
|
67
|
+
columnTypes.push(...freeTextColumn.FreeTextColumnSettings.ColumnTypes);
|
|
68
|
+
}
|
|
69
|
+
const newColDef = {
|
|
70
|
+
headerName: freeTextColumn.FriendlyName || freeTextColumn.ColumnId,
|
|
71
|
+
colId: freeTextColumn.ColumnId,
|
|
72
|
+
editable: true,
|
|
73
|
+
hide: false,
|
|
74
|
+
width: freeTextColumnSettings.Width,
|
|
75
|
+
enableValue: freeTextColumnSettings.Aggregatable,
|
|
76
|
+
filter: freeTextColumnSettings.Filterable,
|
|
77
|
+
floatingFilter: freeTextColumnSettings.Filterable,
|
|
78
|
+
resizable: freeTextColumnSettings.Resizable,
|
|
79
|
+
enableRowGroup: freeTextColumnSettings.Groupable,
|
|
80
|
+
sortable: freeTextColumnSettings.Sortable,
|
|
81
|
+
enablePivot: freeTextColumnSettings.Pivotable,
|
|
82
|
+
suppressHeaderMenuButton: freeTextColumnSettings.SuppressMenu,
|
|
83
|
+
suppressMovable: freeTextColumnSettings.SuppressMovable,
|
|
84
|
+
cellEditor: dataTypeEditor !== null && dataTypeEditor !== void 0 ? dataTypeEditor : (freeTextColumn.TextEditor && freeTextColumn.TextEditor == 'Large'
|
|
85
|
+
? 'agLargeTextCellEditor'
|
|
86
|
+
: 'agTextCellEditor'),
|
|
87
|
+
type: columnTypes,
|
|
88
|
+
valueSetter: (params) => {
|
|
89
|
+
return (params.data[freeTextColumn.ColumnId] = params.newValue);
|
|
90
|
+
},
|
|
91
|
+
// use a Boolean Cell Data Type if the Free Text Column is boolean
|
|
92
|
+
cellDataType: freeTextColumnSettings.DataType && freeTextColumnSettings.DataType == 'Boolean'
|
|
93
|
+
? 'boolean'
|
|
94
|
+
: undefined,
|
|
95
|
+
valueGetter: (params) => this.getFreeTextColumnApi().getFreeTextColumnValueForRowNode(freeTextColumn, params.node),
|
|
96
|
+
};
|
|
97
|
+
if (freeTextColumnSettings.HeaderToolTip) {
|
|
98
|
+
newColDef.headerTooltip = freeTextColumnSettings.HeaderToolTip;
|
|
99
|
+
}
|
|
100
|
+
this.getAdaptableApi().logInfo('Setting up FreeText Column: ' + freeTextColumn.ColumnId);
|
|
101
|
+
return newColDef;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
43
104
|
}
|
|
44
105
|
exports.FreeTextColumnInternalApi = FreeTextColumnInternalApi;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
+
import { GridFilter } from '../../types';
|
|
2
3
|
export declare class GridFilterInternalApi extends ApiBase {
|
|
3
4
|
fireGridFilterAppliedEvent(): void;
|
|
5
|
+
/**
|
|
6
|
+
* Compares to Grid Filters to see if they are identical
|
|
7
|
+
*/
|
|
8
|
+
isGridFilterDifferent(oldFilter: GridFilter, newFilter: GridFilter): boolean;
|
|
4
9
|
}
|
|
@@ -4,7 +4,7 @@ exports.GridFilterInternalApi = void 0;
|
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
5
|
class GridFilterInternalApi extends ApiBase_1.ApiBase {
|
|
6
6
|
fireGridFilterAppliedEvent() {
|
|
7
|
-
if (this.adaptable.
|
|
7
|
+
if (this.adaptable.isReady) {
|
|
8
8
|
const currentGridFilter = this.getGridFilterApi().getCurrentGridFilter();
|
|
9
9
|
const adaptableApi = this.getAdaptableApi();
|
|
10
10
|
const gridFilterAppliedInfo = {
|
|
@@ -19,5 +19,11 @@ class GridFilterInternalApi extends ApiBase_1.ApiBase {
|
|
|
19
19
|
adaptableApi.eventApi.emit('GridFilterApplied', gridFilterAppliedInfo);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Compares to Grid Filters to see if they are identical
|
|
24
|
+
*/
|
|
25
|
+
isGridFilterDifferent(oldFilter, newFilter) {
|
|
26
|
+
return (oldFilter === null || oldFilter === void 0 ? void 0 : oldFilter.Expression) === (newFilter === null || newFilter === void 0 ? void 0 : newFilter.Expression);
|
|
27
|
+
}
|
|
22
28
|
}
|
|
23
29
|
exports.GridFilterInternalApi = GridFilterInternalApi;
|