@adaptabletools/adaptable 22.0.0-canary.1 → 22.0.0-canary.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +9 -9
- package/agGrid.js +1 -0
- package/index.css +1280 -1400
- package/index.css.map +1 -1
- package/index.d.ts +66 -0
- package/index.js +73 -0
- package/package.json +3 -3
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -6
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
- package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
- package/src/AdaptableState/AdaptableState.d.ts +2 -0
- package/src/AdaptableState/AlertState.d.ts +5 -2
- package/src/AdaptableState/ChartingState.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
- package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
- package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
- package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +17 -0
- package/src/AdaptableState/Common/NamedObject.d.ts +10 -0
- package/src/AdaptableState/Common/NamedObject.js +1 -0
- package/src/AdaptableState/Common/RowDataChangedInfo.d.ts +3 -0
- package/src/AdaptableState/Common/RowSummary.d.ts +1 -1
- package/src/AdaptableState/Common/Schedule.d.ts +8 -5
- package/src/AdaptableState/Common/SystemStatusMessageInfo.d.ts +2 -2
- package/src/AdaptableState/Common/TransposeConfig.d.ts +12 -10
- package/src/AdaptableState/CustomSortState.d.ts +5 -1
- package/src/AdaptableState/DashboardState.d.ts +1 -1
- package/src/AdaptableState/ExportState.d.ts +1 -1
- package/src/AdaptableState/FlashingCellState.d.ts +6 -2
- package/src/AdaptableState/FormatColumnState.d.ts +5 -9
- package/src/AdaptableState/InitialState.d.ts +10 -1
- package/src/AdaptableState/InternalState.d.ts +2 -0
- package/src/AdaptableState/LayoutState.d.ts +7 -3
- package/src/AdaptableState/NamedQueryState.d.ts +1 -1
- package/src/AdaptableState/PlusMinusState.d.ts +5 -1
- package/src/AdaptableState/Selection/GridCell.d.ts +9 -0
- package/src/AdaptableState/ShortcutState.d.ts +5 -1
- package/src/AdaptableState/StyledColumnState.d.ts +1 -1
- package/src/AdaptableState/ThemeState.d.ts +1 -1
- package/src/AdaptableState/UserInterfaceState.d.ts +14 -0
- package/src/AdaptableState/UserInterfaceState.js +1 -0
- package/src/Api/AlertApi.d.ts +6 -0
- package/src/Api/CustomSortApi.d.ts +12 -3
- package/src/Api/DataSetApi.d.ts +1 -1
- package/src/Api/FlashingCellApi.d.ts +6 -0
- package/src/Api/FormatColumnApi.d.ts +10 -4
- package/src/Api/GridApi.d.ts +27 -12
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AlertApiImpl.js +6 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +2 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +6 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
- package/src/Api/Implementation/CommentsApiImpl.js +1 -0
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
- package/src/Api/Implementation/DashboardApiImpl.js +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
- package/src/Api/Implementation/DataImportApiImpl.js +1 -0
- package/src/Api/Implementation/DataSetApiImpl.js +1 -0
- package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
- package/src/Api/Implementation/EventApiImpl.js +16 -14
- package/src/Api/Implementation/ExportApiImpl.js +1 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
- package/src/Api/Implementation/FilterApiImpl.js +3 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +11 -10
- package/src/Api/Implementation/GridApiImpl.js +39 -21
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -0
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/LayoutApiImpl.js +5 -1
- package/src/Api/Implementation/LayoutHelpers.js +7 -0
- package/src/Api/Implementation/NamedQueryApiImpl.js +3 -2
- package/src/Api/Implementation/NoteApiImpl.js +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +1 -0
- package/src/Api/Implementation/PlusMinusApiImpl.js +3 -0
- package/src/Api/Implementation/PredicateApiImpl.js +1 -0
- package/src/Api/Implementation/RowFormApiImpl.js +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +4 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ShortcutApiImpl.js +3 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +1 -0
- package/src/Api/Implementation/SystemStatusApiImpl.js +8 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +1 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +15 -1
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/ColumnInternalApi.js +1 -1
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +0 -10
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -19
- package/src/Api/Internal/FreeTextColumnInternalApi.js +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +1 -1
- package/src/Api/Internal/NamedQueryInternalApi.js +4 -4
- package/src/Api/LayoutApi.d.ts +6 -0
- package/src/Api/PlusMinusApi.d.ts +6 -0
- package/src/Api/ScheduleApi.d.ts +6 -0
- package/src/Api/ShortcutApi.d.ts +6 -0
- package/src/Api/UserInterfaceApi.d.ts +17 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +8 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +36 -0
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/NoteRedux.js +1 -1
- package/src/Redux/ActionsReducers/UserInterfaceRedux.d.ts +11 -0
- package/src/Redux/ActionsReducers/UserInterfaceRedux.js +21 -0
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -0
- package/src/Redux/Store/AdaptableStore.js +113 -57
- package/src/Strategy/AdaptableModuleBase.js +4 -0
- package/src/Strategy/AlertModule.js +5 -0
- package/src/Strategy/BulkUpdateModule.js +8 -8
- package/src/Strategy/CalculatedColumnModule.js +1 -0
- package/src/Strategy/CellSummaryModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +6 -0
- package/src/Strategy/FormatColumnModule.js +4 -0
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/LayoutModule.js +6 -5
- package/src/Strategy/PlusMinusModule.js +7 -1
- package/src/Strategy/QuickSearchModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +5 -0
- package/src/Strategy/SettingsPanelModule.js +11 -7
- package/src/Strategy/ShortcutModule.js +6 -0
- package/src/Strategy/SmartEditModule.js +10 -10
- package/src/Strategy/TeamSharingModule.js +10 -10
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +3 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -3
- package/src/Utilities/ExpressionFunctions/deepMap.js +31 -31
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +3 -3
- package/src/Utilities/Extensions/StringExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/StringExtensions.js +16 -0
- package/src/Utilities/Helpers/FormatHelper.js +9 -2
- package/src/Utilities/Helpers/StyleHelper.js +14 -0
- package/src/Utilities/MenuItem.js +18 -0
- package/src/Utilities/ObjectFactory.js +16 -3
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +8 -0
- package/src/Utilities/Services/AlertService.js +6 -4
- package/src/Utilities/Services/AnnotationsService.js +4 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -1
- package/src/Utilities/Services/ChartingService.js +1 -0
- package/src/Utilities/Services/DataService.js +11 -3
- package/src/Utilities/Services/Fdc3Service.js +9 -7
- package/src/Utilities/Services/FlashingCellService.js +5 -0
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +5 -6
- package/src/Utilities/Services/QueryLanguageService.js +6 -5
- package/src/Utilities/Services/RowFormService.js +1 -0
- package/src/Utilities/Services/RowSummaryService.js +10 -7
- package/src/Utilities/Services/TeamSharingService.js +3 -1
- package/src/Utilities/Services/ThemeService.js +13 -15
- package/src/Utilities/Services/ValidationService.js +2 -1
- package/src/Utilities/createAgStatusPanelComponent.js +3 -0
- package/src/Utilities/logDeprecation.js +3 -4
- package/src/Utilities/resolveContainerElement.d.ts +23 -0
- package/src/Utilities/resolveContainerElement.js +44 -0
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +8 -0
- package/src/View/Alert/AlertViewPanel.js +13 -9
- package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +1 -0
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +8 -0
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +1 -0
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +5 -2
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +47 -12
- package/src/View/Alert/Wizard/AlertWizard.js +14 -10
- package/src/View/Alert/Wizard/isValidAlertRules.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +24 -11
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +16 -17
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +2 -2
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +2 -2
- package/src/View/Components/AdaptableDateInput/index.js +1 -1
- package/src/View/Components/Buttons/ButtonApply.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +9 -9
- package/src/View/Components/Buttons/ButtonClear.d.ts +1 -0
- package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -2
- package/src/View/Components/Buttons/EntityListActionButtons.js +18 -18
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -2
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/ColumnFilter/FloatingFilter.js +41 -3
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +54 -2
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +1 -1
- package/src/View/Components/EntityRulesEditor/Utilities.js +5 -5
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelDashboard/index.js +8 -8
- package/src/View/Components/Panels/PanelToolPanel/index.js +7 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +1 -8
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +1 -1
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +36 -1
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +19 -18
- package/src/View/Components/StyleComponent.d.ts +1 -0
- package/src/View/Components/StyleComponent.js +94 -24
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/WizardSummaryPage.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.d.ts +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +41 -15
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
- package/src/View/Dashboard/CustomToolbar.js +1 -1
- package/src/View/Dashboard/DashboardPopup.js +4 -5
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +1 -0
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
- package/src/View/Export/ExportDestinationPicker.js +1 -1
- package/src/View/Export/ExportStatusBar.js +4 -2
- package/src/View/Export/ExportViewPanel.js +25 -18
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +34 -14
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +14 -10
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +46 -51
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +20 -9
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +3 -3
- package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -1
- package/src/View/GridFilter/GridFilterViewPanel.js +33 -70
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +57 -65
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/TransposedPopup.js +144 -138
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +3 -3
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -0
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +35 -12
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +20 -15
- package/src/View/QuickSearch/QuickSearchPopup.js +4 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +14 -4
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +12 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +19 -10
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.d.ts +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +25 -4
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +18 -14
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -0
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -1
- package/src/View/Theme/ThemePopup.js +13 -16
- package/src/View/UIHelper.d.ts +4 -1
- package/src/View/UIHelper.js +23 -14
- package/src/agGrid/Adaptable.js +15 -11
- package/src/agGrid/AdaptableAgGrid.d.ts +12 -8
- package/src/agGrid/AdaptableAgGrid.js +257 -111
- package/src/agGrid/AdaptableFilterHandler.js +4 -0
- package/src/agGrid/AdaptableLogger.d.ts +3 -0
- package/src/agGrid/AdaptableLogger.js +10 -0
- package/src/agGrid/AgGridAdapter.js +19 -9
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +20 -22
- package/src/agGrid/AgGridExportAdapter.js +15 -14
- package/src/agGrid/AgGridFilterAdapter.js +4 -0
- package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
- package/src/agGrid/AgGridMenuAdapter.js +10 -1
- package/src/agGrid/AgGridModulesAdapter.js +2 -1
- package/src/agGrid/AgGridOptionsService.js +3 -0
- package/src/agGrid/AgGridThemeAdapter.js +4 -2
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
- package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
- package/src/agGrid/index.d.ts +6 -0
- package/src/agGrid/index.js +6 -0
- package/src/components/CheckBox/index.js +1 -1
- package/src/components/ColorPicker/ColorPicker.js +5 -4
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/Dropdown/Arrows.js +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/EditorInput.js +19 -3
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.js +79 -16
- package/src/components/Tree/TreeDropdown/index.js +2 -2
- package/src/components/overlayBaseZIndex.js +1 -1
- package/src/components/utils/useContainerScrollObserver/index.js +17 -14
- package/src/devTools/index.js +54 -53
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.js +11 -11
- package/src/layout-manager/src/LMLogger.js +7 -0
- package/src/layout-manager/src/LayoutManagerModel.d.ts +1 -0
- package/src/layout-manager/src/index.js +81 -58
- package/src/layout-manager/src/normalizeLayoutModel.js +3 -0
- package/src/metamodel/adaptable.metamodel.d.ts +177 -8
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +8 -3
- package/src/migration/VersionUpgrade.js +1 -0
- package/src/migration/VersionUpgrade17.js +5 -6
- package/src/migration/VersionUpgrade20.js +4 -4
- package/src/migration/VersionUpgrade22.d.ts +21 -0
- package/src/migration/VersionUpgrade22.js +187 -0
- package/src/parser/src/ExpressionEvaluationError.js +1 -0
- package/src/types.d.ts +9 -7
- package/themes/dark.css +30 -30
- package/themes/light.css +4 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -632
- package/src/View/Alert/AlertEntityRow.d.ts +0 -11
- package/src/View/Alert/AlertEntityRow.js +0 -28
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -58
- package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
- package/src/View/Components/Buttons/ButtonFunction.js +0 -8
- package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonGeneral.js +0 -7
- package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -5
- package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShow.js +0 -7
- package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShowChart.js +0 -7
- package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonUndo.js +0 -7
- package/src/View/Components/ExpressionWizard.d.ts +0 -24
- package/src/View/Components/ExpressionWizard.js +0 -77
- package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
- package/src/View/Components/FilterForm/Waiting.js +0 -14
- package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
- package/src/View/Components/Panels/PanelFooter.js +0 -9
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
- package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -15
- package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -26
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
- package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -45
- package/src/View/Components/SharedProps/WizardScopeState.d.ts +0 -4
- package/src/View/Components/WizardSummaryRow.d.ts +0 -9
- package/src/View/Components/WizardSummaryRow.js +0 -11
- package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
- package/src/View/CustomSort/CustomSortSummary.js +0 -105
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -68
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -68
- package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
- package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -56
- package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
- package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -35
- package/src/View/Filter/FilterSummary.d.ts +0 -18
- package/src/View/Filter/FilterSummary.js +0 -48
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
- package/src/View/FormatColumn/FormatColumnSummary.js +0 -90
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -88
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -94
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
- package/src/View/PlusMinus/PlusMinusSummary.js +0 -95
- package/src/View/Wizard/WizardLegend.d.ts +0 -12
- package/src/View/Wizard/WizardLegend.js +0 -23
- /package/src/{View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts → AdaptableState/Common/AdaptableRowContext.js} +0 -0
- /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/ColumnHighlightInfo.js} +0 -0
|
@@ -3,11 +3,11 @@ import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
|
3
3
|
import { AdaptableFormat } from './Common/AdaptableFormat';
|
|
4
4
|
import { ColumnScope } from './Common/ColumnScope';
|
|
5
5
|
import { RowScope } from './Common/RowScope';
|
|
6
|
-
import { SuspendableObject } from './Common/SuspendableObject';
|
|
7
6
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
8
7
|
import { TypeHint } from './Common/Types';
|
|
9
8
|
import { AdaptableBooleanQuery, LayoutExtendedConfig } from '../types';
|
|
10
9
|
import { AdaptableColumnPredicate } from './Common/AdaptablePredicate';
|
|
10
|
+
import { SuspendableObject } from '../types';
|
|
11
11
|
/**
|
|
12
12
|
* Adaptable State Section for Format Column Module
|
|
13
13
|
*/
|
|
@@ -21,6 +21,10 @@ export interface FormatColumnState extends BaseState {
|
|
|
21
21
|
* Object used in Format Column function
|
|
22
22
|
*/
|
|
23
23
|
export interface FormatColumn extends SuspendableObject {
|
|
24
|
+
/**
|
|
25
|
+
* Name of the Format Column definition
|
|
26
|
+
*/
|
|
27
|
+
Name: string;
|
|
24
28
|
/**
|
|
25
29
|
* Where Format will be applied: whole Row, some Columns, or Columns of DataType
|
|
26
30
|
*/
|
|
@@ -43,10 +47,6 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
43
47
|
* Display Format to apply to Column can be Numeric, String or Date
|
|
44
48
|
*/
|
|
45
49
|
DisplayFormat?: AdaptableFormat;
|
|
46
|
-
/**
|
|
47
|
-
* Align cells 'Left' or 'Right' or 'Center'
|
|
48
|
-
*/
|
|
49
|
-
CellAlignment?: CellAlignment;
|
|
50
50
|
/**
|
|
51
51
|
* Which types of Rows to apply format (data, grouped, summary, total)
|
|
52
52
|
*/
|
|
@@ -65,10 +65,6 @@ export type FormatColumnTarget = 'cell' | 'columnHeader';
|
|
|
65
65
|
* Defines Column Group Scope
|
|
66
66
|
*/
|
|
67
67
|
export type ColumnGroupScope = 'Expanded' | 'Collapsed' | 'Both';
|
|
68
|
-
/**
|
|
69
|
-
* Behaviour for aligning Cell contents
|
|
70
|
-
*/
|
|
71
|
-
export type CellAlignment = 'Left' | 'Right' | 'Center';
|
|
72
68
|
/**
|
|
73
69
|
* The Format Column Rule - can be either a Predicate or a BooleanExpression
|
|
74
70
|
*/
|
|
@@ -19,6 +19,7 @@ import { StatusBarState } from './StatusBarState';
|
|
|
19
19
|
import { StyledColumnState } from './StyledColumnState';
|
|
20
20
|
import { ThemeState } from './ThemeState';
|
|
21
21
|
import { ToolPanelState } from './ToolPanelState';
|
|
22
|
+
import { UserInterfaceState } from './UserInterfaceState';
|
|
22
23
|
/**
|
|
23
24
|
* The initial state of Adaptable which is populated at design-time and used to create the Adaptable State - must include at least one Layout.
|
|
24
25
|
*/
|
|
@@ -107,6 +108,10 @@ export interface InitialState {
|
|
|
107
108
|
* Sets order & visibility of Tool Panel controls in AdapTable ToolPanel (on right of grid)
|
|
108
109
|
*/
|
|
109
110
|
ToolPanel?: ToolPanelState;
|
|
111
|
+
/**
|
|
112
|
+
* Controls the visibility of AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Menus etc.)
|
|
113
|
+
*/
|
|
114
|
+
UserInterface?: UserInterfaceState;
|
|
110
115
|
}
|
|
111
116
|
/**
|
|
112
117
|
* Deprecated initial state object (now replaced by InitialState)
|
|
@@ -134,7 +139,7 @@ export interface PredefinedConfig {
|
|
|
134
139
|
*/
|
|
135
140
|
CustomSort?: CustomSortState;
|
|
136
141
|
/**
|
|
137
|
-
* Large series of properties to give users full control over the look and feel of the *Dashboard* - the section above the grid with toolbars and buttons
|
|
142
|
+
* Large series of properties to give users full control over the look and feel of the *Dashboard* - the section (typically above the grid) with toolbars and buttons
|
|
138
143
|
*/
|
|
139
144
|
Dashboard?: DashboardState;
|
|
140
145
|
/**
|
|
@@ -197,4 +202,8 @@ export interface PredefinedConfig {
|
|
|
197
202
|
* Sets the order and visibility of the Tool Panel controls in the AdapTable ToolPanel (on right of grid)
|
|
198
203
|
*/
|
|
199
204
|
ToolPanel?: ToolPanelState;
|
|
205
|
+
/**
|
|
206
|
+
* Controls the visibility of AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Menus etc.)
|
|
207
|
+
*/
|
|
208
|
+
UserInterface?: UserInterfaceState;
|
|
200
209
|
}
|
|
@@ -15,6 +15,7 @@ import { SelectedCellInfo } from './Selection/SelectedCellInfo';
|
|
|
15
15
|
import { SelectedRowInfo } from './Selection/SelectedRowInfo';
|
|
16
16
|
import { AdaptableMenuItem } from './Common/Menu';
|
|
17
17
|
import { CellHighlightInfo } from './Common/CellHighlightInfo';
|
|
18
|
+
import { ColumnHighlightInfo } from './Common/ColumnHighlightInfo';
|
|
18
19
|
import { RowHighlightInfo } from './Common/RowHighlightInfo';
|
|
19
20
|
export type { IPushPullReport, IPushPullDomain };
|
|
20
21
|
export type { OpenFinReport };
|
|
@@ -31,6 +32,7 @@ export interface InternalState extends IPushPullState, OpenFinState {
|
|
|
31
32
|
SelectedCellInfo: SelectedCellInfo;
|
|
32
33
|
SelectedRowInfo: SelectedRowInfo;
|
|
33
34
|
CellHighlightInfo: CellHighlightInfo[];
|
|
35
|
+
ColumnHighlightInfo: ColumnHighlightInfo[];
|
|
34
36
|
RowHighlightInfo: RowHighlightInfo[];
|
|
35
37
|
SettingsPanelModuleEntries: AdaptableMenuItem[];
|
|
36
38
|
AdaptableAlerts: AdaptableAlert[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
|
-
import { AdaptableObject } from '
|
|
2
|
+
import { AdaptableObject } from '../types';
|
|
3
3
|
import { ColumnSort } from './Common/ColumnSort';
|
|
4
4
|
import { ColumnFilter, GridFilter } from '../types';
|
|
5
|
-
import {
|
|
5
|
+
import { PivotAggregationColumns, TableAggregationColumns } from './Common/AggregationColumns';
|
|
6
6
|
import { RowSummary } from './Common/RowSummary';
|
|
7
7
|
import { NonEmptyArray } from '../Utilities/Extensions/ArrayExtensions';
|
|
8
8
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
@@ -32,7 +32,7 @@ export interface LayoutState extends BaseState {
|
|
|
32
32
|
*/
|
|
33
33
|
export interface LayoutBase extends AdaptableObject {
|
|
34
34
|
/**
|
|
35
|
-
* Name of Layout as
|
|
35
|
+
* Name of the Layout as it appears in the Layout toolbar and tool panel
|
|
36
36
|
*/
|
|
37
37
|
Name: string;
|
|
38
38
|
/**
|
|
@@ -165,6 +165,10 @@ export interface PivotLayout extends LayoutBase {
|
|
|
165
165
|
* Display automatically calculated Totals within EACH Pivot Column Group, in the position specified
|
|
166
166
|
*/
|
|
167
167
|
PivotColumnTotal?: PivotTotalPosition;
|
|
168
|
+
/**
|
|
169
|
+
* Ordered list of Pivot Result Columns; set to `true` to track current display order, or provide custom list
|
|
170
|
+
*/
|
|
171
|
+
PivotResultColumnsOrder?: string[] | boolean;
|
|
168
172
|
}
|
|
169
173
|
/**
|
|
170
174
|
* Defines the position of Pivot Total position - 'before' or 'after' the Value Column(s)
|
|
@@ -15,7 +15,7 @@ export interface NamedQueryState extends BaseState {
|
|
|
15
15
|
*/
|
|
16
16
|
export interface NamedQuery extends AdaptableBooleanQuery, AdaptableObject {
|
|
17
17
|
/**
|
|
18
|
-
* Name of the Query
|
|
18
|
+
* Name of the Query, used to reference it in AdaptableQL Expressions
|
|
19
19
|
*/
|
|
20
20
|
Name: string;
|
|
21
21
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
2
|
import { ColumnScope } from './Common/ColumnScope';
|
|
3
3
|
import { AdaptableBooleanQuery } from './Common/AdaptableQuery';
|
|
4
|
-
import { SuspendableObject } from '
|
|
4
|
+
import { SuspendableObject } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* Adaptable State Section for Plus Minus Module
|
|
7
7
|
*/
|
|
@@ -15,6 +15,10 @@ export interface PlusMinusState extends BaseState {
|
|
|
15
15
|
* Defines a Plus Minus Rule - used in the Plus Minus Module
|
|
16
16
|
*/
|
|
17
17
|
export interface PlusMinusNudge extends SuspendableObject {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the Plus Minus Nudge rule
|
|
20
|
+
*/
|
|
21
|
+
Name: string;
|
|
18
22
|
/**
|
|
19
23
|
* Where Rule is applied
|
|
20
24
|
*/
|
|
@@ -54,6 +54,9 @@ export interface GridCell<TData = any> {
|
|
|
54
54
|
*/
|
|
55
55
|
isRowGroupCell: boolean;
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Extended GridCell, props to show how often appears in data source and how often visible
|
|
59
|
+
*/
|
|
57
60
|
export interface GridCellWithCount extends GridCell {
|
|
58
61
|
/**
|
|
59
62
|
* How many times Cell appears in Data Source
|
|
@@ -64,6 +67,9 @@ export interface GridCellWithCount extends GridCell {
|
|
|
64
67
|
*/
|
|
65
68
|
visibleCount?: number;
|
|
66
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Grid Cell used in Grouped Rows
|
|
72
|
+
*/
|
|
67
73
|
export interface GridCellWithChildren extends GridCell {
|
|
68
74
|
/**
|
|
69
75
|
* Children of Cell
|
|
@@ -74,6 +80,9 @@ export interface GridCellWithChildren extends GridCell {
|
|
|
74
80
|
*/
|
|
75
81
|
leafChildrenCount?: number;
|
|
76
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Defines a Unique Cell Value (incl. how many times it appears in Grid)
|
|
85
|
+
*/
|
|
77
86
|
export interface UniqueGridCell<TData = any> {
|
|
78
87
|
/**
|
|
79
88
|
* Raw value of Cell
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
2
|
import { ColumnScope } from './Common/ColumnScope';
|
|
3
|
-
import { SuspendableObject } from '
|
|
3
|
+
import { SuspendableObject } from '../types';
|
|
4
4
|
/**
|
|
5
5
|
* Adaptable State Section for Shortcut Module
|
|
6
6
|
*/
|
|
@@ -18,6 +18,10 @@ export type ShortcutScopeDataType = 'number';
|
|
|
18
18
|
* Used to define a Shortcut as used in Shortcut State
|
|
19
19
|
*/
|
|
20
20
|
export interface Shortcut extends SuspendableObject {
|
|
21
|
+
/**
|
|
22
|
+
* Name of the Shortcut
|
|
23
|
+
*/
|
|
24
|
+
Name: string;
|
|
21
25
|
/**
|
|
22
26
|
* Numeric Columns where Shortcut is applied
|
|
23
27
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
|
-
import { SuspendableObject } from './Common/SuspendableObject';
|
|
3
2
|
import { AdaptablePredicate, AdaptableStyle, AdaptableBooleanQuery, AdaptableIcon } from '../types';
|
|
4
3
|
import { TypeHint } from './Common/Types';
|
|
5
4
|
import { RowScope } from './Common/RowScope';
|
|
6
5
|
import { AgSparklineOptions } from 'ag-charts-types';
|
|
6
|
+
import { SuspendableObject } from './Common/SuspendableObject';
|
|
7
7
|
/**
|
|
8
8
|
* Adaptable State Section for Styled Column Module
|
|
9
9
|
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseState } from './BaseState';
|
|
2
|
+
/**
|
|
3
|
+
* Adaptable State Section for the User Interface
|
|
4
|
+
*
|
|
5
|
+
* Controls the visibility and behaviour of AdapTable UI elements
|
|
6
|
+
*/
|
|
7
|
+
export interface UserInterfaceState extends BaseState {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to hide all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue false
|
|
12
|
+
*/
|
|
13
|
+
HideAdaptableUI?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/Api/AlertApi.d.ts
CHANGED
|
@@ -34,6 +34,12 @@ export interface AlertApi {
|
|
|
34
34
|
* @returns alert definition
|
|
35
35
|
*/
|
|
36
36
|
getAlertDefinitionById(id: AlertDefinition['Uuid'], config?: LayoutExtendedConfig): AlertDefinition;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieves an Alert Definition by its Name
|
|
39
|
+
* @param name Name of the Alert Definition
|
|
40
|
+
* @returns Alert Definition or undefined if not found
|
|
41
|
+
*/
|
|
42
|
+
getAlertDefinitionByName(name: string): AlertDefinition | undefined;
|
|
37
43
|
/**
|
|
38
44
|
* Adds given Alert Definition to Adaptable State
|
|
39
45
|
* @param alertDefinition AlertDefinition to add
|
|
@@ -19,6 +19,12 @@ export interface CustomSortApi {
|
|
|
19
19
|
* @returns Custom Sort
|
|
20
20
|
*/
|
|
21
21
|
getCustomSortById(id: CustomSort['Uuid'], config?: LayoutExtendedConfig): CustomSort;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a Custom Sort by its Name
|
|
24
|
+
* @param name Name of the Custom Sort
|
|
25
|
+
* @returns Custom Sort or undefined if not found
|
|
26
|
+
*/
|
|
27
|
+
getCustomSortByName(name: string): CustomSort | undefined;
|
|
22
28
|
/**
|
|
23
29
|
* Retrieves all Custom Sorts in Adaptable State that are currently applied
|
|
24
30
|
* @returns Custom Sorts
|
|
@@ -52,11 +58,14 @@ export interface CustomSortApi {
|
|
|
52
58
|
addCustomSort(customSort: CustomSort): CustomSort;
|
|
53
59
|
/**
|
|
54
60
|
* Creates new Custom Sort based on given values
|
|
55
|
-
* @param
|
|
56
|
-
* @param values Custom Sort values to apply
|
|
61
|
+
* @param params Parameters for creating a Custom Sort
|
|
57
62
|
* @returns Custom Sort
|
|
58
63
|
*/
|
|
59
|
-
createCustomSort(
|
|
64
|
+
createCustomSort(params: {
|
|
65
|
+
name: string;
|
|
66
|
+
columnId: string;
|
|
67
|
+
values: string[];
|
|
68
|
+
}): CustomSort;
|
|
60
69
|
/**
|
|
61
70
|
* Updates existing Custom Sort with new set of Sorted Values
|
|
62
71
|
* @param columnId Id of Column on which to edit the Custom Sort
|
package/src/Api/DataSetApi.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface DataSetApi {
|
|
|
14
14
|
*/
|
|
15
15
|
getCurrentDataSet(): DataSet | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Retrieves Data Set from State with given name
|
|
18
18
|
* @param dataSetName name of Data Set to retrieve
|
|
19
19
|
* @returns data Set
|
|
20
20
|
*/
|
|
@@ -23,6 +23,12 @@ export interface FlashingCellApi {
|
|
|
23
23
|
* @returns Flashing Cell Definition
|
|
24
24
|
*/
|
|
25
25
|
getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid'], config?: LayoutExtendedConfig): FlashingCellDefinition;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves a Flashing Cell Definition by its Name
|
|
28
|
+
* @param name Name of the Flashing Cell Definition
|
|
29
|
+
* @returns Flashing Cell Definition or undefined if not found
|
|
30
|
+
*/
|
|
31
|
+
getFlashingCellDefinitionByName(name: string): FlashingCellDefinition | undefined;
|
|
26
32
|
/**
|
|
27
33
|
* Retrieves all active (non-suspended) cell Definitions in Flashing Cell State
|
|
28
34
|
* @returns flashing cell definitions
|
|
@@ -19,6 +19,12 @@ export interface FormatColumnApi {
|
|
|
19
19
|
* @returns format column
|
|
20
20
|
*/
|
|
21
21
|
getFormatColumnByUuId(id: FormatColumn['Uuid'], config?: FormatColumnConfig): FormatColumn;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a Format Column by its Name
|
|
24
|
+
* @param name Name of the Format Column
|
|
25
|
+
* @returns Format Column or undefined if not found
|
|
26
|
+
*/
|
|
27
|
+
getFormatColumnByName(name: string): FormatColumn | undefined;
|
|
22
28
|
/**
|
|
23
29
|
* Retrieves all active (not-suspended) Format Columns in Adaptable State
|
|
24
30
|
* @returns format columns
|
|
@@ -41,10 +47,10 @@ export interface FormatColumnApi {
|
|
|
41
47
|
*/
|
|
42
48
|
addFormatColumn(formatColumn: FormatColumn): FormatColumn;
|
|
43
49
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
* Adds Format Columns to Format Column State
|
|
51
|
+
* @param formatColumn Format Columns to Add
|
|
52
|
+
* @returns format columns
|
|
53
|
+
*/
|
|
48
54
|
addFormatColumns(formatColumns: FormatColumn[]): FormatColumn[];
|
|
49
55
|
/**
|
|
50
56
|
* Edits the Format Column
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SelectedCellInfo } from '../AdaptableState/Selection/SelectedCellInfo';
|
|
|
2
2
|
import { SelectedRowInfo } from '../AdaptableState/Selection/SelectedRowInfo';
|
|
3
3
|
import { ColumnSort } from '../AdaptableState/Common/ColumnSort';
|
|
4
4
|
import { CellUpdateRequest, GridCell } from '../AdaptableState/Selection/GridCell';
|
|
5
|
-
import { DataUpdateConfig } from '../AdaptableState/Common/DataUpdateConfig';
|
|
5
|
+
import { DataRowConfig, DataUpdateConfig } from '../AdaptableState/Common/DataUpdateConfig';
|
|
6
6
|
import { CellDataChangedInfo } from '../AdaptableState/Common/CellDataChangedInfo';
|
|
7
7
|
import { CellHighlightInfo } from '../AdaptableState/Common/CellHighlightInfo';
|
|
8
8
|
import { RowHighlightInfo } from '../AdaptableState/Common/RowHighlightInfo';
|
|
@@ -13,6 +13,7 @@ import { RowsHighlightInfo } from '../AdaptableState/Common/RowsHighlightInfo';
|
|
|
13
13
|
import { TransposeConfig } from '../AdaptableState/Common/TransposeConfig';
|
|
14
14
|
import { AdaptableVariant } from '../AdaptableInterfaces/IAdaptable';
|
|
15
15
|
import { InternalState } from '../AdaptableState/InternalState';
|
|
16
|
+
import { ColumnHighlightInfo } from '../AdaptableState/Common/ColumnHighlightInfo';
|
|
16
17
|
/**
|
|
17
18
|
* Provides access to important properties and functionalities of AdapTable e.g. sorting, selected cells etc.
|
|
18
19
|
*/
|
|
@@ -70,15 +71,11 @@ export interface GridApi {
|
|
|
70
71
|
*/
|
|
71
72
|
deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
72
73
|
/**
|
|
73
|
-
*
|
|
74
|
-
* @param
|
|
75
|
-
* @param
|
|
74
|
+
* Adds, Updates or Deletes rows in AdapTable (and AG Grid) in single transaction
|
|
75
|
+
* @param dataRowConfig - Rows to add, update or remove
|
|
76
|
+
* @param dataUpdateConfig - batch option and callback function to run post transaction
|
|
76
77
|
*/
|
|
77
|
-
|
|
78
|
-
add?: any[];
|
|
79
|
-
update?: any[];
|
|
80
|
-
remove?: any[];
|
|
81
|
-
}, config?: DataUpdateConfig): Promise<{
|
|
78
|
+
manageGridData(dataRowConfig: DataRowConfig, dataUpdateConfig?: DataUpdateConfig): Promise<{
|
|
82
79
|
addedRows: IRowNode[];
|
|
83
80
|
updatedRows: IRowNode[];
|
|
84
81
|
removedRows: IRowNode[];
|
|
@@ -442,14 +439,28 @@ export interface GridApi {
|
|
|
442
439
|
highlightCell(cellHighlightInfo: CellHighlightInfo): void;
|
|
443
440
|
/**
|
|
444
441
|
* Unhighlights a Cell in AdapTable
|
|
445
|
-
* @param
|
|
442
|
+
* @param primaryKeyValue pkvalue of cell to unhilight
|
|
443
|
+
* @param columnId column id of cell to unhilight
|
|
446
444
|
*/
|
|
447
|
-
unHighlightCell(primaryKeyValue:
|
|
445
|
+
unHighlightCell(primaryKeyValue: any, columnId: string): void;
|
|
448
446
|
/**
|
|
449
447
|
* Unhighlights all highlighted Cells in AdapTable
|
|
450
|
-
* @param cellHighlightInfo cell to highlight
|
|
451
448
|
*/
|
|
452
449
|
unHighlightAllCells(): void;
|
|
450
|
+
/**
|
|
451
|
+
* Highlights a Column in AdapTable
|
|
452
|
+
* @param columnHighlightInfo column to highlight
|
|
453
|
+
*/
|
|
454
|
+
highlightColumn(columnHighlightInfo: ColumnHighlightInfo): void;
|
|
455
|
+
/**
|
|
456
|
+
* Unhighlights a Column in AdapTable
|
|
457
|
+
* @param columnId column to unhighlight
|
|
458
|
+
*/
|
|
459
|
+
unHighlightColumn(columnId: string): void;
|
|
460
|
+
/**
|
|
461
|
+
* Unhighlights all highlighted Columns in AdapTable
|
|
462
|
+
*/
|
|
463
|
+
unHighlightAllColumns(): void;
|
|
453
464
|
/**
|
|
454
465
|
* Highlight a row using an adaptable style
|
|
455
466
|
* @param rowHighlightInfo highlight instructions
|
|
@@ -585,6 +596,10 @@ export interface GridApi {
|
|
|
585
596
|
* Opens a window with a transposed view of Grid
|
|
586
597
|
*/
|
|
587
598
|
showTransposedView(transposeConfig?: TransposeConfig): void;
|
|
599
|
+
/**
|
|
600
|
+
* Closes the transposed view of the Grid (if open)
|
|
601
|
+
*/
|
|
602
|
+
closeTransposedView(): void;
|
|
588
603
|
/**
|
|
589
604
|
* Return all AG Grid columns
|
|
590
605
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiBase } from './ApiBase';
|
|
2
2
|
import { ActionColumnInternalApi } from '../Internal/ActionColumnInternalApi';
|
|
3
3
|
export class ActionColumnApiImpl extends ApiBase {
|
|
4
|
+
internalApi;
|
|
4
5
|
constructor(_adaptable) {
|
|
5
6
|
super(_adaptable);
|
|
6
7
|
this.internalApi = new ActionColumnInternalApi(_adaptable);
|
|
@@ -49,6 +49,58 @@ import { ContextMenuApiImpl } from './ContextMenuApiImpl';
|
|
|
49
49
|
import { FilterApiImpl } from './FilterApiImpl';
|
|
50
50
|
import { RowFormApiImpl } from './RowFormApiImpl';
|
|
51
51
|
export class AdaptableApiImpl {
|
|
52
|
+
adaptable;
|
|
53
|
+
internalApi;
|
|
54
|
+
optionsApi;
|
|
55
|
+
actionColumnApi;
|
|
56
|
+
applicationApi;
|
|
57
|
+
alertApi;
|
|
58
|
+
flashingCellApi;
|
|
59
|
+
predicateApi;
|
|
60
|
+
bulkUpdateApi;
|
|
61
|
+
calendarApi;
|
|
62
|
+
calculatedColumnApi;
|
|
63
|
+
cellSummaryApi;
|
|
64
|
+
columnApi;
|
|
65
|
+
stateApi;
|
|
66
|
+
customSortApi;
|
|
67
|
+
dashboardApi;
|
|
68
|
+
dataSetApi;
|
|
69
|
+
entitlementApi;
|
|
70
|
+
eventApi;
|
|
71
|
+
exportApi;
|
|
72
|
+
formatColumnApi;
|
|
73
|
+
freeTextColumnApi;
|
|
74
|
+
gridApi;
|
|
75
|
+
layoutApi;
|
|
76
|
+
plusMinusApi;
|
|
77
|
+
quickSearchApi;
|
|
78
|
+
rowFormApi;
|
|
79
|
+
scheduleApi;
|
|
80
|
+
shortcutApi;
|
|
81
|
+
smartEditApi;
|
|
82
|
+
filterApi;
|
|
83
|
+
systemStatusApi;
|
|
84
|
+
pluginsApi;
|
|
85
|
+
themeApi;
|
|
86
|
+
userInterfaceApi;
|
|
87
|
+
expressionApi;
|
|
88
|
+
settingsPanelApi;
|
|
89
|
+
styledColumnApi;
|
|
90
|
+
toolPanelApi;
|
|
91
|
+
teamSharingApi;
|
|
92
|
+
columnScopeApi;
|
|
93
|
+
dataChangeHistoryApi;
|
|
94
|
+
chartingApi;
|
|
95
|
+
statusBarApi;
|
|
96
|
+
noteApi;
|
|
97
|
+
columnMenuApi;
|
|
98
|
+
contextMenuApi;
|
|
99
|
+
fdc3Api;
|
|
100
|
+
dataImportApi;
|
|
101
|
+
namedQueryApi;
|
|
102
|
+
commentApi;
|
|
103
|
+
destroyed;
|
|
52
104
|
constructor(adaptable) {
|
|
53
105
|
this.adaptable = adaptable;
|
|
54
106
|
this.destroyed = false;
|
|
@@ -16,6 +16,7 @@ export declare class AlertApiImpl extends ApiBase implements AlertApi {
|
|
|
16
16
|
getActiveAlertDefinitions(config?: LayoutExtendedConfig): AlertDefinition[];
|
|
17
17
|
deleteAlertDefinition(alertDefinition: AlertDefinition): void;
|
|
18
18
|
getAlertDefinitionById(id: AlertDefinition['Uuid'], config?: LayoutExtendedConfig): AlertDefinition;
|
|
19
|
+
getAlertDefinitionByName(name: string): AlertDefinition | undefined;
|
|
19
20
|
addAlertDefinition(alertDefinition: AlertDefinition): AlertDefinition;
|
|
20
21
|
displayAdaptableAlert(alertToShow: AdaptableAlert): Promise<void>;
|
|
21
22
|
displayAdaptableAlertNotification(alert: AdaptableAlert): void;
|
|
@@ -7,7 +7,9 @@ import ObjectFactory from '../../Utilities/ObjectFactory';
|
|
|
7
7
|
import { isAdaptableCellChangedAlert, isAdaptableRowChangedAlert, } from '../../AdaptableState/Common/AdaptableAlert';
|
|
8
8
|
import StringExtensions from '../../Utilities/Extensions/StringExtensions';
|
|
9
9
|
import { AlertInternalApi } from '../Internal/AlertInternalApi';
|
|
10
|
+
import { resolveContainerElement } from '../../Utilities/resolveContainerElement';
|
|
10
11
|
export class AlertApiImpl extends ApiBase {
|
|
12
|
+
internalApi;
|
|
11
13
|
constructor(_adaptable) {
|
|
12
14
|
super(_adaptable);
|
|
13
15
|
this.internalApi = new AlertInternalApi(_adaptable);
|
|
@@ -31,6 +33,9 @@ export class AlertApiImpl extends ApiBase {
|
|
|
31
33
|
getAlertDefinitionById(id, config) {
|
|
32
34
|
return this.getAlertDefinitions(config).find((alert) => alert?.Uuid === id);
|
|
33
35
|
}
|
|
36
|
+
getAlertDefinitionByName(name) {
|
|
37
|
+
return this.getAlertDefinitions().find((alertDefinition) => alertDefinition.Name === name);
|
|
38
|
+
}
|
|
34
39
|
addAlertDefinition(alertDefinition) {
|
|
35
40
|
this.addUidToAdaptableObject(alertDefinition);
|
|
36
41
|
this.dispatchAction(AlertRedux.AlertDefinitionAdd(alertDefinition));
|
|
@@ -58,12 +63,7 @@ export class AlertApiImpl extends ApiBase {
|
|
|
58
63
|
}
|
|
59
64
|
// Show Alert in a Div (if one has been set)
|
|
60
65
|
if (alertProperties.ShowInDiv) {
|
|
61
|
-
|
|
62
|
-
let optionsDiv = this.getContainerOptions().alertContainer;
|
|
63
|
-
if (optionsDiv) {
|
|
64
|
-
alertDiv =
|
|
65
|
-
typeof optionsDiv === 'string' ? document.getElementById(optionsDiv) : optionsDiv;
|
|
66
|
-
}
|
|
66
|
+
const alertDiv = resolveContainerElement(this.getContainerOptions().alertContainer, this.getAdaptableInternalApi().buildBaseContext());
|
|
67
67
|
if (alertDiv) {
|
|
68
68
|
let alertString = alertToShow.header + ': ' + alertToShow.message;
|
|
69
69
|
alertDiv.innerHTML = alertString;
|
|
@@ -19,7 +19,7 @@ export declare abstract class ApiBase {
|
|
|
19
19
|
protected _adaptable: IAdaptable;
|
|
20
20
|
/**
|
|
21
21
|
* Constructor for all the api classes which simply takes and assigns an instance of Adaptable
|
|
22
|
-
* @param _adaptable
|
|
22
|
+
* @param _adaptable core IAdaptable object - for INTERNAL USE ONLY and not part of public API
|
|
23
23
|
*/
|
|
24
24
|
constructor(_adaptable: IAdaptable);
|
|
25
25
|
protected getAdatableLogger(): AdaptableLogger;
|
|
@@ -2,9 +2,10 @@ import Helper from '../../Utilities/Helpers/Helper';
|
|
|
2
2
|
import { createUuid } from '../../AdaptableState/Uuid';
|
|
3
3
|
// Base class for the Api - provides checking dispatching methods
|
|
4
4
|
export class ApiBase {
|
|
5
|
+
_adaptable;
|
|
5
6
|
/**
|
|
6
7
|
* Constructor for all the api classes which simply takes and assigns an instance of Adaptable
|
|
7
|
-
* @param _adaptable
|
|
8
|
+
* @param _adaptable core IAdaptable object - for INTERNAL USE ONLY and not part of public API
|
|
8
9
|
*/
|
|
9
10
|
constructor(_adaptable) {
|
|
10
11
|
this._adaptable = _adaptable;
|
|
@@ -4,6 +4,7 @@ import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
|
|
|
4
4
|
import { CalculatedColumnInternalApi } from '../Internal/CalculatedColumnInternalApi';
|
|
5
5
|
import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
6
6
|
export class CalculatedColumnApiImpl extends ApiBase {
|
|
7
|
+
internalApi;
|
|
7
8
|
constructor(_adaptable) {
|
|
8
9
|
super(_adaptable);
|
|
9
10
|
this.internalApi = new CalculatedColumnInternalApi(_adaptable);
|
|
@@ -5,6 +5,10 @@ import StringExtensions from '../../Utilities/Extensions/StringExtensions';
|
|
|
5
5
|
import { ChartingInternalApi } from '../Internal/ChartingInternalApi';
|
|
6
6
|
import ObjectFactory from '../../Utilities/ObjectFactory';
|
|
7
7
|
export class ChartingApiImpl extends ApiBase {
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
internalApi;
|
|
8
12
|
constructor(_adaptable) {
|
|
9
13
|
super(_adaptable);
|
|
10
14
|
this.internalApi = new ChartingInternalApi(_adaptable);
|
|
@@ -118,8 +122,8 @@ export class ChartingApiImpl extends ApiBase {
|
|
|
118
122
|
else {
|
|
119
123
|
const alert = {
|
|
120
124
|
alertType: 'generic',
|
|
121
|
-
header: 'Save
|
|
122
|
-
message: '
|
|
125
|
+
header: 'Save Chart',
|
|
126
|
+
message: 'Would you like to save this chart?',
|
|
123
127
|
alertDefinition: {
|
|
124
128
|
...ObjectFactory.CreateEmptyAlertDefinition(),
|
|
125
129
|
MessageType: 'Info',
|
|
@@ -83,7 +83,7 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
|
|
|
83
83
|
getPrimaryKeyColumn(): AdaptableColumn<any>;
|
|
84
84
|
getDefaultAggFunc(columnId: string): string;
|
|
85
85
|
openColumnInfoSettingsPanel(): void;
|
|
86
|
-
getColumnTypes(): import("../../AdaptableState/Common/Types").TypeHint<string, import("../../types").
|
|
86
|
+
getColumnTypes(): import("../../AdaptableState/Common/Types").TypeHint<string, import("../../types").AdaptableColumnTypeName>[];
|
|
87
87
|
getColumnsByColumnType(columnType: string): AdaptableColumn[];
|
|
88
88
|
getRowGroupedColumns(): AdaptableColumn[];
|
|
89
89
|
setColumnCaption(columnId: string, caption: string): void;
|
|
@@ -109,6 +109,7 @@ export function isPivotGrandTotal(columnId) {
|
|
|
109
109
|
return columnId?.startsWith(GeneralConstants.AG_GRID_PIVOT_GRAND_TOTAL_COLUMN);
|
|
110
110
|
}
|
|
111
111
|
export class ColumnApiImpl extends ApiBase {
|
|
112
|
+
internalApi;
|
|
112
113
|
constructor(_adaptable) {
|
|
113
114
|
super(_adaptable);
|
|
114
115
|
this.internalApi = new ColumnInternalApi(_adaptable);
|
|
@@ -5,6 +5,7 @@ import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
|
|
|
5
5
|
import { ColumnFilterInternalApi } from '../Internal/ColumnFilterInternalApi';
|
|
6
6
|
import StringExtensions from '../../Utilities/Extensions/StringExtensions';
|
|
7
7
|
export class ColumnFilterApiImpl extends ApiBase {
|
|
8
|
+
internalApi;
|
|
8
9
|
constructor(_adaptable) {
|
|
9
10
|
super(_adaptable);
|
|
10
11
|
this.internalApi = new ColumnFilterInternalApi(_adaptable);
|
|
@@ -4,6 +4,7 @@ import ObjectFactory from '../../Utilities/ObjectFactory';
|
|
|
4
4
|
import AdaptableHelper from '../../Utilities/Helpers/AdaptableHelper';
|
|
5
5
|
import { CommentsInternalApi } from '../Internal/CommentsInternalApi';
|
|
6
6
|
export class CommentsApiImpl extends ApiBase {
|
|
7
|
+
internalApi;
|
|
7
8
|
constructor(_adaptable) {
|
|
8
9
|
super(_adaptable);
|
|
9
10
|
this.internalApi = new CommentsInternalApi(_adaptable);
|