@adaptabletools/adaptable-cjs 22.0.0-canary.0 → 22.0.0-canary.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/agGrid.d.ts +9 -9
- package/agGrid.js +1 -0
- package/index.css +1280 -1400
- package/index.css.map +1 -1
- package/index.d.ts +66 -0
- package/index.js +85 -0
- package/package.json +3 -3
- package/src/AdaptableInterfaces/IAdaptable.d.ts +10 -1
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/AdaptablePlugin.js +6 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +2 -2
- package/src/AdaptableOptions/ContainerOptions.d.ts +55 -15
- package/src/AdaptableOptions/CustomSortOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -2
- package/src/AdaptableOptions/FilterOptions.d.ts +3 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -2
- package/src/AdaptableState/AdaptableState.d.ts +2 -0
- package/src/AdaptableState/AlertState.d.ts +5 -2
- package/src/AdaptableState/ChartingState.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +16 -10
- package/src/AdaptableState/Common/AdaptableColumnContext.d.ts +9 -0
- package/src/AdaptableState/Common/AdaptableFlashingCell.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableObject.d.ts +20 -2
- package/src/AdaptableState/Common/AdaptableRowContext.d.ts +11 -0
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +8 -0
- package/src/AdaptableState/Common/BaseContext.d.ts +2 -0
- package/src/AdaptableState/Common/ColumnHighlightInfo.d.ts +18 -0
- package/src/AdaptableState/Common/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 +29 -4
- package/src/Api/Implementation/ActionColumnApiImpl.js +1 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +52 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -0
- package/src/Api/Implementation/AlertApiImpl.js +6 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -1
- package/src/Api/Implementation/ApiBase.js +2 -1
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ChartingApiImpl.js +6 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.js +1 -0
- package/src/Api/Implementation/CommentsApiImpl.js +1 -0
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +6 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +6 -2
- package/src/Api/Implementation/DashboardApiImpl.js +1 -0
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +12 -15
- package/src/Api/Implementation/DataImportApiImpl.js +1 -0
- package/src/Api/Implementation/DataSetApiImpl.js +1 -0
- package/src/Api/Implementation/EntitlementApiImpl.js +1 -0
- package/src/Api/Implementation/EventApiImpl.js +16 -14
- package/src/Api/Implementation/ExportApiImpl.js +1 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +1 -0
- package/src/Api/Implementation/FilterApiImpl.js +3 -0
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FlashingCellApiImpl.js +4 -0
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -5
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -5
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -0
- package/src/Api/Implementation/GridApiImpl.d.ts +10 -1
- package/src/Api/Implementation/GridApiImpl.js +35 -4
- 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 +121 -64
- package/src/Strategy/AdaptableModuleBase.js +4 -0
- package/src/Strategy/AlertModule.js +5 -0
- package/src/Strategy/BulkUpdateModule.js +8 -8
- package/src/Strategy/CalculatedColumnModule.js +1 -0
- package/src/Strategy/CellSummaryModule.js +1 -1
- package/src/Strategy/CustomSortModule.js +4 -0
- package/src/Strategy/DataChangeHistoryModule.js +1 -0
- package/src/Strategy/FlashingCellModule.js +6 -0
- package/src/Strategy/FormatColumnModule.js +4 -0
- package/src/Strategy/FreeTextColumnModule.js +1 -0
- package/src/Strategy/LayoutModule.js +6 -5
- package/src/Strategy/PlusMinusModule.js +7 -1
- package/src/Strategy/QuickSearchModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +5 -0
- package/src/Strategy/SettingsPanelModule.js +11 -7
- package/src/Strategy/ShortcutModule.js +6 -0
- package/src/Strategy/SmartEditModule.js +10 -10
- package/src/Strategy/TeamSharingModule.js +10 -10
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +0 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +18 -17
- package/src/Utilities/Constants/DocumentationLinkConstants.js +19 -18
- 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 +39 -41
- package/src/Utilities/Services/QueryLanguageService.js +6 -5
- package/src/Utilities/Services/RowFormService.js +1 -0
- package/src/Utilities/Services/RowSummaryService.js +10 -7
- package/src/Utilities/Services/TeamSharingService.js +3 -1
- package/src/Utilities/Services/ThemeService.js +13 -15
- package/src/Utilities/Services/ValidationService.js +2 -1
- package/src/Utilities/createAgStatusPanelComponent.js +3 -0
- package/src/Utilities/logDeprecation.js +3 -4
- package/src/Utilities/resolveContainerElement.d.ts +23 -0
- package/src/Utilities/resolveContainerElement.js +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 +16 -3
- package/src/agGrid/AdaptableAgGrid.js +306 -103
- package/src/agGrid/AdaptableFilterHandler.js +4 -0
- package/src/agGrid/AdaptableLogger.d.ts +3 -0
- package/src/agGrid/AdaptableLogger.js +10 -0
- package/src/agGrid/AgGridAdapter.js +19 -9
- package/src/agGrid/AgGridColumnAdapter.d.ts +1 -0
- package/src/agGrid/AgGridColumnAdapter.js +20 -22
- package/src/agGrid/AgGridExportAdapter.js +15 -14
- package/src/agGrid/AgGridFilterAdapter.js +4 -0
- package/src/agGrid/AgGridFloatingFilterAdapter.js +4 -1
- package/src/agGrid/AgGridMenuAdapter.js +10 -1
- package/src/agGrid/AgGridModulesAdapter.js +2 -1
- package/src/agGrid/AgGridOptionsService.js +3 -0
- package/src/agGrid/AgGridThemeAdapter.js +4 -2
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +5 -0
- package/src/agGrid/cellRenderers/BadgeRenderer.js +2 -0
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +1 -0
- package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +16 -12
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +17 -13
- package/src/agGrid/index.d.ts +6 -0
- package/src/agGrid/index.js +6 -0
- package/src/components/CheckBox/index.js +1 -1
- package/src/components/ColorPicker/ColorPicker.js +5 -4
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/index.js +1 -1
- package/src/components/Dropdown/Arrows.js +1 -1
- package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
- package/src/components/ExpressionEditor/EditorInput.js +19 -3
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +1 -1
- package/src/components/FormLayout/index.js +1 -1
- package/src/components/OverlayTrigger/index.js +1 -1
- package/src/components/Select/Select.js +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
|
@@ -6,7 +6,11 @@ const VersionUpgrade18_1 = require("./VersionUpgrade18");
|
|
|
6
6
|
const EnvVars_1 = require("../EnvVars");
|
|
7
7
|
const VersionUpgrade20_1 = require("./VersionUpgrade20");
|
|
8
8
|
const VersionUpgrade21_1 = require("./VersionUpgrade21");
|
|
9
|
+
const VersionUpgrade22_1 = require("./VersionUpgrade22");
|
|
9
10
|
class AdaptableUpgradeHelper {
|
|
11
|
+
currentMajorVersion;
|
|
12
|
+
versionUpgrades;
|
|
13
|
+
logger;
|
|
10
14
|
constructor(logger) {
|
|
11
15
|
this.currentMajorVersion = this.getCurrentMajorVersion(EnvVars_1.ADAPTABLE_VERSION);
|
|
12
16
|
this.logger = logger || this.getConsoleLogger();
|
|
@@ -15,6 +19,7 @@ class AdaptableUpgradeHelper {
|
|
|
15
19
|
this.versionUpgrades.set(18, new VersionUpgrade18_1.VersionUpgrade18(this.logger));
|
|
16
20
|
this.versionUpgrades.set(20, new VersionUpgrade20_1.VersionUpgrade20(this.logger));
|
|
17
21
|
this.versionUpgrades.set(21, new VersionUpgrade21_1.VersionUpgrade21(this.logger));
|
|
22
|
+
this.versionUpgrades.set(22, new VersionUpgrade22_1.VersionUpgrade22(this.logger));
|
|
18
23
|
}
|
|
19
24
|
static migrateAdaptableState(state, config) {
|
|
20
25
|
const upgradeHelper = new AdaptableUpgradeHelper(config.logger);
|
|
@@ -32,16 +37,16 @@ class AdaptableUpgradeHelper {
|
|
|
32
37
|
let updatedState = structuredClone(state);
|
|
33
38
|
for (const version of versionUpgrades) {
|
|
34
39
|
if (version > fromVersion && version <= toVersion) {
|
|
35
|
-
upgradeHelper.logger.info(`Migration to ${version} started
|
|
40
|
+
upgradeHelper.logger.info(`Migration to version ${version} started.`);
|
|
36
41
|
updatedState = upgradeHelper.versionUpgrades.get(version).migrateState(updatedState);
|
|
37
|
-
upgradeHelper.logger.info(`Migration to ${version}
|
|
42
|
+
upgradeHelper.logger.info(`Migration to version ${version} completed.`);
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
return updatedState;
|
|
41
46
|
}
|
|
42
47
|
getCurrentMajorVersion(version) {
|
|
43
48
|
// is good enough for now, we just need to make sure we don't forget to update it
|
|
44
|
-
return parseInt(version.split('.')[0]) ||
|
|
49
|
+
return parseInt(version.split('.')[0]) || 22;
|
|
45
50
|
}
|
|
46
51
|
getConsoleLogger() {
|
|
47
52
|
return {
|
|
@@ -102,7 +102,7 @@ class VersionUpgrade17 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
102
102
|
// let dashboardState: any = this.api.dashboardApi.getDashboardState();
|
|
103
103
|
let dashboardState = state.Dashboard;
|
|
104
104
|
if (dashboardState?.VisibleButtons) {
|
|
105
|
-
this.logger.warn(`
|
|
105
|
+
this.logger.warn(`Migrating deprecated DashboardState.VisibleButtons: [${dashboardState.VisibleButtons}].`);
|
|
106
106
|
state.Dashboard.ModuleButtons = [
|
|
107
107
|
...state.Dashboard.ModuleButtons,
|
|
108
108
|
...dashboardState.VisibleButtons,
|
|
@@ -245,12 +245,11 @@ class VersionUpgrade17 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
245
245
|
return state;
|
|
246
246
|
}
|
|
247
247
|
migrateStyledColumnState(state) {
|
|
248
|
-
var _a;
|
|
249
248
|
const formatColumnsWithColumnStyles = state.FormatColumn?.FormatColumns?.filter((fc) => fc.ColumnStyle) || [];
|
|
250
249
|
if (!formatColumnsWithColumnStyles.length) {
|
|
251
250
|
return state;
|
|
252
251
|
}
|
|
253
|
-
this.logger.info(`
|
|
252
|
+
this.logger.info(`Migrating ${formatColumnsWithColumnStyles.length} FormatColumn styles to StyledColumns.`, formatColumnsWithColumnStyles);
|
|
254
253
|
// delete the format columns with column styles
|
|
255
254
|
state.FormatColumn.FormatColumns = state.FormatColumn.FormatColumns?.filter((fc) => !fc.ColumnStyle);
|
|
256
255
|
const styledColumns = formatColumnsWithColumnStyles
|
|
@@ -265,7 +264,7 @@ class VersionUpgrade17 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
265
264
|
};
|
|
266
265
|
})
|
|
267
266
|
.filter(Boolean);
|
|
268
|
-
|
|
267
|
+
state.StyledColumn.StyledColumns ??= [];
|
|
269
268
|
styledColumns.forEach((styledColumn) => {
|
|
270
269
|
state.StyledColumn.StyledColumns.push(styledColumn);
|
|
271
270
|
});
|
|
@@ -278,7 +277,7 @@ class VersionUpgrade17 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
278
277
|
const deprecatedToolPanelConfigs = state.ToolPanel
|
|
279
278
|
?.VisibleToolPanels;
|
|
280
279
|
if (deprecatedToolPanelConfigs?.length) {
|
|
281
|
-
this.logger.warn(`
|
|
280
|
+
this.logger.warn(`Migrating deprecated ToolPanelState.VisibleToolPanels: [${deprecatedToolPanelConfigs}].`);
|
|
282
281
|
const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({
|
|
283
282
|
Name: toolPanel,
|
|
284
283
|
State: 'collapsed',
|
|
@@ -341,7 +340,7 @@ class VersionUpgrade17 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
341
340
|
cc.CalculatedColumnSettings = {
|
|
342
341
|
DataType: 'number',
|
|
343
342
|
};
|
|
344
|
-
this.logger.warn(`
|
|
343
|
+
this.logger.warn(`Migrating Calculated Column "${cc.ColumnId}": adding default CalculatedColumnSettings.`);
|
|
345
344
|
}
|
|
346
345
|
});
|
|
347
346
|
return state;
|
|
@@ -153,7 +153,7 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
153
153
|
return state;
|
|
154
154
|
}
|
|
155
155
|
migrateColTypeToDataType(state) {
|
|
156
|
-
this.logger.info(
|
|
156
|
+
this.logger.info('Migrating column types to data types.');
|
|
157
157
|
// Calculated Column DataType
|
|
158
158
|
const calculatedColumnState = state.CalculatedColumn;
|
|
159
159
|
if (calculatedColumnState && calculatedColumnState.CalculatedColumns) {
|
|
@@ -164,7 +164,7 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
164
164
|
}
|
|
165
165
|
const newDataType = mapOldTypeToDataType(cc.CalculatedColumnSettings.DataType);
|
|
166
166
|
if (newDataType === 'unknown') {
|
|
167
|
-
this.logger.warn(`Calculated Column ${cc.ColumnId} has
|
|
167
|
+
this.logger.warn(`Calculated Column "${cc.ColumnId}" has unrecognized DataType: "${cc.CalculatedColumnSettings.DataType}".`);
|
|
168
168
|
}
|
|
169
169
|
else {
|
|
170
170
|
cc.CalculatedColumnSettings.DataType = newDataType;
|
|
@@ -182,7 +182,7 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
182
182
|
}
|
|
183
183
|
const newDataType = mapOldTypeToDataType(fc.FreeTextColumnSettings.DataType);
|
|
184
184
|
if (newDataType === 'unknown') {
|
|
185
|
-
this.logger.warn(`FreeText Column ${fc.ColumnId} has
|
|
185
|
+
this.logger.warn(`FreeText Column "${fc.ColumnId}" has unrecognized DataType: "${fc.FreeTextColumnSettings.DataType}".`);
|
|
186
186
|
}
|
|
187
187
|
else {
|
|
188
188
|
fc.FreeTextColumnSettings.DataType = newDataType;
|
|
@@ -192,7 +192,7 @@ class VersionUpgrade20 extends VersionUpgrade_1.VersionUpgrade {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
migrateSparklineState(state) {
|
|
195
|
-
this.logger.info(
|
|
195
|
+
this.logger.info('Migrating Sparkline state.');
|
|
196
196
|
const sparklineState = state.StyledColumn;
|
|
197
197
|
if (sparklineState && sparklineState.StyledColumns) {
|
|
198
198
|
sparklineState.StyledColumns.forEach((styledColumn) => {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { VersionUpgrade } from './VersionUpgrade';
|
|
2
|
+
import { AdaptableState } from '../AdaptableState/AdaptableState';
|
|
3
|
+
export declare class VersionUpgrade22 extends VersionUpgrade {
|
|
4
|
+
migrateState(state: AdaptableState): AdaptableState;
|
|
5
|
+
private migrateNamedObjectState;
|
|
6
|
+
private migrateFormatColumnState;
|
|
7
|
+
private patchCustomSortName;
|
|
8
|
+
private patchFlashingCellName;
|
|
9
|
+
private patchFormatColumnName;
|
|
10
|
+
private patchPlusMinusNudgeName;
|
|
11
|
+
private patchShortcutName;
|
|
12
|
+
private patchAlertName;
|
|
13
|
+
private patchScheduleName;
|
|
14
|
+
private scopeToString;
|
|
15
|
+
private hashStrings;
|
|
16
|
+
/**
|
|
17
|
+
* Stringifies an object after removing metadata properties (Uuid, Source, AdaptableVersion)
|
|
18
|
+
* to ensure deterministic hashing regardless of generated values.
|
|
19
|
+
*/
|
|
20
|
+
private stringifyWithoutMetadata;
|
|
21
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VersionUpgrade22 = void 0;
|
|
4
|
+
const VersionUpgrade_1 = require("./VersionUpgrade");
|
|
5
|
+
const AdaptableHelper_1 = require("../Utilities/Helpers/AdaptableHelper");
|
|
6
|
+
class VersionUpgrade22 extends VersionUpgrade_1.VersionUpgrade {
|
|
7
|
+
migrateState(state) {
|
|
8
|
+
this.migrateFormatColumnState(state);
|
|
9
|
+
this.migrateNamedObjectState(state);
|
|
10
|
+
return state;
|
|
11
|
+
}
|
|
12
|
+
migrateNamedObjectState(state) {
|
|
13
|
+
this.patchCustomSortName(state.CustomSort);
|
|
14
|
+
this.patchFlashingCellName(state.FlashingCell);
|
|
15
|
+
this.patchFormatColumnName(state.FormatColumn);
|
|
16
|
+
this.patchPlusMinusNudgeName(state.PlusMinus);
|
|
17
|
+
this.patchShortcutName(state.Shortcut);
|
|
18
|
+
this.patchAlertName(state.Alert);
|
|
19
|
+
this.patchScheduleName(state.Schedule);
|
|
20
|
+
}
|
|
21
|
+
// We have moved CellAlignment (renamed Alignment) from independent property into Style
|
|
22
|
+
migrateFormatColumnState(state) {
|
|
23
|
+
const formatColumnState = state.FormatColumn;
|
|
24
|
+
if (formatColumnState && formatColumnState.FormatColumns) {
|
|
25
|
+
formatColumnState.FormatColumns = formatColumnState.FormatColumns.map((formatColumn) => {
|
|
26
|
+
//@ts-ignore
|
|
27
|
+
if (formatColumn.CellAlignment) {
|
|
28
|
+
formatColumn.Style = {
|
|
29
|
+
...formatColumn.Style,
|
|
30
|
+
//@ts-ignore
|
|
31
|
+
Alignment: formatColumn.CellAlignment,
|
|
32
|
+
};
|
|
33
|
+
//@ts-ignore
|
|
34
|
+
delete formatColumn.CellAlignment;
|
|
35
|
+
}
|
|
36
|
+
return formatColumn;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return state;
|
|
40
|
+
}
|
|
41
|
+
patchCustomSortName(customSortState) {
|
|
42
|
+
if (!customSortState) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
customSortState.CustomSorts?.forEach((customSort) => {
|
|
46
|
+
if (!customSort.Name) {
|
|
47
|
+
const sortedValues = (customSort.SortedValues || []).join();
|
|
48
|
+
customSort.Name = `CustomSort-${customSort.ColumnId}-${this.hashStrings(['CustomSort', customSort.ColumnId, sortedValues])}`;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
patchFlashingCellName(flashingCellState) {
|
|
53
|
+
if (!flashingCellState) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
flashingCellState.FlashingCellDefinitions?.forEach((flashingCell) => {
|
|
57
|
+
if (!flashingCell.Name) {
|
|
58
|
+
const scopeStr = this.scopeToString(flashingCell.Scope);
|
|
59
|
+
const ruleStr = flashingCell.Rule?.BooleanExpression || '';
|
|
60
|
+
flashingCell.Name = `FlashingCell-${this.hashStrings(['FlashingCell', scopeStr, ruleStr])}`;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
patchFormatColumnName(formatColumnState) {
|
|
65
|
+
if (!formatColumnState) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
formatColumnState.FormatColumns?.forEach((formatColumn) => {
|
|
69
|
+
if (!formatColumn.Name) {
|
|
70
|
+
const scopeStr = this.scopeToString(formatColumn.Scope);
|
|
71
|
+
const styleStr = this.stringifyWithoutMetadata(formatColumn.Style);
|
|
72
|
+
formatColumn.Name = `FormatColumn-${this.hashStrings(['FormatColumn', scopeStr, styleStr])}`;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
patchPlusMinusNudgeName(plusMinusState) {
|
|
77
|
+
if (!plusMinusState) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
plusMinusState.PlusMinusNudges?.forEach((nudge) => {
|
|
81
|
+
if (!nudge.Name) {
|
|
82
|
+
const scopeStr = this.scopeToString(nudge.Scope);
|
|
83
|
+
const nudgeValue = String(nudge.NudgeValue ?? '');
|
|
84
|
+
nudge.Name = `PlusMinus-${this.hashStrings(['PlusMinus', scopeStr, nudgeValue])}`;
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
patchShortcutName(shortcutState) {
|
|
89
|
+
if (!shortcutState) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
shortcutState.Shortcuts?.forEach((shortcut) => {
|
|
93
|
+
if (!shortcut.Name) {
|
|
94
|
+
const key = shortcut.ShortcutKey || '';
|
|
95
|
+
const operation = shortcut.ShortcutOperation || '';
|
|
96
|
+
const value = String(shortcut.ShortcutValue ?? '');
|
|
97
|
+
shortcut.Name = `Shortcut-${key}-${this.hashStrings(['Shortcut', key, operation, value])}`;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
patchAlertName(alertState) {
|
|
102
|
+
if (!alertState) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
alertState.AlertDefinitions?.forEach((alert) => {
|
|
106
|
+
if (!alert.Name) {
|
|
107
|
+
const scopeStr = this.scopeToString(alert.Scope);
|
|
108
|
+
const messageType = alert.MessageType || '';
|
|
109
|
+
const ruleStr = this.stringifyWithoutMetadata(alert.Rule);
|
|
110
|
+
alert.Name = `Alert-${messageType}-${this.hashStrings(['Alert', scopeStr, messageType, ruleStr])}`;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
patchScheduleName(scheduleState) {
|
|
115
|
+
if (!scheduleState) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
// Patch Reminder Schedules
|
|
119
|
+
scheduleState.Reminders?.forEach((reminder) => {
|
|
120
|
+
if (!reminder.Name) {
|
|
121
|
+
const header = reminder.Header || '';
|
|
122
|
+
const message = reminder.Message || '';
|
|
123
|
+
reminder.Name = `Reminder-${this.hashStrings(['Reminder', header, message])}`;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
// Patch Report Schedules
|
|
127
|
+
scheduleState.ReportSchedules?.forEach((report) => {
|
|
128
|
+
if (!report.Name) {
|
|
129
|
+
const reportName = report.ReportName || '';
|
|
130
|
+
const format = report.ReportFormat || '';
|
|
131
|
+
report.Name = `ReportSchedule-${this.hashStrings(['ReportSchedule', reportName, format])}`;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
// Patch IPushPull Schedules
|
|
135
|
+
scheduleState.IPushPullSchedules?.forEach((ipp) => {
|
|
136
|
+
if (!ipp.Name) {
|
|
137
|
+
const reportName = ipp.IPushPullReport?.ReportName || '';
|
|
138
|
+
const folder = ipp.IPushPullReport?.Folder || '';
|
|
139
|
+
const page = ipp.IPushPullReport?.Page || '';
|
|
140
|
+
ipp.Name = `IPushPullSchedule-${this.hashStrings(['IPushPullSchedule', reportName, folder, page])}`;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
// Patch OpenFin Schedules
|
|
144
|
+
scheduleState.OpenFinSchedules?.forEach((openfin) => {
|
|
145
|
+
if (!openfin.Name) {
|
|
146
|
+
const reportName = openfin.OpenFinReport?.ReportName || '';
|
|
147
|
+
openfin.Name = `OpenFinSchedule-${this.hashStrings(['OpenFinSchedule', reportName])}`;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
scopeToString(scope) {
|
|
152
|
+
if (!scope) {
|
|
153
|
+
return '';
|
|
154
|
+
}
|
|
155
|
+
if ('All' in scope && scope.All) {
|
|
156
|
+
return 'All';
|
|
157
|
+
}
|
|
158
|
+
if ('ColumnIds' in scope && scope.ColumnIds) {
|
|
159
|
+
return scope.ColumnIds.join(',');
|
|
160
|
+
}
|
|
161
|
+
if ('DataTypes' in scope && scope.DataTypes) {
|
|
162
|
+
return scope.DataTypes.join(',');
|
|
163
|
+
}
|
|
164
|
+
if ('ColumnTypes' in scope && scope.ColumnTypes) {
|
|
165
|
+
return scope.ColumnTypes.join(',');
|
|
166
|
+
}
|
|
167
|
+
return '';
|
|
168
|
+
}
|
|
169
|
+
hashStrings(strings) {
|
|
170
|
+
let hash = 0;
|
|
171
|
+
for (const str of strings) {
|
|
172
|
+
for (let i = 0; i < str.length; i++) {
|
|
173
|
+
hash = (hash * 31 + str.charCodeAt(i)) % 9000;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return hash + 1000;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Stringifies an object after removing metadata properties (Uuid, Source, AdaptableVersion)
|
|
180
|
+
* to ensure deterministic hashing regardless of generated values.
|
|
181
|
+
*/
|
|
182
|
+
stringifyWithoutMetadata(obj) {
|
|
183
|
+
if (!obj) {
|
|
184
|
+
return '';
|
|
185
|
+
}
|
|
186
|
+
const cloned = structuredClone(obj);
|
|
187
|
+
(0, AdaptableHelper_1.removeAdaptableObjectPrimitivesInlineDeep)(cloned);
|
|
188
|
+
return JSON.stringify(cloned);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.VersionUpgrade22 = VersionUpgrade22;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExpressionEvaluationError = void 0;
|
|
4
4
|
class ExpressionEvaluationError extends Error {
|
|
5
|
+
expressionFnName;
|
|
5
6
|
constructor(expressionFnName, message) {
|
|
6
7
|
super(message);
|
|
7
8
|
this.expressionFnName = expressionFnName;
|
package/src/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type { AggregatedBooleanFunctionName } from './Utilities/ExpressionFuncti
|
|
|
10
10
|
export type { AggregatedScalarFunctionName } from './Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions';
|
|
11
11
|
export type { AdaptableOptions } from './AdaptableOptions/AdaptableOptions';
|
|
12
12
|
export { AdaptablePlugin } from './AdaptableOptions/AdaptablePlugin';
|
|
13
|
-
export type { ContainerOptions } from './AdaptableOptions/ContainerOptions';
|
|
13
|
+
export type { ContainerOptions, AdaptableContainerValue, AdaptableCSSSelector, InitContainerContext, ContainerContext, } from './AdaptableOptions/ContainerOptions';
|
|
14
14
|
export type { FlashingCellOptions, FlashTarget } from './AdaptableOptions/FlashingCellOptions';
|
|
15
15
|
export type { ToastPositions, ToastTransitions, NotificationsOptions, } from './AdaptableOptions/NotificationsOptions';
|
|
16
16
|
export type { AlertOptions, CommandHandler, AlertForm, AlertFormContext, AlertMessageContext, DataChangeDetectionPolicy, } from './AdaptableOptions/AlertOptions';
|
|
@@ -141,7 +141,7 @@ export type { ScheduleTriggeredInfo } from './Api/Events/ScheduleTriggered';
|
|
|
141
141
|
export type { AdaptableStateChangedInfo } from './Api/Events/AdaptableStateChanged';
|
|
142
142
|
export type { CommentChangedInfo } from './Api/Events/CommentChanged';
|
|
143
143
|
export type { Fdc3MessageInfo, Fdc3MessageSentInfo, Fdc3MessageReceivedInfo, } from './Api/Events/Fdc3MessageInfo';
|
|
144
|
-
export type { AdaptableState, AdaptablePersistentState } from './AdaptableState/AdaptableState';
|
|
144
|
+
export type { AdaptableState, AdaptablePersistentState, AdaptableTransientState, } from './AdaptableState/AdaptableState';
|
|
145
145
|
export type { AlertDefinition, AlertProperties, AlertState, AlertButtonForm, AlertButton, AdaptableAlertCommand, AlertDefinitionPredicate, AlertRule, AdaptableAlertQuery, SystemAlertPredicateId, SystemAlertPredicateIds, } from './AdaptableState/AlertState';
|
|
146
146
|
export type { ApplicationDataEntry, ApplicationState } from './AdaptableState/ApplicationState';
|
|
147
147
|
export type { SpecialColumnSettings } from './AdaptableState/Common/SpecialColumnSettings';
|
|
@@ -150,15 +150,14 @@ export type { CellSummmaryInfo, CustomCellSummaryOperation, CustomCellSummaryOpe
|
|
|
150
150
|
export type { FlashingCellDefinition, FlashingCellState, SystemFlashingCellPredicateId, SystemFlashingCellPredicateIds, } from './AdaptableState/FlashingCellState';
|
|
151
151
|
export type { AdaptableAlert, AdaptableAlertType, AdaptableGenericAlert, AdaptableCellChangedAlert, AdaptableRowChangedAlert, AdaptableAlertBase, } from './AdaptableState/Common/AdaptableAlert';
|
|
152
152
|
export type { AdaptableFlashingCell } from './AdaptableState/Common/AdaptableFlashingCell';
|
|
153
|
-
export type { AdaptableColumn, AdaptableColumnBase,
|
|
153
|
+
export type { AdaptableColumn, AdaptableColumnBase, AdaptableColumnTypeName, AdaptableColumnDataType, AdaptableColumnGroup, AdaptableColumnSummary, } from './AdaptableState/Common/AdaptableColumn';
|
|
154
154
|
export type { AdaptableField } from './AdaptableState/Common/AdaptableField';
|
|
155
155
|
export type { AdaptableComparerFunction } from './AdaptableState/Common/AdaptableComparerFunction';
|
|
156
156
|
export type { SystemStatusMessageInfo } from './AdaptableState/Common/SystemStatusMessageInfo';
|
|
157
157
|
export type { AlternativeModuleName } from './AdaptableState/Common/AlternativeModuleName';
|
|
158
158
|
export type { AdaptableFormat, DateFormatterOptions, NumberFormatterOptions, StringFormatterOptions, } from './AdaptableState/Common/AdaptableFormat';
|
|
159
159
|
export type { AdaptableMessageType } from './AdaptableState/Common/AdaptableMessageType';
|
|
160
|
-
export type { AdaptableObject, AdaptableObjectTag, AdaptableObjectLookupCriteria, AdaptableVersion, } from './AdaptableState/Common/AdaptableObject';
|
|
161
|
-
export type { SuspendableObject } from './AdaptableState/Common/SuspendableObject';
|
|
160
|
+
export type { Identifiable, AdaptableObject, AdaptableObjectTag, AdaptableObjectLookupCriteria, AdaptableVersion, SuspendableObject, } from './AdaptableState/Common/AdaptableObject';
|
|
162
161
|
export type { AdaptableQuery, AdaptableAggregatedBooleanQuery, AdaptableAggregatedScalarQuery, AdaptableBooleanQuery, AdaptableObservableQuery, AdaptableScalarQuery, } from './AdaptableState/Common/AdaptableQuery';
|
|
163
162
|
export type { AdaptablePredicate, AdaptableColumnPredicate, AdaptablePredicateDef, PredicateModuleScope, PredicateDefHandlerContext, PredicateDefInput, PredicateDefToStringParams, ColumnFilterDef, } from './AdaptableState/Common/AdaptablePredicate';
|
|
164
163
|
export type { ColumnScope } from './AdaptableState/Common/ColumnScope';
|
|
@@ -173,11 +172,13 @@ export type { CellDataChangedInfo } from './AdaptableState/Common/CellDataChange
|
|
|
173
172
|
export type { RowDataChangedInfo, RowDataChangeTrigger, } from './AdaptableState/Common/RowDataChangedInfo';
|
|
174
173
|
export type { DataChangedScope } from './AdaptableState/Common/DataChangedScope';
|
|
175
174
|
export type { DataUpdateConfig } from './AdaptableState/Common/DataUpdateConfig';
|
|
175
|
+
export type { DataRowConfig } from './AdaptableState/Common/DataUpdateConfig';
|
|
176
176
|
export type { AdaptableFormData, AdaptableForm, AdaptableFormField, AdaptableFormFieldType, } from './AdaptableState/Common/AdaptableForm';
|
|
177
177
|
export type { AdaptableButton } from './AdaptableState/Common/AdaptableButton';
|
|
178
178
|
export type { AdaptableMenuItem, UserMenuItem, ColumnMenuContext, ContextMenuContext, AdaptableContextMenuItem, AdaptableColumnMenuItem, AdaptableColumnMenuItemName, AdaptableContextMenuItemName, AgGridMenuItem, MenuCategory, MenuSeparator, } from './AdaptableState/Common/Menu';
|
|
179
179
|
export type { BaseContext } from './AdaptableState/Common/BaseContext';
|
|
180
|
-
export type { AdaptableColumnContext } from './AdaptableState/Common/AdaptableColumnContext';
|
|
180
|
+
export type { AdaptableColumnContext, AdaptableColumnsContext, } from './AdaptableState/Common/AdaptableColumnContext';
|
|
181
|
+
export type { AdaptableRowContext } from './AdaptableState/Common/AdaptableRowContext';
|
|
181
182
|
export type { FormContext } from './AdaptableState/Common/FormContext';
|
|
182
183
|
export type { Schedule } from './AdaptableState/Common/Schedule';
|
|
183
184
|
export type { ButtonStyle } from './AdaptableState/Common/ButtonStyle';
|
|
@@ -188,7 +189,7 @@ export type { DashboardState, DashboardTab, AdaptableCoordinate, } from './Adapt
|
|
|
188
189
|
export type { ExportState, Report, ReportData, ReportColumn, ReportSchedule, SystemReportName, SystemReportNames, SystemReportFormat, ReportRowScope, ReportColumnScope, ReportNameType, ReportFormatType, } from './AdaptableState/ExportState';
|
|
189
190
|
export type { ColumnFilter, ColumnFilterPredicate, SystemFilterPredicateIds, SystemFilterPredicateId, PredicatesOperator, } from './AdaptableState/Common/ColumnFilter';
|
|
190
191
|
export type { GridFilter } from './AdaptableState/Common/GridFilter';
|
|
191
|
-
export type { FormatColumn, FormatColumnState, FormatColumnRule, FormatColumnPredicate, SystemFormatColumnPredicateId, SystemFormatColumnPredicateIds,
|
|
192
|
+
export type { FormatColumn, FormatColumnState, FormatColumnRule, FormatColumnPredicate, SystemFormatColumnPredicateId, SystemFormatColumnPredicateIds, ColumnGroupScope, FormatColumnTarget, FormatColumnConfig, } from './AdaptableState/FormatColumnState';
|
|
192
193
|
export type { StyledColumn, StyledColumnState, PercentBarStyle, GradientStyle, CellColorRange, ColumnComparison, CellTextOptions, CellTextOption, NumericStyledColumn, RangeValueType, SparklineStyle, BadgeStyle, BadgeStyleDefinition, BadgeStylePredicate, SystemBadgeStylePredicateId, SystemBadgeStylePredicateIds, } from './AdaptableState/StyledColumnState';
|
|
193
194
|
export type { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue, FreeTextColumnSettings, } from './AdaptableState/FreeTextColumnState';
|
|
194
195
|
export type { StatusBarState, AdaptableStatusBar } from './AdaptableState/StatusBarState';
|
|
@@ -210,6 +211,7 @@ export type { Shortcut, ShortcutState, ShortcutScopeDataType, } from './Adaptabl
|
|
|
210
211
|
export type { SharedEntity, AdaptableSharedEntity, CustomSharedEntity, TeamSharingState, SharedEntityType, AdaptableSharedEntityConfig, CustomSharedEntityConfig, } from './AdaptableState/TeamSharingState';
|
|
211
212
|
export type { AdaptableTheme, ThemeState } from './AdaptableState/ThemeState';
|
|
212
213
|
export type { ToolPanelState, AdaptableToolPanelDefinition, ToolPanelVisibilityMode, } from './AdaptableState/ToolPanelState';
|
|
214
|
+
export type { UserInterfaceState } from './AdaptableState/UserInterfaceState';
|
|
213
215
|
export type { AdaptableFrameworkComponent, AngularFrameworkComponent, ReactFrameworkComponent, VueFrameworkComponent, CustomRenderFunction, CustomRenderContext, } from './agGrid/AdaptableFrameworkComponent';
|
|
214
216
|
export type { Fdc3Options, GridDataContextMapping, ActionColumnDefaultConfiguration, ResolveContextDataContext, RaiseIntentConfig, BroadcastConfig, HandleFdc3IntentContext, HandleFdc3Context, Fdc3ButtonContext, Fdc3AdaptableButton, HandleFdc3IntentResolutionContext, UIControlConfig, Fdc3IntentOptions, Fdc3ContextOptions, RaiseIntentConfiguration, BroadcastConfiguration, FDC3ActionColumn, } from './AdaptableOptions/Fdc3Options';
|
|
215
217
|
export type { CommentState, CommentThread, AdaptableComment } from './AdaptableState/CommentState';
|
package/themes/dark.css
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
.
|
|
2
|
-
--
|
|
1
|
+
@layer adaptable.theme {
|
|
2
|
+
.ab--theme-dark {
|
|
3
|
+
--ab-theme-loaded: dark;
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
--ab-cmp-input--disabled__background: #232323; /* #b6b7b8 */
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
--ab-color-defaultbackground: #3e444c;
|
|
8
|
+
--ab-color-text-on-defaultbackground: #e2e2e2;
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
--ab-color-primary: #262d2f;
|
|
11
|
+
--ab-color-primarylight: #3d3e3f;
|
|
12
|
+
--ab-color-primarydark: #1c2021;
|
|
13
|
+
--ab-color-text-on-primary: #e2e2e2; /* F2F2F2 */
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
--ab-color-shadow: rgb(255 255 255 / 0.45);
|
|
16
|
+
--ab-cmp-modal-backdrop__background: rgba(255, 255, 255, 0.2);
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
--ab-dashboard__border: #555;
|
|
19
|
+
--ab-cmp-dropdownbutton-list-separator__border: 1px solid #555;
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
--ab-gridheader--filtered__background: var(--ab-color-defaultbackground);
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
input[type='number'].ab-Input::-webkit-outer-spin-button,
|
|
26
|
-
input[type='number'].ab-Input::-webkit-inner-spin-button {
|
|
27
|
-
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="4 0 18 18" version="1.1"><path fill="%23f7f7f7" d="M7 10l5 5 5-5z" transform="translate(0, 2)"/><path fill="%23f7f7f7" d="M7 14l5-5 5 5z" transform="translate(0, -6)"/></svg>')
|
|
28
|
-
no-repeat center center;
|
|
23
|
+
--ab-cmp-checkbox__border-color: var(--ab-color-text-on-primary);
|
|
24
|
+
--ab-cmp-checkbox--checked__border-color: var(--ab-color-accent);
|
|
29
25
|
}
|
|
30
|
-
}
|
|
31
26
|
|
|
32
|
-
|
|
27
|
+
.ab--theme-dark input.ab-Input[type='number']::-webkit-outer-spin-button,.ab--theme-dark input.ab-Input[type='number']::-webkit-inner-spin-button {
|
|
28
|
+
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="4 0 18 18" version="1.1"><path fill="%23f7f7f7" d="M7 10l5 5 5-5z" transform="translate(0, 2)"/><path fill="%23f7f7f7" d="M7 14l5-5 5 5z" transform="translate(0, -6)"/></svg>')
|
|
29
|
+
no-repeat center center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
33
|
The following are only redefined here so that the DARK theme in Storybook
|
|
34
34
|
can be previewed correctly as that relies on an element (not the document element)
|
|
35
35
|
to have the class ab--theme-dark.
|
|
@@ -38,11 +38,11 @@ For our production release those are not needed and could be removed
|
|
|
38
38
|
as our dark theme is anyways applied on the document element.
|
|
39
39
|
|
|
40
40
|
*/
|
|
41
|
-
.ab--theme-dark {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
.ab--theme-dark {
|
|
42
|
+
--ab-color-inputcolor: var(--ab-color-text-on-primary);
|
|
43
|
+
--ab-cmp-input__color: var(--ab-color-inputcolor);
|
|
44
|
+
--ab-cmp-input__background: var(--ab-color-defaultbackground);
|
|
45
|
+
--ab-cmp-input--disabled__background: var(--ab-color-primarylight);
|
|
46
|
+
--ab-cmp-field-wrap__background: var(--ab-color-defaultbackground);
|
|
47
|
+
}
|
|
48
48
|
}
|
package/themes/light.css
CHANGED