@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
|
@@ -43,8 +43,8 @@ export class SmartEditModule extends AdaptableModuleBase {
|
|
|
43
43
|
return {
|
|
44
44
|
Alert: {
|
|
45
45
|
alertType: 'generic',
|
|
46
|
-
header: 'Smart Edit
|
|
47
|
-
message: '
|
|
46
|
+
header: 'Smart Edit',
|
|
47
|
+
message: 'Editing is not available in Pivot Mode.',
|
|
48
48
|
alertDefinition: ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
49
49
|
},
|
|
50
50
|
};
|
|
@@ -53,8 +53,8 @@ export class SmartEditModule extends AdaptableModuleBase {
|
|
|
53
53
|
return {
|
|
54
54
|
Alert: {
|
|
55
55
|
alertType: 'generic',
|
|
56
|
-
header: 'Smart Edit
|
|
57
|
-
message: 'No cells
|
|
56
|
+
header: 'Smart Edit',
|
|
57
|
+
message: 'No cells selected. Please select one or more cells to continue.',
|
|
58
58
|
alertDefinition: ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
59
59
|
},
|
|
60
60
|
};
|
|
@@ -63,8 +63,8 @@ export class SmartEditModule extends AdaptableModuleBase {
|
|
|
63
63
|
return {
|
|
64
64
|
Alert: {
|
|
65
65
|
alertType: 'generic',
|
|
66
|
-
header: 'Smart Edit
|
|
67
|
-
message: 'Smart Edit
|
|
66
|
+
header: 'Smart Edit',
|
|
67
|
+
message: 'Smart Edit supports editing a single column at a time. Please adjust your selection.',
|
|
68
68
|
alertDefinition: ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
69
69
|
},
|
|
70
70
|
};
|
|
@@ -75,8 +75,8 @@ export class SmartEditModule extends AdaptableModuleBase {
|
|
|
75
75
|
return {
|
|
76
76
|
Alert: {
|
|
77
77
|
alertType: 'generic',
|
|
78
|
-
header: 'Smart Edit
|
|
79
|
-
message: 'Smart Edit only
|
|
78
|
+
header: 'Smart Edit',
|
|
79
|
+
message: 'Smart Edit only applies to numeric columns. Please adjust your selection.',
|
|
80
80
|
alertDefinition: ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
81
81
|
},
|
|
82
82
|
};
|
|
@@ -87,8 +87,8 @@ export class SmartEditModule extends AdaptableModuleBase {
|
|
|
87
87
|
return {
|
|
88
88
|
Alert: {
|
|
89
89
|
alertType: 'generic',
|
|
90
|
-
header: 'Smart Edit
|
|
91
|
-
message: 'Smart Edit is not
|
|
90
|
+
header: 'Smart Edit',
|
|
91
|
+
message: 'Smart Edit is not available for read-only cells. Please adjust your selection.',
|
|
92
92
|
alertDefinition: ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
|
|
93
93
|
},
|
|
94
94
|
};
|
|
@@ -11,18 +11,18 @@ import ArrayExtensions from '../Utilities/Extensions/ArrayExtensions';
|
|
|
11
11
|
import flatten from 'lodash/flatten';
|
|
12
12
|
import AdaptableHelper from '../Utilities/Helpers/AdaptableHelper';
|
|
13
13
|
export class TeamSharingModule extends AdaptableModuleBase {
|
|
14
|
+
SKIP_TEAMSHARING_UPDATE_ACTIONS = [
|
|
15
|
+
TEAMSHARING_GET,
|
|
16
|
+
TEAMSHARING_SET,
|
|
17
|
+
TEAMSHARING_SHARE,
|
|
18
|
+
TEAMSHARING_IMPORT_ITEM,
|
|
19
|
+
TEAMSHARING_PROCESS_IMPORT,
|
|
20
|
+
TEAMSHARING_REMOVE_ITEM,
|
|
21
|
+
TEAMSHARING_LINK_ITEM,
|
|
22
|
+
TEAMSHARING_UPDATE_ITEM,
|
|
23
|
+
];
|
|
14
24
|
constructor(api) {
|
|
15
25
|
super(ModuleConstants.TeamSharingModuleId, ModuleConstants.TeamSharingFriendlyName, 'folder-shared', 'TeamSharingPopup', 'Team Sharing allows users to share - at run-time - Adaptable Objects between colleagues.', api);
|
|
16
|
-
this.SKIP_TEAMSHARING_UPDATE_ACTIONS = [
|
|
17
|
-
TEAMSHARING_GET,
|
|
18
|
-
TEAMSHARING_SET,
|
|
19
|
-
TEAMSHARING_SHARE,
|
|
20
|
-
TEAMSHARING_IMPORT_ITEM,
|
|
21
|
-
TEAMSHARING_PROCESS_IMPORT,
|
|
22
|
-
TEAMSHARING_REMOVE_ITEM,
|
|
23
|
-
TEAMSHARING_LINK_ITEM,
|
|
24
|
-
TEAMSHARING_UPDATE_ITEM,
|
|
25
|
-
];
|
|
26
26
|
}
|
|
27
27
|
onAdaptableReady() {
|
|
28
28
|
if (this.api.teamSharingApi.isTeamSharingAvailable()) {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
export const getFormatColumnSettingsViewItems = (formatColumn) => {
|
|
2
2
|
let values = [];
|
|
3
|
-
if (formatColumn.CellAlignment) {
|
|
4
|
-
values.push(`Cell Alignment: ${formatColumn.CellAlignment}`);
|
|
5
|
-
}
|
|
6
3
|
if (formatColumn.RowScope) {
|
|
7
4
|
if (formatColumn.RowScope.ExcludeDataRows) {
|
|
8
5
|
values.push('Exclude Data Rows');
|
|
@@ -11,8 +11,8 @@ export declare const QuantileAggregatedScalarQueryDocsLink = "https://www.adapta
|
|
|
11
11
|
export declare const PredicateDocsLink = "https://www.adaptabletools.com/docs/adaptable-predicate";
|
|
12
12
|
export declare const PrimaryKeyDocsLink = "https://www.adaptabletools.com/docs/getting-started-primary-key";
|
|
13
13
|
export declare const LicenseDocsLink = "https://www.adaptabletools.com/buy/buying-adaptable-licensing";
|
|
14
|
-
export declare const AdaptableOptionsDocsLink = "https://www.adaptabletools.com/docs/reference-options
|
|
15
|
-
export declare const AgGridModulesDocsLink = "https://www.adaptabletools.com/docs/
|
|
14
|
+
export declare const AdaptableOptionsDocsLink = "https://www.adaptabletools.com/docs/technical-reference-adaptable-options";
|
|
15
|
+
export declare const AgGridModulesDocsLink = "https://www.adaptabletools.com/docs/getting-started-aggrid-modules";
|
|
16
16
|
export declare const AlertMessageDocsLink = "https://www.adaptabletools.com/docs/handbook-alerting-message";
|
|
17
17
|
export declare const FormatColumnPlaceholderDocsLink = "https://www.adaptabletools.com/docs/handbook-column-formatting-display-format-placeholder";
|
|
18
|
-
export declare const AgGridRequiredModulesDocsLink = "https://www.adaptabletools.com/docs/
|
|
18
|
+
export declare const AgGridRequiredModulesDocsLink = "https://www.adaptabletools.com/docs/getting-started-aggrid-modules#mandatory-modules";
|
|
@@ -12,8 +12,8 @@ export const QuantileAggregatedScalarQueryDocsLink = `${HOST_URL_DOCS}/adaptable
|
|
|
12
12
|
export const PredicateDocsLink = `${HOST_URL_DOCS}/adaptable-predicate`;
|
|
13
13
|
export const PrimaryKeyDocsLink = `${HOST_URL_DOCS}/getting-started-primary-key`;
|
|
14
14
|
export const LicenseDocsLink = `${HOST_URL_ROOT}/buy/buying-adaptable-licensing`;
|
|
15
|
-
export const AdaptableOptionsDocsLink = `${HOST_URL_DOCS}/reference-options
|
|
16
|
-
export const AgGridModulesDocsLink = `${HOST_URL_DOCS}/
|
|
15
|
+
export const AdaptableOptionsDocsLink = `${HOST_URL_DOCS}/technical-reference-adaptable-options`;
|
|
16
|
+
export const AgGridModulesDocsLink = `${HOST_URL_DOCS}/getting-started-aggrid-modules`;
|
|
17
17
|
export const AlertMessageDocsLink = `${HOST_URL_DOCS}/handbook-alerting-message`;
|
|
18
18
|
export const FormatColumnPlaceholderDocsLink = `${HOST_URL_DOCS}/handbook-column-formatting-display-format-placeholder`;
|
|
19
|
-
export const AgGridRequiredModulesDocsLink = `${HOST_URL_DOCS}/
|
|
19
|
+
export const AgGridRequiredModulesDocsLink = `${HOST_URL_DOCS}/getting-started-aggrid-modules#mandatory-modules`;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const SORT_ASC_REVISION = (p1, p2) => sortAscending(p1.revision, p2.revision);
|
|
2
2
|
export class DeepMap {
|
|
3
|
+
map = new Map();
|
|
4
|
+
length = 0;
|
|
5
|
+
revision = 0;
|
|
3
6
|
static clone(map) {
|
|
4
7
|
const clone = new DeepMap();
|
|
5
8
|
map.visit((pair, keys) => {
|
|
@@ -8,37 +11,6 @@ export class DeepMap {
|
|
|
8
11
|
return clone;
|
|
9
12
|
}
|
|
10
13
|
constructor(initial) {
|
|
11
|
-
this.map = new Map();
|
|
12
|
-
this.length = 0;
|
|
13
|
-
this.revision = 0;
|
|
14
|
-
this.visit = (fn) => {
|
|
15
|
-
this.map.forEach((_, k) => this.visitKey(k, this.map, [], fn));
|
|
16
|
-
};
|
|
17
|
-
this.visitDepthFirst = (fn) => {
|
|
18
|
-
this.visitWithNext([], fn);
|
|
19
|
-
};
|
|
20
|
-
this.visitWithNext = (parentKeys, fn, currentMap = this.map) => {
|
|
21
|
-
if (!currentMap) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
let i = 0;
|
|
25
|
-
currentMap.forEach((_, key) => {
|
|
26
|
-
const pair = currentMap.get(key);
|
|
27
|
-
if (!pair) {
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const { map } = pair;
|
|
31
|
-
const keys = [...parentKeys, key];
|
|
32
|
-
const next = map ? () => this.visitWithNext(keys, fn, map) : undefined;
|
|
33
|
-
if (pair.hasOwnProperty('value')) {
|
|
34
|
-
fn(pair.value, keys, i, next);
|
|
35
|
-
i++;
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
next?.();
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
14
|
if (initial) {
|
|
43
15
|
initial.forEach((entry) => {
|
|
44
16
|
const [keys, value] = entry;
|
|
@@ -222,6 +194,34 @@ export class DeepMap {
|
|
|
222
194
|
// if it was called by fn, it won't be called again, as it's once-d
|
|
223
195
|
next();
|
|
224
196
|
}
|
|
197
|
+
visit = (fn) => {
|
|
198
|
+
this.map.forEach((_, k) => this.visitKey(k, this.map, [], fn));
|
|
199
|
+
};
|
|
200
|
+
visitDepthFirst = (fn) => {
|
|
201
|
+
this.visitWithNext([], fn);
|
|
202
|
+
};
|
|
203
|
+
visitWithNext = (parentKeys, fn, currentMap = this.map) => {
|
|
204
|
+
if (!currentMap) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
let i = 0;
|
|
208
|
+
currentMap.forEach((_, key) => {
|
|
209
|
+
const pair = currentMap.get(key);
|
|
210
|
+
if (!pair) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
const { map } = pair;
|
|
214
|
+
const keys = [...parentKeys, key];
|
|
215
|
+
const next = map ? () => this.visitWithNext(keys, fn, map) : undefined;
|
|
216
|
+
if (pair.hasOwnProperty('value')) {
|
|
217
|
+
fn(pair.value, keys, i, next);
|
|
218
|
+
i++;
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
next?.();
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
225
|
getArray(fn) {
|
|
226
226
|
const result = [];
|
|
227
227
|
this.visit((pair, keys) => {
|
|
@@ -639,7 +639,7 @@ export const scalarExpressionFunctions = {
|
|
|
639
639
|
}
|
|
640
640
|
return result;
|
|
641
641
|
},
|
|
642
|
-
description: "Returns
|
|
642
|
+
description: "Returns percentage difference between a cell's current value and previous value",
|
|
643
643
|
signatures: [
|
|
644
644
|
'PERCENT_CHANGE( [colName], <INCREASE|DECREASE> )',
|
|
645
645
|
'PERCENT_CHANGE( COL(name: string), <INCREASE|DECREASE> )',
|
|
@@ -684,7 +684,7 @@ export const scalarExpressionFunctions = {
|
|
|
684
684
|
}
|
|
685
685
|
return result;
|
|
686
686
|
},
|
|
687
|
-
description: "Returns
|
|
687
|
+
description: "Returns absolute difference between a cell's current value and previous value",
|
|
688
688
|
signatures: [
|
|
689
689
|
'ABSOLUTE_CHANGE( [colName] )',
|
|
690
690
|
'ABSOLUTE_CHANGE( COL(name: string) )',
|
|
@@ -716,7 +716,7 @@ export const scalarExpressionFunctions = {
|
|
|
716
716
|
const previousValue = context.dataChangedEvent.oldValue;
|
|
717
717
|
return currentColumnValue !== previousValue;
|
|
718
718
|
},
|
|
719
|
-
description: "Returns true if
|
|
719
|
+
description: "Returns true if cell's current value is different from previous value, otherwise false; if no column is provided, it checks if any value has changed",
|
|
720
720
|
signatures: ['ANY_CHANGE( [colName] )', 'ANY_CHANGE()'],
|
|
721
721
|
examples: ['ANY_CHANGE([col1])', 'ANY_CHANGE()'],
|
|
722
722
|
category: 'changes',
|
|
@@ -17,6 +17,7 @@ export declare function Humanize(str: string): string;
|
|
|
17
17
|
export declare function ReplaceEmptySpacesWithUnderscore(str?: string): string;
|
|
18
18
|
export declare function IsNumeric(str: string): boolean;
|
|
19
19
|
export declare function UnescapeHtmlEntities(str: string): string;
|
|
20
|
+
export declare function ReplaceAllOccurencesExceptLastOne(str: string, searchTerm: string, replacement: string): string;
|
|
20
21
|
export declare const StringExtensions: {
|
|
21
22
|
IsNull: typeof IsNull;
|
|
22
23
|
IsNotNull: typeof IsNotNull;
|
|
@@ -37,5 +38,6 @@ export declare const StringExtensions: {
|
|
|
37
38
|
ReplaceEmptySpacesWithUnderscore: typeof ReplaceEmptySpacesWithUnderscore;
|
|
38
39
|
IsNumeric: typeof IsNumeric;
|
|
39
40
|
UnescapeHtmlEntities: typeof UnescapeHtmlEntities;
|
|
41
|
+
ReplaceAllOccurencesExceptLastOne: typeof ReplaceAllOccurencesExceptLastOne;
|
|
40
42
|
};
|
|
41
43
|
export default StringExtensions;
|
|
@@ -92,6 +92,21 @@ export function UnescapeHtmlEntities(str) {
|
|
|
92
92
|
}
|
|
93
93
|
return preparedStr;
|
|
94
94
|
}
|
|
95
|
+
export function ReplaceAllOccurencesExceptLastOne(str, searchTerm, replacement) {
|
|
96
|
+
// Find the index of the last occurrence of the search string
|
|
97
|
+
const lastIndex = str.lastIndexOf(searchTerm);
|
|
98
|
+
// If the string is not found, return the original string
|
|
99
|
+
if (lastIndex === -1) {
|
|
100
|
+
return str;
|
|
101
|
+
}
|
|
102
|
+
// Slice the string into two parts: before and after the last occurrence
|
|
103
|
+
const partBeforeLast = str.slice(0, lastIndex);
|
|
104
|
+
const partAfterLast = str.slice(lastIndex);
|
|
105
|
+
// Replace all occurrences in the first part
|
|
106
|
+
const replacedPart = partBeforeLast.replaceAll(searchTerm, replacement);
|
|
107
|
+
// Recombine the modified first part with the untouched second part
|
|
108
|
+
return replacedPart + partAfterLast;
|
|
109
|
+
}
|
|
95
110
|
export const StringExtensions = {
|
|
96
111
|
IsNull,
|
|
97
112
|
IsNotNull,
|
|
@@ -112,5 +127,6 @@ export const StringExtensions = {
|
|
|
112
127
|
ReplaceEmptySpacesWithUnderscore,
|
|
113
128
|
IsNumeric,
|
|
114
129
|
UnescapeHtmlEntities,
|
|
130
|
+
ReplaceAllOccurencesExceptLastOne,
|
|
115
131
|
};
|
|
116
132
|
export default StringExtensions;
|
|
@@ -28,7 +28,6 @@ export function NumberFormatter(input, options = {}, rowNode, column, api) {
|
|
|
28
28
|
if (isNaN(n)) {
|
|
29
29
|
return preparedInput.toString();
|
|
30
30
|
}
|
|
31
|
-
const fractionsSepatator = options.FractionSeparator ? options.FractionSeparator : '.';
|
|
32
31
|
let multiplier = options.Multiplier ? options.Multiplier : 1;
|
|
33
32
|
if (options.Multiplier !== undefined) {
|
|
34
33
|
n *= multiplier;
|
|
@@ -65,6 +64,7 @@ export function NumberFormatter(input, options = {}, rowNode, column, api) {
|
|
|
65
64
|
}
|
|
66
65
|
let s;
|
|
67
66
|
let digitsToUse;
|
|
67
|
+
const fractionsSepatator = options.FractionSeparator ?? '.';
|
|
68
68
|
if (options.Truncate || options.Ceiling || options.Round || options.Floor) {
|
|
69
69
|
digitsToUse = 0;
|
|
70
70
|
}
|
|
@@ -84,7 +84,14 @@ export function NumberFormatter(input, options = {}, rowNode, column, api) {
|
|
|
84
84
|
s = s.replace(/\./g, options.FractionSeparator);
|
|
85
85
|
}
|
|
86
86
|
if (options.IntegerSeparator !== undefined) {
|
|
87
|
-
|
|
87
|
+
// if fraction separator is not a comma then simply replace all instances
|
|
88
|
+
if (options.FractionSeparator !== ',') {
|
|
89
|
+
s = s.replace(/\,/g, options.IntegerSeparator);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
// otherwise don't replace the last instance
|
|
93
|
+
s = StringExtensions.ReplaceAllOccurencesExceptLastOne(s, ',', options.IntegerSeparator);
|
|
94
|
+
}
|
|
88
95
|
}
|
|
89
96
|
s = (options.Prefix || '') + s + (options.Suffix || '');
|
|
90
97
|
if (options.Parentheses === true && preparedInput < 0) {
|
|
@@ -80,6 +80,20 @@ export const convertAdaptableStyleToCSS = (style) => {
|
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
if (style.Alignment) {
|
|
84
|
+
switch (style.Alignment) {
|
|
85
|
+
case 'Default':
|
|
86
|
+
case 'Left':
|
|
87
|
+
result.textAlign = 'left';
|
|
88
|
+
break;
|
|
89
|
+
case 'Right':
|
|
90
|
+
result.textAlign = 'right';
|
|
91
|
+
break;
|
|
92
|
+
case 'Center':
|
|
93
|
+
result.textAlign = 'center';
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
83
97
|
// assertion added to comply with the ag-Grid types
|
|
84
98
|
return result;
|
|
85
99
|
};
|
|
@@ -11,6 +11,12 @@ export class MenuItemDoReduxAction {
|
|
|
11
11
|
};
|
|
12
12
|
this.reduxAction = reduxAction;
|
|
13
13
|
}
|
|
14
|
+
name;
|
|
15
|
+
reduxAction;
|
|
16
|
+
label;
|
|
17
|
+
category;
|
|
18
|
+
isVisible;
|
|
19
|
+
icon;
|
|
14
20
|
}
|
|
15
21
|
export class MenuItemDoClickFunction {
|
|
16
22
|
constructor(name, label, module, clickFunction, icon, isVisible) {
|
|
@@ -23,6 +29,12 @@ export class MenuItemDoClickFunction {
|
|
|
23
29
|
};
|
|
24
30
|
this.onClick = clickFunction;
|
|
25
31
|
}
|
|
32
|
+
name;
|
|
33
|
+
onClick;
|
|
34
|
+
label;
|
|
35
|
+
category;
|
|
36
|
+
isVisible;
|
|
37
|
+
icon;
|
|
26
38
|
}
|
|
27
39
|
// A menu item which shows a popup screen when it is clieked
|
|
28
40
|
export class MenuItemShowPopup {
|
|
@@ -36,4 +48,10 @@ export class MenuItemShowPopup {
|
|
|
36
48
|
};
|
|
37
49
|
this.reduxAction = PopupRedux.PopupShowScreen(module, componentName, popupParams);
|
|
38
50
|
}
|
|
51
|
+
name;
|
|
52
|
+
reduxAction;
|
|
53
|
+
label;
|
|
54
|
+
category;
|
|
55
|
+
isVisible;
|
|
56
|
+
icon;
|
|
39
57
|
}
|
|
@@ -6,7 +6,7 @@ import { Bounce, Flip, Slide, Zoom } from '../components/Toastify';
|
|
|
6
6
|
import { BLACK, getHexForName, LIGHT_GRAY } from '../View/UIHelper';
|
|
7
7
|
import { isPivotLayout } from '../Api/Implementation/LayoutHelpers';
|
|
8
8
|
export function CreateEmptyCustomSort() {
|
|
9
|
-
return { Uuid: createUuid(), ColumnId: EMPTY_STRING, SortedValues: [] };
|
|
9
|
+
return { Uuid: createUuid(), Name: EMPTY_STRING, ColumnId: EMPTY_STRING, SortedValues: [] };
|
|
10
10
|
}
|
|
11
11
|
export function CreateAdaptableComment(text, api) {
|
|
12
12
|
const comment = {
|
|
@@ -44,6 +44,7 @@ export function CreateEmptyNamedQuery(expression) {
|
|
|
44
44
|
export function CreateEmptyPlusMinusNudge() {
|
|
45
45
|
return {
|
|
46
46
|
Uuid: createUuid(),
|
|
47
|
+
Name: EMPTY_STRING,
|
|
47
48
|
Scope: undefined,
|
|
48
49
|
Rule: undefined,
|
|
49
50
|
NudgeValue: PLUS_MINUS_DEFAULT_NUDGE_VALUE,
|
|
@@ -81,6 +82,7 @@ export function CreateRowChangedAlert(alertHeader, alertMessage, alertDefinition
|
|
|
81
82
|
export function CreateEmptyAlertDefinition() {
|
|
82
83
|
return {
|
|
83
84
|
Uuid: createUuid(),
|
|
85
|
+
Name: EMPTY_STRING,
|
|
84
86
|
Scope: { All: true },
|
|
85
87
|
Rule: {
|
|
86
88
|
Predicates: [],
|
|
@@ -92,6 +94,7 @@ export function CreateEmptyAlertDefinition() {
|
|
|
92
94
|
export function CreateEmptyFlashingCellDefinition() {
|
|
93
95
|
return {
|
|
94
96
|
Uuid: createUuid(),
|
|
97
|
+
Name: EMPTY_STRING,
|
|
95
98
|
Scope: { ColumnIds: [] },
|
|
96
99
|
Rule: {
|
|
97
100
|
Predicates: [
|
|
@@ -108,6 +111,7 @@ export function CreateInternalAlertDefinitionForMessages(messageType, alertPrope
|
|
|
108
111
|
};
|
|
109
112
|
return {
|
|
110
113
|
Uuid: createUuid(),
|
|
114
|
+
Name: EMPTY_STRING,
|
|
111
115
|
Scope: undefined,
|
|
112
116
|
Rule: {
|
|
113
117
|
Predicates: [],
|
|
@@ -129,6 +133,7 @@ export function CreateEmptyReport() {
|
|
|
129
133
|
export function CreateEmptyBaseSchedule(scheduleType) {
|
|
130
134
|
return {
|
|
131
135
|
Uuid: createUuid(),
|
|
136
|
+
Name: EMPTY_STRING,
|
|
132
137
|
ScheduleType: scheduleType,
|
|
133
138
|
Schedule: CreateEmptySchedule(),
|
|
134
139
|
};
|
|
@@ -136,6 +141,7 @@ export function CreateEmptyBaseSchedule(scheduleType) {
|
|
|
136
141
|
export function CreateEmptyReminderSchedule() {
|
|
137
142
|
return {
|
|
138
143
|
Uuid: createUuid(),
|
|
144
|
+
Name: EMPTY_STRING,
|
|
139
145
|
ScheduleType: ScheduleType.Reminder,
|
|
140
146
|
Schedule: CreateEmptySchedule(),
|
|
141
147
|
Header: EMPTY_STRING,
|
|
@@ -148,6 +154,7 @@ export function CreateEmptyReminderSchedule() {
|
|
|
148
154
|
export function CreateEmptyReportSchedule() {
|
|
149
155
|
return {
|
|
150
156
|
Uuid: createUuid(),
|
|
157
|
+
Name: EMPTY_STRING,
|
|
151
158
|
ScheduleType: ScheduleType.Report,
|
|
152
159
|
Schedule: CreateEmptySchedule(),
|
|
153
160
|
ReportName: EMPTY_STRING,
|
|
@@ -172,6 +179,7 @@ export function CreateEmptyOpenFinReport() {
|
|
|
172
179
|
export function CreateEmptyIPushPullSchedule() {
|
|
173
180
|
return {
|
|
174
181
|
Uuid: createUuid(),
|
|
182
|
+
Name: EMPTY_STRING,
|
|
175
183
|
ScheduleType: ScheduleType.ipushpull,
|
|
176
184
|
Schedule: CreateEmptySchedule(),
|
|
177
185
|
IPushPullReport: CreateEmptyIPushPullReport(),
|
|
@@ -181,6 +189,7 @@ export function CreateEmptyIPushPullSchedule() {
|
|
|
181
189
|
export function CreateEmptyOpenFinSchedule() {
|
|
182
190
|
return {
|
|
183
191
|
Uuid: createUuid(),
|
|
192
|
+
Name: EMPTY_STRING,
|
|
184
193
|
ScheduleType: ScheduleType.OpenFin,
|
|
185
194
|
Schedule: CreateEmptySchedule(),
|
|
186
195
|
OpenFinReport: CreateEmptyOpenFinReport(),
|
|
@@ -190,6 +199,7 @@ export function CreateEmptyOpenFinSchedule() {
|
|
|
190
199
|
export function CreateIPushPullSchedule(iPushPullReport) {
|
|
191
200
|
return {
|
|
192
201
|
Uuid: createUuid(),
|
|
202
|
+
Name: EMPTY_STRING,
|
|
193
203
|
ScheduleType: ScheduleType.ipushpull,
|
|
194
204
|
Schedule: CreateEmptySchedule(),
|
|
195
205
|
IPushPullReport: iPushPullReport,
|
|
@@ -199,6 +209,7 @@ export function CreateIPushPullSchedule(iPushPullReport) {
|
|
|
199
209
|
export function CreateReportSchedule(reportName, reportFormat) {
|
|
200
210
|
return {
|
|
201
211
|
Uuid: createUuid(),
|
|
212
|
+
Name: EMPTY_STRING,
|
|
202
213
|
ScheduleType: ScheduleType.Report,
|
|
203
214
|
Schedule: CreateEmptySchedule(),
|
|
204
215
|
ReportName: reportName,
|
|
@@ -207,7 +218,6 @@ export function CreateReportSchedule(reportName, reportFormat) {
|
|
|
207
218
|
}
|
|
208
219
|
export function CreateEmptySchedule() {
|
|
209
220
|
return {
|
|
210
|
-
Uuid: createUuid(),
|
|
211
221
|
OneOffDate: undefined,
|
|
212
222
|
DaysOfWeek: [],
|
|
213
223
|
Hour: 0,
|
|
@@ -217,6 +227,7 @@ export function CreateEmptySchedule() {
|
|
|
217
227
|
export function CreateEmptyShortcut() {
|
|
218
228
|
return {
|
|
219
229
|
Uuid: createUuid(),
|
|
230
|
+
Name: EMPTY_STRING,
|
|
220
231
|
Scope: undefined,
|
|
221
232
|
ShortcutKey: EMPTY_STRING,
|
|
222
233
|
ShortcutValue: undefined,
|
|
@@ -225,10 +236,11 @@ export function CreateEmptyShortcut() {
|
|
|
225
236
|
}
|
|
226
237
|
export function CreateEmptyFormatColumn() {
|
|
227
238
|
return {
|
|
239
|
+
Uuid: createUuid(),
|
|
240
|
+
Name: EMPTY_STRING,
|
|
228
241
|
Scope: undefined,
|
|
229
242
|
Style: CreateEmptyStyle(),
|
|
230
243
|
DisplayFormat: undefined,
|
|
231
|
-
CellAlignment: undefined,
|
|
232
244
|
RowScope: undefined,
|
|
233
245
|
Target: 'cell',
|
|
234
246
|
};
|
|
@@ -292,6 +304,7 @@ export function CreateEmptyStyle() {
|
|
|
292
304
|
FontStyle: undefined,
|
|
293
305
|
FontSize: undefined,
|
|
294
306
|
ClassName: undefined,
|
|
307
|
+
Alignment: undefined,
|
|
295
308
|
};
|
|
296
309
|
}
|
|
297
310
|
export function CreateSystemStatusMessageInfo(message, type, furtherInfo) {
|
|
@@ -8,6 +8,14 @@ const logOnce = (message, loggingFn) => {
|
|
|
8
8
|
doOnceFlags[message] = true;
|
|
9
9
|
};
|
|
10
10
|
export class AggregatedScalarLiveValue {
|
|
11
|
+
source;
|
|
12
|
+
requestingModule;
|
|
13
|
+
adaptableApi;
|
|
14
|
+
getRowNodes;
|
|
15
|
+
aggregationReducerName;
|
|
16
|
+
aggregatedScalarExpression;
|
|
17
|
+
expressionEvaluation;
|
|
18
|
+
aggregationResult;
|
|
11
19
|
constructor(source, requestingModule, adaptableApi, getRowNodes) {
|
|
12
20
|
this.source = source;
|
|
13
21
|
this.requestingModule = requestingModule;
|
|
@@ -3,12 +3,11 @@ import Emitter from '../Emitter';
|
|
|
3
3
|
import { combineLatest, of } from 'rxjs';
|
|
4
4
|
import { AlertModuleId } from '../Constants/ModuleConstants';
|
|
5
5
|
export class AlertService {
|
|
6
|
+
adaptableApi;
|
|
7
|
+
emitter;
|
|
8
|
+
reactiveAlertsMap = new Map();
|
|
6
9
|
constructor(adaptableApi) {
|
|
7
10
|
this.adaptableApi = adaptableApi;
|
|
8
|
-
this.reactiveAlertsMap = new Map();
|
|
9
|
-
this.onReactiveAlertTriggered = (callback) => {
|
|
10
|
-
return this.emitter.on('ReactiveAlertTriggered', callback);
|
|
11
|
-
};
|
|
12
11
|
this.emitter = new Emitter();
|
|
13
12
|
}
|
|
14
13
|
destroy() {
|
|
@@ -18,6 +17,9 @@ export class AlertService {
|
|
|
18
17
|
this.reactiveAlertsMap.clear();
|
|
19
18
|
this.reactiveAlertsMap = null;
|
|
20
19
|
}
|
|
20
|
+
onReactiveAlertTriggered = (callback) => {
|
|
21
|
+
return this.emitter.on('ReactiveAlertTriggered', callback);
|
|
22
|
+
};
|
|
21
23
|
createReactiveAlert(alertDefinition) {
|
|
22
24
|
// if there is already a reactive alert for this definition, delete it (possible in case of editing definitions),
|
|
23
25
|
this.deleteReactiveAlert(alertDefinition);
|
|
@@ -5,6 +5,9 @@ import ArrayExtensions from '../Extensions/ArrayExtensions';
|
|
|
5
5
|
* If there are active Notes or Comments it listens to Cell Selection and Mouse Enter events
|
|
6
6
|
*/
|
|
7
7
|
export class AnnotationsService {
|
|
8
|
+
api;
|
|
9
|
+
adaptable;
|
|
10
|
+
isListeningToEvents;
|
|
8
11
|
constructor(api) {
|
|
9
12
|
this.api = api;
|
|
10
13
|
this.isListeningToEvents = false;
|
|
@@ -25,7 +28,7 @@ export class AnnotationsService {
|
|
|
25
28
|
if (a?.ColumnId === b?.ColumnId && a?.PrimaryKeyValue === b?.PrimaryKeyValue) {
|
|
26
29
|
return true;
|
|
27
30
|
}
|
|
28
|
-
// Primary keys
|
|
31
|
+
// Primary keys retrieved from the grid dom are always strings, so we must also consider them strings
|
|
29
32
|
if ((typeof a.PrimaryKeyValue === 'number' && typeof b.PrimaryKeyValue === 'string') ||
|
|
30
33
|
(typeof b.PrimaryKeyValue === 'string' && typeof a.PrimaryKeyValue === 'number')) {
|
|
31
34
|
return (a.PrimaryKeyValue.toString() === b.PrimaryKeyValue.toString() && a.ColumnId === b.ColumnId);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CalculatedColumnModuleId } from '../Constants/ModuleConstants';
|
|
2
2
|
import { AggregatedScalarLiveValue } from './AggregatedScalarLiveValue';
|
|
3
3
|
export class CalculatedColumnExpressionService {
|
|
4
|
+
adaptableApi;
|
|
5
|
+
aggregatedScalarLiveValuesMap = new Map();
|
|
4
6
|
constructor(adaptableApi) {
|
|
5
7
|
this.adaptableApi = adaptableApi;
|
|
6
|
-
this.aggregatedScalarLiveValuesMap = new Map();
|
|
7
8
|
this.adaptableApi = adaptableApi;
|
|
8
9
|
}
|
|
9
10
|
listentoCellDataChange(cellDataChangedInfo) {
|
|
@@ -4,10 +4,16 @@ import Helper from '../Helpers/Helper';
|
|
|
4
4
|
// ~ 8 hours
|
|
5
5
|
const MAX_TIMEFRAME_SIZE = 86400000;
|
|
6
6
|
export class DataService {
|
|
7
|
+
adaptable;
|
|
8
|
+
emitter;
|
|
9
|
+
cellDataChangeLogSubject$;
|
|
10
|
+
cellDataChangeLog$;
|
|
11
|
+
rowDataChangeLogSubject$;
|
|
12
|
+
rowDataChangeLog$;
|
|
13
|
+
undoChangeLog;
|
|
14
|
+
undoChangeTimers;
|
|
7
15
|
constructor(adaptable) {
|
|
8
16
|
this.adaptable = adaptable;
|
|
9
|
-
this.on = (eventName, callback) => this.emitter.on(eventName, callback);
|
|
10
|
-
this.emit = (eventName, data) => this.emitter.emit(eventName, data);
|
|
11
17
|
this.adaptable = adaptable;
|
|
12
18
|
this.emitter = new Emitter();
|
|
13
19
|
this.cellDataChangeLogSubject$ = new Subject();
|
|
@@ -31,6 +37,8 @@ export class DataService {
|
|
|
31
37
|
this.undoChangeTimers.clear();
|
|
32
38
|
this.undoChangeTimers = null;
|
|
33
39
|
}
|
|
40
|
+
on = (eventName, callback) => this.emitter.on(eventName, callback);
|
|
41
|
+
emit = (eventName, data) => this.emitter.emit(eventName, data);
|
|
34
42
|
CreateCellDataChangedEvent(cellDataChangedInfo) {
|
|
35
43
|
if (cellDataChangedInfo.newValue != cellDataChangedInfo.oldValue) {
|
|
36
44
|
this.emitter.emitSync('CellDataChanged', cellDataChangedInfo);
|
|
@@ -56,7 +64,7 @@ export class DataService {
|
|
|
56
64
|
// why 2 and not 3 or 1? no good reason, only seems like a reasonable waiting time :)
|
|
57
65
|
const UNDO_WAIT = 2000;
|
|
58
66
|
const timeoutId = setTimeout(() => {
|
|
59
|
-
this.adaptable.logger.warn(`Undo change was
|
|
67
|
+
this.adaptable.logger.warn(`Undo change was not handled within timeout: column="${change.column}", primaryKey="${change.primaryKeyValue}", from=${change.newValue} to=${change.oldValue}.`);
|
|
60
68
|
this.extractUndoChange(change);
|
|
61
69
|
}, UNDO_WAIT);
|
|
62
70
|
this.undoChangeTimers.set(undoChangeKey, timeoutId);
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ContextConfiguration } from '../../AdaptableState/Common/Fdc3Context';
|
|
2
2
|
import { Fdc3IntentConfiguration } from '../../AdaptableState/Common/Fdc3Intent';
|
|
3
3
|
export class Fdc3Service {
|
|
4
|
+
adaptableApi;
|
|
5
|
+
contextHandlerSubscriptions = [];
|
|
6
|
+
intentHandlerSubscriptions = [];
|
|
7
|
+
loggedAgentError = false;
|
|
8
|
+
uiControlsDefaultConfiguration;
|
|
4
9
|
constructor(adaptableApi) {
|
|
5
10
|
this.adaptableApi = adaptableApi;
|
|
6
|
-
this.contextHandlerSubscriptions = [];
|
|
7
|
-
this.intentHandlerSubscriptions = [];
|
|
8
|
-
this.loggedAgentError = false;
|
|
9
11
|
// 1. Subscribe to FDC3 events
|
|
10
12
|
const adaptableHandleIntentFn = this.getFdc3Options().intents?.handleIntent;
|
|
11
13
|
const listenForIntents = this.getFdc3Options().intents?.listensFor ?? [];
|
|
@@ -76,7 +78,7 @@ export class Fdc3Service {
|
|
|
76
78
|
getDesktopAgent() {
|
|
77
79
|
if (globalThis.fdc3 == null && !this.loggedAgentError) {
|
|
78
80
|
this.loggedAgentError = true;
|
|
79
|
-
this.adaptableApi.consoleError('FDC3 Desktop Agent not found.
|
|
81
|
+
this.adaptableApi.consoleError('FDC3 Desktop Agent not found. The host application must provide the FDC3 agent on globalThis.fdc3.');
|
|
80
82
|
}
|
|
81
83
|
return globalThis.fdc3;
|
|
82
84
|
}
|
|
@@ -159,11 +161,11 @@ export class Fdc3Service {
|
|
|
159
161
|
if (!this.getFdc3Options().enableLogging) {
|
|
160
162
|
return;
|
|
161
163
|
}
|
|
162
|
-
this.adaptableApi.consoleLog(`FDC3
|
|
164
|
+
this.adaptableApi.consoleLog(`FDC3 ${type}: ${params.join(' : ')}`);
|
|
163
165
|
}
|
|
164
166
|
logFdc3Error(error) {
|
|
165
|
-
this.adaptableApi.consoleError(
|
|
166
|
-
this.adaptableApi.alertApi.showAlertError('FDC3
|
|
167
|
+
this.adaptableApi.consoleError('FDC3 operation failed.', error);
|
|
168
|
+
this.adaptableApi.alertApi.showAlertError('FDC3', 'An error occurred. See the browser console for details.');
|
|
167
169
|
}
|
|
168
170
|
getFdc3Api() {
|
|
169
171
|
return this.adaptableApi.fdc3Api;
|