@adaptabletools/adaptable 22.0.0-canary.0 → 22.0.0-canary.10
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/README.md +4 -6
- 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 +10 -1
- 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 +29 -4
- 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 +10 -1
- package/src/Api/Implementation/GridApiImpl.js +36 -5
- 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 +121 -64
- 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 +18 -17
- package/src/Utilities/Constants/DocumentationLinkConstants.js +18 -17
- 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 +39 -41
- 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 +16 -3
- package/src/agGrid/AdaptableAgGrid.js +306 -103
- 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
|
@@ -1,40 +1,80 @@
|
|
|
1
|
+
import type { BaseContext } from '../AdaptableState/Common/BaseContext';
|
|
2
|
+
/**
|
|
3
|
+
* CSS Selector used to target elements by CSS selectors (e.g. class, attribute, etc.) rather than elementID
|
|
4
|
+
*/
|
|
5
|
+
export interface AdaptableCSSSelector {
|
|
6
|
+
/**
|
|
7
|
+
* CSS Selector that locates DOM element
|
|
8
|
+
*/
|
|
9
|
+
selector: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A resolved (non-function) container reference
|
|
13
|
+
*
|
|
14
|
+
* - `string` — an element ID (resolved via `document.getElementById`)
|
|
15
|
+
* - `AdaptableCSSSelector` — a CSS selector (resolved via `document.querySelector`)
|
|
16
|
+
* - `HTMLElement` — a direct reference to a DOM element
|
|
17
|
+
*/
|
|
18
|
+
export type AdaptableContainerValue = string | AdaptableCSSSelector | HTMLElement;
|
|
19
|
+
/**
|
|
20
|
+
* Context available to `adaptableContainer` and `agGridContainer` function callbacks (resolve **before** AdapTable initialises, so `adaptableApi` not available)
|
|
21
|
+
*/
|
|
22
|
+
export interface InitContainerContext {
|
|
23
|
+
/**
|
|
24
|
+
* Id of current AdapTable instance
|
|
25
|
+
*/
|
|
26
|
+
adaptableId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Current Adaptable State Key
|
|
29
|
+
*/
|
|
30
|
+
adaptableStateKey: string;
|
|
31
|
+
/**
|
|
32
|
+
* Custom application Context provided in `AdaptableOptions.adaptableContext`
|
|
33
|
+
*/
|
|
34
|
+
adaptableContext: any;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Context available to `modalContainer`, `systemStatusContainer`, `alertContainer` and `transposedViewContainer` function callbacks
|
|
38
|
+
*/
|
|
39
|
+
export type ContainerContext = BaseContext;
|
|
1
40
|
/**
|
|
2
41
|
* Options for managing the different div elements required by AdapTable
|
|
3
42
|
*/
|
|
4
43
|
export interface ContainerOptions {
|
|
5
44
|
/**
|
|
6
|
-
* Div containing AdapTable;
|
|
7
|
-
*
|
|
45
|
+
* Div containing AdapTable; element Id, CSS Selector, HTMLElement, or function returning one of these
|
|
8
46
|
* @defaultValue "adaptable"
|
|
9
47
|
* @gridInfoItem
|
|
10
48
|
*/
|
|
11
|
-
adaptableContainer?:
|
|
49
|
+
adaptableContainer?: AdaptableContainerValue | ((context: InitContainerContext) => AdaptableContainerValue);
|
|
12
50
|
/**
|
|
13
|
-
* Div containing AG Grid instance;
|
|
14
|
-
*
|
|
51
|
+
* Div containing AG Grid instance; element Id, CSS Selector, HTMLElement, or function returning one of these.
|
|
15
52
|
* @defaultValue "grid"
|
|
16
53
|
* @gridInfoItem
|
|
17
54
|
*/
|
|
18
|
-
agGridContainer?:
|
|
55
|
+
agGridContainer?: AdaptableContainerValue | ((context: InitContainerContext) => AdaptableContainerValue);
|
|
19
56
|
/**
|
|
20
|
-
* Name of div where popups appear
|
|
21
|
-
*
|
|
57
|
+
* Name of div where popups appear;element Id, CSS Selector, HTMLElement, or function returning one of these
|
|
22
58
|
* @defaultValue undefined (centre of screen)
|
|
23
59
|
* @gridInfoItem
|
|
24
60
|
*/
|
|
25
|
-
modalContainer?:
|
|
61
|
+
modalContainer?: AdaptableContainerValue | ((context: ContainerContext) => AdaptableContainerValue);
|
|
26
62
|
/**
|
|
27
|
-
* Div to show System Status
|
|
28
|
-
*
|
|
63
|
+
* Div to show System Status Messages; elementId, CSS Selector, HTMLElement, or function returning one of these
|
|
29
64
|
* @defaultValue undefined
|
|
30
65
|
* @gridInfoItem
|
|
31
66
|
*/
|
|
32
|
-
systemStatusContainer?:
|
|
67
|
+
systemStatusContainer?: AdaptableContainerValue | ((context: ContainerContext) => AdaptableContainerValue);
|
|
33
68
|
/**
|
|
34
|
-
* Div to display
|
|
35
|
-
*
|
|
69
|
+
* Div to display Alerts; elementId, CSS Selector, HTMLElement, or function returning one of these
|
|
36
70
|
* @defaultValue undefined
|
|
37
71
|
* @gridInfoItem
|
|
38
72
|
*/
|
|
39
|
-
alertContainer?:
|
|
73
|
+
alertContainer?: AdaptableContainerValue | ((context: ContainerContext) => AdaptableContainerValue);
|
|
74
|
+
/**
|
|
75
|
+
* Div to render a Transposed View; elementId, CSS Selector, HTMLElement, or function returning one of these
|
|
76
|
+
* @defaultValue undefined (rendered in a draggable popup window)
|
|
77
|
+
* @gridInfoItem
|
|
78
|
+
*/
|
|
79
|
+
transposedViewContainer?: AdaptableContainerValue | ((context: ContainerContext) => AdaptableContainerValue);
|
|
40
80
|
}
|
|
@@ -13,6 +13,10 @@ export interface CustomSortOptions<TData = any> {
|
|
|
13
13
|
* Comparer object for Column Values - used for custom sorting
|
|
14
14
|
*/
|
|
15
15
|
export interface ColumnValuesComparer<TData = any> {
|
|
16
|
+
/**
|
|
17
|
+
* Name of the CustomSort Comparer
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
16
20
|
/**
|
|
17
21
|
* Column for which to compare values
|
|
18
22
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AdaptableButton } from '../AdaptableState/Common/AdaptableButton';
|
|
2
|
-
import { AdaptableObject } from '../AdaptableState/Common/AdaptableObject';
|
|
3
2
|
import { DashboardState } from '../AdaptableState/DashboardState';
|
|
4
3
|
import { BaseContext, CustomRenderContext } from '../types';
|
|
5
4
|
import { AdaptableFrameworkComponent } from '../agGrid/AdaptableFrameworkComponent';
|
|
@@ -41,7 +40,7 @@ export interface DashboardOptions {
|
|
|
41
40
|
/**
|
|
42
41
|
* Custom Toolbar (which AdapTable will manage) enabling devs to populate Dashboard with bepoke content
|
|
43
42
|
*/
|
|
44
|
-
export interface CustomToolbar
|
|
43
|
+
export interface CustomToolbar {
|
|
45
44
|
/**
|
|
46
45
|
* How Toolbar is referenced (e.g. in Dashboard Popup when managing toolbars)
|
|
47
46
|
*/
|
|
@@ -363,8 +363,7 @@ export interface DataFormatDataType {
|
|
|
363
363
|
date?: DataFormatType;
|
|
364
364
|
}
|
|
365
365
|
/**
|
|
366
|
-
* Custom Export
|
|
367
|
-
* Use `ExcelExportParams` for Excel format exports and `CsvExportParams` for CSV, JSON and any custom format exports
|
|
366
|
+
* Custom Export Params extending AG Grid's base export params; allows overriding AdapTable default export
|
|
368
367
|
*/
|
|
369
368
|
export type CustomExportParams = ExcelExportParams | CsvExportParams;
|
|
370
369
|
/**
|
|
@@ -174,6 +174,9 @@ export interface IsRowFilterableContext<TData = any> extends BaseContext {
|
|
|
174
174
|
*/
|
|
175
175
|
data: TData;
|
|
176
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* AdapTable's Filter components: FilterBar or FilterForm
|
|
179
|
+
*/
|
|
177
180
|
export type AdaptableFilterComponentLocation = 'FilterBar' | 'FilterForm';
|
|
178
181
|
/**
|
|
179
182
|
* Context used for setting default Predicates for Column Filters
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AdaptableObject } from '../AdaptableState/Common/AdaptableObject';
|
|
2
1
|
import { AdaptableFrameworkComponent } from '../agGrid/AdaptableFrameworkComponent';
|
|
3
2
|
import { AdaptableButton } from '../AdaptableState/Common/AdaptableButton';
|
|
4
3
|
import { ToolPanelState } from '../AdaptableState/ToolPanelState';
|
|
@@ -27,7 +26,7 @@ export interface ToolPanelOptions {
|
|
|
27
26
|
/**
|
|
28
27
|
* Defines a Custom ToolPanel - provided by Users and contains custom content
|
|
29
28
|
*/
|
|
30
|
-
export interface CustomToolPanel
|
|
29
|
+
export interface CustomToolPanel {
|
|
31
30
|
/**
|
|
32
31
|
* Name of Custom ToolPanel - should be unique
|
|
33
32
|
*/
|
|
@@ -24,6 +24,7 @@ import { StyledColumnState } from './StyledColumnState';
|
|
|
24
24
|
import { NoteState } from './NoteState';
|
|
25
25
|
import { NamedQueryState } from './NamedQueryState';
|
|
26
26
|
import { CommentState } from './CommentState';
|
|
27
|
+
import { UserInterfaceState } from './UserInterfaceState';
|
|
27
28
|
/**
|
|
28
29
|
* The main state object of Adaptable
|
|
29
30
|
*/
|
|
@@ -56,6 +57,7 @@ export interface AdaptablePersistentState {
|
|
|
56
57
|
TeamSharing: TeamSharingState;
|
|
57
58
|
Theme: ThemeState;
|
|
58
59
|
ToolPanel: ToolPanelState;
|
|
60
|
+
UserInterface: UserInterfaceState;
|
|
59
61
|
}
|
|
60
62
|
/**
|
|
61
63
|
* The state which is available in the internal Redux store but never persisted
|
|
@@ -5,12 +5,11 @@ import { TypeHint } from './Common/Types';
|
|
|
5
5
|
import { AdaptableMessageType } from './Common/AdaptableMessageType';
|
|
6
6
|
import { AdaptableForm } from './Common/AdaptableForm';
|
|
7
7
|
import { AdaptableButton } from './Common/AdaptableButton';
|
|
8
|
-
import { SuspendableObject } from './Common/SuspendableObject';
|
|
9
8
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
10
9
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
11
10
|
import { AdaptableAggregatedBooleanQuery, AdaptableBooleanQuery, AdaptableObservableQuery } from './Common/AdaptableQuery';
|
|
12
11
|
import { ButtonStyle } from './Common/ButtonStyle';
|
|
13
|
-
import { AlertFormContext, BaseContext, NotificationsOptions } from '../types';
|
|
12
|
+
import { AlertFormContext, BaseContext, NotificationsOptions, SuspendableObject } from '../types';
|
|
14
13
|
/**
|
|
15
14
|
* Adaptable State section for Alert Module
|
|
16
15
|
*/
|
|
@@ -24,6 +23,10 @@ export interface AlertState extends BaseState {
|
|
|
24
23
|
* The Alert Definition object used in the Alert function
|
|
25
24
|
*/
|
|
26
25
|
export interface AlertDefinition extends SuspendableObject {
|
|
26
|
+
/**
|
|
27
|
+
* Name of the Alert Definition
|
|
28
|
+
*/
|
|
29
|
+
Name: string;
|
|
27
30
|
/**
|
|
28
31
|
* Where Alert can be triggered: one, some or all columns or DataTypes
|
|
29
32
|
*/
|
|
@@ -9,7 +9,7 @@ export declare const isAgChartDefinition: (chartDefinition: ChartDefinition | Ex
|
|
|
9
9
|
*/
|
|
10
10
|
export interface ExternalChartDefinition<T = unknown> extends AdaptableObject {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Name of the external chart
|
|
13
13
|
*/
|
|
14
14
|
Name: string;
|
|
15
15
|
/**
|
|
@@ -27,7 +27,7 @@ export interface ExternalChartDefinition<T = unknown> extends AdaptableObject {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface ChartDefinition extends AdaptableObject {
|
|
29
29
|
/**
|
|
30
|
-
* Name of the
|
|
30
|
+
* Name of the chart definition
|
|
31
31
|
*/
|
|
32
32
|
Name: string;
|
|
33
33
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Identifiable } from './AdaptableObject';
|
|
2
2
|
import { CellDataChangedInfo } from './CellDataChangedInfo';
|
|
3
3
|
import { AlertDefinition } from '../AlertState';
|
|
4
4
|
import { RowDataChangedInfo } from './RowDataChangedInfo';
|
|
@@ -36,7 +36,7 @@ export interface AdaptableRowChangedAlert<TData = any> extends AdaptableAlertBas
|
|
|
36
36
|
/**
|
|
37
37
|
* Defines the base(common) properties of an Alert fired by AdapTable, regardless of the type of change
|
|
38
38
|
*/
|
|
39
|
-
export interface AdaptableAlertBase<T> extends
|
|
39
|
+
export interface AdaptableAlertBase<T> extends Identifiable {
|
|
40
40
|
/**
|
|
41
41
|
* The type of Alert
|
|
42
42
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ButtonStyle } from './ButtonStyle';
|
|
2
|
-
import {
|
|
2
|
+
import { Identifiable } from './AdaptableObject';
|
|
3
3
|
import { AdaptableIcon } from './AdaptableIcon';
|
|
4
4
|
import { BaseContext } from '../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Defines a Button that appears in numerous places including Adaptable Form
|
|
7
7
|
*/
|
|
8
|
-
export interface AdaptableButton<CONTEXT_TYPE extends BaseContext> extends
|
|
8
|
+
export interface AdaptableButton<CONTEXT_TYPE extends BaseContext> extends Identifiable {
|
|
9
9
|
/**
|
|
10
10
|
* Label for Button - can be string or function that provides string
|
|
11
11
|
*/
|
|
@@ -9,17 +9,17 @@ export type AdaptableColumnDataType = 'text' | 'number' | 'boolean' | 'date' | '
|
|
|
9
9
|
/**
|
|
10
10
|
* Column Types recognised by AdapTable; to be set in GridOptions
|
|
11
11
|
*/
|
|
12
|
-
export type
|
|
13
|
-
export declare const HIDDEN_COLUMN_TYPE:
|
|
12
|
+
export type AdaptableColumnTypeName = 'hiddenColumn' | 'calculatedColumn' | 'freeTextColumn' | 'actionColumn' | 'fdc3Column' | 'pivotAnyTotal' | 'pivotGrandTotal' | 'pivotColumnTotal' | 'pivotAggregationTotal';
|
|
13
|
+
export declare const HIDDEN_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
14
14
|
export declare const hiddenColDefConfig: ColDef;
|
|
15
|
-
export declare const CALCULATED_COLUMN_TYPE:
|
|
16
|
-
export declare const FREE_TEXT_COLUMN_TYPE:
|
|
17
|
-
export declare const ACTION_COLUMN_TYPE:
|
|
18
|
-
export declare const FDC3_COLUMN_TYPE:
|
|
19
|
-
export declare const PIVOT_ANY_TOTAL_COLUMN_TYPE:
|
|
20
|
-
export declare const PIVOT_GRAND_TOTAL_COLUMN_TYPE:
|
|
21
|
-
export declare const PIVOT_COLUMN_TOTAL_COLUMN_TYPE:
|
|
22
|
-
export declare const PIVOT_AGGREGATION_TOTAL_COLUMN_TYPE:
|
|
15
|
+
export declare const CALCULATED_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
16
|
+
export declare const FREE_TEXT_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
17
|
+
export declare const ACTION_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
18
|
+
export declare const FDC3_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
19
|
+
export declare const PIVOT_ANY_TOTAL_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
20
|
+
export declare const PIVOT_GRAND_TOTAL_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
21
|
+
export declare const PIVOT_COLUMN_TOTAL_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
22
|
+
export declare const PIVOT_AGGREGATION_TOTAL_COLUMN_TYPE: AdaptableColumnTypeName;
|
|
23
23
|
export declare function getColumnTypeFriendlyName(columnType: string): string;
|
|
24
24
|
/**
|
|
25
25
|
* Base class for AdapTable Column containing most important properties
|
|
@@ -204,6 +204,9 @@ export interface AdaptableColumn<TData = any> extends AdaptableColumnBase {
|
|
|
204
204
|
*/
|
|
205
205
|
isPivotTotalColumn: boolean;
|
|
206
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Key properties of a Column (used in Layout Editor)
|
|
209
|
+
*/
|
|
207
210
|
export interface AdaptableColumnProperties {
|
|
208
211
|
sortable: boolean;
|
|
209
212
|
filterable: boolean;
|
|
@@ -212,6 +215,9 @@ export interface AdaptableColumnProperties {
|
|
|
212
215
|
pivotable: boolean;
|
|
213
216
|
aggregatable: boolean;
|
|
214
217
|
}
|
|
218
|
+
/**
|
|
219
|
+
* Summary of a Column including filters and all unique values
|
|
220
|
+
*/
|
|
215
221
|
export interface AdaptableColumnSummary {
|
|
216
222
|
column: AdaptableColumn;
|
|
217
223
|
columnFilter: ColumnFilter;
|
|
@@ -9,3 +9,12 @@ export interface AdaptableColumnContext<TData = any> extends BaseContext {
|
|
|
9
9
|
*/
|
|
10
10
|
column: AdaptableColumn<TData>;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Context provided for callbacks involving multiple Columns
|
|
14
|
+
*/
|
|
15
|
+
export interface AdaptableColumnsContext<TData = any> extends BaseContext {
|
|
16
|
+
/**
|
|
17
|
+
* All Columns
|
|
18
|
+
*/
|
|
19
|
+
columns: AdaptableColumn<TData>[];
|
|
20
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Identifiable } from './AdaptableObject';
|
|
2
2
|
import { CellDataChangedInfo } from '../../types';
|
|
3
3
|
import { FlashingCellDefinition } from '../../../types';
|
|
4
4
|
/**
|
|
5
5
|
* Defines an Alert fired by AdapTable
|
|
6
6
|
*/
|
|
7
|
-
export interface AdaptableFlashingCell extends
|
|
7
|
+
export interface AdaptableFlashingCell extends Identifiable {
|
|
8
8
|
/**
|
|
9
9
|
* Rule that caused the FlashingCell to fire
|
|
10
10
|
*/
|
|
@@ -5,13 +5,18 @@ import { ColumnScope } from './ColumnScope';
|
|
|
5
5
|
*/
|
|
6
6
|
export type AdaptableVersion = `${string}.${string}.${string}`;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Interface for objects that can be uniquely identified by a UUID
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface Identifiable {
|
|
11
11
|
/**
|
|
12
12
|
* Unique identifier for the Object, generated and used internally by AdapTable
|
|
13
13
|
*/
|
|
14
14
|
Uuid?: TypeUuid;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Base interface which all other Adaptable State-related objects extend
|
|
18
|
+
*/
|
|
19
|
+
export interface AdaptableObject extends Identifiable {
|
|
15
20
|
/**
|
|
16
21
|
* Source of state object: 'InitialState' if provided via `AdaptableOptions.initialState`, 'User' or undefined for runtime state
|
|
17
22
|
*/
|
|
@@ -22,6 +27,8 @@ export interface AdaptableObject {
|
|
|
22
27
|
AdaptableVersion?: AdaptableVersion;
|
|
23
28
|
/**
|
|
24
29
|
* Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')
|
|
30
|
+
*
|
|
31
|
+
* @inheritedDoc
|
|
25
32
|
*/
|
|
26
33
|
IsReadOnly?: boolean;
|
|
27
34
|
/**
|
|
@@ -57,3 +64,14 @@ export interface AdaptableObjectLookupCriteria {
|
|
|
57
64
|
export interface AdaptableObjectWithScope extends AdaptableObject {
|
|
58
65
|
Scope: ColumnScope;
|
|
59
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Interface that extends Adaptable Object for those config items that can be suspended at run-time
|
|
69
|
+
*/
|
|
70
|
+
export interface SuspendableObject extends AdaptableObject {
|
|
71
|
+
/**
|
|
72
|
+
* Suspends (i.e. turns off) an Adaptable Object
|
|
73
|
+
*
|
|
74
|
+
* @inheritedDoc
|
|
75
|
+
*/
|
|
76
|
+
IsSuspended?: boolean;
|
|
77
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IRowNode } from 'ag-grid-enterprise';
|
|
2
|
+
import { BaseContext } from './BaseContext';
|
|
3
|
+
/**
|
|
4
|
+
* Context provided for per Row callbacks
|
|
5
|
+
*/
|
|
6
|
+
export interface AdaptableRowContext<TData = any> extends BaseContext {
|
|
7
|
+
/**
|
|
8
|
+
* The current Row
|
|
9
|
+
*/
|
|
10
|
+
rowNode: IRowNode<TData>;
|
|
11
|
+
}
|
|
@@ -38,4 +38,12 @@ export interface AdaptableStyle {
|
|
|
38
38
|
* Existing CSS Class; use instead of setting other object properties
|
|
39
39
|
*/
|
|
40
40
|
ClassName?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Align to `Left`, `Right` or `Center`
|
|
43
|
+
*/
|
|
44
|
+
Alignment?: Alignment;
|
|
41
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Behaviour for aligning Cell contents
|
|
48
|
+
*/
|
|
49
|
+
export type Alignment = 'Left' | 'Right' | 'Center' | 'Default';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AdaptableStyle } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Defines how a given Column in AdapTable should be highlighted
|
|
4
|
+
*/
|
|
5
|
+
export interface ColumnHighlightInfo {
|
|
6
|
+
/**
|
|
7
|
+
* Id of Column being highlighted
|
|
8
|
+
*/
|
|
9
|
+
columnId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Time after which Column should be unhighlighted
|
|
12
|
+
*/
|
|
13
|
+
timeout?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Adaptable Style to use in the Column Highlight
|
|
16
|
+
*/
|
|
17
|
+
highlightStyle: AdaptableStyle;
|
|
18
|
+
}
|
|
@@ -19,3 +19,20 @@ export interface DataUpdateConfig {
|
|
|
19
19
|
*/
|
|
20
20
|
addIndex?: number;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Config object using for passing in rows to manageGridData function
|
|
24
|
+
*/
|
|
25
|
+
export interface DataRowConfig {
|
|
26
|
+
/**
|
|
27
|
+
* Rows to add
|
|
28
|
+
*/
|
|
29
|
+
addRows?: any[];
|
|
30
|
+
/**
|
|
31
|
+
* Rows to update
|
|
32
|
+
*/
|
|
33
|
+
updateRows?: any[];
|
|
34
|
+
/**
|
|
35
|
+
* Rows to delete
|
|
36
|
+
*/
|
|
37
|
+
deleteRows?: any[];
|
|
38
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AdaptableObject } from './AdaptableObject';
|
|
2
|
+
/**
|
|
3
|
+
* Interface that extends Adaptable Object for those config items that have a Name
|
|
4
|
+
*/
|
|
5
|
+
export interface NamedObject extends AdaptableObject {
|
|
6
|
+
/**
|
|
7
|
+
* Name of the Adaptable Object
|
|
8
|
+
*/
|
|
9
|
+
Name: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,9 @@ import { IRowNode } from 'ag-grid-enterprise';
|
|
|
3
3
|
* What row action triggered the Row Change: 'Add', 'Update', 'Delete' or 'Load'
|
|
4
4
|
*/
|
|
5
5
|
export type RowDataChangeTrigger = 'Add' | 'Update' | 'Delete' | 'Load';
|
|
6
|
+
/**
|
|
7
|
+
* Info for RowDataChangedEvent, which rows changed and why
|
|
8
|
+
*/
|
|
6
9
|
export interface RowDataChangedInfo<TData = any> {
|
|
7
10
|
/**
|
|
8
11
|
* Timestamp of change occurrence (in milliseconds)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SuspendableObject } from './SuspendableObject';
|
|
2
1
|
import { TypeHint } from './Types';
|
|
2
|
+
import { SuspendableObject } from './SuspendableObject';
|
|
3
3
|
export declare const ROW_SUMMARY_ROW_ID = "__ROW_SUMMARY_ROW_ID";
|
|
4
4
|
export declare const WEIGHTED_AVERAGE_AGGREGATED_FUNCTION = "WEIGHTED_AVERAGE";
|
|
5
5
|
export declare const summarySupportedExpressions: readonly ["MIN", "MAX", "SUM", "AVG", "COUNT", "MEDIAN", "MODE", "DISTINCT", "ONLY", "STD_DEVIATION", "WEIGHTED_AVERAGE"];
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { AdaptableObject } from '
|
|
2
|
-
import { SuspendableObject } from './SuspendableObject';
|
|
1
|
+
import { AdaptableObject, SuspendableObject } from '../../types';
|
|
3
2
|
/**
|
|
4
3
|
* Defines when an action will be run - either one-off or recurring
|
|
5
4
|
*/
|
|
6
|
-
export interface Schedule
|
|
5
|
+
export interface Schedule {
|
|
7
6
|
/**
|
|
8
7
|
* Hour the Schedule will run
|
|
9
8
|
*/
|
|
@@ -22,9 +21,13 @@ export interface Schedule extends AdaptableObject {
|
|
|
22
21
|
DaysOfWeek?: Weekdays;
|
|
23
22
|
}
|
|
24
23
|
/**
|
|
25
|
-
* Base Schedule object
|
|
24
|
+
* Base Schedule object
|
|
26
25
|
*/
|
|
27
|
-
export interface BaseSchedule extends SuspendableObject {
|
|
26
|
+
export interface BaseSchedule extends AdaptableObject, SuspendableObject {
|
|
27
|
+
/**
|
|
28
|
+
* Name of the Schedule
|
|
29
|
+
*/
|
|
30
|
+
Name: string;
|
|
28
31
|
/**
|
|
29
32
|
* The Schedule to run
|
|
30
33
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AdaptableMessageType } from './AdaptableMessageType';
|
|
2
|
-
import {
|
|
2
|
+
import { Identifiable } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Wraps a System Status Message
|
|
5
5
|
*/
|
|
6
|
-
export interface SystemStatusMessageInfo extends
|
|
6
|
+
export interface SystemStatusMessageInfo extends Identifiable {
|
|
7
7
|
/**
|
|
8
8
|
* The Message to be displayed
|
|
9
9
|
*/
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { AdaptableColumnsContext } from '../../types';
|
|
2
|
+
import type { TypeHint } from './Types';
|
|
1
3
|
/**
|
|
2
4
|
* Config used when transposing a Grid
|
|
3
5
|
*/
|
|
4
6
|
export interface TransposeConfig {
|
|
5
7
|
/**
|
|
6
|
-
* Column to use to do
|
|
8
|
+
* Column to use to do Transposition
|
|
7
9
|
* @defaultValue Primary Key Column
|
|
8
10
|
*/
|
|
9
11
|
transposedColumnId?: string;
|
|
@@ -13,18 +15,18 @@ export interface TransposeConfig {
|
|
|
13
15
|
*/
|
|
14
16
|
hideTransposedColumn?: boolean;
|
|
15
17
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @defaultValue
|
|
18
|
+
* Autosize columns in Transposed View
|
|
19
|
+
* @defaultValue true
|
|
18
20
|
*/
|
|
19
|
-
|
|
21
|
+
autosize?: boolean;
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @defaultValue
|
|
23
|
+
* Ids of Columns to Transpose
|
|
24
|
+
* @defaultValue all Grid Columns
|
|
23
25
|
*/
|
|
24
|
-
|
|
26
|
+
columnsToTranspose?: string[] | ((context: AdaptableColumnsContext) => string[]);
|
|
25
27
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @defaultValue
|
|
28
|
+
* Rows to Transpose: All, Visible or via Expression
|
|
29
|
+
* @defaultValue All
|
|
28
30
|
*/
|
|
29
|
-
|
|
31
|
+
rowsToTranspose?: TypeHint<string, 'VisibleOnly' | 'All'>;
|
|
30
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseState } from './BaseState';
|
|
2
|
-
import { SuspendableObject } from '
|
|
2
|
+
import { SuspendableObject } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Adaptable State Section for Custom Sort Module
|
|
5
5
|
*/
|
|
@@ -13,6 +13,10 @@ export interface CustomSortState extends BaseState {
|
|
|
13
13
|
* Custom Sort object used in Custom Sort function.
|
|
14
14
|
*/
|
|
15
15
|
export interface CustomSort extends SuspendableObject {
|
|
16
|
+
/**
|
|
17
|
+
* Name of the Custom Sort definition
|
|
18
|
+
*/
|
|
19
|
+
Name: string;
|
|
16
20
|
/**
|
|
17
21
|
* Id of Column on which Custom Sort will be applied
|
|
18
22
|
*/
|
|
@@ -58,7 +58,7 @@ export interface DashboardState extends BaseState {
|
|
|
58
58
|
*/
|
|
59
59
|
export interface DashboardTab extends AdaptableObject {
|
|
60
60
|
/**
|
|
61
|
-
* Name of the
|
|
61
|
+
* Name of the Dashboard Tab as it appears in the Dashboard header
|
|
62
62
|
*/
|
|
63
63
|
Name: string;
|
|
64
64
|
/**
|
|
@@ -4,7 +4,7 @@ import { AdaptableColumnPredicate, ColumnScope } from '../types';
|
|
|
4
4
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
5
5
|
import { AdaptableBooleanQuery } from './Common/AdaptableQuery';
|
|
6
6
|
import { TypeHint } from './Common/Types';
|
|
7
|
-
import { SuspendableObject } from '../../types';
|
|
7
|
+
import { AdaptableObject, SuspendableObject } from '../../types';
|
|
8
8
|
/**
|
|
9
9
|
* Adaptable State Section for Flashing Cell module
|
|
10
10
|
*/
|
|
@@ -33,7 +33,11 @@ export type FlashTargetTypes = 'row' | 'cell' | 'aggFuncCell';
|
|
|
33
33
|
/**
|
|
34
34
|
* The Flashing Cell Definition
|
|
35
35
|
*/
|
|
36
|
-
export interface FlashingCellDefinition extends SuspendableObject {
|
|
36
|
+
export interface FlashingCellDefinition extends AdaptableObject, SuspendableObject {
|
|
37
|
+
/**
|
|
38
|
+
* Name of the Flashing Cell Definition
|
|
39
|
+
*/
|
|
40
|
+
Name: string;
|
|
37
41
|
/**
|
|
38
42
|
* Which Columns, DataTypes or Column Types can Flash
|
|
39
43
|
*/
|