@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
|
@@ -47,8 +47,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
47
47
|
return {
|
|
48
48
|
Alert: {
|
|
49
49
|
alertType: 'generic',
|
|
50
|
-
header: 'Smart Edit
|
|
51
|
-
message: '
|
|
50
|
+
header: 'Smart Edit',
|
|
51
|
+
message: 'Editing is not available in Pivot Mode.',
|
|
52
52
|
alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
|
|
53
53
|
},
|
|
54
54
|
};
|
|
@@ -57,8 +57,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
57
57
|
return {
|
|
58
58
|
Alert: {
|
|
59
59
|
alertType: 'generic',
|
|
60
|
-
header: 'Smart Edit
|
|
61
|
-
message: 'No cells
|
|
60
|
+
header: 'Smart Edit',
|
|
61
|
+
message: 'No cells selected. Please select one or more cells to continue.',
|
|
62
62
|
alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
|
|
63
63
|
},
|
|
64
64
|
};
|
|
@@ -67,8 +67,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
67
67
|
return {
|
|
68
68
|
Alert: {
|
|
69
69
|
alertType: 'generic',
|
|
70
|
-
header: 'Smart Edit
|
|
71
|
-
message: 'Smart Edit
|
|
70
|
+
header: 'Smart Edit',
|
|
71
|
+
message: 'Smart Edit supports editing a single column at a time. Please adjust your selection.',
|
|
72
72
|
alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
|
|
73
73
|
},
|
|
74
74
|
};
|
|
@@ -79,8 +79,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
79
79
|
return {
|
|
80
80
|
Alert: {
|
|
81
81
|
alertType: 'generic',
|
|
82
|
-
header: 'Smart Edit
|
|
83
|
-
message: 'Smart Edit only
|
|
82
|
+
header: 'Smart Edit',
|
|
83
|
+
message: 'Smart Edit only applies to numeric columns. Please adjust your selection.',
|
|
84
84
|
alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
|
|
85
85
|
},
|
|
86
86
|
};
|
|
@@ -91,8 +91,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
91
91
|
return {
|
|
92
92
|
Alert: {
|
|
93
93
|
alertType: 'generic',
|
|
94
|
-
header: 'Smart Edit
|
|
95
|
-
message: 'Smart Edit is not
|
|
94
|
+
header: 'Smart Edit',
|
|
95
|
+
message: 'Smart Edit is not available for read-only cells. Please adjust your selection.',
|
|
96
96
|
alertDefinition: ObjectFactory_1.default.CreateInternalAlertDefinitionForMessages('Error'),
|
|
97
97
|
},
|
|
98
98
|
};
|
|
@@ -15,18 +15,18 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
|
|
|
15
15
|
const flatten_1 = tslib_1.__importDefault(require("lodash/flatten"));
|
|
16
16
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../Utilities/Helpers/AdaptableHelper"));
|
|
17
17
|
class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
18
|
+
SKIP_TEAMSHARING_UPDATE_ACTIONS = [
|
|
19
|
+
TeamSharingRedux_1.TEAMSHARING_GET,
|
|
20
|
+
TeamSharingRedux_1.TEAMSHARING_SET,
|
|
21
|
+
TeamSharingRedux_1.TEAMSHARING_SHARE,
|
|
22
|
+
TeamSharingRedux_1.TEAMSHARING_IMPORT_ITEM,
|
|
23
|
+
TeamSharingRedux_1.TEAMSHARING_PROCESS_IMPORT,
|
|
24
|
+
TeamSharingRedux_1.TEAMSHARING_REMOVE_ITEM,
|
|
25
|
+
TeamSharingRedux_1.TEAMSHARING_LINK_ITEM,
|
|
26
|
+
TeamSharingRedux_1.TEAMSHARING_UPDATE_ITEM,
|
|
27
|
+
];
|
|
18
28
|
constructor(api) {
|
|
19
29
|
super(ModuleConstants.TeamSharingModuleId, ModuleConstants.TeamSharingFriendlyName, 'folder-shared', 'TeamSharingPopup', 'Team Sharing allows users to share - at run-time - Adaptable Objects between colleagues.', api);
|
|
20
|
-
this.SKIP_TEAMSHARING_UPDATE_ACTIONS = [
|
|
21
|
-
TeamSharingRedux_1.TEAMSHARING_GET,
|
|
22
|
-
TeamSharingRedux_1.TEAMSHARING_SET,
|
|
23
|
-
TeamSharingRedux_1.TEAMSHARING_SHARE,
|
|
24
|
-
TeamSharingRedux_1.TEAMSHARING_IMPORT_ITEM,
|
|
25
|
-
TeamSharingRedux_1.TEAMSHARING_PROCESS_IMPORT,
|
|
26
|
-
TeamSharingRedux_1.TEAMSHARING_REMOVE_ITEM,
|
|
27
|
-
TeamSharingRedux_1.TEAMSHARING_LINK_ITEM,
|
|
28
|
-
TeamSharingRedux_1.TEAMSHARING_UPDATE_ITEM,
|
|
29
|
-
];
|
|
30
30
|
}
|
|
31
31
|
onAdaptableReady() {
|
|
32
32
|
if (this.api.teamSharingApi.isTeamSharingAvailable()) {
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getFormatColumnSettingsViewItems = void 0;
|
|
4
4
|
const getFormatColumnSettingsViewItems = (formatColumn) => {
|
|
5
5
|
let values = [];
|
|
6
|
-
if (formatColumn.CellAlignment) {
|
|
7
|
-
values.push(`Cell Alignment: ${formatColumn.CellAlignment}`);
|
|
8
|
-
}
|
|
9
6
|
if (formatColumn.RowScope) {
|
|
10
7
|
if (formatColumn.RowScope.ExcludeDataRows) {
|
|
11
8
|
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";
|
|
@@ -15,8 +15,8 @@ exports.QuantileAggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/adapta
|
|
|
15
15
|
exports.PredicateDocsLink = `${exports.HOST_URL_DOCS}/adaptable-predicate`;
|
|
16
16
|
exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/getting-started-primary-key`;
|
|
17
17
|
exports.LicenseDocsLink = `${exports.HOST_URL_ROOT}/buy/buying-adaptable-licensing`;
|
|
18
|
-
exports.AdaptableOptionsDocsLink = `${exports.HOST_URL_DOCS}/reference-options
|
|
19
|
-
exports.AgGridModulesDocsLink = `${exports.HOST_URL_DOCS}/
|
|
18
|
+
exports.AdaptableOptionsDocsLink = `${exports.HOST_URL_DOCS}/technical-reference-adaptable-options`;
|
|
19
|
+
exports.AgGridModulesDocsLink = `${exports.HOST_URL_DOCS}/getting-started-aggrid-modules`;
|
|
20
20
|
exports.AlertMessageDocsLink = `${exports.HOST_URL_DOCS}/handbook-alerting-message`;
|
|
21
21
|
exports.FormatColumnPlaceholderDocsLink = `${exports.HOST_URL_DOCS}/handbook-column-formatting-display-format-placeholder`;
|
|
22
|
-
exports.AgGridRequiredModulesDocsLink = `${exports.HOST_URL_DOCS}/
|
|
22
|
+
exports.AgGridRequiredModulesDocsLink = `${exports.HOST_URL_DOCS}/getting-started-aggrid-modules#mandatory-modules`;
|
|
@@ -4,6 +4,9 @@ exports.DeepMap = void 0;
|
|
|
4
4
|
exports.once = once;
|
|
5
5
|
const SORT_ASC_REVISION = (p1, p2) => sortAscending(p1.revision, p2.revision);
|
|
6
6
|
class DeepMap {
|
|
7
|
+
map = new Map();
|
|
8
|
+
length = 0;
|
|
9
|
+
revision = 0;
|
|
7
10
|
static clone(map) {
|
|
8
11
|
const clone = new DeepMap();
|
|
9
12
|
map.visit((pair, keys) => {
|
|
@@ -12,37 +15,6 @@ class DeepMap {
|
|
|
12
15
|
return clone;
|
|
13
16
|
}
|
|
14
17
|
constructor(initial) {
|
|
15
|
-
this.map = new Map();
|
|
16
|
-
this.length = 0;
|
|
17
|
-
this.revision = 0;
|
|
18
|
-
this.visit = (fn) => {
|
|
19
|
-
this.map.forEach((_, k) => this.visitKey(k, this.map, [], fn));
|
|
20
|
-
};
|
|
21
|
-
this.visitDepthFirst = (fn) => {
|
|
22
|
-
this.visitWithNext([], fn);
|
|
23
|
-
};
|
|
24
|
-
this.visitWithNext = (parentKeys, fn, currentMap = this.map) => {
|
|
25
|
-
if (!currentMap) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
let i = 0;
|
|
29
|
-
currentMap.forEach((_, key) => {
|
|
30
|
-
const pair = currentMap.get(key);
|
|
31
|
-
if (!pair) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
const { map } = pair;
|
|
35
|
-
const keys = [...parentKeys, key];
|
|
36
|
-
const next = map ? () => this.visitWithNext(keys, fn, map) : undefined;
|
|
37
|
-
if (pair.hasOwnProperty('value')) {
|
|
38
|
-
fn(pair.value, keys, i, next);
|
|
39
|
-
i++;
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
next?.();
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
18
|
if (initial) {
|
|
47
19
|
initial.forEach((entry) => {
|
|
48
20
|
const [keys, value] = entry;
|
|
@@ -226,6 +198,34 @@ class DeepMap {
|
|
|
226
198
|
// if it was called by fn, it won't be called again, as it's once-d
|
|
227
199
|
next();
|
|
228
200
|
}
|
|
201
|
+
visit = (fn) => {
|
|
202
|
+
this.map.forEach((_, k) => this.visitKey(k, this.map, [], fn));
|
|
203
|
+
};
|
|
204
|
+
visitDepthFirst = (fn) => {
|
|
205
|
+
this.visitWithNext([], fn);
|
|
206
|
+
};
|
|
207
|
+
visitWithNext = (parentKeys, fn, currentMap = this.map) => {
|
|
208
|
+
if (!currentMap) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
let i = 0;
|
|
212
|
+
currentMap.forEach((_, key) => {
|
|
213
|
+
const pair = currentMap.get(key);
|
|
214
|
+
if (!pair) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
const { map } = pair;
|
|
218
|
+
const keys = [...parentKeys, key];
|
|
219
|
+
const next = map ? () => this.visitWithNext(keys, fn, map) : undefined;
|
|
220
|
+
if (pair.hasOwnProperty('value')) {
|
|
221
|
+
fn(pair.value, keys, i, next);
|
|
222
|
+
i++;
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
next?.();
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
};
|
|
229
229
|
getArray(fn) {
|
|
230
230
|
const result = [];
|
|
231
231
|
this.visit((pair, keys) => {
|
|
@@ -643,7 +643,7 @@ exports.scalarExpressionFunctions = {
|
|
|
643
643
|
}
|
|
644
644
|
return result;
|
|
645
645
|
},
|
|
646
|
-
description: "Returns
|
|
646
|
+
description: "Returns percentage difference between a cell's current value and previous value",
|
|
647
647
|
signatures: [
|
|
648
648
|
'PERCENT_CHANGE( [colName], <INCREASE|DECREASE> )',
|
|
649
649
|
'PERCENT_CHANGE( COL(name: string), <INCREASE|DECREASE> )',
|
|
@@ -688,7 +688,7 @@ exports.scalarExpressionFunctions = {
|
|
|
688
688
|
}
|
|
689
689
|
return result;
|
|
690
690
|
},
|
|
691
|
-
description: "Returns
|
|
691
|
+
description: "Returns absolute difference between a cell's current value and previous value",
|
|
692
692
|
signatures: [
|
|
693
693
|
'ABSOLUTE_CHANGE( [colName] )',
|
|
694
694
|
'ABSOLUTE_CHANGE( COL(name: string) )',
|
|
@@ -720,7 +720,7 @@ exports.scalarExpressionFunctions = {
|
|
|
720
720
|
const previousValue = context.dataChangedEvent.oldValue;
|
|
721
721
|
return currentColumnValue !== previousValue;
|
|
722
722
|
},
|
|
723
|
-
description: "Returns true if
|
|
723
|
+
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",
|
|
724
724
|
signatures: ['ANY_CHANGE( [colName] )', 'ANY_CHANGE()'],
|
|
725
725
|
examples: ['ANY_CHANGE([col1])', 'ANY_CHANGE()'],
|
|
726
726
|
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;
|
|
@@ -20,6 +20,7 @@ exports.Humanize = Humanize;
|
|
|
20
20
|
exports.ReplaceEmptySpacesWithUnderscore = ReplaceEmptySpacesWithUnderscore;
|
|
21
21
|
exports.IsNumeric = IsNumeric;
|
|
22
22
|
exports.UnescapeHtmlEntities = UnescapeHtmlEntities;
|
|
23
|
+
exports.ReplaceAllOccurencesExceptLastOne = ReplaceAllOccurencesExceptLastOne;
|
|
23
24
|
const tslib_1 = require("tslib");
|
|
24
25
|
const startCase_1 = tslib_1.__importDefault(require("lodash/startCase"));
|
|
25
26
|
function IsNull(stringToCheck) {
|
|
@@ -115,6 +116,21 @@ function UnescapeHtmlEntities(str) {
|
|
|
115
116
|
}
|
|
116
117
|
return preparedStr;
|
|
117
118
|
}
|
|
119
|
+
function ReplaceAllOccurencesExceptLastOne(str, searchTerm, replacement) {
|
|
120
|
+
// Find the index of the last occurrence of the search string
|
|
121
|
+
const lastIndex = str.lastIndexOf(searchTerm);
|
|
122
|
+
// If the string is not found, return the original string
|
|
123
|
+
if (lastIndex === -1) {
|
|
124
|
+
return str;
|
|
125
|
+
}
|
|
126
|
+
// Slice the string into two parts: before and after the last occurrence
|
|
127
|
+
const partBeforeLast = str.slice(0, lastIndex);
|
|
128
|
+
const partAfterLast = str.slice(lastIndex);
|
|
129
|
+
// Replace all occurrences in the first part
|
|
130
|
+
const replacedPart = partBeforeLast.replaceAll(searchTerm, replacement);
|
|
131
|
+
// Recombine the modified first part with the untouched second part
|
|
132
|
+
return replacedPart + partAfterLast;
|
|
133
|
+
}
|
|
118
134
|
exports.StringExtensions = {
|
|
119
135
|
IsNull,
|
|
120
136
|
IsNotNull,
|
|
@@ -135,5 +151,6 @@ exports.StringExtensions = {
|
|
|
135
151
|
ReplaceEmptySpacesWithUnderscore,
|
|
136
152
|
IsNumeric,
|
|
137
153
|
UnescapeHtmlEntities,
|
|
154
|
+
ReplaceAllOccurencesExceptLastOne,
|
|
138
155
|
};
|
|
139
156
|
exports.default = exports.StringExtensions;
|
|
@@ -34,7 +34,6 @@ function NumberFormatter(input, options = {}, rowNode, column, api) {
|
|
|
34
34
|
if (isNaN(n)) {
|
|
35
35
|
return preparedInput.toString();
|
|
36
36
|
}
|
|
37
|
-
const fractionsSepatator = options.FractionSeparator ? options.FractionSeparator : '.';
|
|
38
37
|
let multiplier = options.Multiplier ? options.Multiplier : 1;
|
|
39
38
|
if (options.Multiplier !== undefined) {
|
|
40
39
|
n *= multiplier;
|
|
@@ -71,6 +70,7 @@ function NumberFormatter(input, options = {}, rowNode, column, api) {
|
|
|
71
70
|
}
|
|
72
71
|
let s;
|
|
73
72
|
let digitsToUse;
|
|
73
|
+
const fractionsSepatator = options.FractionSeparator ?? '.';
|
|
74
74
|
if (options.Truncate || options.Ceiling || options.Round || options.Floor) {
|
|
75
75
|
digitsToUse = 0;
|
|
76
76
|
}
|
|
@@ -90,7 +90,14 @@ function NumberFormatter(input, options = {}, rowNode, column, api) {
|
|
|
90
90
|
s = s.replace(/\./g, options.FractionSeparator);
|
|
91
91
|
}
|
|
92
92
|
if (options.IntegerSeparator !== undefined) {
|
|
93
|
-
|
|
93
|
+
// if fraction separator is not a comma then simply replace all instances
|
|
94
|
+
if (options.FractionSeparator !== ',') {
|
|
95
|
+
s = s.replace(/\,/g, options.IntegerSeparator);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
// otherwise don't replace the last instance
|
|
99
|
+
s = StringExtensions_1.default.ReplaceAllOccurencesExceptLastOne(s, ',', options.IntegerSeparator);
|
|
100
|
+
}
|
|
94
101
|
}
|
|
95
102
|
s = (options.Prefix || '') + s + (options.Suffix || '');
|
|
96
103
|
if (options.Parentheses === true && preparedInput < 0) {
|
|
@@ -85,6 +85,20 @@ const convertAdaptableStyleToCSS = (style) => {
|
|
|
85
85
|
break;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
+
if (style.Alignment) {
|
|
89
|
+
switch (style.Alignment) {
|
|
90
|
+
case 'Default':
|
|
91
|
+
case 'Left':
|
|
92
|
+
result.textAlign = 'left';
|
|
93
|
+
break;
|
|
94
|
+
case 'Right':
|
|
95
|
+
result.textAlign = 'right';
|
|
96
|
+
break;
|
|
97
|
+
case 'Center':
|
|
98
|
+
result.textAlign = 'center';
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
88
102
|
// assertion added to comply with the ag-Grid types
|
|
89
103
|
return result;
|
|
90
104
|
};
|
|
@@ -15,6 +15,12 @@ class MenuItemDoReduxAction {
|
|
|
15
15
|
};
|
|
16
16
|
this.reduxAction = reduxAction;
|
|
17
17
|
}
|
|
18
|
+
name;
|
|
19
|
+
reduxAction;
|
|
20
|
+
label;
|
|
21
|
+
category;
|
|
22
|
+
isVisible;
|
|
23
|
+
icon;
|
|
18
24
|
}
|
|
19
25
|
exports.MenuItemDoReduxAction = MenuItemDoReduxAction;
|
|
20
26
|
class MenuItemDoClickFunction {
|
|
@@ -28,6 +34,12 @@ class MenuItemDoClickFunction {
|
|
|
28
34
|
};
|
|
29
35
|
this.onClick = clickFunction;
|
|
30
36
|
}
|
|
37
|
+
name;
|
|
38
|
+
onClick;
|
|
39
|
+
label;
|
|
40
|
+
category;
|
|
41
|
+
isVisible;
|
|
42
|
+
icon;
|
|
31
43
|
}
|
|
32
44
|
exports.MenuItemDoClickFunction = MenuItemDoClickFunction;
|
|
33
45
|
// A menu item which shows a popup screen when it is clieked
|
|
@@ -42,5 +54,11 @@ class MenuItemShowPopup {
|
|
|
42
54
|
};
|
|
43
55
|
this.reduxAction = PopupRedux.PopupShowScreen(module, componentName, popupParams);
|
|
44
56
|
}
|
|
57
|
+
name;
|
|
58
|
+
reduxAction;
|
|
59
|
+
label;
|
|
60
|
+
category;
|
|
61
|
+
isVisible;
|
|
62
|
+
icon;
|
|
45
63
|
}
|
|
46
64
|
exports.MenuItemShowPopup = MenuItemShowPopup;
|
|
@@ -48,7 +48,7 @@ const Toastify_1 = require("../components/Toastify");
|
|
|
48
48
|
const UIHelper_1 = require("../View/UIHelper");
|
|
49
49
|
const LayoutHelpers_1 = require("../Api/Implementation/LayoutHelpers");
|
|
50
50
|
function CreateEmptyCustomSort() {
|
|
51
|
-
return { Uuid: (0, Uuid_1.createUuid)(), ColumnId: GeneralConstants_1.EMPTY_STRING, SortedValues: [] };
|
|
51
|
+
return { Uuid: (0, Uuid_1.createUuid)(), Name: GeneralConstants_1.EMPTY_STRING, ColumnId: GeneralConstants_1.EMPTY_STRING, SortedValues: [] };
|
|
52
52
|
}
|
|
53
53
|
function CreateAdaptableComment(text, api) {
|
|
54
54
|
const comment = {
|
|
@@ -86,6 +86,7 @@ function CreateEmptyNamedQuery(expression) {
|
|
|
86
86
|
function CreateEmptyPlusMinusNudge() {
|
|
87
87
|
return {
|
|
88
88
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
89
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
89
90
|
Scope: undefined,
|
|
90
91
|
Rule: undefined,
|
|
91
92
|
NudgeValue: ObjectDefaultConstants_1.PLUS_MINUS_DEFAULT_NUDGE_VALUE,
|
|
@@ -123,6 +124,7 @@ function CreateRowChangedAlert(alertHeader, alertMessage, alertDefinition, rowDa
|
|
|
123
124
|
function CreateEmptyAlertDefinition() {
|
|
124
125
|
return {
|
|
125
126
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
127
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
126
128
|
Scope: { All: true },
|
|
127
129
|
Rule: {
|
|
128
130
|
Predicates: [],
|
|
@@ -134,6 +136,7 @@ function CreateEmptyAlertDefinition() {
|
|
|
134
136
|
function CreateEmptyFlashingCellDefinition() {
|
|
135
137
|
return {
|
|
136
138
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
139
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
137
140
|
Scope: { ColumnIds: [] },
|
|
138
141
|
Rule: {
|
|
139
142
|
Predicates: [
|
|
@@ -150,6 +153,7 @@ function CreateInternalAlertDefinitionForMessages(messageType, alertProperties)
|
|
|
150
153
|
};
|
|
151
154
|
return {
|
|
152
155
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
156
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
153
157
|
Scope: undefined,
|
|
154
158
|
Rule: {
|
|
155
159
|
Predicates: [],
|
|
@@ -171,6 +175,7 @@ function CreateEmptyReport() {
|
|
|
171
175
|
function CreateEmptyBaseSchedule(scheduleType) {
|
|
172
176
|
return {
|
|
173
177
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
178
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
174
179
|
ScheduleType: scheduleType,
|
|
175
180
|
Schedule: CreateEmptySchedule(),
|
|
176
181
|
};
|
|
@@ -178,6 +183,7 @@ function CreateEmptyBaseSchedule(scheduleType) {
|
|
|
178
183
|
function CreateEmptyReminderSchedule() {
|
|
179
184
|
return {
|
|
180
185
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
186
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
181
187
|
ScheduleType: Enums_1.ScheduleType.Reminder,
|
|
182
188
|
Schedule: CreateEmptySchedule(),
|
|
183
189
|
Header: GeneralConstants_1.EMPTY_STRING,
|
|
@@ -190,6 +196,7 @@ function CreateEmptyReminderSchedule() {
|
|
|
190
196
|
function CreateEmptyReportSchedule() {
|
|
191
197
|
return {
|
|
192
198
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
199
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
193
200
|
ScheduleType: Enums_1.ScheduleType.Report,
|
|
194
201
|
Schedule: CreateEmptySchedule(),
|
|
195
202
|
ReportName: GeneralConstants_1.EMPTY_STRING,
|
|
@@ -214,6 +221,7 @@ function CreateEmptyOpenFinReport() {
|
|
|
214
221
|
function CreateEmptyIPushPullSchedule() {
|
|
215
222
|
return {
|
|
216
223
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
224
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
217
225
|
ScheduleType: Enums_1.ScheduleType.ipushpull,
|
|
218
226
|
Schedule: CreateEmptySchedule(),
|
|
219
227
|
IPushPullReport: CreateEmptyIPushPullReport(),
|
|
@@ -223,6 +231,7 @@ function CreateEmptyIPushPullSchedule() {
|
|
|
223
231
|
function CreateEmptyOpenFinSchedule() {
|
|
224
232
|
return {
|
|
225
233
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
234
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
226
235
|
ScheduleType: Enums_1.ScheduleType.OpenFin,
|
|
227
236
|
Schedule: CreateEmptySchedule(),
|
|
228
237
|
OpenFinReport: CreateEmptyOpenFinReport(),
|
|
@@ -232,6 +241,7 @@ function CreateEmptyOpenFinSchedule() {
|
|
|
232
241
|
function CreateIPushPullSchedule(iPushPullReport) {
|
|
233
242
|
return {
|
|
234
243
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
244
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
235
245
|
ScheduleType: Enums_1.ScheduleType.ipushpull,
|
|
236
246
|
Schedule: CreateEmptySchedule(),
|
|
237
247
|
IPushPullReport: iPushPullReport,
|
|
@@ -241,6 +251,7 @@ function CreateIPushPullSchedule(iPushPullReport) {
|
|
|
241
251
|
function CreateReportSchedule(reportName, reportFormat) {
|
|
242
252
|
return {
|
|
243
253
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
254
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
244
255
|
ScheduleType: Enums_1.ScheduleType.Report,
|
|
245
256
|
Schedule: CreateEmptySchedule(),
|
|
246
257
|
ReportName: reportName,
|
|
@@ -249,7 +260,6 @@ function CreateReportSchedule(reportName, reportFormat) {
|
|
|
249
260
|
}
|
|
250
261
|
function CreateEmptySchedule() {
|
|
251
262
|
return {
|
|
252
|
-
Uuid: (0, Uuid_1.createUuid)(),
|
|
253
263
|
OneOffDate: undefined,
|
|
254
264
|
DaysOfWeek: [],
|
|
255
265
|
Hour: 0,
|
|
@@ -259,6 +269,7 @@ function CreateEmptySchedule() {
|
|
|
259
269
|
function CreateEmptyShortcut() {
|
|
260
270
|
return {
|
|
261
271
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
272
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
262
273
|
Scope: undefined,
|
|
263
274
|
ShortcutKey: GeneralConstants_1.EMPTY_STRING,
|
|
264
275
|
ShortcutValue: undefined,
|
|
@@ -267,10 +278,11 @@ function CreateEmptyShortcut() {
|
|
|
267
278
|
}
|
|
268
279
|
function CreateEmptyFormatColumn() {
|
|
269
280
|
return {
|
|
281
|
+
Uuid: (0, Uuid_1.createUuid)(),
|
|
282
|
+
Name: GeneralConstants_1.EMPTY_STRING,
|
|
270
283
|
Scope: undefined,
|
|
271
284
|
Style: CreateEmptyStyle(),
|
|
272
285
|
DisplayFormat: undefined,
|
|
273
|
-
CellAlignment: undefined,
|
|
274
286
|
RowScope: undefined,
|
|
275
287
|
Target: 'cell',
|
|
276
288
|
};
|
|
@@ -334,6 +346,7 @@ function CreateEmptyStyle() {
|
|
|
334
346
|
FontStyle: undefined,
|
|
335
347
|
FontSize: undefined,
|
|
336
348
|
ClassName: undefined,
|
|
349
|
+
Alignment: undefined,
|
|
337
350
|
};
|
|
338
351
|
}
|
|
339
352
|
function CreateSystemStatusMessageInfo(message, type, furtherInfo) {
|
|
@@ -11,6 +11,14 @@ const logOnce = (message, loggingFn) => {
|
|
|
11
11
|
doOnceFlags[message] = true;
|
|
12
12
|
};
|
|
13
13
|
class AggregatedScalarLiveValue {
|
|
14
|
+
source;
|
|
15
|
+
requestingModule;
|
|
16
|
+
adaptableApi;
|
|
17
|
+
getRowNodes;
|
|
18
|
+
aggregationReducerName;
|
|
19
|
+
aggregatedScalarExpression;
|
|
20
|
+
expressionEvaluation;
|
|
21
|
+
aggregationResult;
|
|
14
22
|
constructor(source, requestingModule, adaptableApi, getRowNodes) {
|
|
15
23
|
this.source = source;
|
|
16
24
|
this.requestingModule = requestingModule;
|
|
@@ -7,12 +7,11 @@ const Emitter_1 = tslib_1.__importDefault(require("../Emitter"));
|
|
|
7
7
|
const rxjs_1 = require("rxjs");
|
|
8
8
|
const ModuleConstants_1 = require("../Constants/ModuleConstants");
|
|
9
9
|
class AlertService {
|
|
10
|
+
adaptableApi;
|
|
11
|
+
emitter;
|
|
12
|
+
reactiveAlertsMap = new Map();
|
|
10
13
|
constructor(adaptableApi) {
|
|
11
14
|
this.adaptableApi = adaptableApi;
|
|
12
|
-
this.reactiveAlertsMap = new Map();
|
|
13
|
-
this.onReactiveAlertTriggered = (callback) => {
|
|
14
|
-
return this.emitter.on('ReactiveAlertTriggered', callback);
|
|
15
|
-
};
|
|
16
15
|
this.emitter = new Emitter_1.default();
|
|
17
16
|
}
|
|
18
17
|
destroy() {
|
|
@@ -22,6 +21,9 @@ class AlertService {
|
|
|
22
21
|
this.reactiveAlertsMap.clear();
|
|
23
22
|
this.reactiveAlertsMap = null;
|
|
24
23
|
}
|
|
24
|
+
onReactiveAlertTriggered = (callback) => {
|
|
25
|
+
return this.emitter.on('ReactiveAlertTriggered', callback);
|
|
26
|
+
};
|
|
25
27
|
createReactiveAlert(alertDefinition) {
|
|
26
28
|
// if there is already a reactive alert for this definition, delete it (possible in case of editing definitions),
|
|
27
29
|
this.deleteReactiveAlert(alertDefinition);
|
|
@@ -9,6 +9,9 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Extensions/ArrayEx
|
|
|
9
9
|
* If there are active Notes or Comments it listens to Cell Selection and Mouse Enter events
|
|
10
10
|
*/
|
|
11
11
|
class AnnotationsService {
|
|
12
|
+
api;
|
|
13
|
+
adaptable;
|
|
14
|
+
isListeningToEvents;
|
|
12
15
|
constructor(api) {
|
|
13
16
|
this.api = api;
|
|
14
17
|
this.isListeningToEvents = false;
|
|
@@ -29,7 +32,7 @@ class AnnotationsService {
|
|
|
29
32
|
if (a?.ColumnId === b?.ColumnId && a?.PrimaryKeyValue === b?.PrimaryKeyValue) {
|
|
30
33
|
return true;
|
|
31
34
|
}
|
|
32
|
-
// Primary keys
|
|
35
|
+
// Primary keys retrieved from the grid dom are always strings, so we must also consider them strings
|
|
33
36
|
if ((typeof a.PrimaryKeyValue === 'number' && typeof b.PrimaryKeyValue === 'string') ||
|
|
34
37
|
(typeof b.PrimaryKeyValue === 'string' && typeof a.PrimaryKeyValue === 'number')) {
|
|
35
38
|
return (a.PrimaryKeyValue.toString() === b.PrimaryKeyValue.toString() && a.ColumnId === b.ColumnId);
|
|
@@ -4,9 +4,10 @@ exports.CalculatedColumnExpressionService = void 0;
|
|
|
4
4
|
const ModuleConstants_1 = require("../Constants/ModuleConstants");
|
|
5
5
|
const AggregatedScalarLiveValue_1 = require("./AggregatedScalarLiveValue");
|
|
6
6
|
class CalculatedColumnExpressionService {
|
|
7
|
+
adaptableApi;
|
|
8
|
+
aggregatedScalarLiveValuesMap = new Map();
|
|
7
9
|
constructor(adaptableApi) {
|
|
8
10
|
this.adaptableApi = adaptableApi;
|
|
9
|
-
this.aggregatedScalarLiveValuesMap = new Map();
|
|
10
11
|
this.adaptableApi = adaptableApi;
|
|
11
12
|
}
|
|
12
13
|
listentoCellDataChange(cellDataChangedInfo) {
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const InternalRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/InternalRedux"));
|
|
6
6
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../ObjectFactory"));
|
|
7
7
|
class ChartingService {
|
|
8
|
+
api;
|
|
8
9
|
constructor(api) {
|
|
9
10
|
this.api = api;
|
|
10
11
|
}
|
|
@@ -8,10 +8,16 @@ const Helper_1 = tslib_1.__importDefault(require("../Helpers/Helper"));
|
|
|
8
8
|
// ~ 8 hours
|
|
9
9
|
const MAX_TIMEFRAME_SIZE = 86400000;
|
|
10
10
|
class DataService {
|
|
11
|
+
adaptable;
|
|
12
|
+
emitter;
|
|
13
|
+
cellDataChangeLogSubject$;
|
|
14
|
+
cellDataChangeLog$;
|
|
15
|
+
rowDataChangeLogSubject$;
|
|
16
|
+
rowDataChangeLog$;
|
|
17
|
+
undoChangeLog;
|
|
18
|
+
undoChangeTimers;
|
|
11
19
|
constructor(adaptable) {
|
|
12
20
|
this.adaptable = adaptable;
|
|
13
|
-
this.on = (eventName, callback) => this.emitter.on(eventName, callback);
|
|
14
|
-
this.emit = (eventName, data) => this.emitter.emit(eventName, data);
|
|
15
21
|
this.adaptable = adaptable;
|
|
16
22
|
this.emitter = new Emitter_1.default();
|
|
17
23
|
this.cellDataChangeLogSubject$ = new rxjs_1.Subject();
|
|
@@ -35,6 +41,8 @@ class DataService {
|
|
|
35
41
|
this.undoChangeTimers.clear();
|
|
36
42
|
this.undoChangeTimers = null;
|
|
37
43
|
}
|
|
44
|
+
on = (eventName, callback) => this.emitter.on(eventName, callback);
|
|
45
|
+
emit = (eventName, data) => this.emitter.emit(eventName, data);
|
|
38
46
|
CreateCellDataChangedEvent(cellDataChangedInfo) {
|
|
39
47
|
if (cellDataChangedInfo.newValue != cellDataChangedInfo.oldValue) {
|
|
40
48
|
this.emitter.emitSync('CellDataChanged', cellDataChangedInfo);
|
|
@@ -60,7 +68,7 @@ class DataService {
|
|
|
60
68
|
// why 2 and not 3 or 1? no good reason, only seems like a reasonable waiting time :)
|
|
61
69
|
const UNDO_WAIT = 2000;
|
|
62
70
|
const timeoutId = setTimeout(() => {
|
|
63
|
-
this.adaptable.logger.warn(`Undo change was
|
|
71
|
+
this.adaptable.logger.warn(`Undo change was not handled within timeout: column="${change.column}", primaryKey="${change.primaryKeyValue}", from=${change.newValue} to=${change.oldValue}.`);
|
|
64
72
|
this.extractUndoChange(change);
|
|
65
73
|
}, UNDO_WAIT);
|
|
66
74
|
this.undoChangeTimers.set(undoChangeKey, timeoutId);
|