@adaptabletools/adaptable-cjs 18.0.0-canary.3 → 18.0.0-canary.31
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 +27 -21
- package/base.css.map +1 -1
- package/index.css +108 -88
- package/index.css.map +1 -1
- package/package.json +4 -5
- package/src/AdaptableInterfaces/IAdaptable.d.ts +61 -109
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +3 -2
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +3 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -7
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +2 -0
- package/src/AdaptableOptions/AdaptablePlugin.js +2 -0
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +11 -4
- package/src/AdaptableOptions/ColumnOptions.d.ts +9 -4
- package/src/AdaptableOptions/CommentOptions.d.ts +39 -0
- package/src/AdaptableOptions/CustomSortOptions.d.ts +2 -2
- package/src/AdaptableOptions/DataImportOptions.d.ts +2 -2
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/GroupingOptions.d.ts +0 -26
- package/src/AdaptableOptions/MenuOptions.d.ts +11 -71
- package/src/AdaptableOptions/MenuOptions.js +0 -101
- package/src/AdaptableOptions/NoteOptions.d.ts +25 -0
- package/src/AdaptableOptions/PredicateOptions.d.ts +2 -2
- package/src/AdaptableOptions/StateOptions.d.ts +6 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +19 -2
- package/src/Api/AdaptableApi.d.ts +9 -4
- package/src/Api/BulkUpdateApi.d.ts +0 -5
- package/src/Api/ColumnApi.d.ts +13 -0
- package/src/Api/CommentApi.d.ts +20 -22
- 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/FlashingCellApi.d.ts +2 -2
- package/src/Api/GridApi.d.ts +42 -14
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +30 -0
- package/src/Api/Implementation/ActionRowApiImpl.js +3 -7
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +3 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +5 -2
- package/src/Api/Implementation/AlertApiImpl.js +5 -10
- 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/CalendarApiImpl.js +1 -6
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -5
- package/src/Api/Implementation/CellSummaryApiImpl.js +2 -23
- package/src/Api/Implementation/ChartingApiImpl.js +3 -3
- package/src/Api/Implementation/ColumnApiImpl.d.ts +5 -0
- package/src/Api/Implementation/ColumnApiImpl.js +48 -16
- package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
- package/src/Api/Implementation/CommentsApiImpl.d.ts +8 -5
- package/src/Api/Implementation/CommentsApiImpl.js +12 -6
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ConfigApiImpl.js +34 -30
- package/src/Api/Implementation/DashboardApiImpl.js +1 -6
- package/src/Api/Implementation/ExportApiImpl.js +5 -10
- package/src/Api/Implementation/ExpressionApiImpl.js +14 -19
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -1
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +2 -2
- package/src/Api/Implementation/FlashingCellApiImpl.js +3 -8
- package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +10 -3
- package/src/Api/Implementation/GridApiImpl.js +78 -23
- package/src/Api/Implementation/LayoutApiImpl.d.ts +4 -7
- package/src/Api/Implementation/LayoutApiImpl.js +19 -13
- 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/PredicateApiImpl.js +2 -2
- package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
- package/src/Api/Implementation/ScopeApiImpl.d.ts +26 -24
- package/src/Api/Implementation/ScopeApiImpl.js +64 -18
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +0 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +0 -3
- package/src/Api/Implementation/TeamSharingApiImpl.js +3 -15
- package/src/Api/Implementation/ThemeApiImpl.js +2 -7
- package/src/Api/Implementation/ToolPanelApiImpl.js +6 -6
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +14 -8
- package/src/Api/Implementation/UserInterfaceApiImpl.js +30 -25
- package/src/Api/Internal/ActionRowInternalApi.d.ts +6 -1
- package/src/Api/Internal/ActionRowInternalApi.js +118 -38
- package/src/Api/Internal/AdaptableInternalApi.d.ts +6 -8
- package/src/Api/Internal/AdaptableInternalApi.js +25 -37
- package/src/Api/Internal/AlertInternalApi.d.ts +2 -2
- package/src/Api/Internal/AlertInternalApi.js +4 -17
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +79 -14
- package/src/Api/Internal/ChartingInternalApi.js +13 -13
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +2 -0
- package/src/Api/Internal/ColumnFilterInternalApi.js +35 -31
- package/src/Api/Internal/ColumnInternalApi.d.ts +6 -1
- package/src/Api/Internal/ColumnInternalApi.js +20 -1
- 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 +33 -2
- package/src/Api/Internal/DashboardInternalApi.js +5 -11
- package/src/Api/Internal/DataImportInternalApi.js +3 -9
- package/src/Api/Internal/DataSetInternalApi.js +3 -8
- package/src/Api/Internal/ExportInternalApi.d.ts +2 -1
- package/src/Api/Internal/ExportInternalApi.js +8 -5
- package/src/Api/Internal/ExpressionInternalApi.js +2 -12
- package/src/Api/Internal/Fdc3InternalApi.js +3 -12
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +3 -6
- package/src/Api/Internal/FormatColumnInternalApi.js +39 -30
- package/src/Api/Internal/FreeTextColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/FreeTextColumnInternalApi.js +62 -1
- package/src/Api/Internal/GridFilterInternalApi.d.ts +5 -0
- package/src/Api/Internal/GridFilterInternalApi.js +9 -9
- package/src/Api/Internal/GridInternalApi.d.ts +23 -3
- package/src/Api/Internal/GridInternalApi.js +151 -44
- package/src/Api/Internal/LayoutInternalApi.d.ts +2 -0
- package/src/Api/Internal/LayoutInternalApi.js +26 -19
- package/src/Api/Internal/NoteInternalApi.d.ts +4 -0
- package/src/Api/Internal/NoteInternalApi.js +18 -0
- package/src/Api/Internal/PredicateInternalApi.d.ts +6 -6
- package/src/Api/Internal/PredicateInternalApi.js +5 -40
- package/src/Api/Internal/ScheduleInternalApi.js +1 -6
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +2 -2
- package/src/Api/Internal/StyledColumnInternalApi.js +8 -9
- package/src/Api/Internal/SystemStatusInternalApi.js +1 -7
- package/src/Api/Internal/TeamSharingInternalApi.js +3 -8
- package/src/Api/Internal/ThemeInternalApi.js +1 -1
- package/src/Api/Internal/UserInterfaceInternalApi.js +1 -1
- package/src/Api/InteropioPluginApi.d.ts +2 -2
- package/src/Api/LayoutApi.d.ts +17 -9
- package/src/Api/NoteApi.d.ts +48 -0
- package/src/Api/OptionsApi.d.ts +8 -8
- package/src/Api/ScopeApi.d.ts +34 -24
- package/src/Api/UserInterfaceApi.d.ts +15 -13
- package/src/EnvVars.d.ts +3 -0
- package/src/EnvVars.js +8 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
- package/src/PredefinedConfig/AlertState.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/AdaptableObject.d.ts +4 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -2
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +1 -0
- package/src/PredefinedConfig/Common/AggregationColumns.js +5 -1
- package/src/PredefinedConfig/Common/CellSummary.d.ts +5 -14
- package/src/PredefinedConfig/Common/{AdaptableScope.d.ts → ColumnScope.d.ts} +4 -1
- package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +4 -0
- package/src/PredefinedConfig/Common/Enums.d.ts +4 -1
- package/src/PredefinedConfig/Common/Enums.js +3 -0
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +2 -2
- package/src/PredefinedConfig/Common/Menu.d.ts +15 -1
- package/src/PredefinedConfig/Common/Menu.js +117 -0
- package/src/PredefinedConfig/Common/RowScope.d.ts +17 -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 +30 -0
- package/src/PredefinedConfig/Common/Types.d.ts +4 -4
- package/src/PredefinedConfig/Common/Types.js +4 -1
- package/src/PredefinedConfig/ExportState.d.ts +2 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +9 -5
- package/src/PredefinedConfig/LayoutState.d.ts +5 -0
- package/src/PredefinedConfig/{NotesState.d.ts → NoteState.d.ts} +12 -22
- package/src/PredefinedConfig/NoteState.js +2 -0
- package/src/PredefinedConfig/PlusMinusState.d.ts +2 -2
- package/src/PredefinedConfig/PopupState.d.ts +1 -2
- package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -3
- package/src/PredefinedConfig/Selection/GridCell.d.ts +13 -0
- package/src/PredefinedConfig/ShortcutState.d.ts +2 -2
- package/src/PredefinedConfig/StyledColumnState.d.ts +5 -5
- package/src/PredefinedConfig/SystemState.d.ts +12 -4
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -4
- package/src/Redux/ActionsReducers/CommentsRedux.js +1 -39
- 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/PopupRedux.d.ts +5 -13
- package/src/Redux/ActionsReducers/PopupRedux.js +1 -22
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +15 -4
- package/src/Redux/ActionsReducers/SystemRedux.js +27 -11
- package/src/Redux/Store/AdaptableStore.d.ts +4 -6
- package/src/Redux/Store/AdaptableStore.js +69 -79
- package/src/Redux/Store/Interface/IAdaptableStore.d.ts +8 -2
- package/src/Strategy/AdaptableModuleBase.d.ts +11 -12
- package/src/Strategy/AdaptableModuleBase.js +17 -23
- package/src/Strategy/AlertModule.d.ts +2 -3
- package/src/Strategy/AlertModule.js +4 -57
- package/src/Strategy/BulkUpdateModule.d.ts +1 -1
- package/src/Strategy/BulkUpdateModule.js +2 -1
- package/src/Strategy/CalculatedColumnModule.d.ts +4 -5
- package/src/Strategy/CalculatedColumnModule.js +8 -28
- package/src/Strategy/CellSummaryModule.d.ts +10 -8
- package/src/Strategy/CellSummaryModule.js +85 -70
- package/src/Strategy/ChartingModule.d.ts +0 -1
- package/src/Strategy/ChartingModule.js +2 -22
- package/src/Strategy/ColumnFilterModule.d.ts +3 -4
- package/src/Strategy/ColumnFilterModule.js +37 -121
- package/src/Strategy/ColumnInfoModule.d.ts +2 -2
- package/src/Strategy/ColumnInfoModule.js +6 -4
- package/src/Strategy/CommentModule.d.ts +11 -0
- package/src/Strategy/CommentModule.js +75 -0
- package/src/Strategy/CustomSortModule.d.ts +1 -1
- package/src/Strategy/CustomSortModule.js +4 -3
- package/src/Strategy/DashboardModule.d.ts +3 -4
- package/src/Strategy/DashboardModule.js +11 -28
- package/src/Strategy/DataChangeHistoryModule.d.ts +1 -0
- package/src/Strategy/DataChangeHistoryModule.js +3 -1
- package/src/Strategy/DataImportModule.d.ts +4 -4
- package/src/Strategy/DataImportModule.js +8 -8
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.d.ts +1 -2
- package/src/Strategy/ExportModule.js +37 -40
- package/src/Strategy/Fdc3Module.d.ts +1 -1
- package/src/Strategy/Fdc3Module.js +3 -13
- package/src/Strategy/FlashingCellModule.d.ts +3 -4
- package/src/Strategy/FlashingCellModule.js +8 -21
- package/src/Strategy/FormatColumnModule.d.ts +1 -3
- package/src/Strategy/FormatColumnModule.js +27 -91
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -2
- package/src/Strategy/FreeTextColumnModule.js +2 -32
- package/src/Strategy/GridFilterModule.d.ts +0 -1
- package/src/Strategy/GridFilterModule.js +0 -37
- package/src/Strategy/GridInfoModule.d.ts +2 -2
- package/src/Strategy/GridInfoModule.js +5 -3
- package/src/Strategy/Interface/IModule.d.ts +3 -4
- package/src/Strategy/LayoutModule.d.ts +5 -6
- package/src/Strategy/LayoutModule.js +77 -122
- package/src/Strategy/NamedQueryModule.d.ts +0 -1
- package/src/Strategy/NamedQueryModule.js +0 -19
- package/src/Strategy/{NotesModule.d.ts → NoteModule.d.ts} +3 -3
- package/src/Strategy/NoteModule.js +60 -0
- package/src/Strategy/PlusMinusModule.d.ts +2 -2
- package/src/Strategy/PlusMinusModule.js +3 -3
- package/src/Strategy/ScheduleModule.d.ts +1 -1
- package/src/Strategy/ScheduleModule.js +1 -1
- package/src/Strategy/SettingsPanelModule.d.ts +3 -3
- package/src/Strategy/SettingsPanelModule.js +6 -6
- package/src/Strategy/ShortcutModule.d.ts +1 -1
- package/src/Strategy/ShortcutModule.js +1 -1
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SmartEditModule.js +2 -1
- package/src/Strategy/StyledColumnModule.d.ts +2 -2
- package/src/Strategy/StyledColumnModule.js +47 -40
- package/src/Strategy/SystemStatusModule.d.ts +2 -2
- package/src/Strategy/SystemStatusModule.js +4 -3
- 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/FormatColumn/getFormatColumnSettingsViewItems.js +4 -2
- package/src/Strategy/Utilities/getScopeViewItems.d.ts +2 -2
- package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +2 -0
- package/src/Utilities/Constants/GeneralConstants.js +4 -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 +434 -3
- 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 +21 -60
- package/src/Utilities/Helpers/Helper.d.ts +2 -0
- package/src/Utilities/Helpers/Helper.js +6 -1
- package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
- 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 +7 -25
- 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 +6 -2
- 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 +243 -24
- package/src/Utilities/Services/RowEditService.d.ts +3 -2
- package/src/Utilities/Services/RowEditService.js +3 -1
- package/src/Utilities/Services/RowSummaryService.d.ts +22 -0
- package/src/Utilities/Services/RowSummaryService.js +146 -0
- 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/Alert/Utilities/getAvailablePredicates.d.ts +2 -2
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +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 +28 -17
- package/src/View/Comments/CommentsPopup.js +25 -13
- 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 +6 -3
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.d.ts +3 -3
- package/src/View/Components/EntityRulesEditor/index.d.ts +3 -3
- package/src/View/Components/FilterForm/FilterForm.js +20 -12
- package/src/View/Components/FilterForm/QuickFilterForm.js +15 -8
- package/src/View/Components/FilterForm/QuickFilterValues.js +39 -23
- package/src/View/Components/NewScopeComponent.d.ts +5 -5
- 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/AdaptablePopup/useMenuItems.js +9 -1
- 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/RangesComponent.d.ts +2 -2
- package/src/View/Components/Selectors/PermittedValuesSelector.js +2 -2
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +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 +12 -10
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +19 -6
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +27 -12
- 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 +38 -3
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +17 -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} +22 -19
- package/src/View/SpecialColumnSettingsWizardStep.js +4 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +38 -14
- package/src/View/Theme/ThemeSelector.js +2 -2
- package/src/agGrid/ActionColumnRenderer.js +48 -10
- package/src/agGrid/Adaptable.d.ts +3 -455
- package/src/agGrid/Adaptable.js +7 -5291
- package/src/agGrid/AdaptableAgGrid.d.ts +346 -0
- package/src/agGrid/AdaptableAgGrid.js +3915 -0
- package/src/agGrid/AdaptableLogger.js +78 -13
- package/src/agGrid/AgGridAdapter.d.ts +64 -0
- package/src/agGrid/AgGridAdapter.js +594 -0
- package/src/agGrid/AgGridColumnAdapter.d.ts +54 -0
- package/src/agGrid/AgGridColumnAdapter.js +800 -0
- package/src/agGrid/AgGridMenuAdapter.d.ts +44 -0
- package/src/agGrid/AgGridMenuAdapter.js +605 -0
- package/src/agGrid/AgGridOptionsService.d.ts +15 -0
- package/src/agGrid/AgGridOptionsService.js +80 -0
- package/src/agGrid/BadgeRenderer.d.ts +2 -2
- package/src/agGrid/BadgeRenderer.js +26 -12
- 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/PercentBarRenderer.js +2 -1
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +12 -12
- package/src/agGrid/buildSortedColumnStateForLayout.d.ts +7 -0
- package/src/agGrid/buildSortedColumnStateForLayout.js +124 -0
- package/src/agGrid/defaultAdaptableOptions.d.ts +3 -0
- package/src/{Utilities/Defaults/DefaultAdaptableOptions.js → agGrid/defaultAdaptableOptions.js} +74 -19
- 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/sortColumnStateForVisibleColumns.d.ts +12 -0
- package/src/agGrid/sortColumnStateForVisibleColumns.js +50 -0
- 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/ProgressIndicator/ProgressIndicator.js +15 -6
- 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/copy.d.ts +3 -0
- package/src/components/icons/copy.js +7 -0
- package/src/components/icons/filter-off.d.ts +3 -0
- package/src/components/icons/filter-off.js +7 -0
- package/src/components/icons/grid-info.d.ts +3 -0
- package/src/components/icons/grid-info.js +7 -0
- package/src/components/icons/index.js +14 -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/components/icons/select-all.d.ts +3 -0
- package/src/components/icons/select-all.js +7 -0
- package/src/components/icons/select-fwd.d.ts +3 -0
- package/src/components/icons/select-fwd.js +7 -0
- package/src/components/icons/select-off.d.ts +3 -0
- package/src/components/icons/select-off.js +7 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +222 -73
- 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 +576 -553
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +3 -4
- package/src/parser/src/types.d.ts +7 -2
- package/src/parser/src/types.js +1 -2
- package/src/types.d.ts +29 -21
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableOptions/CommentsOptions.d.ts +0 -28
- package/src/AdaptableOptions/NotesOptions.d.ts +0 -16
- 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/CommentsModule.d.ts +0 -16
- package/src/Strategy/CommentsModule.js +0 -82
- 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/Common/{AdaptableScope.js → ColumnScope.js} +0 -0
- /package/src/PredefinedConfig/{NotesState.js → Common/RowScope.js} +0 -0
- /package/src/{Utilities/Services/Interface/IRowEditService.js → PredefinedConfig/Common/TransposeConfig.js} +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
- /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
|
@@ -44,78 +44,75 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
44
44
|
}
|
|
45
45
|
return this.api.namedQueryApi.internalApi.getReferencedNamedQueryNames(report.Query.BooleanExpression);
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
createContextMenuItems(menuContext) {
|
|
48
48
|
const canExport = !menuContext.isRowGroupColumn && this.isModuleAvailable();
|
|
49
49
|
if (!canExport) {
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
let returnMenuItems = [];
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
const availableSystemReports = this.api.exportApi.getAvailableSystemReports();
|
|
54
|
+
if (availableSystemReports.includes(GeneralConstants_1.VISUAL_DATA_REPORT)) {
|
|
55
|
+
returnMenuItems.push(this.createMenuItemClickFunction('export-visual-data-excel', 'Excel', this.moduleInfo.Glyph, () => this.export(this.api.exportApi.getReportByName(GeneralConstants_1.VISUAL_DATA_REPORT), Enums_1.ExportDestination.Excel)));
|
|
56
|
+
}
|
|
57
|
+
if (availableSystemReports.includes(GeneralConstants_1.ALL_DATA_REPORT)) {
|
|
58
|
+
const allDataReport = this.api.exportApi.getReportByName(GeneralConstants_1.ALL_DATA_REPORT);
|
|
59
|
+
returnMenuItems.push(...this.buildReportMenuItems(allDataReport));
|
|
60
|
+
}
|
|
61
|
+
if (availableSystemReports.includes(GeneralConstants_1.CURRENT_DATA_REPORT)) {
|
|
62
|
+
const currentDataReport = this.api.exportApi.getReportByName(GeneralConstants_1.CURRENT_DATA_REPORT);
|
|
63
|
+
returnMenuItems.push(...this.buildReportMenuItems(currentDataReport));
|
|
64
|
+
}
|
|
65
|
+
const canExportCells = availableSystemReports.includes(GeneralConstants_1.SELECTED_CELLS_REPORT) &&
|
|
66
|
+
menuContext.selectedCellInfo &&
|
|
56
67
|
ArrayExtensions_1.default.IsNotNullOrEmpty(menuContext.selectedCellInfo.columns) &&
|
|
57
68
|
ArrayExtensions_1.default.IsNotNullOrEmpty(menuContext.selectedCellInfo.gridCells);
|
|
58
|
-
|
|
69
|
+
if (canExportCells) {
|
|
70
|
+
const selectedCellReport = this.api.exportApi.getReportByName(GeneralConstants_1.SELECTED_CELLS_REPORT);
|
|
71
|
+
returnMenuItems.push(...this.buildReportMenuItems(selectedCellReport));
|
|
72
|
+
}
|
|
73
|
+
const canExportRows = availableSystemReports.includes(GeneralConstants_1.SELECTED_ROWS_REPORT) &&
|
|
74
|
+
menuContext.selectedRowInfo &&
|
|
59
75
|
ArrayExtensions_1.default.IsNotNullOrEmpty(menuContext.selectedRowInfo.gridRows) &&
|
|
60
76
|
menuContext.gridCell &&
|
|
61
77
|
menuContext.gridCell.primaryKeyValue &&
|
|
62
78
|
menuContext.isSelectedRow;
|
|
63
|
-
if (canExportCells) {
|
|
64
|
-
const selectedCellReport = this.api.exportApi.getReportByName(GeneralConstants_1.SELECTED_CELLS_REPORT);
|
|
65
|
-
selectedCellmenuItems = this.buildReportMenuItems(selectedCellReport);
|
|
66
|
-
}
|
|
67
79
|
if (canExportRows) {
|
|
68
80
|
const selectedRowReport = this.api.exportApi.getReportByName(GeneralConstants_1.SELECTED_ROWS_REPORT);
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
// if only selected cells then just do one level
|
|
72
|
-
if (canExportCells && !canExportRows) {
|
|
73
|
-
returnMenuItems.push(this.buildExportMenuItem('Export Selected Cells', selectedCellmenuItems));
|
|
74
|
-
// if only selected Rows then just do one level
|
|
75
|
-
}
|
|
76
|
-
else if (canExportRows && !canExportCells) {
|
|
77
|
-
returnMenuItems.push(this.buildExportMenuItem('Export Selected Rows', selectedRowmenuItems));
|
|
78
|
-
}
|
|
79
|
-
// if both selected Cells and Rows then add a new level
|
|
80
|
-
else if (canExportRows && canExportCells) {
|
|
81
|
-
const exportSelectedCellsMenuItem = this.buildExportMenuItem('Cells', selectedCellmenuItems);
|
|
82
|
-
const exportSelectedRowsMenuItem = this.buildExportMenuItem('Rows', selectedRowmenuItems);
|
|
83
|
-
returnMenuItems.push(this.buildExportMenuItem('Export Selected', [
|
|
84
|
-
exportSelectedCellsMenuItem,
|
|
85
|
-
exportSelectedRowsMenuItem,
|
|
86
|
-
]));
|
|
81
|
+
returnMenuItems.push(...this.buildReportMenuItems(selectedRowReport));
|
|
87
82
|
}
|
|
88
83
|
return returnMenuItems;
|
|
89
84
|
}
|
|
90
85
|
buildReportMenuItems(report) {
|
|
86
|
+
// a bit convoluted, but ce la vie, that's what happens when you use enums instead of union types
|
|
87
|
+
// convert to lowercase and replace empty spaces with hyphens
|
|
88
|
+
const adjustName = (name = '') => {
|
|
89
|
+
const result = name.replace(/ /g, '-');
|
|
90
|
+
return result.toLowerCase();
|
|
91
|
+
};
|
|
92
|
+
const getMenuItemName = (reportName, destination) => {
|
|
93
|
+
return `export-${adjustName(reportName)}-${adjustName(destination)}`;
|
|
94
|
+
};
|
|
91
95
|
const menuItems = [];
|
|
92
96
|
for (const destination of this.api.exportApi.getAvailableExportDestinations()) {
|
|
93
|
-
menuItems.push(this.
|
|
97
|
+
menuItems.push(this.createMenuItemClickFunction(getMenuItemName(report.Name, destination), destination, this.moduleInfo.Glyph, () => this.export(report, destination)));
|
|
94
98
|
}
|
|
95
99
|
for (const customDestination of this.api.exportApi.getCustomDestinations()) {
|
|
96
|
-
menuItems.push(this.
|
|
100
|
+
menuItems.push(this.createMenuItemClickFunction(getMenuItemName(report.Name, customDestination.name), customDestination.name, this.moduleInfo.Glyph, () => this.export(report, customDestination.name)));
|
|
97
101
|
}
|
|
98
102
|
return menuItems;
|
|
99
103
|
}
|
|
100
|
-
buildExportMenuItem(label, subItems) {
|
|
101
|
-
return {
|
|
102
|
-
label: label,
|
|
103
|
-
module: this.moduleInfo.ModuleName,
|
|
104
|
-
isVisible: true,
|
|
105
|
-
icon: { name: this.moduleInfo.Glyph },
|
|
106
|
-
subItems: subItems,
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
104
|
async export(report, exportDestination) {
|
|
110
105
|
var _a;
|
|
111
106
|
const cleanupExportProcess = () => {
|
|
112
107
|
this.api.internalApi.dispatchReduxAction((0, SystemRedux_1.SystemVisualExportEnd)());
|
|
113
|
-
this.api.
|
|
108
|
+
this.api.userInterfaceApi.hideProgressIndicator();
|
|
114
109
|
};
|
|
115
110
|
if (report.Name === GeneralConstants_1.VISUAL_DATA_REPORT) {
|
|
116
111
|
this.api.internalApi.dispatchReduxAction((0, SystemRedux_1.SystemVisualExportBegin)());
|
|
117
112
|
}
|
|
118
|
-
this.api.
|
|
113
|
+
this.api.userInterfaceApi.showProgressIndicator({
|
|
114
|
+
text: `${report.Name} Export in progress...`,
|
|
115
|
+
});
|
|
119
116
|
try {
|
|
120
117
|
// waitForTimeout required to give the ProgressIndicator rendering a head-start (see rAF in ProgressIndicator implementation)
|
|
121
118
|
await (0, waitForTimeout_1.waitForTimeout)(16);
|
|
@@ -4,7 +4,7 @@ import { AdaptableApi } from '../Api/AdaptableApi';
|
|
|
4
4
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
5
5
|
export declare class Fdc3Module extends AdaptableModuleBase implements IModule {
|
|
6
6
|
constructor(api: AdaptableApi);
|
|
7
|
-
|
|
7
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
8
8
|
private buildRaiseIntentMenuItem;
|
|
9
9
|
private buildBroadcastMenuItem;
|
|
10
10
|
private getFdc3Api;
|
|
@@ -8,7 +8,7 @@ class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
8
8
|
constructor(api) {
|
|
9
9
|
super(ModuleConstants.Fdc3ModuleId, ModuleConstants.Fdc3FriendlyName, 'fdc3', null, 'The FDC3 Module - handles the FDC3 integration', api);
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
createContextMenuItems(menuContext) {
|
|
12
12
|
if (!this.isModuleAvailable()) {
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
@@ -29,18 +29,6 @@ class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
29
29
|
contextMenuItems.push(this.buildBroadcastMenuItem(broadcastConfig, currentRowNode));
|
|
30
30
|
});
|
|
31
31
|
contextMenuItems.sort((a, b) => a.label.localeCompare(b.label));
|
|
32
|
-
if (contextMenuItems.length > 1) {
|
|
33
|
-
const groupMenuItem = {
|
|
34
|
-
module: this.moduleInfo.ModuleName,
|
|
35
|
-
label: 'FDC3',
|
|
36
|
-
icon: {
|
|
37
|
-
name: 'fdc3',
|
|
38
|
-
},
|
|
39
|
-
isVisible: true,
|
|
40
|
-
subItems: contextMenuItems,
|
|
41
|
-
};
|
|
42
|
-
return [groupMenuItem];
|
|
43
|
-
}
|
|
44
32
|
return contextMenuItems;
|
|
45
33
|
}
|
|
46
34
|
}
|
|
@@ -48,6 +36,7 @@ class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
48
36
|
var _a, _b, _c;
|
|
49
37
|
const { intentType, contextType } = intentConfig;
|
|
50
38
|
const menuItem = {
|
|
39
|
+
name: 'fdc3-raise-intent',
|
|
51
40
|
label: `Raise ${intentType}`,
|
|
52
41
|
onClick: () => {
|
|
53
42
|
this.getFdc3Api().raiseIntentFromRow(rowNode, intentType, contextType);
|
|
@@ -67,6 +56,7 @@ class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
67
56
|
var _a, _b, _c;
|
|
68
57
|
const { contextType } = contextConfig;
|
|
69
58
|
const menuItem = {
|
|
59
|
+
name: 'fdc3-broadcast',
|
|
70
60
|
label: `Broadcast ${this.getFdc3Api().getContextLabel(contextType)}`,
|
|
71
61
|
onClick: () => {
|
|
72
62
|
this.getFdc3Api().broadcastFromRow(rowNode, contextType);
|
|
@@ -9,15 +9,14 @@ import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
|
9
9
|
import { FlashingCellDefinition } from '../PredefinedConfig/FlashingCellState';
|
|
10
10
|
export declare class FlashingCellModule extends AdaptableModuleBase implements IModule {
|
|
11
11
|
constructor(api: AdaptableApi);
|
|
12
|
-
|
|
13
|
-
private updateFlashingCellSingleToMultiplePredicates;
|
|
12
|
+
onAdaptableReady(): void;
|
|
14
13
|
getModuleAdaptableObjects(config?: {
|
|
15
14
|
includeLayoutNotAssociatedObjects?: boolean;
|
|
16
15
|
}): AdaptableObject[];
|
|
17
16
|
getExplicitlyReferencedColumnIds(alertDefinition: FlashingCellDefinition): string[];
|
|
18
17
|
getReferencedNamedQueryNames(alertDefinition: FlashingCellDefinition): string[];
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
19
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
21
20
|
protected handleCellDataChanged(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
22
21
|
private showFlashingCellsForDefinitions;
|
|
23
22
|
private isFlashingTargetOnlyAggChange;
|
|
@@ -15,11 +15,11 @@ const FlashingCellWizard_1 = require("../View/FlashingCell/Wizard/FlashingCellWi
|
|
|
15
15
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
16
16
|
const getFlashingTargetViewItems_1 = require("./Utilities/FlashingCell/getFlashingTargetViewItems");
|
|
17
17
|
const getFlashingCellStyleViewItems_1 = require("./Utilities/FlashingCell/getFlashingCellStyleViewItems");
|
|
18
|
-
const Helper_1 = require("../Utilities/Helpers/Helper");
|
|
19
|
-
const updateSingleToMultiplePredicates_1 = require("./Utilities/updateSingleToMultiplePredicates");
|
|
20
18
|
class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
21
19
|
constructor(api) {
|
|
22
20
|
super(ModuleConstants.FlashingCellModuleId, ModuleConstants.FlashingCellFriendlyName, 'lightning', 'FlashingAlert', 'Flash cells when they change', api);
|
|
21
|
+
}
|
|
22
|
+
onAdaptableReady() {
|
|
23
23
|
this.api.internalApi
|
|
24
24
|
.getDataService()
|
|
25
25
|
.on('CellDataChanged', (cellDataChangedInfo) => {
|
|
@@ -42,19 +42,6 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
42
42
|
this.handleCellDataChanged(cellDataChangedInfo);
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
updateOldConfig() {
|
|
46
|
-
this.updateFlashingCellSingleToMultiplePredicates();
|
|
47
|
-
}
|
|
48
|
-
updateFlashingCellSingleToMultiplePredicates() {
|
|
49
|
-
const flashingCells = this.api.flashingCellApi.getFlashingCellDefinitions();
|
|
50
|
-
flashingCells.forEach((flashingCell) => {
|
|
51
|
-
if (flashingCell.Rule && 'Predicate' in flashingCell.Rule) {
|
|
52
|
-
const preparedFlashingCell = (0, Helper_1.cloneObject)(flashingCell);
|
|
53
|
-
(0, updateSingleToMultiplePredicates_1.updateSingleToMultiplePredicates)(preparedFlashingCell.Rule);
|
|
54
|
-
this.api.flashingCellApi.editFlashingCellDefinition(preparedFlashingCell);
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
45
|
getModuleAdaptableObjects(config) {
|
|
59
46
|
return this.api.flashingCellApi.getFlashingCellDefinitions(config);
|
|
60
47
|
}
|
|
@@ -77,7 +64,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
77
64
|
}
|
|
78
65
|
return this.api.namedQueryApi.internalApi.getReferencedNamedQueryNames(queryExpression);
|
|
79
66
|
}
|
|
80
|
-
|
|
67
|
+
createColumnMenuItems(column) {
|
|
81
68
|
if (column && this.isModuleEditable()) {
|
|
82
69
|
if (!this.api.columnApi.isCalculatedColumn(column.columnId)) {
|
|
83
70
|
const flashingCellDefinitions = this.api.flashingCellApi.getFlashingCellDefinitions();
|
|
@@ -86,11 +73,11 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
86
73
|
});
|
|
87
74
|
if (flashingCellForCurrentColumn) {
|
|
88
75
|
return [
|
|
89
|
-
this.
|
|
76
|
+
this.createMenuItemReduxAction('flashing-cell-delete', 'Delete Flashing Cell', this.moduleInfo.Glyph, FlashingCellRedux.FlashingCellDefinitionDelete(flashingCellForCurrentColumn)),
|
|
90
77
|
];
|
|
91
78
|
}
|
|
92
79
|
return [
|
|
93
|
-
this.
|
|
80
|
+
this.createMenuItemReduxAction('flashing-cell-add', 'Add Flashing Cell', this.moduleInfo.Glyph, FlashingCellRedux.FlashingCellDefinitionAdd({
|
|
94
81
|
Scope: {
|
|
95
82
|
ColumnIds: [column.columnId],
|
|
96
83
|
},
|
|
@@ -102,7 +89,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
102
89
|
}
|
|
103
90
|
}
|
|
104
91
|
}
|
|
105
|
-
|
|
92
|
+
createContextMenuItems(menuContext) {
|
|
106
93
|
const items = [];
|
|
107
94
|
if (!menuContext.isRowGroupColumn && this.isModuleAvailable()) {
|
|
108
95
|
if (menuContext.adaptableColumn && menuContext.rowNode) {
|
|
@@ -112,11 +99,11 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
112
99
|
if (flashingCellForRow.flashTarget === 'row' ||
|
|
113
100
|
(Array.isArray(flashingCellForRow === null || flashingCellForRow === void 0 ? void 0 : flashingCellForRow.flashTarget) &&
|
|
114
101
|
flashingCellForRow.flashTarget.includes('row'))) {
|
|
115
|
-
items.push(this.
|
|
102
|
+
items.push(this.createMenuItemReduxAction('flashing-row-clear', 'Clear Flashing Row', this.moduleInfo.Glyph, SystemRedux.SystemFlashingCellDelete(flashingCellForRow)));
|
|
116
103
|
}
|
|
117
104
|
}
|
|
118
105
|
else if (flashingCellForCell && flashingCellForCell.flashTarget === 'cell') {
|
|
119
|
-
items.push(this.
|
|
106
|
+
items.push(this.createMenuItemReduxAction('flashing-cell-clear', 'Clear Flashing Cell', this.moduleInfo.Glyph, SystemRedux.SystemFlashingCellDelete(flashingCellForCell)));
|
|
120
107
|
}
|
|
121
108
|
}
|
|
122
109
|
}
|
|
@@ -13,9 +13,7 @@ export declare class FormatColumnModule extends AdaptableModuleBase implements I
|
|
|
13
13
|
}): AdaptableObject[];
|
|
14
14
|
getExplicitlyReferencedColumnIds(formatColumn: FormatColumn): string[];
|
|
15
15
|
getReferencedNamedQueryNames(formatColumn: FormatColumn): string[];
|
|
16
|
-
|
|
17
|
-
private updateFormatColumnSingleToMultiplePredicates;
|
|
18
|
-
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
16
|
+
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
19
17
|
getTeamSharingAction(): TeamSharingImportInfo<FormatColumn>;
|
|
20
18
|
toView(formatColumn: FormatColumn): AdaptableObjectView;
|
|
21
19
|
toViewAll(): AdaptableObjectView[];
|
|
@@ -14,9 +14,6 @@ const getFormatColumnStyleViewItems_1 = require("./Utilities/FormatColumn/getFor
|
|
|
14
14
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
15
15
|
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
16
16
|
const MoveFormatColumn_1 = require("../View/FormatColumn/MoveFormatColumn");
|
|
17
|
-
const Helper_1 = require("../Utilities/Helpers/Helper");
|
|
18
|
-
const updateSingleToMultiplePredicates_1 = require("./Utilities/updateSingleToMultiplePredicates");
|
|
19
|
-
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
20
17
|
class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
21
18
|
constructor(api) {
|
|
22
19
|
super(ModuleConstants.FormatColumnModuleId, ModuleConstants.FormatColumnFriendlyName, 'color-palette', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
|
|
@@ -43,99 +40,38 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
43
40
|
}
|
|
44
41
|
return this.api.namedQueryApi.internalApi.getReferencedNamedQueryNames(queryExpression);
|
|
45
42
|
}
|
|
46
|
-
|
|
47
|
-
this.
|
|
48
|
-
|
|
49
|
-
const oldStatusBars = this.api.internalApi.getState().StatusBar.StatusBars;
|
|
50
|
-
let replaceConditionalStyleStatusBar = false;
|
|
51
|
-
const newStatusBars = oldStatusBars.map((statusBar) => (Object.assign(Object.assign({}, statusBar), { StatusBarPanels: [
|
|
52
|
-
...new Set(statusBar.StatusBarPanels.map((statusBarPanel) => {
|
|
53
|
-
if (statusBarPanel === 'ConditionalStyle') {
|
|
54
|
-
replaceConditionalStyleStatusBar = true;
|
|
55
|
-
return 'FormatColumn';
|
|
56
|
-
}
|
|
57
|
-
return statusBarPanel;
|
|
58
|
-
})),
|
|
59
|
-
] })));
|
|
60
|
-
if (replaceConditionalStyleStatusBar) {
|
|
61
|
-
this.api.statusBarApi.setStatusBarPanels(newStatusBars);
|
|
43
|
+
createColumnMenuItems(column) {
|
|
44
|
+
if (!column || !this.isModuleEditable() || column.isSparkline) {
|
|
45
|
+
return;
|
|
62
46
|
}
|
|
63
|
-
// update ConditionalStyle dashboard buttons
|
|
64
|
-
const dashboardModuleButtons = this.api.internalApi.getState().Dashboard.ModuleButtons;
|
|
65
|
-
if (dashboardModuleButtons.includes('ConditionalStyle')) {
|
|
66
|
-
dashboardModuleButtons[dashboardModuleButtons.indexOf('ConditionalStyle')] = 'FormatColumn';
|
|
67
|
-
const test2 = dashboardModuleButtons;
|
|
68
|
-
this.api.dashboardApi.setModuleButtons([
|
|
69
|
-
...new Set(dashboardModuleButtons),
|
|
70
|
-
]);
|
|
71
|
-
}
|
|
72
|
-
// update ConditionalStyle toolPanel buttons
|
|
73
|
-
const toolPanelModuleButtons = this.api.internalApi.getState().ToolPanel.ModuleButtons;
|
|
74
|
-
if (toolPanelModuleButtons.includes('ConditionalStyle')) {
|
|
75
|
-
toolPanelModuleButtons[toolPanelModuleButtons.indexOf('ConditionalStyle')] = 'FormatColumn';
|
|
76
|
-
this.api.toolPanelApi.setModuleButtons([
|
|
77
|
-
...new Set(dashboardModuleButtons),
|
|
78
|
-
]);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
updateFormatColumnSingleToMultiplePredicates() {
|
|
82
|
-
const formatColumns = this.api.formatColumnApi.getFormatColumns();
|
|
83
|
-
formatColumns.forEach((formatColumn) => {
|
|
84
|
-
if (formatColumn.Rule && 'Predicate' in formatColumn.Rule) {
|
|
85
|
-
const preparedFormatColumn = (0, Helper_1.cloneObject)(formatColumn);
|
|
86
|
-
(0, updateSingleToMultiplePredicates_1.updateSingleToMultiplePredicates)(preparedFormatColumn.Rule);
|
|
87
|
-
this.api.formatColumnApi.editFormatColumn(preparedFormatColumn);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
addColumnMenuItems(column) {
|
|
92
47
|
let returnColumnMenuItems = [];
|
|
93
|
-
|
|
94
|
-
|
|
48
|
+
let createPopupParam = {
|
|
49
|
+
column: column,
|
|
50
|
+
action: 'New',
|
|
51
|
+
source: 'ColumnMenu',
|
|
52
|
+
};
|
|
53
|
+
const createFormatColumnMenuItem = this.createMenuItemShowPopup('format-column-add', 'Create', this.moduleInfo.Popup, 'plus', createPopupParam);
|
|
54
|
+
returnColumnMenuItems.push(this.createMenuItemShowPopup('format-column-add', 'Create Format Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, createPopupParam));
|
|
55
|
+
const formatColumnsForColumn = this.api.formatColumnApi.getFormatColumnsForColumnId(column.columnId);
|
|
56
|
+
if (formatColumnsForColumn.length === 1) {
|
|
57
|
+
let editPopupParam = {
|
|
95
58
|
column: column,
|
|
96
|
-
action: '
|
|
59
|
+
action: 'Edit',
|
|
60
|
+
value: formatColumnsForColumn[0],
|
|
97
61
|
source: 'ColumnMenu',
|
|
98
62
|
};
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
value: formatColumnsForColumn[0],
|
|
112
|
-
source: 'ColumnMenu',
|
|
113
|
-
};
|
|
114
|
-
const editFormatColumnMenuItem = this.createColumnMenuItemShowPopup('Edit', this.moduleInfo.Popup, 'edit', editPopupParam);
|
|
115
|
-
returnColumnMenuItems.push({
|
|
116
|
-
label: 'Format Column',
|
|
117
|
-
module: this.moduleInfo.ModuleName,
|
|
118
|
-
isVisible: true,
|
|
119
|
-
icon: { name: this.moduleInfo.Glyph },
|
|
120
|
-
subItems: [createFormatColumnMenuItem, editFormatColumnMenuItem],
|
|
121
|
-
});
|
|
122
|
-
// if more than one then display a Create and a Show
|
|
123
|
-
// we should probably do the Show better - perhaps use Column Info in some way?
|
|
124
|
-
// or to filter the format columns ?
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
const moduleInfo = this.api.internalApi
|
|
128
|
-
.getModuleService()
|
|
129
|
-
.getModuleInfoByModule('FormatColumn');
|
|
130
|
-
const editFormatColumnMenuItem = this.createColumnMenuItemReduxAction('Show Current', this.moduleInfo.Glyph, PopupRedux.PopupShowScreen('FormatColumn', moduleInfo.Popup));
|
|
131
|
-
returnColumnMenuItems.push({
|
|
132
|
-
label: 'Format Column',
|
|
133
|
-
module: this.moduleInfo.ModuleName,
|
|
134
|
-
isVisible: true,
|
|
135
|
-
icon: { name: this.moduleInfo.Glyph },
|
|
136
|
-
subItems: [createFormatColumnMenuItem, editFormatColumnMenuItem],
|
|
137
|
-
});
|
|
138
|
-
}
|
|
63
|
+
const editFormatColumnMenuItem = this.createMenuItemShowPopup('format-column-edit', 'Edit', this.moduleInfo.Popup, 'edit', editPopupParam);
|
|
64
|
+
returnColumnMenuItems.push(editFormatColumnMenuItem);
|
|
65
|
+
}
|
|
66
|
+
else if (formatColumnsForColumn.length > 1) {
|
|
67
|
+
// if more than one then display a Create and a Show
|
|
68
|
+
// we should probably do the Show better - perhaps use Column Info in some way?
|
|
69
|
+
// or to filter the format columns ?
|
|
70
|
+
const moduleInfo = this.api.internalApi
|
|
71
|
+
.getModuleService()
|
|
72
|
+
.getModuleInfoByModule('FormatColumn');
|
|
73
|
+
const editFormatColumnMenuItem = this.createMenuItemReduxAction('format-column-edit', 'Show Current', this.moduleInfo.Glyph, PopupRedux.PopupShowScreen('FormatColumn', moduleInfo.Popup));
|
|
74
|
+
returnColumnMenuItems.push(editFormatColumnMenuItem);
|
|
139
75
|
}
|
|
140
76
|
return returnColumnMenuItems;
|
|
141
77
|
}
|
|
@@ -12,8 +12,7 @@ export declare class FreeTextColumnModule extends AdaptableModuleBase implements
|
|
|
12
12
|
isModuleAvailable(): boolean;
|
|
13
13
|
getModuleAdaptableObjects(): FreeTextColumn[];
|
|
14
14
|
hasNamedQueryReferences(): boolean;
|
|
15
|
-
|
|
16
|
-
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
15
|
+
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
17
16
|
getTeamSharingAction(): TeamSharingImportInfo<FreeTextColumn>;
|
|
18
17
|
toView(freeTextColumn: FreeTextColumn): AdaptableObjectView;
|
|
19
18
|
toViewAll(): AdaptableObjectView[];
|
|
@@ -21,37 +21,7 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
21
21
|
hasNamedQueryReferences() {
|
|
22
22
|
return false;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
// make sure all default to type string
|
|
26
|
-
const allFreeTextColumns = this.getModuleAdaptableObjects();
|
|
27
|
-
for (const freeTextColumn of allFreeTextColumns) {
|
|
28
|
-
const unTypedCol = freeTextColumn;
|
|
29
|
-
if (unTypedCol.DataType) {
|
|
30
|
-
const dataType = unTypedCol.DataType;
|
|
31
|
-
delete unTypedCol['DataType'];
|
|
32
|
-
if (!freeTextColumn.FreeTextColumnSettings) {
|
|
33
|
-
freeTextColumn.FreeTextColumnSettings = {
|
|
34
|
-
DataType: dataType,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
freeTextColumn.FreeTextColumnSettings.DataType = dataType;
|
|
39
|
-
}
|
|
40
|
-
this.api.freeTextColumnApi.editFreeTextColumn(freeTextColumn);
|
|
41
|
-
}
|
|
42
|
-
if (!freeTextColumn.FreeTextColumnSettings) {
|
|
43
|
-
freeTextColumn.FreeTextColumnSettings = {
|
|
44
|
-
DataType: 'String',
|
|
45
|
-
};
|
|
46
|
-
this.api.freeTextColumnApi.editFreeTextColumn(freeTextColumn);
|
|
47
|
-
}
|
|
48
|
-
if (!freeTextColumn.FreeTextColumnSettings.DataType) {
|
|
49
|
-
freeTextColumn.FreeTextColumnSettings.DataType = 'String';
|
|
50
|
-
this.api.freeTextColumnApi.editFreeTextColumn(freeTextColumn);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
addColumnMenuItems(column) {
|
|
24
|
+
createColumnMenuItems(column) {
|
|
55
25
|
if (column && this.isModuleEditable()) {
|
|
56
26
|
if (this.api.freeTextColumnApi
|
|
57
27
|
.getFreeTextColumns()
|
|
@@ -62,7 +32,7 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
62
32
|
source: 'ColumnMenu',
|
|
63
33
|
};
|
|
64
34
|
return [
|
|
65
|
-
this.
|
|
35
|
+
this.createMenuItemShowPopup('free-text-column-edit', 'Edit Free Text Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam),
|
|
66
36
|
];
|
|
67
37
|
}
|
|
68
38
|
}
|
|
@@ -3,6 +3,5 @@ import { AdaptableModuleView, IModule } from './Interface/IModule';
|
|
|
3
3
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
4
4
|
export declare class GridFilterModule extends AdaptableModuleBase implements IModule {
|
|
5
5
|
constructor(api: AdaptableApi);
|
|
6
|
-
updateOldConfig(): void;
|
|
7
6
|
getViewProperties(): AdaptableModuleView;
|
|
8
7
|
}
|
|
@@ -6,47 +6,10 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const EditCurrentQueryButton_1 = require("../View/NamedQuery/EditCurrentQueryButton");
|
|
8
8
|
const GridFilterStatusbar_1 = require("../View/GridFilter/GridFilterStatusbar");
|
|
9
|
-
const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
|
|
10
9
|
class GridFilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
11
10
|
constructor(api) {
|
|
12
11
|
super(ModuleConstants.GridFilterModuleId, ModuleConstants.GridFilterFriendlyName, 'filter-list', 'GridFilterPopup', 'Controls the Grid Filter funtionality', api);
|
|
13
12
|
}
|
|
14
|
-
updateOldConfig() {
|
|
15
|
-
var _a, _b;
|
|
16
|
-
const oldQueryState = this.api.internalApi.getAdaptableState().Query;
|
|
17
|
-
// - move query to current layout
|
|
18
|
-
const expression = oldQueryState.CurrentQuery;
|
|
19
|
-
if (expression &&
|
|
20
|
-
StringExtensions_1.default.IsNullOrEmpty(this.api.gridFilterApi.getCurrentGridFilterExpression())) {
|
|
21
|
-
this.api.gridFilterApi.setGridFilterExpression(expression);
|
|
22
|
-
}
|
|
23
|
-
// - move dashboard/toolbar
|
|
24
|
-
let updateTabs = false;
|
|
25
|
-
const tabs = this.api.dashboardApi.getTabs().map((tab) => {
|
|
26
|
-
if (tab.Toolbars.includes('Query')) {
|
|
27
|
-
updateTabs = true;
|
|
28
|
-
return Object.assign(Object.assign({}, tab), {
|
|
29
|
-
// replace with 'GridFilter'
|
|
30
|
-
Toolbars: tab.Toolbars.map((t) => (t == 'Query' ? 'GridFilter' : t)) });
|
|
31
|
-
}
|
|
32
|
-
return tab;
|
|
33
|
-
});
|
|
34
|
-
if (updateTabs) {
|
|
35
|
-
this.api.dashboardApi.setTabs(tabs);
|
|
36
|
-
}
|
|
37
|
-
// - move pinned toolbars
|
|
38
|
-
let updatePinnedToolbars = false;
|
|
39
|
-
const pinnedToolbars = (_b = (_a = this.api.dashboardApi.getPinnedToolbars()) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.call(_a, (pinnedToolbar) => {
|
|
40
|
-
if (pinnedToolbar == 'Query') {
|
|
41
|
-
updatePinnedToolbars = true;
|
|
42
|
-
return 'GridFilter';
|
|
43
|
-
}
|
|
44
|
-
return pinnedToolbar;
|
|
45
|
-
});
|
|
46
|
-
if (updatePinnedToolbars) {
|
|
47
|
-
this.api.dashboardApi.setPinnedToolbars(pinnedToolbars);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
13
|
getViewProperties() {
|
|
51
14
|
return {
|
|
52
15
|
getStatusBarPanelProps: () => {
|
|
@@ -7,6 +7,6 @@ import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
|
|
|
7
7
|
export declare class GridInfoModule extends AdaptableModuleBase implements IModule {
|
|
8
8
|
constructor(api: AdaptableApi);
|
|
9
9
|
getViewAccessLevel(): AccessLevel;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
11
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
12
12
|
}
|
|
@@ -6,15 +6,16 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
8
|
constructor(api) {
|
|
9
|
-
super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, '
|
|
9
|
+
super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, 'grid-info', 'GridInfoPopup', 'Display information about the Grid, the Options selected and all columns', api);
|
|
10
10
|
}
|
|
11
11
|
getViewAccessLevel() {
|
|
12
12
|
return 'Full';
|
|
13
13
|
}
|
|
14
|
-
|
|
14
|
+
createColumnMenuItems(column) {
|
|
15
15
|
if (this.isModuleAvailable()) {
|
|
16
16
|
return [
|
|
17
17
|
this.createMainMenuItemShowPopup({
|
|
18
|
+
Name: 'grid-info-show',
|
|
18
19
|
Label: 'Grid Info',
|
|
19
20
|
ComponentName: this.moduleInfo.Popup,
|
|
20
21
|
Icon: this.moduleInfo.Glyph,
|
|
@@ -22,10 +23,11 @@ class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
22
23
|
];
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
+
createContextMenuItems(menuContext) {
|
|
26
27
|
if (this.isModuleAvailable()) {
|
|
27
28
|
return [
|
|
28
29
|
this.createMainMenuItemShowPopup({
|
|
30
|
+
Name: 'grid-info-show',
|
|
29
31
|
Label: 'Grid Info',
|
|
30
32
|
ComponentName: this.moduleInfo.Popup,
|
|
31
33
|
Icon: this.moduleInfo.Glyph,
|
|
@@ -141,9 +141,9 @@ export interface AdaptableModuleView {
|
|
|
141
141
|
export interface IModule {
|
|
142
142
|
moduleInfo: ModuleInfo;
|
|
143
143
|
AccessLevel: AccessLevel;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
createModuleMenuItem(source: 'ModuleMenu' | 'ModuleButton'): AdaptableMenuItem | undefined;
|
|
145
|
+
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
146
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
147
147
|
setModuleEntitlement(): void;
|
|
148
148
|
isModuleAvailable(): boolean;
|
|
149
149
|
isModuleEditable(): boolean;
|
|
@@ -156,7 +156,6 @@ export interface IModule {
|
|
|
156
156
|
getModuleFreeTextColumnReferences(): FreeTextColumn[];
|
|
157
157
|
getPopupMaxWidth(): number | undefined;
|
|
158
158
|
canBeAssociatedWithLayouts(): boolean;
|
|
159
|
-
updateOldConfig(): void;
|
|
160
159
|
/**
|
|
161
160
|
* The following view options are used to render adaptable objects and
|
|
162
161
|
* module general views.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
3
|
-
import {
|
|
3
|
+
import { Layout, LayoutState } from '../PredefinedConfig/LayoutState';
|
|
4
4
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
5
5
|
import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
|
|
6
6
|
import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
|
|
@@ -9,16 +9,15 @@ import { AdaptableModuleView, IModule, TeamSharingReferences } from './Interface
|
|
|
9
9
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
10
10
|
export declare class LayoutModule extends AdaptableModuleBase implements IModule {
|
|
11
11
|
protected LayoutState: LayoutState;
|
|
12
|
+
private rowSummaryService;
|
|
12
13
|
constructor(api: AdaptableApi);
|
|
13
|
-
|
|
14
|
-
private clearUnsuportedFeaturesFromLayout;
|
|
14
|
+
onAdaptableReady(): void;
|
|
15
15
|
getModuleAdaptableObjects(): AdaptableObject[];
|
|
16
16
|
getExplicitlyReferencedColumnIds(layout: Layout): string[];
|
|
17
17
|
getTeamSharingReferences(adaptableObject: AdaptableObject): TeamSharingReferences;
|
|
18
18
|
hasNamedQueryReferences(): boolean;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
19
|
+
createColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
20
|
+
createContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
22
21
|
private createViewPivotItemsMenuItem;
|
|
23
22
|
getTeamSharingAction(): TeamSharingImportInfo<Layout>;
|
|
24
23
|
toViewAll(): {
|