@adaptabletools/adaptable-cjs 22.0.0-canary.1 → 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/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 +85 -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/ColumnHighlightInfo.js +2 -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 +2 -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 +2 -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 +23 -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 +10 -10
- package/src/Api/Implementation/GridApiImpl.js +35 -20
- 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 +17 -1
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +15 -0
- package/src/Redux/ActionsReducers/InternalRedux.js +42 -3
- 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 +26 -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 +17 -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 +47 -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 +48 -12
- package/src/View/Alert/Wizard/AlertWizard.js +12 -8
- 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 +35 -0
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +18 -17
- 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 +40 -14
- 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 +36 -15
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +13 -9
- 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 +22 -11
- 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 +24 -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 +78 -15
- 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 +191 -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.cjs.tsbuildinfo +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +0 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +0 -633
- package/src/View/Alert/AlertEntityRow.d.ts +0 -11
- package/src/View/Alert/AlertEntityRow.js +0 -33
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -21
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +0 -63
- package/src/View/Components/Buttons/ButtonFunction.d.ts +0 -7
- package/src/View/Components/Buttons/ButtonFunction.js +0 -13
- package/src/View/Components/Buttons/ButtonGeneral.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonGeneral.js +0 -12
- package/src/View/Components/Buttons/ButtonPreviewDelete.d.ts +0 -4
- package/src/View/Components/Buttons/ButtonPreviewDelete.js +0 -8
- package/src/View/Components/Buttons/ButtonShow.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShow.js +0 -12
- package/src/View/Components/Buttons/ButtonShowChart.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonShowChart.js +0 -12
- package/src/View/Components/Buttons/ButtonUndo.d.ts +0 -5
- package/src/View/Components/Buttons/ButtonUndo.js +0 -12
- package/src/View/Components/ExpressionWizard.d.ts +0 -24
- package/src/View/Components/ExpressionWizard.js +0 -82
- package/src/View/Components/FilterForm/Waiting.d.ts +0 -10
- package/src/View/Components/FilterForm/Waiting.js +0 -19
- package/src/View/Components/Panels/PanelFooter.d.ts +0 -10
- package/src/View/Components/Panels/PanelFooter.js +0 -14
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +0 -12
- package/src/View/Components/Panels/PanelWithTwoButtons.js +0 -20
- package/src/View/Components/Panels/ToolPanelSettingsPanel.d.ts +0 -8
- package/src/View/Components/Panels/ToolPanelSettingsPanel.js +0 -31
- package/src/View/Components/Selectors/ColumnSelectorOld.d.ts +0 -18
- package/src/View/Components/Selectors/ColumnSelectorOld.js +0 -50
- 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 -16
- package/src/View/CustomSort/CustomSortSummary.d.ts +0 -23
- package/src/View/CustomSort/CustomSortSummary.js +0 -110
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +0 -9
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +0 -24
- package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +0 -19
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +0 -73
- package/src/View/Export/Wizard/ReportSettingsWizard.d.ts +0 -21
- package/src/View/Export/Wizard/ReportSettingsWizard.js +0 -61
- package/src/View/Export/Wizard/ReportSummaryWizard.d.ts +0 -15
- package/src/View/Export/Wizard/ReportSummaryWizard.js +0 -40
- package/src/View/Filter/FilterSummary.d.ts +0 -18
- package/src/View/Filter/FilterSummary.js +0 -53
- package/src/View/FormatColumn/FormatColumnSummary.d.ts +0 -22
- package/src/View/FormatColumn/FormatColumnSummary.js +0 -95
- package/src/View/FreeTextColumn/FreeTextColumnSummary.d.ts +0 -22
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +0 -93
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.d.ts +0 -7
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +0 -99
- package/src/View/PlusMinus/PlusMinusSummary.d.ts +0 -22
- package/src/View/PlusMinus/PlusMinusSummary.js +0 -100
- package/src/View/Wizard/WizardLegend.d.ts +0 -12
- package/src/View/Wizard/WizardLegend.js +0 -28
- /package/src/{View/Components/SharedProps/WizardScopeState.js → AdaptableState/Common/AdaptableRowContext.js} +0 -0
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdaptableFilterHandler = void 0;
|
|
4
4
|
class AdaptableFilterHandler {
|
|
5
|
+
adaptableApi;
|
|
6
|
+
colId;
|
|
7
|
+
filterDisplayValuesResult;
|
|
8
|
+
previousFilterDisplayValuesResult;
|
|
5
9
|
constructor(adaptableApi) {
|
|
6
10
|
this.adaptableApi = adaptableApi;
|
|
7
11
|
}
|
|
@@ -15,7 +15,17 @@ const errorOnce = (message) => {
|
|
|
15
15
|
errorOnceFlags[message] = true;
|
|
16
16
|
};
|
|
17
17
|
exports.errorOnce = errorOnce;
|
|
18
|
+
/**
|
|
19
|
+
* AdapTable's Logger
|
|
20
|
+
*/
|
|
18
21
|
class AdaptableLogger {
|
|
22
|
+
adaptableId;
|
|
23
|
+
debugger;
|
|
24
|
+
infoLogger;
|
|
25
|
+
successLogger;
|
|
26
|
+
warnLogger;
|
|
27
|
+
errorLogger;
|
|
28
|
+
perfLogger;
|
|
19
29
|
// use static loggers whenever access to AdaptableLogger instance is not feasible
|
|
20
30
|
static consoleErrorBase(message, ...optionalParams) {
|
|
21
31
|
if (optionalParams?.length) {
|
|
@@ -17,9 +17,19 @@ const AggregationColumns_1 = require("../AdaptableState/Common/AggregationColumn
|
|
|
17
17
|
const DANGER_AG_GRID_BEANS_MAP = {};
|
|
18
18
|
const getColumnApiModule = () => ag_grid_enterprise_1.ColumnApiModule;
|
|
19
19
|
class AgGridAdapter {
|
|
20
|
+
_adaptableInstance;
|
|
21
|
+
DANGER_USE_GETTER_gridApi;
|
|
22
|
+
DANGER_gridApi_from_args;
|
|
23
|
+
// see #gridOpts_monkey_patch
|
|
24
|
+
DANGER_updateGridOptionsMonkeyPatcher;
|
|
25
|
+
// see #aggColumnFilters_monkey_patch
|
|
26
|
+
DANGER_doFiltersPassMonkeyPatcher;
|
|
27
|
+
DANGER_isAggFilterPresentMonkeyPatcher;
|
|
28
|
+
activePivotColumnFilters_MEMO = new WeakMap();
|
|
29
|
+
initialGridOptions;
|
|
30
|
+
_agGridId;
|
|
20
31
|
constructor(_adaptableInstance, config) {
|
|
21
32
|
this._adaptableInstance = _adaptableInstance;
|
|
22
|
-
this.activePivotColumnFilters_MEMO = new WeakMap();
|
|
23
33
|
const columnApiModuleReference = config?.getAgGridColumnApiModuleReference?.() ?? getColumnApiModule();
|
|
24
34
|
const ColumnDefFactory_Prototype = columnApiModuleReference?.beans?.[0]?.prototype;
|
|
25
35
|
if (!ColumnDefFactory_Prototype) {
|
|
@@ -139,7 +149,7 @@ class AgGridAdapter {
|
|
|
139
149
|
}
|
|
140
150
|
}
|
|
141
151
|
options['columnDefs'] = colDefsWithSpecialColumns;
|
|
142
|
-
self.logger.info(`Added
|
|
152
|
+
self.logger.info(`Added special columns on GridOptions.columnDefs update (source="${source}").`);
|
|
143
153
|
}
|
|
144
154
|
// `context`
|
|
145
155
|
const passedContext = options.context;
|
|
@@ -159,7 +169,7 @@ class AgGridAdapter {
|
|
|
159
169
|
}
|
|
160
170
|
const agGridColumnFilterService = this.DANGER_getPrivateAgGridBeans()?.colFilter;
|
|
161
171
|
if (!agGridColumnFilterService) {
|
|
162
|
-
this.logger.consoleError('
|
|
172
|
+
this.logger.consoleError('Failed to initialize ColumnFilterService. Filtering and related features will not function correctly.');
|
|
163
173
|
return;
|
|
164
174
|
}
|
|
165
175
|
const self = this;
|
|
@@ -205,7 +215,7 @@ class AgGridAdapter {
|
|
|
205
215
|
DANGER_getPrivateAgGridBeans() {
|
|
206
216
|
const beans = DANGER_AG_GRID_BEANS_MAP[this._agGridId];
|
|
207
217
|
if (!beans) {
|
|
208
|
-
this.logger.consoleError('
|
|
218
|
+
this.logger.consoleError('Failed to access AG Grid internal beans. Adaptable will not function correctly.');
|
|
209
219
|
}
|
|
210
220
|
return beans;
|
|
211
221
|
}
|
|
@@ -349,7 +359,7 @@ class AgGridAdapter {
|
|
|
349
359
|
if (isEndRowPin) {
|
|
350
360
|
shouldIncludeRange = false;
|
|
351
361
|
}
|
|
352
|
-
this.logger.consoleWarn('
|
|
362
|
+
this.logger.consoleWarn('Pinned rows cannot be selected in AG Grid.');
|
|
353
363
|
}
|
|
354
364
|
if (shouldIncludeRange) {
|
|
355
365
|
const y1 = Math.min(rangeSelection.startRow.rowIndex, rangeSelection.endRow.rowIndex);
|
|
@@ -519,7 +529,7 @@ class AgGridAdapter {
|
|
|
519
529
|
deriveAdaptableColumnDataType(agColumn, logWarning = true) {
|
|
520
530
|
// Some columns can have no ID or Title. we return string as a consequence but it needs testing
|
|
521
531
|
if (!agColumn) {
|
|
522
|
-
this.logger.warn(
|
|
532
|
+
this.logger.warn('Column is undefined. Defaulting data type to "text".');
|
|
523
533
|
return 'text';
|
|
524
534
|
}
|
|
525
535
|
if (this.adaptableApi.columnApi.isAutoRowGroupColumnForSingle(agColumn.getId())) {
|
|
@@ -562,7 +572,7 @@ class AgGridAdapter {
|
|
|
562
572
|
let row = this.getAgGridApi().getDisplayedRowAtIndex(0);
|
|
563
573
|
if (row == null) {
|
|
564
574
|
// possible that there will be no data.
|
|
565
|
-
this.logger.consoleError(`No data in grid
|
|
575
|
+
this.logger.consoleError(`No data in grid. Returning type "unknown" for column "${agColumn.getColId()}". This will affect features such as Filters and Column Formats.`);
|
|
566
576
|
return 'unknown';
|
|
567
577
|
}
|
|
568
578
|
// // if it's a group we need the content of the group
|
|
@@ -604,7 +614,7 @@ class AgGridAdapter {
|
|
|
604
614
|
dataType = arrayDataType;
|
|
605
615
|
}
|
|
606
616
|
}
|
|
607
|
-
this.logger.consoleWarn(`No
|
|
617
|
+
this.logger.consoleWarn(`No explicit type for column "${agColumn.getColId()}". Inferred type from first row value: "${dataType}".`);
|
|
608
618
|
return dataType;
|
|
609
619
|
}
|
|
610
620
|
isColumnReadonly(colDef) {
|
|
@@ -790,7 +800,7 @@ class AgGridAdapter {
|
|
|
790
800
|
colDef.colId = colDef.field;
|
|
791
801
|
}
|
|
792
802
|
if (!colDef.colId) {
|
|
793
|
-
this.logger.warn('
|
|
803
|
+
this.logger.warn('Column definition is missing colId. Provide either a "field" or "colId" property.', colDef);
|
|
794
804
|
}
|
|
795
805
|
};
|
|
796
806
|
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
|
}
|
|
@@ -32,6 +32,8 @@ function getEditorForColumnDataType(columnDataType, variant) {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
class AgGridColumnAdapter {
|
|
35
|
+
adaptableInstance;
|
|
36
|
+
colDefPropertyCache;
|
|
35
37
|
constructor(adaptableInstance) {
|
|
36
38
|
this.adaptableInstance = adaptableInstance;
|
|
37
39
|
this.colDefPropertyCache = new Map();
|
|
@@ -305,12 +307,10 @@ class AgGridColumnAdapter {
|
|
|
305
307
|
// see #header_text_align
|
|
306
308
|
const formatColumnWithTextAlignment = this.getRelevantFormatColumnHeaderStyles(abColumn)
|
|
307
309
|
// we take the first one only, even if multiple are defined
|
|
308
|
-
.find((fc) => fc.
|
|
310
|
+
.find((fc) => fc.Style?.Alignment != undefined);
|
|
309
311
|
if (formatColumnWithTextAlignment) {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
`ab-header__align-${formatColumnWithTextAlignment.CellAlignment.toLowerCase()}`,
|
|
313
|
-
];
|
|
312
|
+
const alignment = formatColumnWithTextAlignment.Style.Alignment.toLowerCase();
|
|
313
|
+
baseHeaderClass = [...baseHeaderClass, `ab-header__align-${alignment}`];
|
|
314
314
|
}
|
|
315
315
|
const formatColumns = this.adaptableApi.formatColumnApi.internalApi.getFormatColumnWithStyleClassNameForColumn(abColumn, {
|
|
316
316
|
target,
|
|
@@ -403,6 +403,7 @@ class AgGridColumnAdapter {
|
|
|
403
403
|
...this.getAlertCellStyle(gridCell, params),
|
|
404
404
|
...this.getFlashingCellStyle(gridCell, params),
|
|
405
405
|
...this.getCellHighlightStyle(gridCell, params),
|
|
406
|
+
...this.getColumnHighlightStyle(gridCell, params),
|
|
406
407
|
};
|
|
407
408
|
return (0, StyleHelper_1.normalizeStyleForAgGrid)(result);
|
|
408
409
|
};
|
|
@@ -660,7 +661,7 @@ class AgGridColumnAdapter {
|
|
|
660
661
|
if (typeof original_filter !== 'boolean' &&
|
|
661
662
|
typeof original_filter?.handler !== 'function' &&
|
|
662
663
|
!pivotMode) {
|
|
663
|
-
this.adaptableApi.consoleError(`Column
|
|
664
|
+
this.adaptableApi.consoleError(`Column "${colId}" has a custom filter in colDef.filter, but Adaptable filtering only accepts boolean (true/false) values for this property.`);
|
|
664
665
|
return false;
|
|
665
666
|
}
|
|
666
667
|
return {
|
|
@@ -1266,19 +1267,6 @@ class AgGridColumnAdapter {
|
|
|
1266
1267
|
const formatColumnStyle = formatColumn.Style
|
|
1267
1268
|
? (0, StyleHelper_1.convertAdaptableStyleToCSS)(formatColumn.Style)
|
|
1268
1269
|
: {};
|
|
1269
|
-
if (formatColumn.CellAlignment) {
|
|
1270
|
-
switch (formatColumn.CellAlignment) {
|
|
1271
|
-
case 'Left':
|
|
1272
|
-
style.textAlign = 'left';
|
|
1273
|
-
break;
|
|
1274
|
-
case 'Right':
|
|
1275
|
-
style.textAlign = 'right';
|
|
1276
|
-
break;
|
|
1277
|
-
case 'Center':
|
|
1278
|
-
style.textAlign = 'center';
|
|
1279
|
-
break;
|
|
1280
|
-
}
|
|
1281
|
-
}
|
|
1282
1270
|
return { ...style, ...formatColumnStyle };
|
|
1283
1271
|
}, {});
|
|
1284
1272
|
}
|
|
@@ -1307,14 +1295,24 @@ class AgGridColumnAdapter {
|
|
|
1307
1295
|
: flashingCell.flashingCellDefinition.NeutralChangeStyle) ?? {});
|
|
1308
1296
|
}
|
|
1309
1297
|
getCellHighlightStyle(gridCell, params) {
|
|
1310
|
-
const
|
|
1298
|
+
const cellHighlight = this.adaptableApi.internalApi
|
|
1311
1299
|
.getInternalState()
|
|
1312
1300
|
.CellHighlightInfo.find((cellHighlightInfo) => {
|
|
1313
1301
|
return (gridCell.column.columnId === cellHighlightInfo.columnId &&
|
|
1314
1302
|
cellHighlightInfo.primaryKeyValue === gridCell.primaryKeyValue);
|
|
1315
1303
|
});
|
|
1316
|
-
if (
|
|
1317
|
-
return (0, StyleHelper_1.convertAdaptableStyleToCSS)(
|
|
1304
|
+
if (cellHighlight) {
|
|
1305
|
+
return (0, StyleHelper_1.convertAdaptableStyleToCSS)(cellHighlight.highlightStyle);
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
getColumnHighlightStyle(gridCell, params) {
|
|
1309
|
+
const columnHighlight = this.adaptableApi.internalApi
|
|
1310
|
+
.getInternalState()
|
|
1311
|
+
.ColumnHighlightInfo.find((columnHighlightInfo) => {
|
|
1312
|
+
return (gridCell.column.columnId === columnHighlightInfo.columnId);
|
|
1313
|
+
});
|
|
1314
|
+
if (columnHighlight) {
|
|
1315
|
+
return (0, StyleHelper_1.convertAdaptableStyleToCSS)(columnHighlight.highlightStyle);
|
|
1318
1316
|
}
|
|
1319
1317
|
}
|
|
1320
1318
|
isColGroupDef(columnDefinition) {
|
|
@@ -12,17 +12,18 @@ const Uuid_1 = require("../AdaptableState/Uuid");
|
|
|
12
12
|
const udsv_1 = require("udsv");
|
|
13
13
|
const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
|
|
14
14
|
class AgGridExportAdapter {
|
|
15
|
+
_adaptableInstance;
|
|
16
|
+
/**
|
|
17
|
+
* !!!
|
|
18
|
+
* do NOT mutate this array reference, this is passed only initially to AG Grid and we can only change it's internal state
|
|
19
|
+
*/
|
|
20
|
+
DANGER_excelStyles = [];
|
|
21
|
+
originalExcelStyles = [];
|
|
22
|
+
excelStylesCache = {};
|
|
23
|
+
cellOrHeaderClassKey2ExcelStyleIdMap = {};
|
|
24
|
+
excelStylesWithFormattedDate = {};
|
|
15
25
|
constructor(_adaptableInstance) {
|
|
16
26
|
this._adaptableInstance = _adaptableInstance;
|
|
17
|
-
/**
|
|
18
|
-
* !!!
|
|
19
|
-
* do NOT mutate this array reference, this is passed only initially to AG Grid and we can only change it's internal state
|
|
20
|
-
*/
|
|
21
|
-
this.DANGER_excelStyles = [];
|
|
22
|
-
this.originalExcelStyles = [];
|
|
23
|
-
this.excelStylesCache = {};
|
|
24
|
-
this.cellOrHeaderClassKey2ExcelStyleIdMap = {};
|
|
25
|
-
this.excelStylesWithFormattedDate = {};
|
|
26
27
|
}
|
|
27
28
|
get agGridApi() {
|
|
28
29
|
return this._adaptableInstance.agGridAdapter.getAgGridApi();
|
|
@@ -69,7 +70,7 @@ class AgGridExportAdapter {
|
|
|
69
70
|
try {
|
|
70
71
|
if (showProgressIndicator) {
|
|
71
72
|
this.adaptableApi.userInterfaceApi.showProgressIndicator({
|
|
72
|
-
text:
|
|
73
|
+
text: `Exporting ${report.Name}...`,
|
|
73
74
|
});
|
|
74
75
|
// waitForTimeout required to give the ProgressIndicator rendering a head-start (see rAF in ProgressIndicator implementation)
|
|
75
76
|
// see #raf_progress_indicator
|
|
@@ -123,7 +124,7 @@ class AgGridExportAdapter {
|
|
|
123
124
|
};
|
|
124
125
|
}
|
|
125
126
|
catch (error) {
|
|
126
|
-
this.logger.consoleError(`
|
|
127
|
+
this.logger.consoleError(`Export failed: report="${report.Name}", format="${format}", destination="${config.destination}".`, error.stack);
|
|
127
128
|
}
|
|
128
129
|
finally {
|
|
129
130
|
/**
|
|
@@ -145,7 +146,7 @@ class AgGridExportAdapter {
|
|
|
145
146
|
const exportContext = this.buildExportProcessContext(config);
|
|
146
147
|
let exportParams = this.buildExportParams(exportContext);
|
|
147
148
|
if (typeof config?.customExportParams === 'function') {
|
|
148
|
-
this.logger.info(`
|
|
149
|
+
this.logger.info(`Applying custom export params: report="${config.report.Name}", format="${config.format}".`);
|
|
149
150
|
exportParams = config.customExportParams(exportParams);
|
|
150
151
|
}
|
|
151
152
|
exportContext.exportedColumnIds = exportParams.columnKeys;
|
|
@@ -511,7 +512,7 @@ class AgGridExportAdapter {
|
|
|
511
512
|
const columnId = column.getId();
|
|
512
513
|
const adaptableColumn = getAdaptableColumnWithColumnId(columnId);
|
|
513
514
|
if (!adaptableColumn) {
|
|
514
|
-
this.logger.warn(`Export
|
|
515
|
+
this.logger.warn(`Export styling: column "${columnId}" not found in Adaptable.`);
|
|
515
516
|
return;
|
|
516
517
|
}
|
|
517
518
|
let headerClassParams = {
|
|
@@ -574,7 +575,7 @@ class AgGridExportAdapter {
|
|
|
574
575
|
const columnId = column.getId();
|
|
575
576
|
const adaptableColumn = getAdaptableColumnWithColumnId(columnId);
|
|
576
577
|
if (!adaptableColumn) {
|
|
577
|
-
this.logger.warn(`Export
|
|
578
|
+
this.logger.warn(`Export styling: column "${columnId}" not found in Adaptable.`);
|
|
578
579
|
return;
|
|
579
580
|
}
|
|
580
581
|
const isDateCellExportedAsFormattedValue = this.isDateCellExportedAsFormattedValue(adaptableColumn, exportContext);
|
|
@@ -18,6 +18,10 @@ const AgGridFilterAdapterFactory = (adaptable) => {
|
|
|
18
18
|
return 'filter_' + colId + '_' + adaptable.adaptableOptions.adaptableId;
|
|
19
19
|
}
|
|
20
20
|
return class AgGridFilterAdapter {
|
|
21
|
+
params;
|
|
22
|
+
filterContainer;
|
|
23
|
+
column;
|
|
24
|
+
unmountReactRoot;
|
|
21
25
|
init(params) {
|
|
22
26
|
this.params = params;
|
|
23
27
|
this.column = params.column;
|
|
@@ -58,10 +58,13 @@ const AgGridFloatingFilterAdapterFactory = (adaptable) => {
|
|
|
58
58
|
// Find and update header cell
|
|
59
59
|
const headerCell = findParentWithClass(filterContainer, 'ag-header-cell', stopClasses);
|
|
60
60
|
if (headerCell?.classList.contains('ag-floating-filter')) {
|
|
61
|
-
headerCell.style.padding = 'var(--ab-space
|
|
61
|
+
headerCell.style.padding = 'var(--ab-base-space)';
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
return class AgGridFloatingFilterAdapter {
|
|
65
|
+
colId;
|
|
66
|
+
filterContainer;
|
|
67
|
+
unmountReactRoot;
|
|
65
68
|
init(params) {
|
|
66
69
|
const colId = params.column.getColId();
|
|
67
70
|
this.colId = colId;
|
|
@@ -7,6 +7,7 @@ const icons_1 = require("../components/icons");
|
|
|
7
7
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
8
8
|
const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
|
|
9
9
|
class AgGridMenuAdapter {
|
|
10
|
+
_adaptableInstance;
|
|
10
11
|
constructor(_adaptableInstance) {
|
|
11
12
|
this._adaptableInstance = _adaptableInstance;
|
|
12
13
|
}
|
|
@@ -20,12 +21,16 @@ class AgGridMenuAdapter {
|
|
|
20
21
|
this._adaptableInstance = null;
|
|
21
22
|
}
|
|
22
23
|
buildColumnMenu(params, originalGetMainMenuItems) {
|
|
23
|
-
const columnMenuOptions = this.adaptableOptions.columnMenuOptions;
|
|
24
24
|
const agGridMenuItems = (params.defaultItems ? [...params.defaultItems] : []);
|
|
25
25
|
if (!params.column) {
|
|
26
26
|
// return only AG Grid context if the Adaptable column is not found (should not happen)
|
|
27
27
|
return agGridMenuItems;
|
|
28
28
|
}
|
|
29
|
+
// If Adaptable UI is hidden, return only AG Grid default items
|
|
30
|
+
if (!this.adaptableApi.userInterfaceApi.isAdaptableUIVisible()) {
|
|
31
|
+
return agGridMenuItems;
|
|
32
|
+
}
|
|
33
|
+
const columnMenuOptions = this.adaptableOptions.columnMenuOptions;
|
|
29
34
|
const adaptableColumn = this.adaptableApi.columnApi.getColumnWithColumnId(params.column?.getColId());
|
|
30
35
|
const menuContext = this.createColumnMenuContextObject(adaptableColumn, params.column);
|
|
31
36
|
/**
|
|
@@ -63,6 +68,10 @@ class AgGridMenuAdapter {
|
|
|
63
68
|
if (!params.column) {
|
|
64
69
|
return [];
|
|
65
70
|
}
|
|
71
|
+
// If Adaptable UI is hidden, return only AG Grid default items
|
|
72
|
+
if (!this.adaptableApi.userInterfaceApi.isAdaptableUIVisible()) {
|
|
73
|
+
return (params.defaultItems ? [...params.defaultItems] : []);
|
|
74
|
+
}
|
|
66
75
|
// we do this in order to refresh the internal state of selected cells (technically query the AG Grid cellRanges)
|
|
67
76
|
// (right-click selected the current cell, but this was not reflected in the internal state of the selected cells)
|
|
68
77
|
this._adaptableInstance.refreshSelectedCellsState();
|
|
@@ -5,9 +5,10 @@ const _1 = require(".");
|
|
|
5
5
|
const ag_grid_enterprise_1 = require("ag-grid-enterprise");
|
|
6
6
|
exports.AG_GRID_VERSION = ag_grid_enterprise_1.AllEnterpriseModule.version;
|
|
7
7
|
class AgGridModulesAdapter {
|
|
8
|
+
adaptableInstance;
|
|
9
|
+
allAgGridModules = new Set();
|
|
8
10
|
constructor(adaptableInstance) {
|
|
9
11
|
this.adaptableInstance = adaptableInstance;
|
|
10
|
-
this.allAgGridModules = new Set();
|
|
11
12
|
this.allAgGridModules = this.extractAgGridModuleNames(ag_grid_enterprise_1.AllEnterpriseModule);
|
|
12
13
|
}
|
|
13
14
|
destroy() {
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AgGridOptionsService = void 0;
|
|
4
4
|
class AgGridOptionsService {
|
|
5
|
+
adaptableInstance;
|
|
6
|
+
gridOptionsPropertyCache;
|
|
7
|
+
colDefPropertyCache;
|
|
5
8
|
constructor(adaptableInstance) {
|
|
6
9
|
this.adaptableInstance = adaptableInstance;
|
|
7
10
|
this.gridOptionsPropertyCache = new Map();
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AgGridThemeAdapter = void 0;
|
|
4
4
|
const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
|
|
5
5
|
class AgGridThemeAdapter {
|
|
6
|
+
_adaptableInstance;
|
|
7
|
+
agGridThemeMode;
|
|
6
8
|
constructor(_adaptableInstance) {
|
|
7
9
|
this._adaptableInstance = _adaptableInstance;
|
|
8
10
|
}
|
|
@@ -102,9 +104,9 @@ class AgGridThemeAdapter {
|
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
else {
|
|
105
|
-
this.logger.warn('
|
|
107
|
+
this.logger.warn('AG Grid container not found. Defaulting to ag-theme-balham for the light theme.');
|
|
106
108
|
}
|
|
107
|
-
this.logger.warn('No ag-theme
|
|
109
|
+
this.logger.warn('No ag-theme-* class found on the grid container. Defaulting to ag-theme-balham.');
|
|
108
110
|
// fallback to the default light theme
|
|
109
111
|
return 'ag-theme-balham';
|
|
110
112
|
}
|
|
@@ -102,6 +102,11 @@ const ReactActionColumnRenderer = (props) => {
|
|
|
102
102
|
};
|
|
103
103
|
exports.ReactActionColumnRenderer = ReactActionColumnRenderer;
|
|
104
104
|
class ActionColumnRenderer {
|
|
105
|
+
eGui;
|
|
106
|
+
eventListener;
|
|
107
|
+
unmountReactRoot;
|
|
108
|
+
layoutSwitchUnsubscribe;
|
|
109
|
+
actionButtons;
|
|
105
110
|
// gets called once before the renderer is used
|
|
106
111
|
init(params) {
|
|
107
112
|
const adaptable = params.context.__adaptable;
|
|
@@ -7,6 +7,8 @@ const renderWithAdaptableContext_1 = require("../../View/renderWithAdaptableCont
|
|
|
7
7
|
const React = tslib_1.__importStar(require("react"));
|
|
8
8
|
const getBadgeRendererForColumn = (badgeStyle, abColumn, api) => {
|
|
9
9
|
return class BadgetRenderer {
|
|
10
|
+
eGui;
|
|
11
|
+
unmountReactRoot;
|
|
10
12
|
getAdaptableInstance(params) {
|
|
11
13
|
const adaptable = params.context.__adaptable;
|
|
12
14
|
return adaptable;
|
|
@@ -9,6 +9,7 @@ const getPercentBarRendererForColumn = (styledColumn, abColumn, api) => {
|
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
11
|
return class PercentBarRenderer {
|
|
12
|
+
eGui;
|
|
12
13
|
init(params) {
|
|
13
14
|
const min = api.styledColumnApi.internalApi.getNumericStyleMinValue(styledColumn, abColumn, params.node, params.value);
|
|
14
15
|
const max = api.styledColumnApi.internalApi.getNumericStyleMaxValue(styledColumn, abColumn, params.node, params.value);
|
|
@@ -98,9 +98,12 @@ exports.AdaptableReactDateEditor = (0, react_1.forwardRef)((props, ref) => {
|
|
|
98
98
|
* We strongly recommend you specify a `colDef.valueParser` function
|
|
99
99
|
*/
|
|
100
100
|
class AdaptableDateEditor {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
value;
|
|
102
|
+
el;
|
|
103
|
+
params;
|
|
104
|
+
editor;
|
|
105
|
+
unmountReactRoot;
|
|
106
|
+
valueParser = defaultDateValueParser;
|
|
104
107
|
init(params) {
|
|
105
108
|
this.value = getStartValue(params);
|
|
106
109
|
const { valueParser } = params.column.getColDef();
|
|
@@ -86,18 +86,13 @@ exports.AdaptableReactNumberEditor.displayName = 'AdaptableReactNumberEditor';
|
|
|
86
86
|
* Number Editor provided by AdapTable and used by default for all `number` columns
|
|
87
87
|
*/
|
|
88
88
|
class AdaptableNumberEditor {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
newValue: value,
|
|
97
|
-
})
|
|
98
|
-
: value;
|
|
99
|
-
};
|
|
100
|
-
}
|
|
89
|
+
value;
|
|
90
|
+
columnId;
|
|
91
|
+
el;
|
|
92
|
+
params;
|
|
93
|
+
editor;
|
|
94
|
+
valueParser = defaultValueParser;
|
|
95
|
+
unmountReactRoot;
|
|
101
96
|
init(params) {
|
|
102
97
|
this.value = getStartValue(params);
|
|
103
98
|
this.params = params;
|
|
@@ -148,5 +143,14 @@ class AdaptableNumberEditor {
|
|
|
148
143
|
destroy() {
|
|
149
144
|
this.unmountReactRoot?.();
|
|
150
145
|
}
|
|
146
|
+
onValueChange = (value) => {
|
|
147
|
+
this.value = this.valueParser
|
|
148
|
+
? this.valueParser({
|
|
149
|
+
...this.params,
|
|
150
|
+
oldValue: this.params.value,
|
|
151
|
+
newValue: value,
|
|
152
|
+
})
|
|
153
|
+
: value;
|
|
154
|
+
};
|
|
151
155
|
}
|
|
152
156
|
exports.AdaptableNumberEditor = AdaptableNumberEditor;
|
|
@@ -69,19 +69,13 @@ exports.AdaptableReactPercentageEditor.displayName = 'AdaptableReactPercentageEd
|
|
|
69
69
|
* Used to edit percentage columns as percentages (similar to how its done in Excel)
|
|
70
70
|
*/
|
|
71
71
|
class AdaptablePercentageEditor {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
newValue: value,
|
|
80
|
-
})
|
|
81
|
-
: value;
|
|
82
|
-
this.value = NumberExtensions_1.default.divideBy100(newValue);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
72
|
+
value;
|
|
73
|
+
columnId;
|
|
74
|
+
el;
|
|
75
|
+
params;
|
|
76
|
+
editor;
|
|
77
|
+
valueParser = defaultValueParser;
|
|
78
|
+
unmountReactRoot;
|
|
85
79
|
init(params) {
|
|
86
80
|
this.value = (0, AdaptableNumberEditor_1.getStartValue)(params);
|
|
87
81
|
this.params = params;
|
|
@@ -132,5 +126,15 @@ class AdaptablePercentageEditor {
|
|
|
132
126
|
destroy() {
|
|
133
127
|
this.unmountReactRoot?.();
|
|
134
128
|
}
|
|
129
|
+
onValueChange = (value) => {
|
|
130
|
+
const newValue = this.valueParser
|
|
131
|
+
? this.valueParser({
|
|
132
|
+
...this.params,
|
|
133
|
+
oldValue: this.params.value,
|
|
134
|
+
newValue: value,
|
|
135
|
+
})
|
|
136
|
+
: value;
|
|
137
|
+
this.value = NumberExtensions_1.default.divideBy100(newValue);
|
|
138
|
+
};
|
|
135
139
|
}
|
|
136
140
|
exports.AdaptablePercentageEditor = AdaptablePercentageEditor;
|
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
|
@@ -7,5 +7,11 @@ const AdaptableLogger_1 = require("./AdaptableLogger");
|
|
|
7
7
|
var AdaptableWizardView_1 = require("../View/AdaptableWizardView");
|
|
8
8
|
Object.defineProperty(exports, "AdaptableWizardView", { enumerable: true, get: function () { return tslib_1.__importDefault(AdaptableWizardView_1).default; } });
|
|
9
9
|
exports.default = Adaptable_1.Adaptable;
|
|
10
|
+
/**
|
|
11
|
+
* AdapTable's No Code Wizard
|
|
12
|
+
*/
|
|
10
13
|
exports.AdaptableNoCodeWizard = Adaptable_1.AdaptableNoCodeWizard;
|
|
14
|
+
/**
|
|
15
|
+
* AdapTable's Logger
|
|
16
|
+
*/
|
|
11
17
|
exports.AdaptableLogger = AdaptableLogger_1.AdaptableLogger;
|
|
@@ -9,7 +9,7 @@ const clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
|
9
9
|
const Square = (props) => {
|
|
10
10
|
return React.createElement("div", { className: `ab-CheckBox__square ab-CheckBox__square--${props.type}` });
|
|
11
11
|
};
|
|
12
|
-
const CheckBox = ({ children, checked, onChange, value, name, disabled, readOnly, variant = 'default', gapDistance = 'var(--ab-space
|
|
12
|
+
const CheckBox = ({ children, checked, onChange, value, name, disabled, readOnly, variant = 'default', gapDistance = 'var(--ab-base-space)', childrenPosition = 'end', as = 'label', ...props }) => {
|
|
13
13
|
const [stateChecked, setStateChecked] = (0, react_1.useState)(false);
|
|
14
14
|
const computedChecked = checked !== undefined ? checked : stateChecked;
|
|
15
15
|
const onInputChange = (event) => {
|
|
@@ -53,8 +53,9 @@ exports.ColorPicker = React.forwardRef((props, ref) => {
|
|
|
53
53
|
ABcolorChoices,
|
|
54
54
|
includeAlpha && (React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:gap-1" },
|
|
55
55
|
React.createElement(Flex_1.Box, null, "Opacity"),
|
|
56
|
-
React.createElement(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:min-h-input" },
|
|
57
|
+
React.createElement(Input_1.default, { disabled: props.disabled, className: "ab-ColorPicker-range", style: { background: rangeBackround }, value: alpha, onChange: (event) => {
|
|
58
|
+
const color = (0, tinycolor2_1.default)(value).setAlpha(event.target.value).toRgbString();
|
|
59
|
+
debouncedOnChange(color);
|
|
60
|
+
}, min: 0, max: 1, step: 0.01, type: "range" }))))));
|
|
60
61
|
});
|
|
@@ -12,5 +12,5 @@ function DashboardToolbar(props) {
|
|
|
12
12
|
React.createElement(Flex_1.Flex, { className: "ab-Dashboard__toolbar-title twa:items-center twa:justify-center twa:px-2 twa:pb-1 twa:opacity-70", flexDirection: "row" },
|
|
13
13
|
React.createElement("span", { className: "twa:text-2" }, props.title),
|
|
14
14
|
props.showConfigure && (React.createElement(SimpleButton_1.default, { "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() })),
|
|
15
|
-
props.showClose && (React.createElement(SimpleButton_1.default, { "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() })))));
|
|
15
|
+
props.showClose && (React.createElement(SimpleButton_1.default, { "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?.() })))));
|
|
16
16
|
}
|
|
@@ -116,7 +116,7 @@ exports.Datepicker = React.forwardRef((props, ref) => {
|
|
|
116
116
|
}, accessLevel: 'Full' })) : null;
|
|
117
117
|
const calendarButton = (React.createElement(SimpleButton_1.default, { disabled: disabled, variant: "text", icon: "calendar", tooltip: "Date", iconSize: 20, className: "twa:p-0", onClick: () => setVisible(true) }));
|
|
118
118
|
const overlayDOMRef = (0, react_1.useRef)(null);
|
|
119
|
-
return (React.createElement(Flex_1.Flex,
|
|
119
|
+
return (React.createElement(Flex_1.Flex, { className: "twa:flex-1" },
|
|
120
120
|
React.createElement(OverlayTrigger_1.default, { visible: visible, render: () => (React.createElement(DatepickerOverlay, { overlayDOMRef: overlayDOMRef, onMouseDown: props.onMouseDown, onHide: () => setVisible(false), onKeyDown: (e) => {
|
|
121
121
|
if (e.key === 'Escape' || e.key === 'Enter') {
|
|
122
122
|
setVisible(false, e.key);
|
|
@@ -11,7 +11,7 @@ const Arrows = () => {
|
|
|
11
11
|
// background: 'var(--ab-color-defaultbackground)',
|
|
12
12
|
fill: 'var(--ab-cmp-dropdown__fill)',
|
|
13
13
|
top: '50%',
|
|
14
|
-
right: 'var(--ab-space
|
|
14
|
+
right: 'var(--ab-base-space)',
|
|
15
15
|
transform: 'translate3d(0px, -50%, 0px)',
|
|
16
16
|
cursor: 'pointer',
|
|
17
17
|
} },
|