@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
|
@@ -11,7 +11,17 @@ export const errorOnce = (message) => {
|
|
|
11
11
|
console.error(message);
|
|
12
12
|
errorOnceFlags[message] = true;
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* AdapTable's Logger
|
|
16
|
+
*/
|
|
14
17
|
export class AdaptableLogger {
|
|
18
|
+
adaptableId;
|
|
19
|
+
debugger;
|
|
20
|
+
infoLogger;
|
|
21
|
+
successLogger;
|
|
22
|
+
warnLogger;
|
|
23
|
+
errorLogger;
|
|
24
|
+
perfLogger;
|
|
15
25
|
// use static loggers whenever access to AdaptableLogger instance is not feasible
|
|
16
26
|
static consoleErrorBase(message, ...optionalParams) {
|
|
17
27
|
if (optionalParams?.length) {
|
|
@@ -13,9 +13,19 @@ import { isWeightedAverageAggFuncName } from '../AdaptableState/Common/Aggregati
|
|
|
13
13
|
const DANGER_AG_GRID_BEANS_MAP = {};
|
|
14
14
|
const getColumnApiModule = () => ColumnApiModule;
|
|
15
15
|
export class AgGridAdapter {
|
|
16
|
+
_adaptableInstance;
|
|
17
|
+
DANGER_USE_GETTER_gridApi;
|
|
18
|
+
DANGER_gridApi_from_args;
|
|
19
|
+
// see #gridOpts_monkey_patch
|
|
20
|
+
DANGER_updateGridOptionsMonkeyPatcher;
|
|
21
|
+
// see #aggColumnFilters_monkey_patch
|
|
22
|
+
DANGER_doFiltersPassMonkeyPatcher;
|
|
23
|
+
DANGER_isAggFilterPresentMonkeyPatcher;
|
|
24
|
+
activePivotColumnFilters_MEMO = new WeakMap();
|
|
25
|
+
initialGridOptions;
|
|
26
|
+
_agGridId;
|
|
16
27
|
constructor(_adaptableInstance, config) {
|
|
17
28
|
this._adaptableInstance = _adaptableInstance;
|
|
18
|
-
this.activePivotColumnFilters_MEMO = new WeakMap();
|
|
19
29
|
const columnApiModuleReference = config?.getAgGridColumnApiModuleReference?.() ?? getColumnApiModule();
|
|
20
30
|
const ColumnDefFactory_Prototype = columnApiModuleReference?.beans?.[0]?.prototype;
|
|
21
31
|
if (!ColumnDefFactory_Prototype) {
|
|
@@ -135,7 +145,7 @@ export class AgGridAdapter {
|
|
|
135
145
|
}
|
|
136
146
|
}
|
|
137
147
|
options['columnDefs'] = colDefsWithSpecialColumns;
|
|
138
|
-
self.logger.info(`Added
|
|
148
|
+
self.logger.info(`Added special columns on GridOptions.columnDefs update (source="${source}").`);
|
|
139
149
|
}
|
|
140
150
|
// `context`
|
|
141
151
|
const passedContext = options.context;
|
|
@@ -155,7 +165,7 @@ export class AgGridAdapter {
|
|
|
155
165
|
}
|
|
156
166
|
const agGridColumnFilterService = this.DANGER_getPrivateAgGridBeans()?.colFilter;
|
|
157
167
|
if (!agGridColumnFilterService) {
|
|
158
|
-
this.logger.consoleError('
|
|
168
|
+
this.logger.consoleError('Failed to initialize ColumnFilterService. Filtering and related features will not function correctly.');
|
|
159
169
|
return;
|
|
160
170
|
}
|
|
161
171
|
const self = this;
|
|
@@ -201,7 +211,7 @@ export class AgGridAdapter {
|
|
|
201
211
|
DANGER_getPrivateAgGridBeans() {
|
|
202
212
|
const beans = DANGER_AG_GRID_BEANS_MAP[this._agGridId];
|
|
203
213
|
if (!beans) {
|
|
204
|
-
this.logger.consoleError('
|
|
214
|
+
this.logger.consoleError('Failed to access AG Grid internal beans. Adaptable will not function correctly.');
|
|
205
215
|
}
|
|
206
216
|
return beans;
|
|
207
217
|
}
|
|
@@ -345,7 +355,7 @@ export class AgGridAdapter {
|
|
|
345
355
|
if (isEndRowPin) {
|
|
346
356
|
shouldIncludeRange = false;
|
|
347
357
|
}
|
|
348
|
-
this.logger.consoleWarn('
|
|
358
|
+
this.logger.consoleWarn('Pinned rows cannot be selected in AG Grid.');
|
|
349
359
|
}
|
|
350
360
|
if (shouldIncludeRange) {
|
|
351
361
|
const y1 = Math.min(rangeSelection.startRow.rowIndex, rangeSelection.endRow.rowIndex);
|
|
@@ -515,7 +525,7 @@ export class AgGridAdapter {
|
|
|
515
525
|
deriveAdaptableColumnDataType(agColumn, logWarning = true) {
|
|
516
526
|
// Some columns can have no ID or Title. we return string as a consequence but it needs testing
|
|
517
527
|
if (!agColumn) {
|
|
518
|
-
this.logger.warn(
|
|
528
|
+
this.logger.warn('Column is undefined. Defaulting data type to "text".');
|
|
519
529
|
return 'text';
|
|
520
530
|
}
|
|
521
531
|
if (this.adaptableApi.columnApi.isAutoRowGroupColumnForSingle(agColumn.getId())) {
|
|
@@ -558,7 +568,7 @@ export class AgGridAdapter {
|
|
|
558
568
|
let row = this.getAgGridApi().getDisplayedRowAtIndex(0);
|
|
559
569
|
if (row == null) {
|
|
560
570
|
// possible that there will be no data.
|
|
561
|
-
this.logger.consoleError(`No data in grid
|
|
571
|
+
this.logger.consoleError(`No data in grid. Returning type "unknown" for column "${agColumn.getColId()}". This will affect features such as Filters and Column Formats.`);
|
|
562
572
|
return 'unknown';
|
|
563
573
|
}
|
|
564
574
|
// // if it's a group we need the content of the group
|
|
@@ -600,7 +610,7 @@ export class AgGridAdapter {
|
|
|
600
610
|
dataType = arrayDataType;
|
|
601
611
|
}
|
|
602
612
|
}
|
|
603
|
-
this.logger.consoleWarn(`No
|
|
613
|
+
this.logger.consoleWarn(`No explicit type for column "${agColumn.getColId()}". Inferred type from first row value: "${dataType}".`);
|
|
604
614
|
return dataType;
|
|
605
615
|
}
|
|
606
616
|
isColumnReadonly(colDef) {
|
|
@@ -786,7 +796,7 @@ export class AgGridAdapter {
|
|
|
786
796
|
colDef.colId = colDef.field;
|
|
787
797
|
}
|
|
788
798
|
if (!colDef.colId) {
|
|
789
|
-
this.logger.warn('
|
|
799
|
+
this.logger.warn('Column definition is missing colId. Provide either a "field" or "colId" property.', colDef);
|
|
790
800
|
}
|
|
791
801
|
};
|
|
792
802
|
this.patchColDefs(colDefs, assignColId);
|
|
@@ -71,6 +71,7 @@ export declare class AgGridColumnAdapter {
|
|
|
71
71
|
private getAlertCellStyle;
|
|
72
72
|
private getFlashingCellStyle;
|
|
73
73
|
private getCellHighlightStyle;
|
|
74
|
+
private getColumnHighlightStyle;
|
|
74
75
|
isColGroupDef(columnDefinition: ColDef | ColGroupDef): columnDefinition is ColGroupDef;
|
|
75
76
|
private getRelevantFormatColumnHeaderStyles;
|
|
76
77
|
}
|
|
@@ -27,6 +27,8 @@ export function getEditorForColumnDataType(columnDataType, variant) {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export class AgGridColumnAdapter {
|
|
30
|
+
adaptableInstance;
|
|
31
|
+
colDefPropertyCache;
|
|
30
32
|
constructor(adaptableInstance) {
|
|
31
33
|
this.adaptableInstance = adaptableInstance;
|
|
32
34
|
this.colDefPropertyCache = new Map();
|
|
@@ -300,12 +302,10 @@ export class AgGridColumnAdapter {
|
|
|
300
302
|
// see #header_text_align
|
|
301
303
|
const formatColumnWithTextAlignment = this.getRelevantFormatColumnHeaderStyles(abColumn)
|
|
302
304
|
// we take the first one only, even if multiple are defined
|
|
303
|
-
.find((fc) => fc.
|
|
305
|
+
.find((fc) => fc.Style?.Alignment != undefined);
|
|
304
306
|
if (formatColumnWithTextAlignment) {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
`ab-header__align-${formatColumnWithTextAlignment.CellAlignment.toLowerCase()}`,
|
|
308
|
-
];
|
|
307
|
+
const alignment = formatColumnWithTextAlignment.Style.Alignment.toLowerCase();
|
|
308
|
+
baseHeaderClass = [...baseHeaderClass, `ab-header__align-${alignment}`];
|
|
309
309
|
}
|
|
310
310
|
const formatColumns = this.adaptableApi.formatColumnApi.internalApi.getFormatColumnWithStyleClassNameForColumn(abColumn, {
|
|
311
311
|
target,
|
|
@@ -398,6 +398,7 @@ export class AgGridColumnAdapter {
|
|
|
398
398
|
...this.getAlertCellStyle(gridCell, params),
|
|
399
399
|
...this.getFlashingCellStyle(gridCell, params),
|
|
400
400
|
...this.getCellHighlightStyle(gridCell, params),
|
|
401
|
+
...this.getColumnHighlightStyle(gridCell, params),
|
|
401
402
|
};
|
|
402
403
|
return normalizeStyleForAgGrid(result);
|
|
403
404
|
};
|
|
@@ -655,7 +656,7 @@ export class AgGridColumnAdapter {
|
|
|
655
656
|
if (typeof original_filter !== 'boolean' &&
|
|
656
657
|
typeof original_filter?.handler !== 'function' &&
|
|
657
658
|
!pivotMode) {
|
|
658
|
-
this.adaptableApi.consoleError(`Column
|
|
659
|
+
this.adaptableApi.consoleError(`Column "${colId}" has a custom filter in colDef.filter, but Adaptable filtering only accepts boolean (true/false) values for this property.`);
|
|
659
660
|
return false;
|
|
660
661
|
}
|
|
661
662
|
return {
|
|
@@ -1261,19 +1262,6 @@ export class AgGridColumnAdapter {
|
|
|
1261
1262
|
const formatColumnStyle = formatColumn.Style
|
|
1262
1263
|
? convertAdaptableStyleToCSS(formatColumn.Style)
|
|
1263
1264
|
: {};
|
|
1264
|
-
if (formatColumn.CellAlignment) {
|
|
1265
|
-
switch (formatColumn.CellAlignment) {
|
|
1266
|
-
case 'Left':
|
|
1267
|
-
style.textAlign = 'left';
|
|
1268
|
-
break;
|
|
1269
|
-
case 'Right':
|
|
1270
|
-
style.textAlign = 'right';
|
|
1271
|
-
break;
|
|
1272
|
-
case 'Center':
|
|
1273
|
-
style.textAlign = 'center';
|
|
1274
|
-
break;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
1265
|
return { ...style, ...formatColumnStyle };
|
|
1278
1266
|
}, {});
|
|
1279
1267
|
}
|
|
@@ -1302,14 +1290,24 @@ export class AgGridColumnAdapter {
|
|
|
1302
1290
|
: flashingCell.flashingCellDefinition.NeutralChangeStyle) ?? {});
|
|
1303
1291
|
}
|
|
1304
1292
|
getCellHighlightStyle(gridCell, params) {
|
|
1305
|
-
const
|
|
1293
|
+
const cellHighlight = this.adaptableApi.internalApi
|
|
1306
1294
|
.getInternalState()
|
|
1307
1295
|
.CellHighlightInfo.find((cellHighlightInfo) => {
|
|
1308
1296
|
return (gridCell.column.columnId === cellHighlightInfo.columnId &&
|
|
1309
1297
|
cellHighlightInfo.primaryKeyValue === gridCell.primaryKeyValue);
|
|
1310
1298
|
});
|
|
1311
|
-
if (
|
|
1312
|
-
return convertAdaptableStyleToCSS(
|
|
1299
|
+
if (cellHighlight) {
|
|
1300
|
+
return convertAdaptableStyleToCSS(cellHighlight.highlightStyle);
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
getColumnHighlightStyle(gridCell, params) {
|
|
1304
|
+
const columnHighlight = this.adaptableApi.internalApi
|
|
1305
|
+
.getInternalState()
|
|
1306
|
+
.ColumnHighlightInfo.find((columnHighlightInfo) => {
|
|
1307
|
+
return (gridCell.column.columnId === columnHighlightInfo.columnId);
|
|
1308
|
+
});
|
|
1309
|
+
if (columnHighlight) {
|
|
1310
|
+
return convertAdaptableStyleToCSS(columnHighlight.highlightStyle);
|
|
1313
1311
|
}
|
|
1314
1312
|
}
|
|
1315
1313
|
isColGroupDef(columnDefinition) {
|
|
@@ -8,17 +8,18 @@ import { createUuid } from '../AdaptableState/Uuid';
|
|
|
8
8
|
import { inferSchema, initParser } from 'udsv';
|
|
9
9
|
import { AG_GRID_GROUPED_COLUMN, AG_GRID_SELECTION_COLUMN, } from '../Utilities/Constants/GeneralConstants';
|
|
10
10
|
export class AgGridExportAdapter {
|
|
11
|
+
_adaptableInstance;
|
|
12
|
+
/**
|
|
13
|
+
* !!!
|
|
14
|
+
* do NOT mutate this array reference, this is passed only initially to AG Grid and we can only change it's internal state
|
|
15
|
+
*/
|
|
16
|
+
DANGER_excelStyles = [];
|
|
17
|
+
originalExcelStyles = [];
|
|
18
|
+
excelStylesCache = {};
|
|
19
|
+
cellOrHeaderClassKey2ExcelStyleIdMap = {};
|
|
20
|
+
excelStylesWithFormattedDate = {};
|
|
11
21
|
constructor(_adaptableInstance) {
|
|
12
22
|
this._adaptableInstance = _adaptableInstance;
|
|
13
|
-
/**
|
|
14
|
-
* !!!
|
|
15
|
-
* do NOT mutate this array reference, this is passed only initially to AG Grid and we can only change it's internal state
|
|
16
|
-
*/
|
|
17
|
-
this.DANGER_excelStyles = [];
|
|
18
|
-
this.originalExcelStyles = [];
|
|
19
|
-
this.excelStylesCache = {};
|
|
20
|
-
this.cellOrHeaderClassKey2ExcelStyleIdMap = {};
|
|
21
|
-
this.excelStylesWithFormattedDate = {};
|
|
22
23
|
}
|
|
23
24
|
get agGridApi() {
|
|
24
25
|
return this._adaptableInstance.agGridAdapter.getAgGridApi();
|
|
@@ -65,7 +66,7 @@ export class AgGridExportAdapter {
|
|
|
65
66
|
try {
|
|
66
67
|
if (showProgressIndicator) {
|
|
67
68
|
this.adaptableApi.userInterfaceApi.showProgressIndicator({
|
|
68
|
-
text:
|
|
69
|
+
text: `Exporting ${report.Name}...`,
|
|
69
70
|
});
|
|
70
71
|
// waitForTimeout required to give the ProgressIndicator rendering a head-start (see rAF in ProgressIndicator implementation)
|
|
71
72
|
// see #raf_progress_indicator
|
|
@@ -119,7 +120,7 @@ export class AgGridExportAdapter {
|
|
|
119
120
|
};
|
|
120
121
|
}
|
|
121
122
|
catch (error) {
|
|
122
|
-
this.logger.consoleError(`
|
|
123
|
+
this.logger.consoleError(`Export failed: report="${report.Name}", format="${format}", destination="${config.destination}".`, error.stack);
|
|
123
124
|
}
|
|
124
125
|
finally {
|
|
125
126
|
/**
|
|
@@ -141,7 +142,7 @@ export class AgGridExportAdapter {
|
|
|
141
142
|
const exportContext = this.buildExportProcessContext(config);
|
|
142
143
|
let exportParams = this.buildExportParams(exportContext);
|
|
143
144
|
if (typeof config?.customExportParams === 'function') {
|
|
144
|
-
this.logger.info(`
|
|
145
|
+
this.logger.info(`Applying custom export params: report="${config.report.Name}", format="${config.format}".`);
|
|
145
146
|
exportParams = config.customExportParams(exportParams);
|
|
146
147
|
}
|
|
147
148
|
exportContext.exportedColumnIds = exportParams.columnKeys;
|
|
@@ -507,7 +508,7 @@ export class AgGridExportAdapter {
|
|
|
507
508
|
const columnId = column.getId();
|
|
508
509
|
const adaptableColumn = getAdaptableColumnWithColumnId(columnId);
|
|
509
510
|
if (!adaptableColumn) {
|
|
510
|
-
this.logger.warn(`Export
|
|
511
|
+
this.logger.warn(`Export styling: column "${columnId}" not found in Adaptable.`);
|
|
511
512
|
return;
|
|
512
513
|
}
|
|
513
514
|
let headerClassParams = {
|
|
@@ -570,7 +571,7 @@ export class AgGridExportAdapter {
|
|
|
570
571
|
const columnId = column.getId();
|
|
571
572
|
const adaptableColumn = getAdaptableColumnWithColumnId(columnId);
|
|
572
573
|
if (!adaptableColumn) {
|
|
573
|
-
this.logger.warn(`Export
|
|
574
|
+
this.logger.warn(`Export styling: column "${columnId}" not found in Adaptable.`);
|
|
574
575
|
return;
|
|
575
576
|
}
|
|
576
577
|
const isDateCellExportedAsFormattedValue = this.isDateCellExportedAsFormattedValue(adaptableColumn, exportContext);
|
|
@@ -14,6 +14,10 @@ export const AgGridFilterAdapterFactory = (adaptable) => {
|
|
|
14
14
|
return 'filter_' + colId + '_' + adaptable.adaptableOptions.adaptableId;
|
|
15
15
|
}
|
|
16
16
|
return class AgGridFilterAdapter {
|
|
17
|
+
params;
|
|
18
|
+
filterContainer;
|
|
19
|
+
column;
|
|
20
|
+
unmountReactRoot;
|
|
17
21
|
init(params) {
|
|
18
22
|
this.params = params;
|
|
19
23
|
this.column = params.column;
|
|
@@ -54,10 +54,13 @@ export const AgGridFloatingFilterAdapterFactory = (adaptable) => {
|
|
|
54
54
|
// Find and update header cell
|
|
55
55
|
const headerCell = findParentWithClass(filterContainer, 'ag-header-cell', stopClasses);
|
|
56
56
|
if (headerCell?.classList.contains('ag-floating-filter')) {
|
|
57
|
-
headerCell.style.padding = 'var(--ab-space
|
|
57
|
+
headerCell.style.padding = 'var(--ab-base-space)';
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
return class AgGridFloatingFilterAdapter {
|
|
61
|
+
colId;
|
|
62
|
+
filterContainer;
|
|
63
|
+
unmountReactRoot;
|
|
61
64
|
init(params) {
|
|
62
65
|
const colId = params.column.getColId();
|
|
63
66
|
this.colId = colId;
|
|
@@ -3,6 +3,7 @@ import { iconToString } from '../components/icons';
|
|
|
3
3
|
import ArrayExtensions from '../Utilities/Extensions/ArrayExtensions';
|
|
4
4
|
import { MENU_SEPARATOR } from '../Utilities/Constants/GeneralConstants';
|
|
5
5
|
export class AgGridMenuAdapter {
|
|
6
|
+
_adaptableInstance;
|
|
6
7
|
constructor(_adaptableInstance) {
|
|
7
8
|
this._adaptableInstance = _adaptableInstance;
|
|
8
9
|
}
|
|
@@ -16,12 +17,16 @@ export class AgGridMenuAdapter {
|
|
|
16
17
|
this._adaptableInstance = null;
|
|
17
18
|
}
|
|
18
19
|
buildColumnMenu(params, originalGetMainMenuItems) {
|
|
19
|
-
const columnMenuOptions = this.adaptableOptions.columnMenuOptions;
|
|
20
20
|
const agGridMenuItems = (params.defaultItems ? [...params.defaultItems] : []);
|
|
21
21
|
if (!params.column) {
|
|
22
22
|
// return only AG Grid context if the Adaptable column is not found (should not happen)
|
|
23
23
|
return agGridMenuItems;
|
|
24
24
|
}
|
|
25
|
+
// If Adaptable UI is hidden, return only AG Grid default items
|
|
26
|
+
if (!this.adaptableApi.userInterfaceApi.isAdaptableUIVisible()) {
|
|
27
|
+
return agGridMenuItems;
|
|
28
|
+
}
|
|
29
|
+
const columnMenuOptions = this.adaptableOptions.columnMenuOptions;
|
|
25
30
|
const adaptableColumn = this.adaptableApi.columnApi.getColumnWithColumnId(params.column?.getColId());
|
|
26
31
|
const menuContext = this.createColumnMenuContextObject(adaptableColumn, params.column);
|
|
27
32
|
/**
|
|
@@ -59,6 +64,10 @@ export class AgGridMenuAdapter {
|
|
|
59
64
|
if (!params.column) {
|
|
60
65
|
return [];
|
|
61
66
|
}
|
|
67
|
+
// If Adaptable UI is hidden, return only AG Grid default items
|
|
68
|
+
if (!this.adaptableApi.userInterfaceApi.isAdaptableUIVisible()) {
|
|
69
|
+
return (params.defaultItems ? [...params.defaultItems] : []);
|
|
70
|
+
}
|
|
62
71
|
// we do this in order to refresh the internal state of selected cells (technically query the AG Grid cellRanges)
|
|
63
72
|
// (right-click selected the current cell, but this was not reflected in the internal state of the selected cells)
|
|
64
73
|
this._adaptableInstance.refreshSelectedCellsState();
|
|
@@ -2,9 +2,10 @@ import { AdaptableLogger } from '.';
|
|
|
2
2
|
import { AllEnterpriseModule } from 'ag-grid-enterprise';
|
|
3
3
|
export const AG_GRID_VERSION = AllEnterpriseModule.version;
|
|
4
4
|
export class AgGridModulesAdapter {
|
|
5
|
+
adaptableInstance;
|
|
6
|
+
allAgGridModules = new Set();
|
|
5
7
|
constructor(adaptableInstance) {
|
|
6
8
|
this.adaptableInstance = adaptableInstance;
|
|
7
|
-
this.allAgGridModules = new Set();
|
|
8
9
|
this.allAgGridModules = this.extractAgGridModuleNames(AllEnterpriseModule);
|
|
9
10
|
}
|
|
10
11
|
destroy() {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DARK_THEME, LIGHT_THEME } from '../Utilities/Constants/GeneralConstants';
|
|
2
2
|
export class AgGridThemeAdapter {
|
|
3
|
+
_adaptableInstance;
|
|
4
|
+
agGridThemeMode;
|
|
3
5
|
constructor(_adaptableInstance) {
|
|
4
6
|
this._adaptableInstance = _adaptableInstance;
|
|
5
7
|
}
|
|
@@ -99,9 +101,9 @@ export class AgGridThemeAdapter {
|
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
else {
|
|
102
|
-
this.logger.warn('
|
|
104
|
+
this.logger.warn('AG Grid container not found. Defaulting to ag-theme-balham for the light theme.');
|
|
103
105
|
}
|
|
104
|
-
this.logger.warn('No ag-theme
|
|
106
|
+
this.logger.warn('No ag-theme-* class found on the grid container. Defaulting to ag-theme-balham.');
|
|
105
107
|
// fallback to the default light theme
|
|
106
108
|
return 'ag-theme-balham';
|
|
107
109
|
}
|
|
@@ -97,6 +97,11 @@ export const ReactActionColumnRenderer = (props) => {
|
|
|
97
97
|
React.createElement(ActionButtons, { buttons: actionButtons, adaptableApi: adaptable.api, context: buttonContext, rerender: rerender })));
|
|
98
98
|
};
|
|
99
99
|
export class ActionColumnRenderer {
|
|
100
|
+
eGui;
|
|
101
|
+
eventListener;
|
|
102
|
+
unmountReactRoot;
|
|
103
|
+
layoutSwitchUnsubscribe;
|
|
104
|
+
actionButtons;
|
|
100
105
|
// gets called once before the renderer is used
|
|
101
106
|
init(params) {
|
|
102
107
|
const adaptable = params.context.__adaptable;
|
|
@@ -3,6 +3,8 @@ import { renderWithAdaptableContext } from '../../View/renderWithAdaptableContex
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
export const getBadgeRendererForColumn = (badgeStyle, abColumn, api) => {
|
|
5
5
|
return class BadgetRenderer {
|
|
6
|
+
eGui;
|
|
7
|
+
unmountReactRoot;
|
|
6
8
|
getAdaptableInstance(params) {
|
|
7
9
|
const adaptable = params.context.__adaptable;
|
|
8
10
|
return adaptable;
|
|
@@ -5,6 +5,7 @@ export const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
5
5
|
return;
|
|
6
6
|
}
|
|
7
7
|
return class PercentBarRenderer {
|
|
8
|
+
eGui;
|
|
8
9
|
init(params) {
|
|
9
10
|
const min = api.styledColumnApi.internalApi.getNumericStyleMinValue(styledColumn, abColumn, params.node, params.value);
|
|
10
11
|
const max = api.styledColumnApi.internalApi.getNumericStyleMaxValue(styledColumn, abColumn, params.node, params.value);
|
|
@@ -94,9 +94,12 @@ export const AdaptableReactDateEditor = forwardRef((props, ref) => {
|
|
|
94
94
|
* We strongly recommend you specify a `colDef.valueParser` function
|
|
95
95
|
*/
|
|
96
96
|
export class AdaptableDateEditor {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
value;
|
|
98
|
+
el;
|
|
99
|
+
params;
|
|
100
|
+
editor;
|
|
101
|
+
unmountReactRoot;
|
|
102
|
+
valueParser = defaultDateValueParser;
|
|
100
103
|
init(params) {
|
|
101
104
|
this.value = getStartValue(params);
|
|
102
105
|
const { valueParser } = params.column.getColDef();
|
|
@@ -81,18 +81,13 @@ AdaptableReactNumberEditor.displayName = 'AdaptableReactNumberEditor';
|
|
|
81
81
|
* Number Editor provided by AdapTable and used by default for all `number` columns
|
|
82
82
|
*/
|
|
83
83
|
export class AdaptableNumberEditor {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
newValue: value,
|
|
92
|
-
})
|
|
93
|
-
: value;
|
|
94
|
-
};
|
|
95
|
-
}
|
|
84
|
+
value;
|
|
85
|
+
columnId;
|
|
86
|
+
el;
|
|
87
|
+
params;
|
|
88
|
+
editor;
|
|
89
|
+
valueParser = defaultValueParser;
|
|
90
|
+
unmountReactRoot;
|
|
96
91
|
init(params) {
|
|
97
92
|
this.value = getStartValue(params);
|
|
98
93
|
this.params = params;
|
|
@@ -143,4 +138,13 @@ export class AdaptableNumberEditor {
|
|
|
143
138
|
destroy() {
|
|
144
139
|
this.unmountReactRoot?.();
|
|
145
140
|
}
|
|
141
|
+
onValueChange = (value) => {
|
|
142
|
+
this.value = this.valueParser
|
|
143
|
+
? this.valueParser({
|
|
144
|
+
...this.params,
|
|
145
|
+
oldValue: this.params.value,
|
|
146
|
+
newValue: value,
|
|
147
|
+
})
|
|
148
|
+
: value;
|
|
149
|
+
};
|
|
146
150
|
}
|
|
@@ -65,19 +65,13 @@ AdaptableReactPercentageEditor.displayName = 'AdaptableReactPercentageEditor';
|
|
|
65
65
|
* Used to edit percentage columns as percentages (similar to how its done in Excel)
|
|
66
66
|
*/
|
|
67
67
|
export class AdaptablePercentageEditor {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
newValue: value,
|
|
76
|
-
})
|
|
77
|
-
: value;
|
|
78
|
-
this.value = NumberExtensions.divideBy100(newValue);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
68
|
+
value;
|
|
69
|
+
columnId;
|
|
70
|
+
el;
|
|
71
|
+
params;
|
|
72
|
+
editor;
|
|
73
|
+
valueParser = defaultValueParser;
|
|
74
|
+
unmountReactRoot;
|
|
81
75
|
init(params) {
|
|
82
76
|
this.value = getStartValue(params);
|
|
83
77
|
this.params = params;
|
|
@@ -128,4 +122,14 @@ export class AdaptablePercentageEditor {
|
|
|
128
122
|
destroy() {
|
|
129
123
|
this.unmountReactRoot?.();
|
|
130
124
|
}
|
|
125
|
+
onValueChange = (value) => {
|
|
126
|
+
const newValue = this.valueParser
|
|
127
|
+
? this.valueParser({
|
|
128
|
+
...this.params,
|
|
129
|
+
oldValue: this.params.value,
|
|
130
|
+
newValue: value,
|
|
131
|
+
})
|
|
132
|
+
: value;
|
|
133
|
+
this.value = NumberExtensions.divideBy100(newValue);
|
|
134
|
+
};
|
|
131
135
|
}
|
package/src/agGrid/index.d.ts
CHANGED
|
@@ -2,5 +2,11 @@ import { Adaptable, AdaptableNoCodeWizard as ABWizard } from './Adaptable';
|
|
|
2
2
|
import { AdaptableLogger as ABLogger } from './AdaptableLogger';
|
|
3
3
|
export { default as AdaptableWizardView } from '../View/AdaptableWizardView';
|
|
4
4
|
export default Adaptable;
|
|
5
|
+
/**
|
|
6
|
+
* AdapTable's No Code Wizard
|
|
7
|
+
*/
|
|
5
8
|
export declare const AdaptableNoCodeWizard: typeof ABWizard;
|
|
9
|
+
/**
|
|
10
|
+
* AdapTable's Logger
|
|
11
|
+
*/
|
|
6
12
|
export declare const AdaptableLogger: typeof ABLogger;
|
package/src/agGrid/index.js
CHANGED
|
@@ -4,5 +4,11 @@ AdaptableNoCodeWizard as ABWizard, } from './Adaptable';
|
|
|
4
4
|
import { AdaptableLogger as ABLogger } from './AdaptableLogger';
|
|
5
5
|
export { default as AdaptableWizardView } from '../View/AdaptableWizardView';
|
|
6
6
|
export default Adaptable;
|
|
7
|
+
/**
|
|
8
|
+
* AdapTable's No Code Wizard
|
|
9
|
+
*/
|
|
7
10
|
export const AdaptableNoCodeWizard = ABWizard;
|
|
11
|
+
/**
|
|
12
|
+
* AdapTable's Logger
|
|
13
|
+
*/
|
|
8
14
|
export const AdaptableLogger = ABLogger;
|
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
const Square = (props) => {
|
|
6
6
|
return React.createElement("div", { className: `ab-CheckBox__square ab-CheckBox__square--${props.type}` });
|
|
7
7
|
};
|
|
8
|
-
const CheckBox = ({ children, checked, onChange, value, name, disabled, readOnly, variant = 'default', gapDistance = 'var(--ab-space
|
|
8
|
+
const CheckBox = ({ children, checked, onChange, value, name, disabled, readOnly, variant = 'default', gapDistance = 'var(--ab-base-space)', childrenPosition = 'end', as = 'label', ...props }) => {
|
|
9
9
|
const [stateChecked, setStateChecked] = useState(false);
|
|
10
10
|
const computedChecked = checked !== undefined ? checked : stateChecked;
|
|
11
11
|
const onInputChange = (event) => {
|
|
@@ -49,8 +49,9 @@ export const ColorPicker = React.forwardRef((props, ref) => {
|
|
|
49
49
|
ABcolorChoices,
|
|
50
50
|
includeAlpha && (React.createElement(Flex, { alignItems: "center", className: "twa:gap-1" },
|
|
51
51
|
React.createElement(Box, null, "Opacity"),
|
|
52
|
-
React.createElement(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
React.createElement(Flex, { alignItems: "center", className: "twa:min-h-input" },
|
|
53
|
+
React.createElement(Input, { disabled: props.disabled, className: "ab-ColorPicker-range", style: { background: rangeBackround }, value: alpha, onChange: (event) => {
|
|
54
|
+
const color = tinycolor(value).setAlpha(event.target.value).toRgbString();
|
|
55
|
+
debouncedOnChange(color);
|
|
56
|
+
}, min: 0, max: 1, step: 0.01, type: "range" }))))));
|
|
56
57
|
});
|
|
@@ -8,5 +8,5 @@ export function DashboardToolbar(props) {
|
|
|
8
8
|
React.createElement(Flex, { className: "ab-Dashboard__toolbar-title twa:items-center twa:justify-center twa:px-2 twa:pb-1 twa:opacity-70", flexDirection: "row" },
|
|
9
9
|
React.createElement("span", { className: "twa:text-2" }, props.title),
|
|
10
10
|
props.showConfigure && (React.createElement(SimpleButton, { "aria-label": `Configure ${props.title}`, icon: "spanner", variant: "text", tone: "none", "data-name": "configure", iconSize: 16, className: "twa:ml-1", tooltip: props.tooltip || `Configure ${props.title}`, onClick: () => props.onConfigure() })),
|
|
11
|
-
props.showClose && (React.createElement(SimpleButton, { "aria-label": `Close ${props.title}`, style: { alignSelf: 'flex-end' }, disabled: props.accessLevel == 'ReadOnly', "data-name": "close", icon: "close", variant: "text", tone: "none", iconSize: 16, className: "twa:ml-1", tooltip: props.tooltip || `Close ${props.title} Toolbar`, onClick: () => props.onClose() })))));
|
|
11
|
+
props.showClose && (React.createElement(SimpleButton, { "aria-label": `Close ${props.title}`, style: { alignSelf: 'flex-end' }, disabled: props.accessLevel == 'ReadOnly', "data-name": "close", icon: "close", variant: "text", tone: "none", iconSize: 16, className: "twa:ml-1", tooltip: props.tooltip || `Close ${props.title} Toolbar`, onClick: () => props.onClose?.() })))));
|
|
12
12
|
}
|
|
@@ -112,7 +112,7 @@ export const Datepicker = React.forwardRef((props, ref) => {
|
|
|
112
112
|
}, accessLevel: 'Full' })) : null;
|
|
113
113
|
const calendarButton = (React.createElement(SimpleButton, { disabled: disabled, variant: "text", icon: "calendar", tooltip: "Date", iconSize: 20, className: "twa:p-0", onClick: () => setVisible(true) }));
|
|
114
114
|
const overlayDOMRef = useRef(null);
|
|
115
|
-
return (React.createElement(Flex,
|
|
115
|
+
return (React.createElement(Flex, { className: "twa:flex-1" },
|
|
116
116
|
React.createElement(OverlayTrigger, { visible: visible, render: () => (React.createElement(DatepickerOverlay, { overlayDOMRef: overlayDOMRef, onMouseDown: props.onMouseDown, onHide: () => setVisible(false), onKeyDown: (e) => {
|
|
117
117
|
if (e.key === 'Escape' || e.key === 'Enter') {
|
|
118
118
|
setVisible(false, e.key);
|
|
@@ -8,7 +8,7 @@ const Arrows = () => {
|
|
|
8
8
|
// background: 'var(--ab-color-defaultbackground)',
|
|
9
9
|
fill: 'var(--ab-cmp-dropdown__fill)',
|
|
10
10
|
top: '50%',
|
|
11
|
-
right: 'var(--ab-space
|
|
11
|
+
right: 'var(--ab-base-space)',
|
|
12
12
|
transform: 'translate3d(0px, -50%, 0px)',
|
|
13
13
|
cursor: 'pointer',
|
|
14
14
|
} },
|
|
@@ -35,11 +35,11 @@ export const DataTableEditor = ({ fields, dataFormatter, data: initialData, type
|
|
|
35
35
|
hasFriendlyNames && (React.createElement(CheckBox, { checked: showColumnIds, onChange: (checked) => setShowValues(checked), style: {
|
|
36
36
|
float: 'right',
|
|
37
37
|
margin: 0,
|
|
38
|
-
paddingTop: 'var(--ab-space
|
|
39
|
-
paddingBottom: 'var(--ab-space
|
|
38
|
+
paddingTop: 'var(--ab-base-space)',
|
|
39
|
+
paddingBottom: 'var(--ab-base-space)',
|
|
40
40
|
} }, labels?.showIds ?? 'Show Column IDs')),
|
|
41
41
|
React.createElement(AdaptableFormControlTextClear, { value: searchInputValue, OnTextChange: setSearchInputValue, placeholder: labels?.filterPlaceholder ?? 'Filter columns...', style: { flex: 1, marginBottom: 3 } })),
|
|
42
|
-
React.createElement(FormLayout, { className: "ab-ExpressionEditor__columns", gridColumnGap: "var(--ab-space
|
|
42
|
+
React.createElement(FormLayout, { className: "ab-ExpressionEditor__columns", gridColumnGap: "var(--ab-base-space)", gridRowGap: "var(--ab-base-space)", sizes: ['auto', '1fr'], style: { alignItems: 'stretch', overflow: 'auto' } }, fields
|
|
43
43
|
.filter((field) => {
|
|
44
44
|
if (!searchInputValue) {
|
|
45
45
|
return true;
|